/* Platform Evolution Page Specific Styles */
.platform-evolution-page {
    background: var(--dark-bg);
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
}

.platform-evolution-page .main-content {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

/* Back Button - Now styled as a stat card */
.back-button.stat-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: var(--glass-shadow);
    text-align: center;
    min-height: 100px;
}

.back-button.stat-card:hover {
    background: rgba(0, 204, 255, 0.1);
    border-color: rgba(0, 204, 255, 0.3);
    color: #00CCFF;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 204, 255, 0.2);
}

.back-button.stat-card i {
    font-size: 1.2rem;
    color: #00CCFF;
}

.back-button.stat-card:hover i {
    color: #00CCFF;
}

/* Header Section */
.header-section {
    padding: 3rem 0 5rem 0;
    text-align: center;
    margin-bottom: 2rem;
}

.main-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #00CCFF, var(--primary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.main-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Timeline Hero Section - Prominent Landscape Card */
.timeline-hero-section {
    padding: 2rem 0 4rem 0;
    position: relative;
}

.timeline-hero-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    padding: 3rem;
    box-shadow: var(--glass-shadow);
    transition: all 0.3s ease;
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.timeline-hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00CCFF, #f57c00);
    border-radius: 25px 25px 0 0;
}

.timeline-hero-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 204, 255, 0.2);
    border-color: rgba(0, 204, 255, 0.3);
}

.timeline-hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #00CCFF, var(--primary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.timeline-hero-description {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Timeline Toggle Styles - Updated for Hero Card */
.timeline-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.2rem 2.5rem;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(0, 204, 255, 0.1), rgba(245, 124, 0, 0.1));
    border: 1px solid rgba(0, 204, 255, 0.2);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 1.1rem;
    color: #00CCFF;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    max-width: 350px;
}

.timeline-toggle:hover {
    background: linear-gradient(135deg, rgba(0, 204, 255, 0.2), rgba(245, 124, 0, 0.2));
    border-color: rgba(0, 204, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 204, 255, 0.2);
}

.timeline-toggle.active {
    background: linear-gradient(135deg, rgba(0, 204, 255, 0.3), rgba(245, 124, 0, 0.3));
    border-color: rgba(0, 204, 255, 0.6);
}

.timeline-toggle .toggle-icon {
    transition: transform 0.3s ease;
    font-size: 1rem;
}

.timeline-toggle.active .toggle-icon {
    transform: rotate(180deg);
}

.timeline-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    overflow: hidden;
    transition: all 0.4s ease;
    opacity: 0;
    max-height: 0;
    margin-top: 0;
    display: none;
}

.timeline-container.show {
    opacity: 1;
    max-height: 2500px;
    margin-top: 2rem;
    display: block;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #00CCFF, var(--primary-blue));
    transform: translateX(-50%);
    z-index: 1;
}

/* Timeline Events - More Landscape */
.timeline-event {
    position: relative;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
}

.timeline-event.left {
    justify-content: flex-start;
    padding-right: 55%;
}

.timeline-event.right {
    justify-content: flex-end;
    padding-left: 55%;
}

.timeline-event:nth-child(2) { animation-delay: 0.2s; }
.timeline-event:nth-child(4) { animation-delay: 0.4s; }
.timeline-event:nth-child(6) { animation-delay: 0.6s; }
.timeline-event:nth-child(8) { animation-delay: 0.8s; }

.event-year {
    position: absolute;
    left: 70%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: #00CCFF;
    color: var(--black);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1.2rem;
    z-index: 3;
    box-shadow: 0 4px 12px rgba(0, 204, 255, 0.3);
}

.event-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    padding: 2.5rem;
    box-shadow: var(--glass-shadow);
    transition: all 0.3s ease;
    max-width: 500px;
    min-height: 200px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.event-card::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 25px;
    height: 25px;
    background: #00CCFF;
    border-radius: 50%;
    transform: translateY(-50%);
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 204, 255, 0.4);
}

.timeline-event.left .event-card::before {
    right: -70px;
}

.timeline-event.right .event-card::before {
    left: -70px;
}

.event-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 204, 255, 0.3);
    border-color: rgba(0, 204, 255, 0.3);
}

.event-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #00CCFF;
    line-height: 1.2;
}

.event-quote {
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1rem;
    border-left: 4px solid #00CCFF;
    padding-left: 1.5rem;
    line-height: 1.5;
}

.event-description {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1rem;
    margin: 0;
}

/* Stats Section */
.stats-section {
    padding: 5rem 0;
    background: rgba(0, 204, 255, 0.05);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.stat-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--glass-shadow);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 204, 255, 0.2);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #00CCFF;
    margin-bottom: 0.5rem;
}

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

/* Container */
.platform-evolution-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    overflow-x: hidden;
    width: 100%;
    box-sizing: border-box;
}

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

/* Responsive Design - Tablet */
@media (min-width: 768px) and (max-width: 1023px) {
    .main-title {
        font-size: 2.5rem;
    }
    
    .main-description {
        font-size: 1.1rem;
    }
    
    .timeline-hero-title {
        font-size: 2.8rem;
    }
    
    .timeline-hero-description {
        font-size: 1.1rem;
    }
    
    .timeline-hero-card {
        padding: 2.5rem;
    }
    
    .timeline-toggle {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .timeline-container {
        padding: 0 1rem;
        max-width: 1200px;
    }
    
    .event-card {
        max-width: 450px;
        padding: 2rem;
        min-height: 180px;
    }
    
    .event-title {
        font-size: 1.6rem;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
}

/* Responsive Design - Mobile */
@media (max-width: 767px) {
    .header-section {
        padding: 2rem 0 3rem 0;
        margin-top: 1rem;
    }
    
    .main-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
        line-height: 1.3;
        padding: 0 1rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .main-description {
        font-size: 1rem;
        margin-bottom: 2rem;
        padding: 0 1rem;
        line-height: 1.5;
    }
    
    /* Ensure stats don't overlap with title */
    .stats-section {
        padding: 3rem 0;
        margin-top: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 0 1rem;
        margin-top: 1rem;
    }
    
    /* Better spacing for timeline events */
    .timeline-event {
        margin-bottom: 2.5rem;
    }
    
    .event-card {
        margin-right: 1rem;
        margin-left: 0;
    }
    
    /* Ensure proper content flow */
    .timeline-hero-section + .header-section {
        margin-top: 0;
    }
    
    .header-section + .stats-section {
        margin-top: 2rem;
    }
    
    .timeline-hero-title {
        font-size: 1.8rem;
        margin-bottom: 1rem;
        line-height: 1.3;
    }
    
    .timeline-hero-description {
        font-size: 0.95rem;
        margin-bottom: 2rem;
        padding: 0 0.5rem;
    }
    
    .timeline-hero-card {
        padding: 1.5rem;
        margin: 0 0.5rem;
        border-radius: 20px;
    }
    
    .timeline-toggle {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
        max-width: 280px;
        margin-top: 1rem;
    }
    
    .timeline-line {
        left: 30px;
    }
    
    .timeline-event {
        padding-left: 60px;
        padding-right: 0;
        justify-content: flex-start;
        margin-bottom: 2rem;
    }
    
    .timeline-event.left,
    .timeline-event.right {
        padding-left: 60px;
        padding-right: 0;
        justify-content: flex-start;
    }
    
    .event-year {
        left: 60px;
        transform: translate(-50%, -50%);
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }
    
    .event-card::before {
        left: -45px !important;
        right: auto !important;
        width: 20px;
        height: 20px;
    }
    
    .event-card {
        max-width: none;
        padding: 1.5rem;
        min-height: auto;
        margin-right: 1rem;
    }
    
    .event-title {
        font-size: 1.4rem;
        margin-bottom: 1rem;
        line-height: 1.3;
    }
    
    .event-quote {
        font-size: 0.9rem;
        margin-bottom: 1rem;
        padding-left: 1rem;
        border-left-width: 3px;
    }
    
    .event-description {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .stat-card {
        padding: 1.5rem;
        min-height: 120px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .stat-number {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
        line-height: 1.3;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .header-section {
        padding: 2rem 0 3rem 0;
    }
    
    .timeline-hero-section {
        padding: 1.5rem 0 3rem 0;
    }
    
    .timeline-container {
        padding: 0 1rem;
        margin-top: 1rem;
    }
    
    .stats-section {
        padding: 3rem 0;
    }
}

/* Extra Small Mobile */
@media (max-width: 480px) {
    .header-section {
        padding: 1.5rem 0 2.5rem 0;
    }
    
    .main-title {
        font-size: 1.6rem;
        margin-bottom: 1.2rem;
        padding: 0 0.5rem;
        line-height: 1.2;
    }
    
    .main-description {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
        padding: 0 0.5rem;
    }
    
    .stats-section {
        padding: 2.5rem 0;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 0.5rem;
    }
    
    .timeline-event {
        margin-bottom: 2rem;
    }
    
    .event-card {
        margin-right: 0.5rem;
    }
    
    .stat-card {
        padding: 1.2rem;
        min-height: 100px;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
    
    .timeline-toggle {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
        max-width: 250px;
    }
    
    .timeline-hero-section {
        padding: 1rem 0 2.5rem 0;
    }
    
    .timeline-container {
        padding: 0 0.5rem;
        margin-top: 1rem;
    }
    
    /* Ensure proper spacing between sections */
    .header-section + .stats-section {
        margin-top: 1.5rem;
    }
}
} 