/* Reset default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background: linear-gradient(135deg, #0a0f2b, #1a1f3b);
    padding: 20px;
    overflow-x: hidden;
}

/* Header with AI-inspired glow */
header {
    text-align: center;
    padding: 30px;
    background: linear-gradient(90deg, #0a0f2b, #1a1f3b);
    color: #00d4ff;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
    margin-bottom: 30px;
    animation: pulse 2s infinite alternate;
}

header h1 {
    font-size: 3em;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px #00d4ff, 0 0 20px #a200ff;
}

/* Main content with futuristic sections */
main {
    max-width: 1200px;
    margin: 0 auto;
}

section {
    background: linear-gradient(135deg, #141d3a, #0a0f2b);
    padding: 25px;
    margin-bottom: 30px;
    border-radius: 15px;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3), inset 0 0 10px rgba(162, 0, 255, 0.2);
    opacity: 0;
    transform: translateY(50px) scale(0.95);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

section.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Headings with neon effects */
h2 {
    color: #00d4ff;
    margin-bottom: 20px;
    font-size: 2.2em;
    text-shadow: 0 0 5px #00d4ff, 0 0 10px #a200ff;
    position: relative;
    padding-bottom: 5px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50%;
    height: 2px;
    background: #a200ff;
    animation: glowLine 1.5s infinite alternate;
}

h3 {
    color: #a200ff;
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 1.6em;
    text-shadow: 0 0 3px #a200ff;
}

h4 {
    color: #00d4ff;
    margin-top: 20px;
    margin-bottom: 15px;
    font-size: 1.3em;
    text-shadow: 0 0 2px #00d4ff;
}

p {
    margin-bottom: 20px;
    color: #b0b0b0;
}

ul, ol {
    margin-left: 25px;
    margin-bottom: 20px;
}

li {
    margin-bottom: 15px;
    color: #c0c0c0;
}

pre {
    background: #1a1f3b;
    padding: 20px;
    border-radius: 10px;
    overflow-x: auto;
    margin-bottom: 20px;
    box-shadow: inset 0 0 10px rgba(0, 212, 255, 0.1);
}

code {
    font-family: 'Courier New', Courier, monospace;
    color: #00d4ff;
    background: #0a0f2b;
    padding: 2px 5px;
    border-radius: 5px;
}

.formula {
    font-style: italic;
    color: #a200ff;
    text-align: center;
    margin: 20px 0;
    text-shadow: 0 0 5px #a200ff;
    font-size: 1.2em;
}

a {
    color: #00d4ff;
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

a:hover {
    color: #a200ff;
    text-shadow: 0 0 10px #a200ff;
}

/* Footer with glow */
footer {
    text-align: center;
    padding: 15px;
    background: linear-gradient(90deg, #0a0f2b, #1a1f3b);
    color: #00d4ff;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
    margin-top: 30px;
}

/* Figure styling for images */
figure {
    margin: 20px 0;
    text-align: center;
}

figure img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

figure img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(0, 212, 255, 0.6);
}

figcaption {
    color: #b0b0b0;
    font-size: 0.9em;
    margin-top: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2.2em;
    }

    h2 {
        font-size: 1.8em;
    }

    h3 {
        font-size: 1.4em;
    }

    h4 {
        font-size: 1.1em;
    }

    section {
        padding: 15px;
    }

    body {
        padding: 10px;
    }
}

/* Keyframe Animations */
@keyframes pulse {
    from { box-shadow: 0 0 10px rgba(0, 212, 255, 0.5); }
    to { box-shadow: 0 0 20px rgba(0, 212, 255, 0.8); }
}

@keyframes glowLine {
    from { width: 50%; opacity: 0.7; }
    to { width: 100%; opacity: 1; }
}
