@tailwind base;
@tailwind components;
@tailwind utilities;

body {
  font-family: 'Roboto', sans-serif;
  background-color: #1b192b;
  color: #a39a65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

.playfair { font-family: 'Playfair Display', serif; }

.text-heading-gold { color: #f1d77a; }
.text-heading-lavender { color: #c2bbed; }

.link-lavender { color: #c2bbed; }
.link-lavender:hover { color: #f1d77a; }

.link-gold { color: #f1d77a; }
.link-gold:hover { color: #a39a65; }

.bg-section-dark { background-color: #1b192b; }
.bg-section-darker { background-color: #1b192b; }
.bg-main-dark { background-color: #1b192b; }
.bg-section-gradient { background-image: linear-gradient(to right, #f1d77a, #f1e39b, #c2bbed); }

.border-main-blue { border-color: #154897; }
.border-main-blue-lightop { border-color: rgba(21, 72, 151, 0.3); }
.border-accent-gold { border-color: #f1d77a; }
.border-accent-lavender { border-color: #c2bbed; }

.text-gradient-gold-lavender {
  background-image: linear-gradient(to right, #f1d77a, #f1e39b, #c2bbed);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.placeholder-lavender-muted::placeholder {
  color: #c2bbed;
  opacity: 0.7;
}

nav a.active-link {
  color: #f1d77a;
  background-color: #334155;
  font-weight: 600;
}

#mobileMenu a.active-link {
  color: #f1d77a;
  background-color: #475569;
}

.nav-link-hover-bg:hover { background-color: #1f2937; }
.mobile-nav-link-hover-bg:hover { background-color: #334155; }
.mobile-menu-bg { background-color: #1b192b; }
.mobile-menu-divider { border-color: #334155; }

@keyframes heroTitle {
  0% { opacity: 0; transform: translateY(-30px) scale(0.9); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.animate-hero-title { animation: heroTitle 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards; }

@keyframes heroName {
  0% { opacity: 0; transform: scale(0.8); }
  100% { opacity: 1; transform: scale(1); }
}
.animate-hero-name { animation: heroName 0.8s 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards; }

@keyframes heroSubtitle {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}
.animate-hero-subtitle { animation: heroSubtitle 0.7s 1s ease-out forwards; }

@keyframes heroButton {
  0% { opacity: 0; transform: scale(0.8); }
  100% { opacity: 1; transform: scale(1); }
}
.animate-hero-button { animation: heroButton 0.6s 1.5s cubic-bezier(0.68, -0.55, 0.27, 1.55) forwards; }

.animate-on-scroll {
  opacity: 0;
  transition: opacity 0.7s ease-out, transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.animate-on-scroll.is-visible[data-animation="animate-fade-in-up"] { opacity: 1; transform: translateY(0); }
.animate-on-scroll.is-visible[data-animation="animate-fade-in-down"] { opacity: 1; transform: translateY(0); }
.animate-on-scroll.is-visible[data-animation="animate-fade-in-left"] { opacity: 1; transform: translateX(0); }
.animate-on-scroll.is-visible[data-animation="animate-fade-in-right"] { opacity: 1; transform: translateX(0); }
.animate-on-scroll.is-visible[data-animation="animate-zoom-in"] { opacity: 1; transform: scale(1); }
.animate-on-scroll.is-visible[data-animation="animate-perspective-left"] { opacity: 1; transform: perspective(1000px) rotateY(0deg); }

.animate-on-scroll[data-animation="animate-fade-in-up"] { transform: translateY(40px); }
.animate-on-scroll[data-animation="animate-fade-in-down"] { transform: translateY(-40px); }
.animate-on-scroll[data-animation="animate-fade-in-left"] { transform: translateX(40px); }
.animate-on-scroll[data-animation="animate-fade-in-right"] { transform: translateX(-40px); }
.animate-on-scroll[data-animation="animate-zoom-in"] { transform: scale(0.8); }
.animate-on-scroll[data-animation="animate-perspective-left"] { transform: perspective(1000px) rotateY(-20deg); transform-origin: left center; }

.animate-on-scroll.is-visible { opacity: 1; transform: translateY(0) scale(1) rotateY(0deg); }
.animate-on-scroll { transform: translateY(30px); }

.project-card-custom:hover {
  box-shadow: 0 10px 25px -5px rgba(194, 187, 237, 0.2), 0 8px 10px -6px rgba(194, 187, 237, 0.15);
}

input[type="text"],
input[type="email"],
textarea {
  background-color: #334155;
  border: 1px solid #154897;
  color: #a39a65;
  border-radius: 0.5rem;
  width: 100%;
  padding: 0.75rem 1rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2) inset;
  transition: all 0.2s;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  background-color: #475569;
  box-shadow: 0 0 0 2px #f1d77a, 0 2px 4px rgba(0,0,0,0.2) inset, 0 1px 3px rgba(0,0,0,0.1);
  outline: none;
  border-color: transparent;
}

.btn-primary-custom {
  background-color: #f1d77a;
  color: #120950;
  font-weight: bold;
  padding: 0.75rem 1.75rem;
  border-radius: 0.375rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  box-shadow: none;
  position: relative;
}

.btn-primary-custom:hover {
  background-color: #a39a65;
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
  transform: scale(1.05);
}

.btn-primary-custom:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(21, 72, 151, 0.5);
}

.btn-secondary-custom {
  background-color: #273449;
  color: #a39a65;
  font-weight: bold;
  padding: 0.75rem 1.75rem;
  border-radius: 0.375rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  box-shadow: none;
  position: relative;
}

.btn-secondary-custom:hover {
  background-color: #334155;
  transform: scale(1.05);
}

.btn-secondary-custom:focus {
  outline: none;
  box-shadow: 0 0 0 2px #f1d77a;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #1b192b; }
::-webkit-scrollbar-thumb { background: #f1d77a; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #c2bbed; }

.bg-color1 { background-color: #f1d77a; }
.bg-color2 { background-color: #a39a65; }
.bg-color3 { background-color: #1b192b; }
.bg-color4 { background-color: #154897; }
.bg-color5 { background-color: #c2bbed; }

.text-color1 { color: #f1d77a; }
.text-color2 { color: #a39a65; }
.text-color3 { color: #1b192b; }
.text-color4 { color: #154897; }
.text-color5 { color: #c2bbed; }

.border-color1 { border-color: #f1d77a; }
.border-color2 { border-color: #a39a65; }
.border-color3 { border-color: #1b192b; }
.border-color4 { border-color: #154897; }
.border-color5 { border-color: #c2bbed; }

/* 404 Page Styles */
.page-404-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  text-align: center;
  background-color: #1b192b; 
  color: #f1d77a;
  padding: 1rem;
}

.page-404-code {
  font-size: 8rem;
  font-weight: bold;
  font-family: 'Playfair Display', serif;
  color: #f1d77a;
  background: linear-gradient(to right, #f1d77a, #f1e39b, #c2bbed);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0;
  animation: heroTitle 1s ease-out forwards;
}

.page-404-text {
  font-size: 1.5rem;
  margin-top: 1rem;
  color: #a39a65;
  font-family: 'Roboto', sans-serif;
  animation: heroSubtitle 1s 0.5s ease-out forwards;
}

.page-404-description {
  font-size: 1rem;
  color: #c2bbed;
  margin-top: 0.5rem;
  max-width: 500px;
  line-height: 1.6;
  animation: heroSubtitle 1s 0.8s ease-out forwards;
}

.page-404-button {
  margin-top: 2rem;
}

.page-404-button a {
  display: inline-block;
  text-decoration: none;
  font-weight: bold;
  padding: 0.75rem 2rem;
  border-radius: 0.375rem;
  background-color: #f1d77a;
  color: #120950;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-404-button a:hover {
  background-color: #a39a65;
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

