/* Base styles & custom properties */
:root {
    --color-teal-50: #f0fdfa;
    --color-teal-600: #0d9488;
    --color-slate-50: #f8fafc;
    --color-slate-100: #f1f5f9;
    --color-slate-200: #e2e8f0;
    --color-slate-400: #94a3b8;
    --color-slate-500: #64748b;
    --color-slate-600: #475569;
    --color-slate-700: #334155;
    --color-slate-800: #1e293b;
    --color-slate-900: #0f172a;
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Inter', system-ui, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
}

/* Navbar */
#navbar {
    background: transparent;
    transition: background 0.5s ease, box-shadow 0.5s ease;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.nav-logo {
    transition: color 0.4s ease;
}

#navbar:not(.scrolled) .nav-logo {
    color: #ccfbf1;
}

#navbar.scrolled .nav-logo {
    color: #0d9488;
}

/* Mobile menu */
#mobile-menu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-link {
    transition: color 0.3s ease;
}

/* Hero animations */
.hero-subtitle,
.hero-title,
.hero-desc,
.hero-cta {
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.hero-subtitle {
    animation: heroFadeUp 0.8s ease forwards;
    animation-delay: 0.2s;
}

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

.hero-desc {
    animation: heroFadeUp 0.8s ease forwards;
    animation-delay: 0.6s;
}

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

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

/* Scroll reveal animations - progressive enhancement */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Only apply scroll-reveal effects when JS is available and motion is preferred */
@media (prefers-reduced-motion: no-preference) {
    .reveal-hidden {
        opacity: 0;
        transform: translateY(24px);
    }

    .reveal-left-hidden {
        opacity: 0;
        transform: translateX(-24px);
    }

    .reveal-right-hidden {
        opacity: 0;
        transform: translateX(24px);
    }
}

/* Subtle line decorations */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-slate-200), transparent);
}

/* Button focus styles */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #2dd4bf;
    outline-offset: 2px;
}

/* Selection color */
::selection {
    background: #99f6e4;
    color: #042f2e;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Print styles */
@media print {
    #navbar,
    #mobile-menu-btn,
    .animate-bounce {
        display: none !important;
    }

    body {
        color: #1e293b;
        background: white;
    }

    section {
        page-break-inside: avoid;
    }
}
