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

:root {
    --primary-bg: #000000;
    --secondary-bg: #0a0e1a;
    --tertiary-bg: #141824;
    --accent-color: #00d9ff;
    --accent-secondary: #0099ff;
    --accent-hover: #33e3ff;
    --text-primary: #ffffff;
    --text-secondary: #a0aec0;
    --text-tertiary: #718096;
    --card-bg: rgba(10, 14, 26, 0.85);
    --card-border: rgba(0, 217, 255, 0.2);
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #00d9ff 0%, #0099ff 100%);
    --gradient-space: linear-gradient(180deg, #000000 0%, #0a0e1a 50%, #050812 100%);
    --glow-color: rgba(0, 217, 255, 0.3);
    --shadow-intense: 0 20px 60px rgba(0, 217, 255, 0.4);
    --shadow-medium: 0 10px 30px rgba(0, 217, 255, 0.25);
    --shadow-light: 0 5px 15px rgba(0, 0, 0, 0.5);
}

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;900&family=Rajdhani:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Rajdhani', 'Segoe UI', sans-serif;
    background: var(--primary-bg);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 30%, rgba(0, 217, 255, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(0, 153, 255, 0.06) 0%, transparent 50%),
        linear-gradient(180deg, #000000 0%, #0a0e1a 100%);
    z-index: -1;
    pointer-events: none;
}

/* Navigation */
.main-nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    z-index: 1000;
    padding: 1.2rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 217, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-brand h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    background: linear-gradient(90deg, #00d9ff, #0099ff, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    position: relative;
    filter: drop-shadow(0 0 10px rgba(0, 217, 255, 0.5));
}

.nav-brand h1::before {
    content: '◆';
    margin-right: 10px;
    color: var(--accent-color);
    animation: pulse 2s ease-in-out infinite;
}

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

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--accent-color);
    text-shadow: 0 0 20px var(--glow-color);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    transition: width 0.4s ease;
    box-shadow: 0 0 10px var(--accent-color);
}

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

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 217, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
    animation: heroGlow 8s ease-in-out infinite;
}

@keyframes heroGlow {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.8; }
}

.hero-content {
    text-align: center;
    z-index: 10;
    max-width: 900px;
    padding: 2rem;
}

.hero-content h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #00d9ff 50%, #0099ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 3px;
    text-transform: uppercase;
    filter: drop-shadow(0 0 30px rgba(0, 217, 255, 0.5));
    animation: heroTextGlow 4s ease-in-out infinite;
}

@keyframes heroTextGlow {
    0%, 100% { filter: drop-shadow(0 0 30px rgba(0, 217, 255, 0.5)); }
    50% { filter: drop-shadow(0 0 50px rgba(0, 217, 255, 0.8)); }
}

.hero-content p {
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    letter-spacing: 1px;
    line-height: 1.8;
}

.cta-button {
    padding: 1.2rem 3.5rem;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-secondary));
    color: white;
    border: 2px solid var(--accent-color);
    border-radius: 50px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 
        0 0 20px rgba(0, 217, 255, 0.4),
        0 10px 30px rgba(0, 0, 0, 0.5),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
}

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

.cta-button:hover::before {
    width: 400px;
    height: 400px;
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 
        0 0 40px rgba(0, 217, 255, 0.8),
        0 15px 40px rgba(0, 0, 0, 0.6),
        inset 0 0 30px rgba(255, 255, 255, 0.2);
    border-color: var(--accent-hover);
}

.cta-button:active {
    transform: translateY(-2px) scale(1.02);
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Categories Section */
.categories {
    padding: 6rem 3rem;
    max-width: 1600px;
    margin: 0 auto;
    position: relative;
}

.categories::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100px;
    background: linear-gradient(180deg, transparent, var(--accent-color), transparent);
}

.categories h2 {
    text-align: center;
    font-family: 'Orbitron', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #00d9ff, #0099ff, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 3px;
    filter: drop-shadow(0 0 20px rgba(0, 217, 255, 0.4));
}

.categories h2::after {
    content: '';
    display: block;
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    margin: 1.5rem auto 3rem;
    box-shadow: 0 0 20px var(--accent-color);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.category-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    cursor: pointer;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.category-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(0, 217, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

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

.category-card:hover::after {
    opacity: 1;
    transform: rotate(45deg) translateY(100%);
}

.category-card:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: var(--accent-color);
    box-shadow: 
        0 0 40px rgba(0, 217, 255, 0.4),
        0 20px 50px rgba(0, 0, 0, 0.6),
        inset 0 0 40px rgba(0, 217, 255, 0.1);
}

.card-icon {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 30px rgba(0, 217, 255, 0.6));
    animation: float 3s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

.category-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    z-index: 1;
}

.category-card p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1rem;
    position: relative;
    z-index: 1;
}

/* Simulation Viewer */
.simulation-section {
    padding: 6rem 3rem;
    max-width: 1800px;
    margin: 0 auto;
    position: relative;
}

.simulation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(10, 14, 26, 0.6);
    border-radius: 16px;
    border: 1px solid var(--card-border);
    backdrop-filter: blur(10px);
}

.simulation-header h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #00d9ff, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 2px;
    filter: drop-shadow(0 0 20px rgba(0, 217, 255, 0.3));
}

.simulation-controls {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.control-btn {
    padding: 0.9rem 1.8rem;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 1px;
    background: rgba(0, 217, 255, 0.1);
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
}

.control-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--accent-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.control-btn:hover::before {
    width: 300px;
    height: 300px;
}

.control-btn:hover {
    color: #000000;
    border-color: var(--accent-hover);
    box-shadow: 
        0 0 20px rgba(0, 217, 255, 0.5),
        0 5px 15px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.control-btn span {
    position: relative;
    z-index: 1;
}

.canvas-container {
    width: 100%;
    height: 600px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    background: radial-gradient(ellipse at center, rgba(0, 217, 255, 0.05) 0%, #000000 100%);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.8),
        0 0 40px rgba(0, 217, 255, 0.2),
        inset 0 0 60px rgba(0, 217, 255, 0.05);
    border: 1px solid var(--card-border);
}

.canvas-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, transparent 48%, rgba(0, 217, 255, 0.03) 50%, transparent 52%),
        linear-gradient(-45deg, transparent 48%, rgba(0, 217, 255, 0.03) 50%, transparent 52%);
    background-size: 20px 20px;
    pointer-events: none;
    opacity: 0.3;
}

.main-canvas {
    height: 750px;
    margin-bottom: 2rem;
}

/* Info Panel */
.info-panel {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2.5rem;
    margin-top: 2rem;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--card-border);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

.info-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent-color), var(--accent-secondary));
    box-shadow: 0 0 20px var(--accent-color);
}

.info-panel h3 {
    font-family: 'Orbitron', sans-serif;
    color: var(--accent-color);
    margin-bottom: 1.2rem;
    font-size: 1.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding-left: 1rem;
}

#info-content {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.05rem;
    padding-left: 1rem;
}

#info-content h4 {
    color: var(--accent-color);
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

/* Timeline Controls */
.timeline-controls {
    display: flex;
    gap: 3rem;
    margin-top: 2rem;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 16px;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--card-border);
    flex-wrap: wrap;
    box-shadow: var(--shadow-light);
}

.timeline-controls label {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    color: var(--text-primary);
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timeline-controls input[type="range"] {
    width: 220px;
    height: 6px;
    background: rgba(0, 217, 255, 0.2);
    border-radius: 10px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.timeline-controls input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: var(--accent-color);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 20px var(--accent-color);
    transition: all 0.3s ease;
}

.timeline-controls input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 30px var(--accent-color);
}

.timeline-controls input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: var(--accent-color);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 20px var(--accent-color);
    transition: all 0.3s ease;
}

.timeline-controls input[type="range"]::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 30px var(--accent-color);
}

/* Evolution Timeline */
.evolution-section {
    padding: 6rem 3rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.evolution-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100px;
    background: linear-gradient(180deg, transparent, var(--accent-color), transparent);
}

.evolution-section h2 {
    text-align: center;
    font-family: 'Orbitron', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #00d9ff, #0099ff, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 3px;
    filter: drop-shadow(0 0 20px rgba(0, 217, 255, 0.4));
}

.evolution-section h2::after {
    content: '';
    display: block;
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    margin: 1.5rem auto 4rem;
    box-shadow: 0 0 20px var(--accent-color);
}

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

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, 
        var(--accent-color) 0%, 
        var(--accent-secondary) 50%, 
        var(--accent-color) 100%);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.6);
    animation: timelinePulse 3s ease-in-out infinite;
}

@keyframes timelinePulse {
    0%, 100% { opacity: 0.6; box-shadow: 0 0 20px rgba(0, 217, 255, 0.6); }
    50% { opacity: 1; box-shadow: 0 0 40px rgba(0, 217, 255, 0.9); }
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 4rem;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.2), rgba(0, 153, 255, 0.1));
    border: 3px solid var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8rem;
    z-index: 10;
    box-shadow: 
        0 0 40px rgba(0, 217, 255, 0.6),
        inset 0 0 30px rgba(0, 217, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
    animation: markerFloat 3s ease-in-out infinite;
}

@keyframes markerFloat {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

.timeline-marker:hover {
    transform: translateX(-50%) scale(1.15);
    box-shadow: 
        0 0 60px rgba(0, 217, 255, 0.9),
        inset 0 0 40px rgba(0, 217, 255, 0.2);
}

.timeline-content {
    width: 45%;
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 16px;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--card-border);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-secondary));
    box-shadow: 0 0 20px var(--accent-color);
}

.timeline-content:hover {
    transform: scale(1.05) translateY(-10px);
    border-color: var(--accent-color);
    box-shadow: 
        0 0 40px rgba(0, 217, 255, 0.4),
        0 20px 50px rgba(0, 0, 0, 0.6);
}

.timeline-content h3 {
    font-family: 'Orbitron', sans-serif;
    color: var(--accent-color);
    margin-bottom: 0.8rem;
    font-size: 1.4rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timeline-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1rem;
}

.timeline-content button {
    padding: 0.8rem 2rem;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-secondary));
    color: white;
    border: 2px solid var(--accent-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.timeline-content button:hover::before {
    width: 300px;
    height: 300px;
}

.timeline-content button:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(0, 217, 255, 0.6);
}

/* Learn Section */
.learn-section {
    padding: 6rem 3rem;
    max-width: 1600px;
    margin: 0 auto;
    position: relative;
}

.learn-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100px;
    background: linear-gradient(180deg, transparent, var(--accent-color), transparent);
}

.learn-section h2 {
    text-align: center;
    font-family: 'Orbitron', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #00d9ff, #0099ff, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 3px;
    filter: drop-shadow(0 0 20px rgba(0, 217, 255, 0.4));
}

.learn-section h2::after {
    content: '';
    display: block;
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    margin: 1.5rem auto 3rem;
    box-shadow: 0 0 20px var(--accent-color);
}

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

.learn-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 16px;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--card-border);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

.learn-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-secondary));
    box-shadow: 0 0 20px var(--accent-color);
}

.learn-card::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 217, 255, 0.1), transparent);
    transition: top 0.4s ease;
}

.learn-card:hover::after {
    top: 0;
}

.learn-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 0 40px rgba(0, 217, 255, 0.4),
        0 20px 50px rgba(0, 0, 0, 0.6);
}

.learn-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}

.learn-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1rem;
    position: relative;
    z-index: 1;
}

.learn-card ul {
    list-style: none;
    padding-left: 0;
    position: relative;
    z-index: 1;
}

.learn-card li {
    padding: 0.7rem 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 2rem;
    line-height: 1.6;
    transition: all 0.3s ease;
}

.learn-card li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.learn-card li:hover {
    color: var(--text-primary);
    padding-left: 2.5rem;
}

.learn-card li:hover::before {
    color: var(--accent-hover);
    text-shadow: 0 0 10px var(--accent-color);
}

/* Footer */
footer {
    background: rgba(0, 0, 0, 0.9);
    padding: 3.5rem 2rem;
    text-align: center;
    border-top: 2px solid var(--accent-color);
    margin-top: 6rem;
    position: relative;
    box-shadow: 0 -10px 40px rgba(0, 217, 255, 0.2);
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    box-shadow: 0 0 20px var(--accent-color);
}

footer p {
    font-family: 'Rajdhani', sans-serif;
    color: var(--text-secondary);
    margin: 0.8rem 0;
    font-size: 1.05rem;
    letter-spacing: 1px;
}

footer p:first-child {
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    color: var(--accent-color);
    font-size: 1.2rem;
    text-transform: uppercase;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content h2 {
        font-size: 3.5rem;
    }
    
    .categories h2,
    .evolution-section h2,
    .learn-section h2 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .main-nav {
        padding: 1rem 1.5rem;
    }
    
    .nav-brand h1 {
        font-size: 1.3rem;
    }
    
    .nav-menu {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
        font-size: 0.85rem;
    }
    
    .hero-content h2 {
        font-size: 2.5rem;
        letter-spacing: 1px;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .cta-button {
        padding: 1rem 2.5rem;
        font-size: 1rem;
    }
    
    .categories,
    .simulation-section,
    .evolution-section,
    .learn-section {
        padding: 4rem 1.5rem;
    }
    
    .categories h2,
    .evolution-section h2,
    .learn-section h2 {
        font-size: 2.2rem;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .simulation-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .simulation-header h2 {
        font-size: 1.6rem;
    }
    
    .control-btn {
        padding: 0.7rem 1.3rem;
        font-size: 0.9rem;
    }
    
    .canvas-container,
    .main-canvas {
        height: 400px;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        flex-direction: column !important;
        align-items: flex-start;
        padding-left: 80px;
    }
    
    .timeline-marker {
        left: 20px;
        transform: none;
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }
    
    .timeline-content {
        width: 100%;
    }
    
    .timeline-controls {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .timeline-controls input[type="range"] {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .nav-menu a {
        font-size: 0.75rem;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .categories h2,
    .evolution-section h2,
    .learn-section h2 {
        font-size: 1.8rem;
    }
    
    .card-icon {
        font-size: 3.5rem;
    }
    
    .category-card h3 {
        font-size: 1.3rem;
    }
    
    .canvas-container,
    .main-canvas {
        height: 300px;
    }
}

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

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

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 217, 255, 0.4);
    }
    50% {
        box-shadow: 0 0 40px rgba(0, 217, 255, 0.8);
    }
}

@keyframes scanline {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(100%);
    }
}

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

/* Add scanline effect to canvas */
.canvas-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(0, 217, 255, 0.5), 
        transparent);
    animation: scanline 8s linear infinite;
    pointer-events: none;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 60px;
    height: 60px;
    border: 4px solid rgba(0, 217, 255, 0.2);
    border-radius: 50%;
    border-top-color: var(--accent-color);
    animation: spin 1s linear infinite;
    box-shadow: 0 0 30px rgba(0, 217, 255, 0.4);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Particle Effects */
.particle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-color), transparent);
    animation: particle-float 15s infinite;
    pointer-events: none;
    filter: blur(1px);
}

@keyframes particle-float {
    0%, 100% {
        transform: translate(0, 0);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translate(100px, -120vh);
        opacity: 0;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--primary-bg);
    border-left: 1px solid rgba(0, 217, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--accent-color), var(--accent-secondary));
    border-radius: 10px;
    border: 2px solid var(--primary-bg);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--accent-hover), var(--accent-color));
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.6);
}

/* Selection */
::selection {
    background: rgba(0, 217, 255, 0.3);
    color: var(--text-primary);
}

::-moz-selection {
    background: rgba(0, 217, 255, 0.3);
    color: var(--text-primary);
}

/* Data Display Elements */
.data-display {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 14, 26, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 1.2rem;
    min-width: 250px;
    box-shadow: var(--shadow-medium);
    z-index: 900;
    font-family: 'Orbitron', monospace;
    font-size: 0.85rem;
    display: none;
}

.data-display.active {
    display: block;
    animation: slideInFromRight 0.5s ease;
}

.data-display h4 {
    color: var(--accent-color);
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 0.5rem;
}

.data-item {
    display: flex;
    justify-content: space-between;
    margin: 0.5rem 0;
    color: var(--text-secondary);
}

.data-item span:first-child {
    color: var(--text-tertiary);
}

.data-item span:last-child {
    color: var(--accent-color);
    font-weight: 600;
}

/* Corner Decorations */
.corner-decoration {
    position: fixed;
    pointer-events: none;
    z-index: 100;
}

.corner-decoration.top-left {
    top: 80px;
    left: 0;
    width: 100px;
    height: 100px;
    border-top: 2px solid var(--accent-color);
    border-left: 2px solid var(--accent-color);
    opacity: 0.3;
}

.corner-decoration.top-right {
    top: 80px;
    right: 0;
    width: 100px;
    height: 100px;
    border-top: 2px solid var(--accent-color);
    border-right: 2px solid var(--accent-color);
    opacity: 0.3;
}

.corner-decoration.bottom-left {
    bottom: 0;
    left: 0;
    width: 100px;
    height: 100px;
    border-bottom: 2px solid var(--accent-color);
    border-left: 2px solid var(--accent-color);
    opacity: 0.3;
}

.corner-decoration.bottom-right {
    bottom: 0;
    right: 0;
    width: 100px;
    height: 100px;
    border-bottom: 2px solid var(--accent-color);
    border-right: 2px solid var(--accent-color);
    opacity: 0.3;
}

/* Grid Pattern Overlay */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 217, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 217, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 1;
    opacity: 0.3;
}

/* Stats Badge */
.stats-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 217, 255, 0.1);
    border: 1px solid var(--accent-color);
    border-radius: 20px;
    padding: 0.3rem 0.8rem;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 10;
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.3);
}

/* Tech Lines */
.tech-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    height: 1px;
    animation: techLineScan 3s ease-in-out infinite;
}

@keyframes techLineScan {
    0%, 100% { 
        opacity: 0;
        transform: scaleX(0);
    }
    50% { 
        opacity: 1;
        transform: scaleX(1);
    }
}

/* Holographic Effect */
.holographic {
    position: relative;
    overflow: hidden;
}

.holographic::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(0, 217, 255, 0.1) 50%,
        transparent 70%
    );
    animation: holographicShine 3s linear infinite;
    pointer-events: none;
}

@keyframes holographicShine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}
