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

:root {
    --primary-color: #3b82f6;
    --primary-dark: #2563eb;
    --secondary-color: #8b5cf6;
    --accent-color: #10b981;
    --text-primary: #1f2937;
    --text-secondary: #4b5563;
    --text-muted: #9ca3af;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-dark: #0f172a;
    --border-color: #e5e7eb;
    --math-blue: #2563eb;
    --math-purple: #7c3aed;
    --ai-green: #059669;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    position: relative;
    background-image: 
        linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    background-attachment: fixed;
}

/* Header and Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
main {
    background: 
        radial-gradient(circle at 25% 25%, rgba(59, 130, 246, 0.04) 0%, transparent 45%),
        radial-gradient(circle at 75% 75%, rgba(124, 58, 237, 0.03) 0%, transparent 45%),
        radial-gradient(circle at 50% 10%, rgba(5, 150, 105, 0.02) 0%, transparent 40%),
        radial-gradient(circle at 80% 40%, rgba(59, 130, 246, 0.02) 0%, transparent 35%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.95) 50%, rgba(241, 245, 249, 0.92) 100%);
}

.hero {
    padding: 4rem 2rem 3rem;
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 49px,
            rgba(59, 130, 246, 0.03) 49px,
            rgba(59, 130, 246, 0.03) 51px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 49px,
            rgba(59, 130, 246, 0.03) 49px,
            rgba(59, 130, 246, 0.03) 51px
        );
    pointer-events: none;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(-20px, -10px) rotate(0.5deg); }
    50% { transform: translate(10px, -20px) rotate(-0.5deg); }
    75% { transform: translate(-10px, 10px) rotate(0.25deg); }
}

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

/* Home section specific layout - two columns */
#home .hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    text-align: left;
}

/* History content specific layout */
.history-content {
    display: block;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.history-text {
    margin-bottom: 0;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--math-blue) 0%, var(--math-purple) 50%, var(--ai-green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    min-height: 3.85rem;
    display: flex;
    align-items: center;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Mathematical Animation */
.mathematical-animation {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.geometry-container {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.geometry-svg {
    width: 100%;
    height: 100%;
    max-width: 600px;
    max-height: 400px;
    overflow: visible;
}

/* Game of Life Styling */
.life-game-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-primary);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}


#life-canvas {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: crosshair;
    transition: border-color 0.3s ease;
    background: var(--bg-secondary);
}

#life-canvas:hover {
    border-color: var(--primary-color);
}

/* Game of Life Animations */
@keyframes cell-birth {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes cell-death {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(0);
        opacity: 0;
    }
}


/* Game of Life Interactive Features */
.life-game-wrapper:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}


/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-primary {
    background: rgba(59, 130, 246, 0.9);
    color: white;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

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

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.8);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Section Styles */
section {
    padding: 3rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.research-title-outside {
    background: var(--bg-primary);
    padding: 2rem 0;
    margin: 0;
    position: relative;
    z-index: 10;
}

/* Revolution Cards for History */
.revolution-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.revolution-card {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(59, 130, 246, 0.1);
    transition: transform 0.3s ease;
}

.revolution-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.revolution-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.revolution-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Paradigms Section */
.paradigms-content {
    max-width: 1000px;
    margin: 0 auto;
}

.paradigms-intro {
    text-align: center;
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.paradigm-tabs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 3rem;
}

.paradigm-tab {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid transparent;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
}

.paradigm-tab:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(59, 130, 246, 0.2);
}

.paradigm-tab.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-4px);
}

.paradigm-tab.active:nth-child(2) {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
}

.paradigm-tab.active:nth-child(3) {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

.paradigm-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.paradigm-label h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
}

.paradigm-label p {
    font-size: 0.875rem;
    opacity: 0.8;
    margin: 0;
}

.paradigm-content {
    background: var(--bg-primary);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(59, 130, 246, 0.1);
    min-height: 200px;
    transition: opacity 0.3s ease;
}

.paradigm-content h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.paradigm-content p {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* Future Section */
.future-intro {
    text-align: center;
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.future-roadmap {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.roadmap-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    transform: translateY(-50%);
    border-radius: 2px;
    opacity: 0.3;
}

.roadmap-stages {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    z-index: 2;
}

.roadmap-stage {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 280px;
}

.stage-marker {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-lg);
}

.roadmap-stage:nth-child(2) .stage-marker {
    background: var(--secondary-color);
}

.roadmap-stage:nth-child(3) .stage-marker {
    background: var(--accent-color);
}

.stage-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.stage-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Research Section */
.research {
    position: relative;
}

.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.research-card {
    background: rgba(255, 255, 255, 0.8);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid rgba(229, 231, 235, 0.5);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.research-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.03) 0%, rgba(124, 58, 237, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.research-card:hover::before {
    opacity: 1;
}

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

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.research-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.research-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Publications Section */
.publications-list {
    space-y: 2rem;
}

.publication-item {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

.publication-content {
    flex: 1;
}

.publication-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.publication-authors {
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.publication-venue {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 1rem;
}

.publication-abstract {
    color: var(--text-secondary);
    line-height: 1.6;
}

.publication-links {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* Demos Section */
.demos {
    background: var(--bg-secondary);
}

.demos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.demo-card {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    text-align: center;
}

.demo-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.demo-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.demo-preview {
    background: var(--bg-dark);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.code-block {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.875rem;
}

.code-line {
    color: #10b981;
    text-align: left;
}

.equation-solver {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: white;
    font-size: 1.1rem;
}

.solver-input {
    color: #60a5fa;
}

.solver-arrow {
    color: #10b981;
    font-size: 1.5rem;
}

.solver-output {
    color: #f59e0b;
}

.pattern-display {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    color: white;
}

.sequence {
    color: #60a5fa;
    font-family: monospace;
    font-size: 1.1rem;
}

.pattern-result {
    color: #10b981;
    font-weight: 600;
}

/* Contact Section */
.contact {
    background: var(--bg-primary);
    position: relative;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.contact-info p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.contact-details {
    margin-top: 2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
    background: var(--bg-primary);
    color: var(--text-primary);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: var(--text-muted);
    text-align: center;
    padding: 2rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .nav-menu {
        gap: 1rem;
    }
    
    .hero {
        padding: 6rem 1rem 4rem;
        text-align: center;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
        min-height: 2.75rem;
    }
    
    .mathematical-animation {
        height: 300px;
    }
    
    .floating-equation {
        font-size: 0.9rem;
    }
    
    .research-grid {
        grid-template-columns: 1fr;
    }
    
    .demos-grid {
        grid-template-columns: 1fr;
    }
    
    .publication-item {
        flex-direction: column;
        gap: 1rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .container {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
        min-height: 2.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
}

/* History Section */
.history {
    position: relative;
}


.history-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2rem;
    text-align: center;
}

.history-intro {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.discovery-highlight {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--primary-color);
}

.discovery-highlight h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.discovery-highlight p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.history-timeline {
    list-style: none;
    padding-left: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
}

.history-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    bottom: 0;
    width: 2px;
    background: var(--primary-color);
}

.history-timeline li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.history-timeline li::before {
    content: '';
    position: absolute;
    left: -0.5rem;
    top: 0.5rem;
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 3px solid var(--bg-primary);
}


/* Future Section */
.future {
    position: relative;
}

.future-content {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    margin: 0 auto;
}

.research-description {
    text-align: center;
    margin-bottom: 4rem;
}

.research-description p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* Master Plan Section */
.master-plan-content {
    max-width: 1200px;
    margin: 0 auto;
}

.research-description {
    text-align: center;
    margin-bottom: 4rem;
}

.research-description p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.tab-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    border: 1px solid rgba(59, 130, 246, 0.1);
    backdrop-filter: blur(10px);
}

.tab-navigation {
    display: flex;
    background: rgba(248, 250, 252, 0.8);
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
    backdrop-filter: blur(5px);
}

.tab-button {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border-bottom: 3px solid transparent;
}

.tab-button:hover {
    background: rgba(59, 130, 246, 0.05);
}

.tab-button.active {
    background: rgba(255, 255, 255, 0.9);
    border-bottom-color: var(--primary-color);
    backdrop-filter: blur(5px);
}

.tab-button.active:nth-child(2) {
    border-bottom-color: var(--secondary-color);
}

.tab-button.active:nth-child(3) {
    border-bottom-color: var(--accent-color);
}

.tab-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.tab-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
    text-align: left;
}

.tab-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0;
    text-align: left;
}

.tab-panels {
    position: relative;
}

.tab-panel {
    display: none;
    padding: 3rem;
    animation: fadeIn 0.3s ease;
}

.tab-panel.active {
    display: block;
    background: transparent;
}

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

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

.phase-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.phase-header h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.phase-period {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.phase-description {
    margin-bottom: 2.5rem;
}

.phase-description p {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.phase-objectives {
    margin-bottom: 2.5rem;
}

.phase-objectives h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.phase-objectives ul {
    list-style: none;
    padding: 0;
}

.phase-objectives li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--text-secondary);
    line-height: 1.6;
}

.phase-objectives li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.phase-metrics {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.metric-card {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    min-width: 150px;
    box-shadow: var(--shadow-md);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(59, 130, 246, 0.2);
}

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

.metric-label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}


/* Responsive styles for new sections */
@media (max-width: 768px) {
    .history-title {
        font-size: 2rem;
    }
    
    .revolution-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .paradigm-tabs {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .paradigm-tab {
        padding: 1.25rem;
    }
    
    .paradigm-content {
        padding: 2rem;
    }
    
    .paradigm-content h3 {
        font-size: 1.5rem;
    }
    
    .roadmap-stages {
        flex-direction: column;
        align-items: center;
        gap: 3rem;
    }
    
    .roadmap-stage {
        max-width: 100%;
    }
    
    .roadmap-line {
        display: none;
    }
}

@media (max-width: 480px) {
    .tab-button {
        padding: 1rem;
        gap: 0.75rem;
    }
    
    .tab-icon {
        font-size: 1.5rem;
    }
    
    .tab-content h3 {
        font-size: 1rem;
    }
    
    .tab-content p {
        font-size: 0.85rem;
    }
    
    .tab-panel {
        padding: 1.5rem;
    }
    
    .phase-header h3 {
        font-size: 1.5rem;
    }
    
    .phase-metrics {
        gap: 1rem;
    }
    
    .metric-card {
        padding: 1.5rem;
        min-width: 140px;
    }
    
    .metric-number {
        font-size: 2rem;
    }
}