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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Roboto Mono', monospace;
    font-size: 16px;
    line-height: 1.6;
    color: #111;
    background-color: #F5F5F5;
    width: 100%;
    overflow-x: hidden;
}

nav {
    background: #fff;
    border-bottom: 1px solid #ddd;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    padding: 20px 10px;
}

nav a {
    text-decoration: none;
    color: #111;
    font-weight: bold;
    font-size: 0.85rem;
    text-transform: uppercase;
    padding: 5px 10px;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #003366;
}

.hero-text {
    padding: 40px 0;
}

h1 {
    font-family: 'Merriweather', serif;
    font-size: clamp(2rem, 10vw, 4.5rem);
    text-align: center;
    margin-bottom: 10px;
    line-height: 1.1;
}

.hero-text .subtitle {
    text-align: center;
    font-size: clamp(0.9rem, 3vw, 1.2rem);
    color: #555;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px; 
}

section {
    padding: 50px 0;
}

.split-layout {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

@media (min-width: 768px) {
    .split-layout {
        flex-direction: row;
        align-items: center;
    }
    .split-layout > div {
        flex: 1;
    }
    .split-layout.reverse {
        flex-direction: row-reverse;
    }
    .code-snippet {
        padding: 20px;
        font-size: 0.9rem;
    }
}

h2 {
    font-family: 'Merriweather', serif;
    font-size: clamp(1.5rem, 6vw, 2.2rem);
    margin-bottom: 15px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border: 1px solid #111;
    box-shadow: 6px 6px 0px #003366;
}

figcaption {
    text-align: center;
    font-size: 0.8rem;
    color: #666;
    margin-top: 10px;
}

blockquote {
    font-family: 'Merriweather', serif;
    font-size: clamp(1rem, 4vw, 1.4rem);
    font-style: italic;
    color: #003366;
    border-left: 4px solid #003366;
    padding: 15px 20px;
    margin: 25px 0;
    background: rgba(0, 51, 102, 0.05);
}

.code-snippet {
    background-color: #000;
    color: #00FF00;
    padding: 15px;
    font-size: 0.8rem;
    overflow-x: auto; 
    white-space: pre-wrap; 
    word-break: break-word;
    border-radius: 4px;
    margin: 20px 0;
    width: 100%; 
    border-left: 3px solid #00FF00;
}

.card-grid {
    display: grid;
    grid-template-columns: 1fr; 
    gap: 20px;
    margin: 30px 0;
}

@media (min-width: 600px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr); 
    }
}

@media (min-width: 900px) {
    .card-grid {
        grid-template-columns: repeat(3, 1fr); 
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .code-snippet {
        padding: 15px;
        line-height: 1.4;
    }
}

.card {
    background: #fff;
    padding: 25px;
    border: 1px solid #ddd;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.05);
}

.card h3 {
    margin-bottom: 10px;
    font-size: 1.1rem;
    border-bottom: 2px solid #003366;
    display: inline-block;
}

.dark-mode {
    background-color: #111;
    color: #F5F5F5;
    padding: 60px 0;
}

.dark-mode blockquote {
    color: #8dbaff;
    border-color: #8dbaff;
}

.hidden {
    opacity: 0;
    filter: blur(5px);
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out, filter 0.6s ease-out;
    will-change: opacity, transform;
}

.show {
    opacity: 1 !important;
    filter: blur(0) !important;
    transform: translateY(0) !important;
}

@media (prefers-reduced-motion: reduce) {
    .hidden {
        transition: none;
        opacity: 1;
        transform: none;
        filter: none;
    }
}

footer {
    background: #000;
    color: #888;
    text-align: center;
    padding: 40px 20px;
    font-size: 0.8rem;
    line-height: 1.8;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #003366;
    color: white;
    padding: 8px;
    z-index: 100;
    transition: top 0.3s;
    text-decoration: none;
    font-size: 0.8rem;
}

.skip-link:focus {
    top: 0; 
}

.text-center {
    text-align: center;
}

.symbol-wrapper {
    padding: 40px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.truth-svg {
    transition: transform 1s ease-in-out;
    margin-bottom: 15px;
}

.show .truth-svg {
    transform: rotate(180deg);
}