/* CSS Variables */
:root {
    --primary-color: #0066cc;
    --primary-dark: #004499;
    --secondary-color: #ff6b35;
    --accent-color: #00d4aa;
    --dark-bg: #0a1628;
    --darker-bg: #060d18;
    --card-bg: #12233d;
    --text-light: #ffffff;
    --text-muted: #a0aec0;
    --gradient-primary: linear-gradient(135deg, #0066cc 0%, #00d4aa 100%);
    --gradient-hero: linear-gradient(135deg, #0a1628 0%, #1a365d 50%, #0a1628 100%);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    font-weight: 600;
    color: var(--text-muted);
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--text-light);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: var(--gradient-hero);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* Hero floating particles overlay */
.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(2px 2px at 20px 30px, rgba(0, 212, 170, 0.5), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255, 215, 0, 0.4), transparent),
        radial-gradient(2px 2px at 50px 160px, rgba(0, 102, 204, 0.5), transparent),
        radial-gradient(2px 2px at 90px 40px, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(2px 2px at 130px 80px, rgba(0, 212, 170, 0.4), transparent),
        radial-gradient(3px 3px at 160px 120px, rgba(255, 215, 0, 0.3), transparent);
    background-repeat: repeat;
    background-size: 200px 200px;
    animation: particleDrift 20s linear infinite;
    pointer-events: none;
    opacity: 0.6;
    z-index: 2;
}

@keyframes particleDrift {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(-200px, -200px);
    }
}

.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 20px 80px;
    position: relative;
    z-index: 3;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 15px;
    font-weight: 600;
    animation: fadeInDown 1s ease forwards;
    animation-delay: 0.3s;
    opacity: 0;
}

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

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

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

.hero-title {
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #a0aec0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: scaleIn 1s ease forwards;
    animation-delay: 0.5s;
    opacity: 0;
}

/* Full Page Hero Background */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    animation: heroZoom 20s ease-in-out infinite alternate;
    filter: brightness(0.6);
}

@keyframes heroZoom {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.1);
    }
}

/* Hero overlay gradient */
.hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(10, 22, 40, 0.3) 0%,
        rgba(10, 22, 40, 0.5) 50%,
        rgba(10, 22, 40, 0.9) 100%
    );
    pointer-events: none;
}

/* Animated gradient overlay */
.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 102, 204, 0.2) 0%,
        transparent 50%,
        rgba(0, 212, 170, 0.2) 100%
    );
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
    pointer-events: none;
    z-index: 1;
}

.hero-tagline {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    letter-spacing: 2px;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.7s;
    opacity: 0;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--gradient-primary);
    color: var(--text-light);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInUp 1s ease forwards, pulse 2s ease-in-out infinite;
    animation-delay: 1.1s, 2s;
    opacity: 0;
    position: relative;
    overflow: hidden;
}

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

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(0, 212, 170, 0.3);
}

/* Hero Badges - additional styles merged with animation above */
.hero-badges {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    justify-content: center;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.9s;
}

.badge {
    padding: 10px 20px;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: pulse 2s infinite;
}

.badge.gold {
    background: linear-gradient(135deg, #ffd700 0%, #ffaa00 50%, #ffd700 100%);
    color: #1a1a1a;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.4);
}

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

/* ========== ANIMATIONS & EFFECTS ========== */

/* Scroll-triggered animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Flying in from sides */
.fly-in-left {
    opacity: 0;
    transform: translateX(-100px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.fly-in-right {
    opacity: 0;
    transform: translateX(100px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Zoom in effect */
.zoom-in {
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

/* Rotate in effect */
.rotate-in {
    opacity: 0;
    transform: rotate(-10deg) scale(0.9);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

/* Staggered children animation */
.stagger-children > * {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0.1s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.2s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.3s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.4s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.5s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.6s; }

.stagger-children.visible > * {
    opacity: 1;
    transform: translateY(0);
}

/* Floating animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

.floating {
    animation: float 3s ease-in-out infinite;
}

.floating-slow {
    animation: float 4s ease-in-out infinite;
}

.floating-fast {
    animation: float 2s ease-in-out infinite;
}

/* Glow animation */
@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 212, 170, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(0, 212, 170, 0.6), 0 0 60px rgba(0, 102, 204, 0.4);
    }
}

.glowing {
    animation: glow 2s ease-in-out infinite;
}

/* Shimmer effect */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.shimmer {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

/* Bounce animation */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

.bounce {
    animation: bounce 2s ease infinite;
}

/* Shake animation for attention */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.shake-hover:hover {
    animation: shake 0.5s ease;
}

/* Gradient shift animation */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.animated-gradient {
    background-size: 200% 200%;
    animation: gradientShift 5s ease infinite;
}

/* Text reveal animation */
@keyframes textReveal {
    0% {
        clip-path: inset(0 100% 0 0);
    }
    100% {
        clip-path: inset(0 0 0 0);
    }
}

.text-reveal {
    animation: textReveal 1s ease forwards;
}

/* Spin animation */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.spin-slow {
    animation: spin 8s linear infinite;
}

/* Parallax floating particles */
@keyframes particleFloat {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translate(100px, -200px) rotate(360deg);
        opacity: 0;
    }
}

/* Card 3D tilt effect */
.tilt-card {
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.tilt-card:hover {
    transform: perspective(1000px) rotateX(5deg) rotateY(5deg) translateZ(20px);
}

/* Ripple effect */
@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

.ripple-effect {
    position: relative;
    overflow: hidden;
}

.ripple-effect::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
}

.ripple-effect:active::after {
    animation: ripple 0.6s ease-out;
}

/* Typewriter effect support */
@keyframes blink {
    0%, 50% { border-color: transparent; }
    51%, 100% { border-color: var(--accent-color); }
}

.typewriter {
    border-right: 3px solid var(--accent-color);
    animation: blink 0.7s step-end infinite;
}

/* Sections */
.section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.section-title.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    margin: 20px auto 0;
    border-radius: 2px;
    transform: scaleX(0);
    transition: transform 0.6s ease 0.3s;
}

.section-title.visible::after {
    transform: scaleX(1);
}

/* About Section */
.about-section {
    background: var(--darker-bg);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-text .intro {
    font-size: 1.25rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    font-weight: 600;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.about-text blockquote {
    background: var(--card-bg);
    padding: 25px 30px;
    border-left: 4px solid var(--accent-color);
    border-radius: 0 10px 10px 0;
    font-style: italic;
    color: var(--text-light);
    margin-top: 30px;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 0.5s ease, box-shadow 0.3s ease, opacity 0.6s ease;
    opacity: 0;
    transform: translateY(30px) scale(0.95);
}

.stat-card.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Staggered animation for stat cards */
.stat-card:nth-child(1) { transition-delay: 0.1s; }
.stat-card:nth-child(2) { transition-delay: 0.2s; }
.stat-card:nth-child(3) { transition-delay: 0.3s; }
.stat-card:nth-child(4) { transition-delay: 0.4s; }

.stat-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

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

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-value {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-light);
}

/* Achievements Section */
.achievements-section {
    background: var(--dark-bg);
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
}

.timeline-item {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    position: relative;
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.timeline-item.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Staggered animation for timeline */
.timeline-item:nth-child(1) { transition-delay: 0.1s; }
.timeline-item:nth-child(2) { transition-delay: 0.2s; }
.timeline-item:nth-child(3) { transition-delay: 0.3s; }
.timeline-item:nth-child(4) { transition-delay: 0.4s; }
.timeline-item:nth-child(5) { transition-delay: 0.5s; }
.timeline-item:nth-child(6) { transition-delay: 0.6s; }
.timeline-item:nth-child(7) { transition-delay: 0.7s; }
.timeline-item:nth-child(8) { transition-delay: 0.8s; }
.timeline-item:nth-child(9) { transition-delay: 0.9s; }

.timeline-item::before {
    content: '';
    position: absolute;
    left: 70px;
    top: 60px;
    bottom: -30px;
    width: 2px;
    background: var(--card-bg);
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-year {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

.timeline-content {
    background: var(--card-bg);
    padding: 25px 30px;
    border-radius: 15px;
    flex: 1;
    transition: transform 0.3s ease;
}

.timeline-content:hover {
    transform: translateX(10px);
}

.timeline-content h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--text-light);
}

.timeline-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Featured Timeline Items */
.timeline-item.featured .timeline-year {
    background: linear-gradient(135deg, #ffd700 0%, #ffaa00 100%);
    color: #1a1a1a;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.4);
}

.timeline-content.gold-border {
    border: 2px solid #ffd700;
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(255, 215, 0, 0.1) 100%);
}

.timeline-content.gold-border h3 {
    color: #ffd700;
}

/* Gallery Section */
.gallery-section {
    background: var(--darker-bg);
    text-align: center;
}

.gallery-note {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.instagram-embed {
    display: flex;
    justify-content: center;
}

.instagram-link {
    display: block;
}

.instagram-card {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    padding: 40px 60px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.instagram-card:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 60px rgba(220, 39, 67, 0.3);
}

.instagram-icon {
    width: 60px;
    height: 60px;
    color: white;
}

.instagram-card span {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: white;
}

.instagram-card p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

/* Photo Gallery */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.photo-gallery.expanded {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 300px;
}

/* More Photos Section */
.more-photos {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: var(--card-bg);
    border-radius: 15px;
}

.more-photos p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.photo-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.photo-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--dark-bg);
    color: var(--text-light);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid var(--card-bg);
}

.photo-link-btn:hover {
    background: var(--gradient-primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 212, 170, 0.3);
}

.photo-link-btn.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    box-shadow: 0 5px 20px rgba(220, 39, 67, 0.3);
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 1;
    background: var(--card-bg);
    opacity: 0;
    transform: translateY(60px) rotate(3deg);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-item.visible {
    opacity: 1;
    transform: translateY(0) rotate(0);
}

/* Flying in from different directions */
.gallery-item:nth-child(1) { transform: translateX(-100px) rotate(-5deg); }
.gallery-item:nth-child(2) { transform: translateY(-80px) rotate(3deg); }
.gallery-item:nth-child(3) { transform: translateX(100px) rotate(5deg); }
.gallery-item:nth-child(4) { transform: translateX(-80px) translateY(50px) rotate(-3deg); }
.gallery-item:nth-child(5) { transform: translateY(100px) rotate(-5deg); }
.gallery-item:nth-child(6) { transform: translateX(80px) translateY(50px) rotate(3deg); }

.gallery-item.visible:nth-child(1),
.gallery-item.visible:nth-child(2),
.gallery-item.visible:nth-child(3),
.gallery-item.visible:nth-child(4),
.gallery-item.visible:nth-child(5),
.gallery-item.visible:nth-child(6) {
    transform: translateX(0) translateY(0) rotate(0);
}

/* Staggered delay for flying effect */
.gallery-item:nth-child(1) { transition-delay: 0.1s; }
.gallery-item:nth-child(2) { transition-delay: 0.2s; }
.gallery-item:nth-child(3) { transition-delay: 0.3s; }
.gallery-item:nth-child(4) { transition-delay: 0.4s; }
.gallery-item:nth-child(5) { transition-delay: 0.5s; }
.gallery-item:nth-child(6) { transition-delay: 0.6s; }

.gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
    aspect-ratio: auto;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
    filter: brightness(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay span {
    color: white;
    font-weight: 600;
}

.placeholder-photo {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform 0.3s ease;
}

.placeholder-photo:hover {
    transform: scale(1.05);
}

.placeholder-photo.swim {
    background: linear-gradient(135deg, #0066cc 0%, #00a8e8 100%);
}

.placeholder-photo.bike {
    background: linear-gradient(135deg, #00aa55 0%, #00d474 100%);
}

.placeholder-photo.run {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
}

.placeholder-photo.podium {
    background: linear-gradient(135deg, #ffd700 0%, #ffaa00 100%);
}

.photo-icon {
    font-size: 3rem;
}

.placeholder-photo span:last-child {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Instagram Section */
.instagram-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--card-bg);
}

.subsection-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--text-light);
}

.instagram-note {
    color: var(--text-muted);
    margin-bottom: 30px;
}

/* Instagram Embed Container */
.instagram-embed-container {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.instagram-embed-container .instagram-media {
    margin: 0 auto !important;
}

.instagram-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 600px;
    margin: 0 auto 30px;
}

.instagram-post-card {
    aspect-ratio: 1;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.instagram-post-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.post-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
}

.post-placeholder svg {
    width: 40px;
    height: 40px;
    color: white;
}

.post-placeholder span {
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
}

.instagram-follow-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 15px 35px;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 50px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.instagram-follow-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(220, 39, 67, 0.4);
}

.instagram-follow-btn svg {
    width: 24px;
    height: 24px;
}

/* Follow Section */
.follow-section {
    background: var(--dark-bg);
    text-align: center;
}

.follow-intro {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: 50px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.social-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 40px 50px;
    border-radius: 20px;
    transition: transform 0.5s ease, box-shadow 0.3s ease, opacity 0.6s ease;
    min-width: 200px;
    opacity: 0;
    transform: translateY(50px) scale(0.9);
}

.social-card.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.social-card:nth-child(1) { transition-delay: 0.1s; }
.social-card:nth-child(2) { transition-delay: 0.3s; }

.social-card:hover {
    transform: translateY(-10px) scale(1.05);
}

.social-card svg {
    width: 50px;
    height: 50px;
}

.social-card.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-card.instagram:hover {
    box-shadow: 0 20px 60px rgba(220, 39, 67, 0.3);
}

.social-card.triathlon {
    background: linear-gradient(135deg, #0066cc 0%, #004499 100%);
}

.social-card.triathlon:hover {
    box-shadow: 0 20px 60px rgba(0, 102, 204, 0.3);
}

.social-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
}

.social-handle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

/* Fan Comments Section */
.fans-section {
    background: var(--dark-bg);
}

.fans-intro {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-top: -40px;
    margin-bottom: 50px;
}

.fan-comments {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    max-width: 1000px;
    margin: 0 auto;
}

.fan-comment {
    display: flex;
    gap: 15px;
    background: var(--card-bg);
    padding: 25px;
    border-radius: 15px;
    transition: transform 0.5s ease, box-shadow 0.3s ease, opacity 0.6s ease;
    opacity: 0;
    transform: translateY(40px) scale(0.95);
}

.fan-comment.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Alternating fly-in effect for fan comments */
.fan-comment:nth-child(odd) {
    transform: translateX(-60px) rotate(-2deg);
}

.fan-comment:nth-child(even) {
    transform: translateX(60px) rotate(2deg);
}

.fan-comment.visible:nth-child(odd),
.fan-comment.visible:nth-child(even) {
    transform: translateX(0) rotate(0);
}

/* Staggered animation for fan comments */
.fan-comment:nth-child(1) { transition-delay: 0.1s; }
.fan-comment:nth-child(2) { transition-delay: 0.2s; }
.fan-comment:nth-child(3) { transition-delay: 0.3s; }
.fan-comment:nth-child(4) { transition-delay: 0.4s; }
.fan-comment:nth-child(5) { transition-delay: 0.5s; }
.fan-comment:nth-child(6) { transition-delay: 0.6s; }

.fan-comment:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.fan-avatar {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: white;
}

.fan-content {
    flex: 1;
}

.fan-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.fan-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--text-light);
}

.fan-location {
    color: var(--accent-color);
    font-size: 0.85rem;
}

.fan-message {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 12px;
}

.fan-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.fan-date {
    opacity: 0.7;
}

.fan-hearts {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #ff6b6b;
}

.fan-hearts::before {
    content: '❤️';
}

/* Footer */
.footer {
    background: var(--darker-bg);
    padding: 50px 20px;
    text-align: center;
    border-top: 1px solid var(--card-bg);
}

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

.footer a {
    color: var(--accent-color);
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--text-light);
}

.footer .copyright {
    margin-top: 20px;
    font-size: 0.85rem;
}

/* Responsive Design */
@media (max-width: 968px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-stats {
        grid-template-columns: repeat(4, 1fr);
    }

    .timeline-item {
        flex-direction: column;
        gap: 15px;
    }

    .timeline-item::before {
        display: none;
    }

    .timeline-year {
        width: 60px;
        height: 60px;
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 20px;
        padding: 15px 20px;
    }

    .nav-links {
        gap: 20px;
    }

    .hero-background img {
        object-position: 70% top;
    }

    .hero-content {
        padding: 150px 20px 60px;
    }

    .hero-badges {
        flex-direction: column;
        align-items: center;
    }

    .badge {
        font-size: 0.75rem;
        padding: 8px 16px;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }

    .about-stats {
        grid-template-columns: 1fr 1fr;
    }

    .fan-comments {
        grid-template-columns: 1fr;
    }

    .fan-comment {
        padding: 20px;
    }

    .photo-gallery {
        grid-template-columns: 1fr 1fr;
    }

    .photo-gallery.expanded {
        grid-auto-rows: 200px;
    }

    .gallery-item.large {
        grid-column: span 2;
        grid-row: span 1;
        height: 300px;
    }

    .photo-links {
        flex-direction: column;
        align-items: center;
    }

    .photo-link-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .instagram-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .social-links {
        flex-direction: column;
        align-items: center;
    }

    .social-card {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .hero-tagline {
        font-size: 1rem;
    }

    .cta-button {
        padding: 12px 30px;
        font-size: 0.9rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .stat-card {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }

    .instagram-card {
        padding: 30px 40px;
    }
}
