/* Custom styles to supplement Tailwind */

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

/* Navbar scroll state */
nav.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

nav.scrolled .logo-text {
    color: #1e293b;
}

nav:not(.scrolled) .nav-link {
    color: rgba(255, 255, 255, 0.85);
}

nav:not(.scrolled) .nav-link:hover {
    color: #ffffff;
}

nav.scrolled .nav-link {
    color: #475569;
}

nav.scrolled .nav-link:hover {
    color: #0d9488;
}

nav.scrolled .nav-cta {
    background: #14b8a6;
    color: #ffffff;
}

nav.scrolled .nav-cta:hover {
    background: #0d9488;
}

/* Mobile menu transitions */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    opacity: 0;
}

#mobile-menu.open {
    max-height: 400px;
    opacity: 1;
}

.mobile-link {
    position: relative;
    padding-left: 0;
    transition: color 0.2s ease;
}

.mobile-link::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: #14b8a6;
    transition: width 0.2s ease;
}

.mobile-link:hover::before {
    width: 8px;
}

.mobile-link:hover {
    color: #0d9488 !important;
}

/* Section reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Stagger children */
.reveal-stagger > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.1s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.2s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.3s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.4s; }

.reveal-stagger.visible > * {
    opacity: 1;
    transform: translateY(0);
}

/* Hero text animation */
.hero-content {
    opacity: 0;
    transform: translateY(40px);
    animation: heroReveal 1s ease forwards;
    animation-delay: 0.3s;
}

.hero-content-delay {
    animation-delay: 0.6s;
}

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

/* Button hover glow */
.btn-glow:hover {
    box-shadow: 0 0 30px rgba(20, 184, 166, 0.4);
}

/* Image hover zoom wrapper */
.img-zoom {
    overflow: hidden;
}

.img-zoom img {
    transition: transform 0.6s ease;
}

.img-zoom:hover img {
    transform: scale(1.05);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Subtle pattern overlay on hero */
.hero-pattern {
    background-image: radial-gradient(circle at 2px 2px, rgba(255,255,255,0.05) 1px, transparent 0);
    background-size: 24px 24px;
}
