/* ===================================
   MODERN ATHLETIC PORTFOLIO
   Inspired by Novaprobio Template
   Enhanced for Kevin Franz Jr.
   =================================== */

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

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

:root {
    /* Enhanced Color System - Athletic Green */
    --primary-color: #1B5E20;
    --primary-dark: #0d3d11;
    --primary-light: #2E7D32;
    --secondary-color: #43A047;
    --secondary-light: #66BB6A;
    --accent-gold: #FFB300;
    --accent-gold-light: #FFD54F;

    /* Neutral Palette */
    --text-dark: #0f172a;
    --text-gray: #475569;
    --text-light: #94a3b8;
    --text-white: #ffffff;

    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-lighter: #f1f5f9;
    --bg-dark: #1e293b;

    /* Border & Dividers */
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;

    /* Enhanced Shadows */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
    --shadow-sm: 0 2px 8px -2px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 16px -4px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 16px 32px -8px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 24px 48px -12px rgba(0, 0, 0, 0.15);
    --shadow-2xl: 0 32px 64px -16px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 32px rgba(67, 160, 71, 0.4);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #1B5E20 0%, #2E7D32 100%);
    --gradient-secondary: linear-gradient(135deg, #43A047 0%, #66BB6A 100%);
    --gradient-gold: linear-gradient(135deg, #FFB300 0%, #FFD54F 100%);
    --gradient-overlay: linear-gradient(135deg, rgba(27, 94, 32, 0.95) 0%, rgba(46, 125, 50, 0.95) 100%);
    --gradient-hero: linear-gradient(180deg, rgba(248, 250, 252, 0) 0%, #f8fafc 100%);

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 600ms cubic-bezier(0.68, -0.55, 0.265, 1.55);

    /* Spacing Scale */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    --spacing-4xl: 6rem;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ===================================
   Enhanced Typography
   =================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: 1.25rem;
    letter-spacing: -0.03em;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 900;
    letter-spacing: -0.04em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 700;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===================================
   Layout System
   =================================== */

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.container-narrow {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

.main-wrapper {
    width: 100%;
    margin: 0 auto;
    padding: 0;
}

.main-content {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===================================
   Sticky Sidebar Navigation
   (Inspired by Novaprobio)
   =================================== */

.sidebar-nav {
    position: fixed;
    left: 0;
    top: 0;
    width: 320px;
    height: 100vh;
    background: var(--bg-white);
    padding: 2.5rem;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.2);
    transition: transform var(--transition-base);
    z-index: 1000;
    overflow-y: auto;
    transform: translateX(-100%);
}

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

/* Overlay backdrop */
.sidebar-nav::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-base);
    z-index: -1;
}

.sidebar-nav.active::before {
    opacity: 1;
    pointer-events: all;
}

.sidebar-profile {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-light);
}

.sidebar-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    border: 4px solid var(--primary-color);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.sidebar-avatar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-overlay);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.sidebar-avatar:hover::before {
    opacity: 0.3;
}

.sidebar-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-base);
}

.sidebar-avatar:hover img {
    transform: scale(1.1);
}

.sidebar-name {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.sidebar-role {
    font-size: 0.875rem;
    color: var(--text-gray);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sidebar-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-links li {
    margin-bottom: 0.5rem;
}

.sidebar-links a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    color: var(--text-gray);
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: 0.75rem;
    transition: all var(--transition-base);
    position: relative;
}

.sidebar-links a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: var(--gradient-primary);
    border-radius: 0 2px 2px 0;
    transition: height var(--transition-base);
}

.sidebar-links a:hover {
    color: var(--primary-color);
    background: rgba(27, 94, 32, 0.05);
    transform: translateX(4px);
}

.sidebar-links a:hover::before {
    height: 70%;
}

.sidebar-links a.active {
    color: var(--text-white);
    background: var(--gradient-primary);
    box-shadow: var(--shadow-md);
}

.sidebar-links a.active::before {
    display: none;
}

.sidebar-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.sidebar-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border-radius: 50%;
    color: var(--text-gray);
    transition: all var(--transition-base);
}

.social-link:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.sidebar-stats {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
}

.stat-item {
    text-align: center;
    margin-bottom: 1.5rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary-color);
    display: block;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-gray);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ===================================
   Enhanced Hero Section
   =================================== */

.section-hero-modern {
    padding: 8rem 0 10rem;
    background: linear-gradient(180deg, var(--bg-light) 0%, rgba(248, 250, 252, 0.3) 100%);
    position: relative;
    overflow: hidden;
}

.section-hero-modern::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(67, 160, 71, 0.12) 0%, transparent 70%);
    pointer-events: none;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-20px, 20px) rotate(5deg); }
}

.hero-content-modern {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(27, 94, 32, 0.2);
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary-color);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    animation: fadeInDown 0.8s ease-out;
}

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

.hero-label::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--gradient-primary);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

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

.hero-heading-modern {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.04em;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-subtitle-modern {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

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

.hero-cta-group {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 5rem;
    animation: fadeIn 1s ease-out 0.8s both;
}

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

.hero-image-card {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-slow);
    aspect-ratio: 4 / 5;
}

.hero-image-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-overlay);
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: 1;
}

.hero-image-card:hover::before {
    opacity: 0.7;
}

.hero-image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.hero-image-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-2xl);
}

.hero-image-card:hover img {
    transform: scale(1.1);
}

.hero-image-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    font-weight: 700;
    font-size: 1.125rem;
    z-index: 2;
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--transition-base);
}

.hero-image-card:hover .hero-image-label {
    opacity: 1;
    transform: translateY(0);
}

/* ===================================
   Enhanced Stats Section
   =================================== */

.stats-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
}

.stat-card {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, var(--bg-white) 0%, var(--bg-light) 100%);
    border-radius: 1.5rem;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-slow);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-slow);
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 1rem;
    color: white;
    font-size: 1.75rem;
    font-weight: 900;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.stat-card:hover .stat-icon {
    transform: scale(1.1) rotate(5deg);
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 0.5rem;
    display: block;
}

.stat-description {
    font-size: 0.9375rem;
    color: var(--text-gray);
    font-weight: 600;
}

/* ===================================
   Video Section Enhancement
   =================================== */

.video-section-modern {
    padding: 6rem 0;
    background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-light) 100%);
}

.video-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
}

.video-card-modern {
    background: var(--bg-white);
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-slow);
    border: 1px solid var(--border-light);
}

.video-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
}

.video-thumbnail {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--bg-dark);
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 2rem;
    box-shadow: var(--shadow-xl);
    transition: all var(--transition-base);
    cursor: pointer;
}

.video-play-button::before {
    content: '▶';
    margin-left: 4px;
}

.video-card-modern:hover .video-play-button {
    transform: translate(-50%, -50%) scale(1.1);
    background: var(--gradient-primary);
    color: white;
}

.video-info {
    padding: 2rem;
}

.video-title-modern {
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.video-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.video-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.video-description {
    color: var(--text-gray);
    line-height: 1.7;
}

/* ===================================
   Timeline Enhancement
   =================================== */

.timeline-modern {
    position: relative;
    padding: 2rem 0;
}

.timeline-modern::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gradient-primary);
    transform: translateX(-50%);
}

.timeline-item-modern {
    display: grid;
    grid-template-columns: 1fr 80px 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
    position: relative;
}

.timeline-item-modern:nth-child(even) .timeline-content-left {
    order: 3;
}

.timeline-item-modern:nth-child(even) .timeline-content-right {
    order: 1;
}

.timeline-content-left,
.timeline-content-right {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    transition: all var(--transition-slow);
    position: relative;
}

.timeline-content-left:hover,
.timeline-content-right:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.timeline-dot-modern {
    width: 20px;
    height: 20px;
    background: var(--gradient-primary);
    border-radius: 50%;
    margin: 0 auto;
    position: relative;
    top: 1rem;
    box-shadow: 0 0 0 8px rgba(67, 160, 71, 0.2);
    transition: all var(--transition-base);
    z-index: 2;
}

.timeline-item-modern:hover .timeline-dot-modern {
    transform: scale(1.3);
    box-shadow: 0 0 0 12px rgba(67, 160, 71, 0.3);
}

.timeline-year {
    font-size: 0.875rem;
    font-weight: 800;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}

.timeline-title-modern {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.timeline-description {
    color: var(--text-gray);
    line-height: 1.7;
}

/* ===================================
   Testimonial Slider
   =================================== */

.testimonial-section {
    padding: 8rem 0;
    background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg-white) 100%);
    position: relative;
    overflow: hidden;
}

.testimonial-slider {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.testimonial-card {
    background: var(--bg-white);
    padding: 4rem 3rem;
    border-radius: 2rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-light);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 2rem;
    left: 2rem;
    font-size: 8rem;
    line-height: 1;
    color: var(--primary-color);
    opacity: 0.08;
    font-family: Georgia, serif;
}

.testimonial-quote {
    font-size: 1.5rem;
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 2.5rem;
    font-style: italic;
    position: relative;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.testimonial-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    box-shadow: var(--shadow-md);
}

.testimonial-info h4 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text-dark);
}

.testimonial-role {
    font-size: 0.9375rem;
    color: var(--text-gray);
    font-weight: 600;
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: all var(--transition-base);
}

.slider-dot.active {
    background: var(--gradient-primary);
    transform: scale(1.3);
}

/* ===================================
   Enhanced Buttons
   =================================== */

.btn-modern-primary,
.btn-modern-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.125rem 2.5rem;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    border-radius: 0.875rem;
    transition: all var(--transition-base);
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.01em;
}

.btn-modern-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-modern-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-secondary);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.btn-modern-primary:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.btn-modern-primary:hover::before {
    opacity: 1;
}

.btn-modern-primary > * {
    position: relative;
    z-index: 1;
}

.btn-modern-secondary {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    color: var(--primary-color);
    border-color: var(--border-color);
    box-shadow: var(--shadow-sm);
}

.btn-modern-secondary:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.btn-icon {
    width: 20px;
    height: 20px;
    transition: transform var(--transition-base);
}

.btn-modern-primary:hover .btn-icon,
.btn-modern-secondary:hover .btn-icon {
    transform: translateX(4px);
}

/* ===================================
   Section Spacing & Layout
   =================================== */

section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 5rem;
}

.section-eyebrow {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(27, 94, 32, 0.08);
    color: var(--primary-color);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 2rem;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.section-description {
    font-size: 1.25rem;
    color: var(--text-gray);
    line-height: 1.7;
}

/* ===================================
   Scroll Animations
   =================================== */

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Stagger delays for grid items */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }

/* ===================================
   Mobile Sidebar Toggle
   =================================== */

.sidebar-toggle {
    display: flex;
    position: fixed;
    top: 1.5rem;
    left: 1.5rem;
    z-index: 1001;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    box-shadow: var(--shadow-xl);
    transition: all var(--transition-base);
}

.sidebar-toggle span {
    width: 22px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: all var(--transition-base);
}

.sidebar-toggle:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-2xl);
}

.sidebar-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.sidebar-toggle.active span:nth-child(2) {
    opacity: 0;
}

.sidebar-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Main Content Wrapper */
.main-content {
    min-height: 100vh;
    position: relative;
}

/* Enhanced Sidebar Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.sidebar-links li {
    animation: slideInLeft 0.5s ease-out backwards;
}

.sidebar-links li:nth-child(1) { animation-delay: 0.1s; }
.sidebar-links li:nth-child(2) { animation-delay: 0.15s; }
.sidebar-links li:nth-child(3) { animation-delay: 0.2s; }
.sidebar-links li:nth-child(4) { animation-delay: 0.25s; }
.sidebar-links li:nth-child(5) { animation-delay: 0.3s; }
.sidebar-links li:nth-child(6) { animation-delay: 0.35s; }
.sidebar-links li:nth-child(7) { animation-delay: 0.4s; }
.sidebar-links li:nth-child(8) { animation-delay: 0.45s; }

/* Sidebar Profile Animation */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.sidebar-profile {
    animation: fadeInScale 0.6s ease-out;
}

/* Sidebar Stats Animation */
.sidebar-stats .stat-item {
    animation: slideInLeft 0.6s ease-out backwards;
}

.sidebar-stats .stat-item:nth-child(1) { animation-delay: 0.5s; }
.sidebar-stats .stat-item:nth-child(2) { animation-delay: 0.6s; }
.sidebar-stats .stat-item:nth-child(3) { animation-delay: 0.7s; }

/* Sidebar Social Animation */
.sidebar-social {
    animation: fadeInScale 0.6s ease-out 0.8s backwards;
}

.sidebar-social .social-link {
    transition: all var(--transition-base);
}

.sidebar-social .social-link svg {
    transition: transform var(--transition-base);
}

.sidebar-social .social-link:hover svg {
    transform: scale(1.1) rotate(5deg);
}

/* Active Link Pulse Effect */
@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(27, 94, 32, 0.7);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(27, 94, 32, 0);
    }
}

.sidebar-links a.active {
    animation: pulseGlow 2s infinite;
}

/* Responsive Design
   =================================== */

@media (max-width: 768px) {
    .main-content {
        padding-top: 5rem;
    }

    .sidebar-nav {
        max-width: 85vw;
    }

    .sidebar-avatar {
        width: 100px;
        height: 100px;
    }

    .hero-image-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .timeline-modern::before {
        left: 2rem;
    }

    .timeline-item-modern {
        grid-template-columns: 80px 1fr;
        gap: 2rem;
    }

    .timeline-content-left,
    .timeline-content-right {
        grid-column: 2;
    }

    .timeline-item-modern:nth-child(even) .timeline-content-left,
    .timeline-item-modern:nth-child(even) .timeline-content-right {
        order: initial;
    }
}

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

    .section-header {
        margin-bottom: 3rem;
    }

    .hero-image-grid,
    .stats-showcase,
    .video-grid-modern {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .testimonial-card {
        padding: 3rem 2rem;
    }

    .testimonial-quote {
        font-size: 1.25rem;
    }

    .btn-modern-primary,
    .btn-modern-secondary {
        width: 100%;
        padding: 1.25rem 2rem;
    }

    .timeline-dot-modern {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 480px) {
    .container,
    .container-narrow {
        padding: 0 1.25rem;
    }

    .sidebar-nav {
        padding: 1.5rem;
    }

    .stat-card {
        padding: 2rem 1.5rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }
}
