/* CSS Reset and Basic Setup */
:root {
    --bg-color: #0d0c1d;
    --primary-color: #161b33;
    --secondary-color: #1f2847;
    --accent-color: #3d5a80;
    --highlight-color: #98c1d9;
    --text-color: #e0fbfc;
    --glow-color: #00aaff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Styles for the JavaScript-powered Canvas background */
#matrix-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.1;
}

/* Main Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    position: relative; 
    z-index: 1;
}

/* Header and Hero Section */
header {
    text-align: center;
    padding: 10rem 0;
}

.hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: 4rem;
    font-weight: 800;
    color: var(--text-color);
    text-shadow: 0 0 10px var(--glow-color), 0 0 20px var(--glow-color), 0 0 30px var(--glow-color);
    animation: fadeInDown 1.5s ease-out;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--highlight-color);
    margin-top: 1rem;
    font-family: 'Roboto Mono', monospace;
    animation: fadeInUp 1.5s ease-out;
}

/* Section Styling */
.content-section {
    padding: 4rem 0;
    border-top: 1px solid var(--accent-color);
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.content-section.visible {
    opacity: 1;
    transform: translateY(0);
}

h2 {
    font-size: 2.5rem;
    color: var(--highlight-color);
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 600;
}

p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 1.5rem auto;
    text-align: center;
    font-family: 'Roboto Mono', monospace;
    font-weight: 300;
}

/* Malware Types Section - Card Layout */
.malware-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.malware-card {
    background: var(--primary-color);
    border: 1px solid var(--accent-color);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.malware-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 170, 255, 0.2);
}

.malware-card h3 {
    color: var(--highlight-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.malware-card p {
    font-size: 1rem;
    text-align: left;
}

/* Linux Section */
#linux-advantage {
    background: var(--secondary-color);
    border-radius: 15px;
    padding: 3rem;
}

/* Did You Know Section */
.did-you-know-list {
    list-style: none;
    max-width: 800px;
    margin: 2rem auto 0;
}

.did-you-know-list li {
    background: rgba(152, 193, 217, 0.1);
    padding: 1rem;
    border-left: 4px solid var(--highlight-color);
    margin-bottom: 1rem;
    border-radius: 0 8px 8px 0;
    font-family: 'Roboto Mono', monospace;
    transition: background-color 0.3s;
}

.did-you-know-list li:hover {
    background: rgba(152, 193, 217, 0.2);
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    margin-top: 2rem;
    border-top: 1px solid var(--accent-color);
    color: var(--accent-color);
    font-family: 'Roboto Mono', monospace;
}

/* Keyframe Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-subtitle {
        font-size: 1.2rem;
    }
    h2 {
        font-size: 2rem;
    }
    .container {
        padding: 1rem;
    }
}
