/* Custom styles for Studio 64 */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Hero animations */
.hero-title {
  animation: heroSlideUp 1s ease-out forwards;
  opacity: 0;
  transform: translateY(30px);
}

.hero-subtitle {
  animation: heroSlideUp 1s ease-out 0.2s forwards;
  opacity: 0;
  transform: translateY(30px);
}

.hero-cta {
  animation: heroSlideUp 1s ease-out 0.4s forwards;
  opacity: 0;
  transform: translateY(30px);
}

.hero-eyebrow {
  animation: heroFadeIn 0.8s ease-out 0.1s forwards;
  opacity: 0;
}

@keyframes heroSlideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroFadeIn {
  to {
    opacity: 1;
  }
}

/* Scroll reveal base styles - content visible by default */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

/* Scroll reveal enhanced with prefers-reduced-motion */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
  }
  
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
  
  .reveal.delay-100 { transition-delay: 0.1s; }
  .reveal.delay-200 { transition-delay: 0.2s; }
  .reveal.delay-300 { transition-delay: 0.3s; }
  .reveal.delay-400 { transition-delay: 0.4s; }
  .reveal.delay-500 { transition-delay: 0.5s; }
}

/* Navbar scroll state */
.nav-scrolled {
  background: rgba(253, 252, 250, 0.95) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(45, 90, 61, 0.08);
}

.nav-scrolled .nav-link {
  color: rgb(45, 90, 61) !important;
}

.nav-scrolled #navbar .font-serif {
  color: rgb(45, 90, 61) !important;
}

.nav-scrolled .menu-line {
  background: rgb(45, 90, 61) !important;
}

/* Section eyebrow */
.section-eyebrow {
  letter-spacing: 0.15em;
}

/* Service card hover */
.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, rgb(45, 90, 61), rgb(61, 122, 72));
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.service-card:hover::after {
  transform: scaleX(1);
}

/* Gallery items */
.gallery-item {
  position: relative;
  overflow: hidden;
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(45, 90, 61, 0.2), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gallery-item:hover::after {
  opacity: 1;
}

/* Testimonial cards */
.testimonial-card {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* Scroll indicator */
.scroll-indicator {
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* Mobile menu animation */
#mobileMenu.open {
  opacity: 1;
  pointer-events: all;
}

#mobileMenu.closed {
  opacity: 0;
  pointer-events: none;
}

.menu-line {
  display: block;
}

.menu-open .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-open .menu-line:nth-child(2) {
  opacity: 0;
}

.menu-open .menu-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
  width: 1.25rem;
}

/* Custom select styling */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%232d5a3d' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* Selection color */
::selection {
  background: rgb(45, 90, 61, 0.2);
  color: rgb(20, 38, 29);
}
