/* === Base & Typography === */
html {
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background-color: #e86a5b;
  color: white;
}

/* === Custom Scrollbar === */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #fdf8f0;
}

::-webkit-scrollbar-thumb {
  background: #c4c4c4;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #e86a5b;
}

/* === Navigation === */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: #e86a5b;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link::after {
  transition: width 0.3s ease;
}

/* === Mobile Menu === */
.menu-line {
  transition: all 0.3s ease;
}

#menu-btn.active .menu-line:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}

#menu-btn.active .menu-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

#menu-btn.active .menu-line:nth-child(3) {
  transform: translateY(-4px) rotate(-45deg);
  width: 1.5rem;
}

/* === Hero Animations === */
.hero-label {
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.2s;
}

.hero-title {
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.4s;
}

.hero-subtitle {
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.6s;
}

.hero-cta {
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.8s;
}

.hero-scroll {
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 1s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === CTA Buttons === */
.cta-primary {
  position: relative;
  overflow: hidden;
}

.cta-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.5s ease;
}

.cta-primary:hover::before {
  left: 100%;
}

/* === Scroll-triggered Animations === */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === Menu Items === */
.menu-item {
  position: relative;
}

.menu-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: #e86a5b;
  transition: width 0.3s ease;
}

.menu-item:hover::after {
  width: 100%;
}

/* === Contact Form === */
.contact-form-wrapper input:focus,
.contact-form-wrapper textarea:focus {
  outline: none;
}

.contact-form-wrapper input::placeholder,
.contact-form-wrapper textarea::placeholder {
  color: #c4c4c4;
}

/* === Mobile Links === */
.mobile-link {
  position: relative;
}

.mobile-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background-color: #e86a5b;
  transition: width 0.3s ease;
}

.mobile-link:hover::after {
  width: 100%;
}

/* === Responsive Adjustments === */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-title span {
    font-size: 2.5rem;
  }
}

@media (min-width: 769px) {
  .hero-title {
    font-size: 4rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 5rem;
  }
}

/* === Print Styles === */
@media print {
  .fixed,
  .animate-pulse {
    display: none;
  }
}
