/* Custom styles beyond Tailwind */

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

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

.nav-text {
    transition: color 0.3s ease;
}

nav:not(.scrolled) .nav-text {
    color: #0F172A;
}

nav:not(.scrolled) .mobile-line {
    background: #0F172A;
}

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

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

.hero-animate-delay-1 { animation-delay: 0.1s; opacity: 0; }
.hero-animate-delay-2 { animation-delay: 0.2s; opacity: 0; }
.hero-animate-delay-3 { animation-delay: 0.3s; opacity: 0; }
.hero-animate-delay-4 { animation-delay: 0.4s; opacity: 0; }

/* Intersection observer animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

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

#mobile-menu.open .mobile-link {
    animation: fadeInUp 0.4s ease forwards;
}

#mobile-menu.open .mobile-link:nth-child(1) { animation-delay: 0.05s; }
#mobile-menu.open .mobile-link:nth-child(2) { animation-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(3) { animation-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(4) { animation-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(5) { animation-delay: 0.25s; }

/* Mobile hamburger animation */
.mobile-toggle.active .mobile-line:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
}

.mobile-toggle.active .mobile-line:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active .mobile-line:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
    width: 1.5rem;
}

/* Selection color */
::selection {
    background: #bbf7d0;
    color: #0F172A;
}

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

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

::-webkit-scrollbar-thumb {
    background: #8eafd3;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #5f8ec0;
}

/* Image hover effects */
img {
    will-change: transform;
}

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* Print styles */
@media print {
    nav, #contact-form, #form-success {
        display: none;
    }
}
