* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #ffffff;
    border-radius: 50%;
    opacity: 0.8;
    animation: twinkle 3s infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

header {
    padding: 20px 0;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    background: linear-gradient(45deg, #00d4ff, #090979);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 16px;
    border-radius: 20px;
}

.nav-links a:hover {
    color: #00d4ff;
    background: rgba(0, 212, 255, 0.1);
}

.hero {
    text-align: center;
    padding: 150px 0 100px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #00d4ff, #090979, #ff006e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.3)); }
    to { filter: drop-shadow(0 0 30px rgba(255, 0, 110, 0.4)); }
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    padding: 15px 35px;
    background: linear-gradient(45deg, #00d4ff, #090979);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s ease;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    background: linear-gradient(45deg, #00d4ff, #ff006e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.ai-hierarchy {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.ai-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.ai-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent, rgba(0, 212, 255, 0.1), transparent, rgba(255, 0, 110, 0.1));
    animation: rotate 6s linear infinite;
    z-index: -1;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.ai-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.2);
}

.ai-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.ai-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #00d4ff;
}

.ai-card p {
    opacity: 0.9;
    line-height: 1.6;
}

/* Neural Network Sections */
.neural-networks {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 30px;
    padding: 60px 40px;
    margin: 60px 0;
}

.network-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-button {
    padding: 12px 25px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.tab-button.active {
    background: linear-gradient(45deg, #00d4ff, #090979);
    border-color: #00d4ff;
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.3);
}

.tab-button:hover:not(.active) {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.network-content {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.network-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.network-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 40px;
}

.network-explanation {
    padding: 30px;
}

.network-explanation h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #00d4ff;
}

.network-explanation p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.network-features {
    list-style: none;
    margin: 20px 0;
}

.network-features li {
    padding: 8px 0;
    position: relative;
    padding-left: 25px;
}

.network-features li::before {
    content: "✦";
    position: absolute;
    left: 0;
    color: #00d4ff;
}

.network-diagram {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

/* ANN Diagram */
.ann-diagram {
    display: flex;
    align-items: center;
    gap: 40px;
}

.layer {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.neuron {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(45deg, #00d4ff, #090979);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    animation: pulse 2s infinite;
    position: relative;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(0, 212, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 212, 255, 0); }
}

.layer-label {
    margin-top: 10px;
    font-size: 0.9rem;
    text-align: center;
    color: #00d4ff;
}

/* CNN Diagram */
.cnn-diagram {
    display: flex;
    align-items: center;
    gap: 30px;
}

.conv-layer, .pool-layer, .dense-layer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.feature-map {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #ff006e, #8338ec);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.pooling {
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, #ffa726, #ff7043);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
}

/* RNN Diagram */
.rnn-diagram {
    display: flex;
    align-items: center;
    gap: 20px;
}

.rnn-cell {
    width: 80px;
    height: 60px;
    background: linear-gradient(45deg, #4caf50, #2e7d32);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    position: relative;
}

.rnn-cell::after {
    content: "→";
    position: absolute;
    right: -25px;
    font-size: 1.5rem;
    color: #4caf50;
}

.rnn-cell:last-child::after {
    display: none;
}

/* GAN Diagram */
.gan-diagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.gan-components {
    display: flex;
    gap: 40px;
    align-items: center;
}

.generator, .discriminator {
    width: 100px;
    height: 80px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    text-align: center;
}

.generator {
    background: linear-gradient(45deg, #e91e63, #9c27b0);
}

.discriminator {
    background: linear-gradient(45deg, #ff5722, #f44336);
}

.gan-arrow {
    font-size: 2rem;
    color: #00d4ff;
}

/* Applications Section */
.applications-section {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    padding: 30px;
    margin: 30px 0;
    border-left: 4px solid #ff006e;
}

.applications-title {
    color: #ff006e;
    font-size: 1.3rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.applications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.application-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.application-card:hover {
    background: rgba(255, 0, 110, 0.1);
    border-color: rgba(255, 0, 110, 0.3);
    transform: translateY(-2px);
}

.industry-title {
    color: #00d4ff;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.job-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.job-list li {
    padding: 4px 0;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
    padding-left: 15px;
}

.job-list li::before {
    content: "•";
    color: #ff006e;
    position: absolute;
    left: 0;
}

/* Code Section */
.code-section {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 15px;
    padding: 30px;
    margin-top: 40px;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.code-title {
    color: #00d4ff;
    font-weight: 600;
}

.copy-btn {
    padding: 8px 16px;
    background: linear-gradient(45deg, #ff006e, #8338ec);
    border: none;
    border-radius: 20px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 0, 110, 0.3);
}

pre {
    background: #0d1117;
    padding: 20px;
    border-radius: 10px;
    overflow-x: auto;
    border-left: 4px solid #00d4ff;
    margin: 0;
}

code {
    font-family: 'Monaco', 'Consolas', 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Python Syntax Highlighting */
.comment { color: #7c7c7c; font-style: italic; }
.keyword { color: #ff79c6; font-weight: bold; }
.string { color: #f1fa8c; }
.number { color: #bd93f9; }
.function { color: #50fa7b; }
.class { color: #8be9fd; }
.variable { color: #f8f8f2; }
.operator { color: #ff79c6; }
.builtin { color: #50fa7b; }
.module { color: #8be9fd; }
.parameter { color: #ffb86c; }

/* Interactive Demo */
.interactive-demo {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 60px;
    margin: 80px 0;
    text-align: center;
}

.demo-button {
    background: linear-gradient(45deg, #ff006e, #8338ec);
    border: none;
    color: white;
    padding: 15px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1.1rem;
    margin: 10px;
    transition: all 0.3s ease;
}

.demo-button:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(255, 0, 110, 0.3);
}

.neural-network {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px 0;
    gap: 40px;
}

.neuron-layer {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

footer {
    background: rgba(0, 0, 0, 0.3);
    padding: 40px 0;
    text-align: center;
    margin-top: 100px;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .ai-hierarchy {
        grid-template-columns: 1fr;
    }
    
    .network-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .neural-network {
        flex-direction: column;
        gap: 20px;
    }
    
    .neuron-layer {
        flex-direction: row;
    }

    .network-tabs {
        flex-direction: column;
        align-items: center;
    }

    .cnn-diagram, .rnn-diagram {
        flex-direction: column;
        gap: 15px;
    }
}