/* ========================================
   AT-YOUTH CLINIC - Modern Youth-Friendly CSS
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #0f766e;
    --primary-light: #14b8a6;
    --primary-dark: #0d5c56;
    --secondary: #06b6d4;
    --accent: #f97316;
    --accent-light: #fb923c;
    --accent-dark: #ea580c;
    --success: #22c55e;
    --warning: #eab308;
    --danger: #ef4444;
    --purple: #8b5cf6;
    --pink: #ec4899;
    
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-dark: #0f172a;
    --bg-gradient: linear-gradient(135deg, #0f766e 0%, #06b6d4 50%, #8b5cf6 100%);
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --text-light: #ffffff;
    
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 40px rgba(15, 118, 110, 0.15);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
    --border-radius-full: 9999px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

body.menu-open {
    overflow: hidden;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
}

/* ========================================
   Header & Navigation
   ======================================== */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
}

@media (max-width: 768px) {
    .header-container {
        padding: 12px 16px;
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    z-index: 1001;
}

.logo-img {
    height: 50px;
    width: auto;
    transition: var(--transition);
}

@media (max-width: 768px) {
    .logo-img {
        height: 42px;
    }
}

.logo-img img {
    height: 100%;
    width: auto;
    border-radius: 8px;
}

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

nav ul {
    display: flex;
    list-style: none;
    gap: 8px;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    padding: 10px 18px;
    border-radius: var(--border-radius-full);
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

nav a:hover {
    color: var(--primary);
    background: rgba(15, 118, 110, 0.08);
}

nav a:active {
    transform: scale(0.97);
}

nav a.active {
    color: var(--primary);
    background: rgba(15, 118, 110, 0.1);
    font-weight: 600;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 12px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    z-index: 1001;
    min-width: 44px;
    min-height: 44px;
}

.mobile-menu-btn:hover {
    background: var(--bg-tertiary);
}

/* ========================================
   Mobile Sidebar Navigation
   ======================================== */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

@media (min-width: 769px) {
    .mobile-overlay {
        display: none;
    }
}

@media (max-width: 768px) {
    nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        height: 100dvh;
        background: white;
        z-index: 10000;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
        display: flex;
        flex-direction: column;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        visibility: visible;
        opacity: 1;
    }

    nav.active {
        transform: translateX(0);
    }

    nav ul {
        display: flex;
        flex-direction: column;
        padding: 80px 20px 24px;
        gap: 4px;
        width: 100%;
        list-style: none;
        margin: 0;
        border-top: none;
        box-shadow: none;
        position: static;
        background: transparent;
        visibility: visible;
    }

    nav ul li {
        display: block;
        width: 100%;
        visibility: visible;
    }

    nav a {
        display: flex;
        align-items: center;
        width: 100%;
        padding: 16px 20px;
        font-size: 1.05rem;
        font-weight: 500;
        color: #0f172a !important;
        border-radius: var(--border-radius);
        min-height: 52px;
        background: transparent;
        text-decoration: none;
        visibility: visible;
        opacity: 1;
    }

    nav a:hover {
        background: rgba(15, 118, 110, 0.08);
        color: #0f766e !important;
    }

    nav a.active {
        background: rgba(15, 118, 110, 0.1);
        color: #0f766e !important;
        font-weight: 600;
    }

    nav a:active {
        background: var(--bg-tertiary);
    }

    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 10001;
        position: relative;
    }

    .nav-footer {
        padding: 24px;
        border-top: 1px solid var(--border-light);
        margin-top: auto;
    }

    .nav-footer p {
        font-size: 0.8rem;
        color: var(--text-muted);
        margin-bottom: 12px;
    }

    .nav-footer .social-links {
        margin-top: 0;
    }

    .nav-footer .social-links a {
        width: 40px;
        height: 40px;
        background: var(--bg-secondary);
        color: var(--text-secondary);
    }
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    color: var(--text-light);
    padding: 14px 32px;
    border-radius: var(--border-radius-full);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-align: center;
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.3);
    position: relative;
    overflow: hidden;
    min-height: 48px;
    -webkit-tap-highlight-color: transparent;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.4);
}

.btn:active {
    transform: translateY(0) scale(0.98);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    box-shadow: 0 4px 14px rgba(15, 118, 110, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 8px 25px rgba(15, 118, 110, 0.4);
}

.btn-secondary {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: var(--text-light);
    box-shadow: none;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: white;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    box-shadow: none;
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    box-shadow: 0 8px 25px rgba(15, 118, 110, 0.3);
}

.btn-lg {
    padding: 18px 40px;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.875rem;
}

/* ========================================
   Main Content
   ======================================== */
main {
    flex: 1;
}

section {
    padding: 100px 0;
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    section {
        padding: 48px 0;
    }
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

@media (max-width: 768px) {
    .section-title {
        margin-bottom: 40px;
    }
}

.section-title h2 {
    font-family: 'Poppins', sans-serif;
    color: var(--text-primary);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .section-title h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .section-title h2 {
        font-size: 1.75rem;
    }
}

.section-title h2 span {
    background: var(--bg-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title p {
    color: var(--text-secondary);
    max-width: 680px;
    margin: 0 auto;
    font-size: 1.125rem;
    line-height: 1.7;
}

@media (max-width: 480px) {
    .section-title p {
        font-size: 1rem;
    }
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    position: relative;
    padding: 140px 0 120px;
    overflow: hidden;
}

@media (max-width: 768px) {
    .hero {
        padding: 90px 0 70px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 80px 0 50px;
    }
}

@media (max-width: 360px) {
    .hero {
        padding: 70px 0 40px;
    }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.95) 0%, rgba(6, 182, 212, 0.9) 50%, rgba(139, 92, 246, 0.85) 100%);
    z-index: 1;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: var(--border-radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@media (max-width: 480px) {
    .hero-badge {
        padding: 6px 14px;
        font-size: 0.75rem;
        margin-bottom: 16px;
    }
}

.hero h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.75rem;
        margin-bottom: 16px;
    }
}

@media (max-width: 360px) {
    .hero h1 {
        font-size: 1.5rem;
    }
}

.hero p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 40px;
    opacity: 0.95;
    line-height: 1.7;
}

@media (max-width: 480px) {
    .hero p {
        font-size: 0.95rem;
        margin-bottom: 28px;
        line-height: 1.5;
    }
}

@media (max-width: 360px) {
    .hero p {
        font-size: 0.875rem;
    }
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 480px) {
    .hero-buttons {
        gap: 12px;
        width: 100%;
    }
    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
        font-size: 0.95rem;
        min-height: 50px;
    }
    .hero-buttons .btn-secondary {
        background: rgba(255, 255, 255, 0.15);
        border-color: white;
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
    }
}

@media (max-width: 360px) {
    .hero-buttons .btn {
        padding: 12px 20px;
        font-size: 0.875rem;
    }
}

.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    animation: float 20s infinite ease-in-out;
}

.hero-shape:nth-child(1) {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.hero-shape:nth-child(2) {
    width: 300px;
    height: 300px;
    bottom: -50px;
    left: -50px;
    animation-delay: -5s;
}

.hero-shape:nth-child(3) {
    width: 200px;
    height: 200px;
    top: 50%;
    left: 10%;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-30px) rotate(120deg); }
    66% { transform: translateY(20px) rotate(240deg); }
}

/* ========================================
   Cards
   ======================================== */
.card {
    background: var(--bg-primary);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    border: 1px solid var(--border-light);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

@media (max-width: 768px) {
    .card:hover {
        transform: none;
    }
}

.card-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
    transition: var(--transition);
    loading: lazy;
}

@media (max-width: 480px) {
    .card-img {
        height: 180px;
    }
}

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

.card-img-wrapper {
    overflow: hidden;
    position: relative;
}

.card-img-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, rgba(0,0,0,0.1), transparent);
}

.card-content {
    padding: 28px;
}

@media (max-width: 480px) {
    .card-content {
        padding: 20px;
    }
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
}

@media (max-width: 480px) {
    .card-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
}

/* ========================================
   Grid Layouts
   ======================================== */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 48px;
    align-items: center;
}

@media (max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

@media (max-width: 768px) {
    .grid-3 {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 28px;
}

@media (max-width: 768px) {
    .grid-4 {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========================================
   Stats Section
   ======================================== */
.stats-section {
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--bg-gradient);
}

.stat-card {
    text-align: center;
    padding: 40px 24px;
    background: var(--bg-primary);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-light);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

@media (max-width: 768px) {
    .stat-card:hover {
        transform: none;
    }
}

.stat-number {
    font-family: 'Poppins', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    background: var(--bg-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    line-height: 1;
}

@media (max-width: 480px) {
    .stat-number {
        font-size: 2.5rem;
    }
}

.stat-label {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 1rem;
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
    background: var(--bg-gradient);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 50%);
    animation: pulse 15s infinite ease-in-out;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .cta-section h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .cta-section h2 {
        font-size: 1.75rem;
    }
}

.cta-section p {
    max-width: 700px;
    margin: 0 auto 36px;
    font-size: 1.2rem;
    opacity: 0.95;
}

@media (max-width: 480px) {
    .cta-section p {
        font-size: 1rem;
    }
}

/* ========================================
   Footer
   ======================================== */
footer {
    background: var(--bg-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 80px 0 30px;
    margin-top: auto;
    position: relative;
}

@media (max-width: 768px) {
    footer {
        padding: 60px 0 24px;
    }
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--bg-gradient);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 480px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

.footer-column h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 24px;
    color: white;
}

@media (max-width: 480px) {
    .footer-column h3 {
        font-size: 1.1rem;
        margin-bottom: 16px;
    }
}

.footer-column p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 16px;
    line-height: 1.7;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 12px;
    display: block;
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-column a:hover {
    color: var(--accent-light);
    padding-left: 8px;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    font-size: 1rem;
    transition: var(--transition);
    margin-bottom: 0;
    -webkit-tap-highlight-color: transparent;
}

.social-links a:hover {
    background: var(--accent);
    transform: translateY(-4px);
    padding-left: 0;
}

.copyright {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

/* ========================================
   Media Containers
   ======================================== */
.media-container {
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.media-container img,
.media-container video {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
    loading: lazy;
}

.media-container:hover img {
    transform: scale(1.02);
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out forwards;
}

.animate-fadeIn {
    animation: fadeIn 0.6s ease-out forwards;
}

.animate-slideInLeft {
    animation: slideInLeft 0.6s ease-out forwards;
}

.animate-slideInRight {
    animation: slideInRight 0.6s ease-out forwards;
}

.animate-scaleIn {
    animation: scaleIn 0.6s ease-out forwards;
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* ========================================
   Utility Classes
   ======================================== */
.text-gradient {
    background: var(--bg-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-light { background-color: var(--bg-secondary); }
.bg-white { background-color: var(--bg-primary); }

.rounded { border-radius: var(--border-radius); }
.rounded-lg { border-radius: var(--border-radius-lg); }
.rounded-xl { border-radius: var(--border-radius-xl); }

.shadow { box-shadow: var(--shadow); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

/* ========================================
   Mobile Touch Optimizations
   ======================================== */
@media (hover: none) and (pointer: coarse) {
    .card:hover {
        transform: none;
    }
    .btn:hover {
        transform: none;
    }
    .stat-card:hover {
        transform: none;
    }
    nav a:hover {
        background: transparent;
    }
    nav a:active {
        background: var(--bg-tertiary);
    }
}

/* ========================================
   Scrollbar Styling
   ======================================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* ========================================
   Safe Area Support (iPhone notch)
   ======================================== */
@supports (padding: max(0px)) {
    body {
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }
}

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