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

body {
    font-family: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #0a0f14 0%, #111a22 100%);
    background-attachment: fixed;
    color: #e2e8f0;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Header */
.header {
    padding: 15px 20px;
    background: rgba(15, 20, 25, 0.95);
    backdrop-filter: blur(15px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 3px solid #22c55e;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.header-main {
    text-align: left;
}

.header h1 {
    font-size: 28px;
    color: #22c55e;
    margin-bottom: 4px;
    position: relative;
    display: inline-block;
}

/* SEO Enhancement Styles */
.expertise-tagline {
    font-size: 14px;
    color: #22c55e;
    margin-top: 4px;
    font-weight: 400;
    opacity: 0.9;
}

.intro-section {
    display: none; /* Hidden from visual layout but accessible to search engines */
}

.cta-text {
    color: #22c55e;
    font-size: 16px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 500;
}

.header h1::after {
    content: '🎮';
    position: absolute;
    right: -35px;
    top: -2px;
    animation: headerBounce 3s ease-in-out infinite;
}

.header .subtitle {
    font-size: 16px;
    color: #10b981;
    margin: 0;
    font-weight: 500;
}

.header-contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: right;
}

.contact-row {
    display: flex;
    gap: 20px;
    justify-content: flex-end;
}

.contact-item {
    font-size: 12px;
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.contact-item:hover {
    color: #22c55e;
}

/* Responsive header */
@media (max-width: 1200px) {
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .header-main {
        text-align: center;
    }
    
    .header-contact {
        text-align: center;
    }
    
    .contact-row {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Timeline Header */
.timeline-header {
    text-align: center;
    margin-bottom: 0px;
}

.timeline-title {
    font-size: 28px;
    color: #e2e8f0;
    margin-bottom: 0px;
    position: relative;
    display: inline-block;
}

.contact-title {
    color: #22c55e;
    text-shadow: 0 2px 10px rgba(34, 197, 94, 0.3);
}

.timeline-title::before, .timeline-title::after {
    content: '⭐';
    position: absolute;
    top: 0;
    animation: sectionStarFloat 4s ease-in-out infinite;
}

.timeline-title::before {
    left: -40px;
    animation-delay: 0s;
}

.timeline-title::after {
    right: -40px;
    animation-delay: 2s;
}

/* Legend */
.legend {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #cccccc;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid;
}

.legend-work { background: rgba(255, 107, 107, 0.2); border-color: #ff6b6b; }
.legend-project { background: rgba(78, 205, 196, 0.2); border-color: #4ecdc4; }
.legend-education { background: rgba(150, 206, 180, 0.2); border-color: #96ceb4; }
.legend-jam { background: rgba(255, 215, 0, 0.2); border-color: #ffd700; }

/* Filter System */
.filter-system {
    display: flex;
    justify-content: center;
    margin: 0;
}

.filter-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 12px 24px;
    border: 2px solid #22c55e;
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border-radius: 25px;
    font-family: 'Jost', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.filter-btn:hover {
    background: rgba(34, 197, 94, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(34, 197, 94, 0.3);
}

.filter-btn.active {
    background: #22c55e;
    color: #0f172a;
    box-shadow: 0 5px 15px rgba(34, 197, 94, 0.4);
}

.filter-btn.active::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.filter-btn.active:hover::before {
    width: 100%;
    height: 100%;
}

/* Timeline Grid */
.timeline-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, 350px);
    gap: 25px;
    row-gap: 60px; /* Extra space for year labels */
    margin-top: 40px;
    position: relative; /* For timeline line positioning */
    justify-content: center;
}

/* Card Wrapper - This goes in the grid */
.card-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

/* Year Display Element */
.year-display {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    background: #22c55e;
    border-radius: 12px;
    padding: 8px 16px;
    border: 2px solid #16a34a;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
    animation: yearBounce 2s ease-in-out infinite alternate;
    pointer-events: none;
    text-align: center;
    position: relative;
    z-index: 10; /* Above timeline lines */
}

/* Timeline Connection System */
.timeline-line {
    position: absolute;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(34, 197, 94, 0.2) 2%,
        rgba(34, 197, 94, 0.6) 8%,
        rgba(34, 197, 94, 0.8) 15%,
        rgba(34, 197, 94, 0.8) 85%,
        rgba(34, 197, 94, 0.6) 92%,
        rgba(34, 197, 94, 0.2) 98%,
        transparent 100%);
    z-index: 1;
    border-radius: 2px;
}

@media (max-width: 768px) {
    .timeline-line {
        display: none;
    }
}

.timeline-line.timeline-start {
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(34, 197, 94, 0.2) 2%,
        rgba(34, 197, 94, 0.6) 8%,
        rgba(34, 197, 94, 0.8) 15%,
        rgba(34, 197, 94, 0.8) 70%,
        rgba(34, 197, 94, 0.6) 85%,
        rgba(34, 197, 94, 0.3) 95%,
        transparent 100%);
}

@keyframes yearBounce {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.05);
    }
}

/* Timeline Cards */
.timeline-card {
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.3s ease;
    position: relative;
    cursor: pointer;
    border: 2px solid;
    will-change: transform;
    z-index: 1;
    width: 350px;
    height: 400px;
    display: flex;
    flex-direction: column;
}

/* Card filtering animations */
.timeline-card.filtered-out {
    display: none;
}

.timeline-card.filtered-in {
    display: block;
    animation: filterIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.timeline-card.collapsing {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: center center !important;
    backface-visibility: hidden;
    will-change: transform;
    display: flex !important;
    flex-direction: column !important;
}

.timeline-card.collapsing .card-content {
    background: transparent !important;
    backface-visibility: hidden;
    position: relative !important;
    padding: 20px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    z-index: 1 !important;
    flex: 1 !important;
}

.timeline-card.collapsing .card-title,
.timeline-card.collapsing .card-subtitle,
.timeline-card.collapsing .card-date,
.timeline-card.collapsing .card-description {
    transition: font-size 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.timeline-card.collapsing .card-tags {
    transition: opacity 0.3s ease;
    opacity: 0.7;
}

.timeline-card.collapsing .card-header {
    opacity: 1 !important;
    backface-visibility: hidden;
    position: relative !important;
    margin: 0 !important;
    z-index: 2 !important;
}

.timeline-card.collapsing * {
    box-sizing: border-box !important;
}

.timeline-card.collapsing .expanded-content {
    flex: 1 !important;
    overflow: hidden !important;
}

.timeline-card.morphing-to-position {
    transition: none !important;
    animation: morphToPosition 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    transform-origin: center center !important;
}

@keyframes morphToPosition {
    from {
        top: 20px;
        left: 20px; 
        right: 20px;
        bottom: 20px;
        width: auto;
        height: auto;
    }
}

.timeline-card.expanded {
    top: 20px !important;
    left: 20px !important;
    right: 20px !important;
    bottom: 20px !important;
    width: auto !important;
    height: auto !important;
    z-index: 1000;
    cursor: default;
    max-width: none;
}

.timeline-card.expanding {
    z-index: 999;
}

/* Card Type Styles - Unified appearance (keeping classes for future customization) */
.card-project,
.card-education,
.card-jam {
    background: rgba(51, 65, 85, 0.3);
    border-color: #475569;
}

/* Career cards with animated rainbow border and persistent glow */
.card-work {
    background: rgba(51, 65, 85, 0.3);
    border: 2px solid #ff0000;
    animation: rainbowBorder 8s linear infinite, rainbowGlow 8s linear infinite;
    animation-delay: var(--animation-delay, 0s), var(--animation-delay, 0s);
    position: relative;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: brightness(1) drop-shadow(0 5px 10px transparent);
}

.card-work:hover:not(.expanded) {
    transform: scale(1.01);
    filter: brightness(1.05) drop-shadow(0 8px 16px rgba(0, 0, 0, 0.2));
}

/* Animation delays will be set dynamically from data objects */

@keyframes rainbowBorder {
    0% { border-color: #ff0000; }    /* Red */
    8.33% { border-color: #ff8000; } /* Orange */
    16.66% { border-color: #ffff00; }/* Yellow */
    25% { border-color: #80ff00; }   /* Yellow-Green */
    33.33% { border-color: #00ff00; }/* Green */
    41.66% { border-color: #00ff80; }/* Green-Cyan */
    50% { border-color: #00ffff; }   /* Cyan */
    58.33% { border-color: #0080ff; }/* Light Blue */
    66.66% { border-color: #0000ff; }/* Blue */
    75% { border-color: #8000ff; }   /* Blue-Purple */
    83.33% { border-color: #ff00ff; }/* Magenta */
    91.66% { border-color: #ff0080; }/* Pink */
    100% { border-color: #ff0000; }  /* Back to Red */
}

@keyframes rainbowGlow {
    0% { box-shadow: 0 10px 20px rgba(255, 0, 0, 0.2); }    /* Red */
    8.33% { box-shadow: 0 10px 20px rgba(255, 128, 0, 0.2); } /* Orange */
    16.66% { box-shadow: 0 10px 20px rgba(255, 255, 0, 0.2); }/* Yellow */
    25% { box-shadow: 0 10px 20px rgba(128, 255, 0, 0.2); }   /* Yellow-Green */
    33.33% { box-shadow: 0 10px 20px rgba(0, 255, 0, 0.2); }/* Green */
    41.66% { box-shadow: 0 10px 20px rgba(0, 255, 128, 0.2); }/* Green-Cyan */
    50% { box-shadow: 0 10px 20px rgba(0, 255, 255, 0.2); }   /* Cyan */
    58.33% { box-shadow: 0 10px 20px rgba(0, 128, 255, 0.2); }/* Light Blue */
    66.66% { box-shadow: 0 10px 20px rgba(0, 0, 255, 0.2); }/* Blue */
    75% { box-shadow: 0 10px 20px rgba(128, 0, 255, 0.2); }   /* Blue-Purple */
    83.33% { box-shadow: 0 10px 20px rgba(255, 0, 255, 0.2); }/* Magenta */
    91.66% { box-shadow: 0 10px 20px rgba(255, 0, 128, 0.2); }/* Pink */
    100% { box-shadow: 0 10px 20px rgba(255, 0, 0, 0.2); }  /* Back to Red */
}



.timeline-card:hover:not(.expanded) {
    transform: scale(1.01);
}

/* Work cards get dynamic rainbow glow that matches their border color */
.card-work:hover:not(.expanded) {
    box-shadow: 0 15px 30px var(--current-border-color, rgba(255, 0, 0, 0.3));
}

.card-project:hover:not(.expanded),
.card-education:hover:not(.expanded),
.card-jam:hover:not(.expanded) {
    box-shadow: 0 15px 30px var(--card-hover-color, rgba(34, 197, 94, 0.15));
}

/* Card Header */
.card-header {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.timeline-card.expanded .card-header {
    height: 120px !important; /* Same as normal card header - force override */
}

/* Remove custom sizing for expanded characters/logos - let them use normal grid card sizing */

/* Unified card header styles (keeping classes for future customization) */
.card-work .card-header,
.card-project .card-header,
.card-education .card-header,
.card-jam .card-header {
    background: linear-gradient(135deg, #475569 0%, #64748b 100%);
}

.card-character {
    font-size: 50px;
    position: relative;
    z-index: 2;
    will-change: transform;
    animation: characterPulse 10s ease-in-out infinite;
    animation-delay: var(--animation-delay, 0s);
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: 100px;
    padding: 0 20px;
}

.card-logo {
    width: auto;
    height: 100%;
    max-width: 200px;
    object-fit: contain;
}

.timeline-card:hover .card-character {
    animation: characterHoverScale 0.6s ease-out forwards;
}

/* Title Wrapper */
.card-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

/* Award Badge */
.award-badge {
    background: rgba(255, 215, 0, 0.9);
    color: #000;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    animation: badgePulse 2s ease-in-out infinite;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.5);
    flex-shrink: 0;
}

/* Floating Elements */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.floating-icon {
    position: absolute;
    font-size: 14px;
    opacity: 0.4;
    animation: iconFloat 20s ease-in-out infinite;
}

.floating-icon:nth-child(1) { top: 15%; left: 15%; animation-delay: 0s; }
.floating-icon:nth-child(2) { top: 25%; right: 15%; animation-delay: 2s; }
.floating-icon:nth-child(3) { bottom: 20%; left: 20%; animation-delay: 4s; }

/* Optimized hover states */
.card-hovered .floating-icon {
    animation-duration: 3s;
    filter: brightness(1.5);
    opacity: 0.8;
}

.card-hovered .award-badge {
    transform: scale(1.1);
}

/* Card Content */
.card-content {
    padding: 20px;
    background: rgba(0, 0, 0, 0.75);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.timeline-card.expanded .card-content {
    padding: 40px;
    max-height: none;
    overflow-y: auto;
    flex: 1;
}

.timeline-card.expanded {
    display: flex;
    flex-direction: column;
}

/* Expanded Card Elements */
.expanded-content {
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s;
}

.timeline-card.expanded .expanded-content {
    opacity: 1;
    visibility: visible;
}

.card-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: #ffffff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: #333333;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1001;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.timeline-card.expanded .card-close-btn {
    display: flex;
}

.timeline-card.expanded .card-tags {
    display: none;
}

.timeline-card.expanded .card-description {
    display: none;
}

.timeline-card.expanded .card-subtitle {
    font-size: 20px;
    margin-bottom: 8px;
}

.timeline-card.expanded .card-date {
    font-size: 16px;
    margin-bottom: 20px;
}

.card-close-btn:hover {
    background: #f0f0f0;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.expanded-section {
    margin-bottom: 25px;
}

.expanded-section h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.card-work .expanded-section h3 { color: var(--card-primary-color, #ff6b6b); }
.card-project .expanded-section h3,
.card-education .expanded-section h3,
.card-jam .expanded-section h3 { color: var(--card-primary-color, #4ecdc4); }

.expanded-section p, .expanded-section li {
    font-size: 1rem;
    line-height: 1.6;
    color: #e0e0e0;
    margin-bottom: 10px;
}

.expanded-section ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.expanded-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.expanded-tag {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 2px solid;
    transition: all 0.3s ease;
}

.card-work .expanded-tag { background: var(--card-bg-color, rgba(255, 107, 107, 0.2)); color: var(--card-primary-color, #ff6b6b); border-color: var(--card-primary-color, #ff6b6b); }
.card-project .expanded-tag,
.card-education .expanded-tag,
.card-jam .expanded-tag { 
    background: var(--card-bg-color, rgba(78, 205, 196, 0.2)); 
    color: var(--card-primary-color, #4ecdc4); 
    border-color: var(--card-primary-color, #4ecdc4); 
}

.game-link-container,
.project-links-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.game-link,
.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--card-primary-color, #00a1e1);
    color: #ffffff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.game-link:hover,
.project-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    filter: brightness(1.1);
}

.youtube-embed-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 15px auto;
    padding-bottom: 28.125%; /* 16:9 aspect ratio at 50% size */
    height: 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.youtube-embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

.game-image-container {
    display: flex;
    justify-content: center;
    margin: 15px 0;
}

.game-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.game-image:hover {
    transform: scale(1.02);
}

.controller-video-container {
    margin: 20px 0;
    text-align: center;
}

.controller-video {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    background: #000;
}

.video-caption {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #888;
    font-style: italic;
}

.expanded-awards {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
}

.expanded-award {
    background: rgba(255, 215, 0, 0.2);
    border: 2px solid #ffd700;
    border-radius: 15px;
    padding: 15px 20px;
    text-align: center;
    flex: 1;
    min-width: 200px;
}

.expanded-award .award-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}

.expanded-award .award-title {
    font-weight: 600;
    color: #ffd700;
    margin-bottom: 5px;
}

.expanded-award .award-org {
    color: #cccccc;
    font-size: 0.9rem;
}

/* Backdrop for expanded cards */
.card-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s ease;
}

.card-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.card-title {
    font-size: 18px;
    color: #ffffff;
    margin-bottom: 5px;
    font-weight: 600;
}

.card-subtitle {
    font-size: 16px;
    margin-bottom: 5px;
    font-weight: 500;
}

.card-work .card-subtitle { color: var(--card-primary-color, #ff6b6b); }
.card-project .card-subtitle,
.card-education .card-subtitle,
.card-jam .card-subtitle { color: var(--card-primary-color, #4ecdc4); }

.card-date {
    font-size: 14px;
    color: #cccccc;
    margin-bottom: 12px;
    opacity: 1;
}

.card-description {
    font-size: 14px;
    color: #cccccc;
    line-height: 1.5;
    margin-bottom: 15px;
    opacity: 1;
}

/* Tags */
.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 5px;
}

.card-tag {
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 12px;
    border: 1px solid;
    transition: all 0.3s ease;
}

.card-work .card-tag {
    background: var(--card-bg-color, rgba(255, 107, 107, 0.2));
    color: var(--card-primary-color, #ff6b6b);
    border-color: var(--card-primary-color, #ff6b6b);
}

.card-project .card-tag,
.card-education .card-tag,
.card-jam .card-tag {
    background: var(--card-bg-color, rgba(78, 205, 196, 0.2));
    color: var(--card-primary-color, #4ecdc4);
    border-color: var(--card-primary-color, #4ecdc4);
}

.timeline-card:hover:not(.expanded) .card-tag {
    transform: translateY(-2px);
    color: #ffffff;
    border-color: #ffffff;
}

/* Contact Section */
.contact-section {
    text-align: center;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 20px;
    padding: 40px;
    margin-top: 60px;
}

.footer-credit {
    font-size: 12px;
    color: #888888;
    margin-top: 20px;
    opacity: 0.8;
    font-style: italic;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #4ecdc4;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.contact-link:hover {
    color: #ff6b6b;
    transform: scale(1.1);
}

/* Background Elements */
.background-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.bg-element {
    position: absolute;
    font-size: 25px;
    opacity: 0.08;
    animation: bgFloat 20s ease-in-out infinite;
}

/* Animations */
@keyframes headerBounce {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(15deg); }
}

@keyframes sectionStarFloat {
    0%, 100% { transform: translateY(0px); opacity: 0.7; }
    50% { transform: translateY(-10px); opacity: 1; }
}

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

@keyframes characterHoverScale {
    to {
        transform: scale(1.15);
    }
}

@keyframes characterExcitement {
    0%, 100% { transform: scale(1.1) rotate(0deg); }
    25% { transform: scale(1.2) rotate(-5deg); }
    75% { transform: scale(1.05) rotate(5deg); }
}

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

@keyframes iconFloat {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
        opacity: 0.4;
    }
    50% { 
        transform: translateY(-8px) rotate(45deg); 
        opacity: 0.6;
    }
}

@keyframes bgFloat {
    0%, 100% { transform: translateY(0px) translateX(0px) rotate(0deg); }
    25% { transform: translateY(-30px) translateX(20px) rotate(90deg); }
    50% { transform: translateY(0px) translateX(-15px) rotate(180deg); }
    75% { transform: translateY(25px) translateX(10px) rotate(270deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .timeline-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        justify-items: center;
    }
    
    .timeline-card {
        width: 100%;
        max-width: 350px;
        height: 400px;
    }
    
    .header h1 {
        font-size: 28px;
    }
    
    .card-header {
        height: 100px;
    }
    
    .timeline-card.expanded .card-header {
        height: 100px !important; /* Same as mobile normal card header - force override */
    }
    
    /* Remove custom sizing for mobile expanded characters/logos - let them use normal mobile card sizing */
    
    .timeline-card.expanded .card-subtitle {
        font-size: 18px;
    }
    
    .timeline-card.expanded .card-date {
        font-size: 15px;
    }
    
    .card-character {
        font-size: 40px;
        height: 85px;
        padding: 0 15px;
    }
    
    .legend {
        gap: 15px;
    }
    
    .filter-buttons {
        gap: 8px;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 12px;
    }
    
    .contact-links {
        flex-direction: column;
        align-items: center;
    }
    
    .timeline-card.expanded {
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        border-radius: 0;
    }
    
    .timeline-card.expanded .card-content {
        padding: 20px;
    }
    
    .expanded-awards {
        flex-direction: column;
    }
    
    .expanded-award {
        min-width: auto;
    }
}

/* Smooth scrollbar - Default (main grid view) */
::-webkit-scrollbar {
    width: 10px;
    background: transparent;
}

::-webkit-scrollbar-track {
    background: linear-gradient(135deg, #0a0f14 0%, #111a22 100%);
    border: none;
}

::-webkit-scrollbar-track-piece {
    background: linear-gradient(135deg, #0a0f14 0%, #111a22 100%);
}

::-webkit-scrollbar-corner {
    background: linear-gradient(135deg, #0a0f14 0%, #111a22 100%);
}

::-webkit-scrollbar-thumb {
    background: #22c55e;
    border-radius: 5px;
    border: none;
}

::-webkit-scrollbar-thumb:hover {
    background: #16a34a;
}

/* Card-specific scrollbar colors for expanded cards */
.timeline-card.expanded ::-webkit-scrollbar-thumb {
    background: var(--card-primary-color, #22c55e);
    border-radius: 5px;
}

.timeline-card.expanded ::-webkit-scrollbar-thumb:hover {
    background: var(--card-primary-color-hover, #16a34a);
}

/* Removed old modal styles - now using in-place card expansion */

/* Reduced motion for accessibility */
@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;
    }
}