/* Base styles and custom properties */
:root {
    --teal-50: #f0fdfa;
    --teal-100: #ccfbf1;
    --teal-200: #99f6e4;
    --teal-300: #5eead4;
    --teal-400: #2dd4bf;
    --teal-500: #14b8a6;
    --teal-600: #0d9488;
    --teal-700: #0f766e;
    --teal-800: #115e59;
    --teal-900: #134e4a;
    --blush-50: #fff5f7;
    --blush-100: #ffe4e8;
    --blush-200: #ffcad3;
}

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

/* Selection color */
::selection {
    background-color: var(--teal-200);
    color: var(--teal-900);
}

/* Hero section */
.hero-bg {
    will-change: transform;
}

.hero-overlay {
    background: linear-gradient(
        135deg,
        rgba(15, 78, 89, 0.9) 0%,
        rgba(13, 148, 136, 0.7) 50%,
        rgba(15, 118, 110, 0.8) 100%
    );
}

/* Hero particles */
.particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: rgba(94, 234, 212, 0.3);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.particle:nth-child(2) { width: 6px; height: 6px; animation-duration: 8s; animation-delay: 1s; }
.particle:nth-child(3) { width: 10px; height: 10px; animation-duration: 7s; animation-delay: 2s; }
.particle:nth-child(4) { width: 5px; height: 5px; animation-duration: 9s; animation-delay: 0.5s; }
.particle:nth-child(5) { width: 7px; height: 7px; animation-duration: 6s; animation-delay: 1.5s; }
.particle:nth-child(6) { width: 4px; height: 4px; animation-duration: 8s; animation-delay: 3s; }
.particle:nth-child(7) { width: 9px; height: 9px; animation-duration: 7s; animation-delay: 2.5s; }

@keyframes float {
    0%, 100% { transform: translateY(0px) scale(1); opacity: 0.3; }
    50% { transform: translateY(-30px) scale(1.2); opacity: 0.7; }
}

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

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

/* Scroll animation base - content is always visible by default */
.scroll-animate {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Scroll animation - only active when prefers-reduced-motion is not set to reduce */
@media (prefers-reduced-motion: no-preference) {
    .scroll-animate {
        opacity: 0;
        transform: translateY(24px);
    }
    .scroll-animate.is-visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(15, 78, 89, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

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

#mobile-menu.open {
    max-height: 400px;
    padding: 1rem 0;
}

/* Custom button hover effects */
a:hover {
    transition: all 0.3s ease;
}

/* Image hover container */
.overflow-hidden {
    position: relative;
}

.overflow-hidden::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.1), transparent);
    border-radius: inherit;
    pointer-events: none;
}

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
}

/* Print styles */
@media print {
    nav, .scroll-indicator, #mobile-menu-btn {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
}
