/* import jetbrains mono font */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&display=swap');

/* css variables */
:root {
    --color-background: #0a0a0a;
    --color-text-normal: #b0b0b0;
    --color-text-heading: #ffffff;
    --color-border-light: #2a2a2a;
    --color-border-dark: #ffffff;
    --color-hover-dark: #1a1a1a;
    --color-hover-light: #ffffff;
    --color-accent: #00aa00;
    --color-light: #ffffff;
    --color-dark: #0a0a0a;
}




/* ====================================================================
   BASE STYLES & RESETS
   ==================================================================== */

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

html {
    font-size: clamp(14px, 2vw, 16px);
}

body {
    font-family: 'JetBrains Mono', monospace;
    background-color: var(--color-background);
    color: var(--color-text-normal);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.menu-open {
    overflow: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

a:hover {
    transform: translateY(-0.125rem);
}

/* loader */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-background);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-dot {
    width: 3rem;
    height: 3rem;
    background-color: var(--color-accent);
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }
}

/* container */
.container {
    max-width: 75rem;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* main content wrapper */
.main-content {
    flex: 1;
}

/* header */
.header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--color-background);
    border-bottom: 1px solid var(--color-border-light);
    z-index: 1000;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
}

.brand {
    font-size: clamp(1rem, 1.5vw + 0.5rem, 1.125rem);
    font-weight: 700;
    color: var(--color-text-heading);
    text-transform: lowercase;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-size: clamp(0.8125rem, 1vw + 0.5rem, 0.875rem);
    font-weight: 500;
    color: var(--color-text-normal);
}

.nav-links a:hover {
    color: var(--color-hover-light);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem 0;
    cursor: pointer;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-heading);
    transition: opacity 0.3s ease;
}

.nav-toggle:hover {
    opacity: 0.7;
}

/* mobile menu */
.mobile-menu {
    position: fixed;
    top: 3.8125rem;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--color-background);
    z-index: 999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu.active {
    display: block;
    opacity: 1;
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    height: 100%;
    padding-right: 1.25rem;
    gap: 2.5rem;
}

.mobile-menu-links a {
    font-size: clamp(1.25rem, 2vw + 1rem, 1.5rem);
    font-weight: 600;
    color: var(--color-text-normal);
    text-align: right;
}

/* footer */
.footer {
    background-color: var(--color-background);
    border-top: 1px solid var(--color-border-light);
    padding: 1rem 0;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.footer-content a {
    color: var(--color-text-normal);
}

.footer-content a:hover {
    color: var(--color-hover-light);
}

.footer-content svg {
    display: block;
}

/* base responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

    .container {
        padding: 0 1rem;
    }
}




/* ====================================================================
   LANDING PAGE STYLES
   ==================================================================== */

/* hero section */
.hero {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 1rem;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    z-index: 2;
    position: relative;
}

.hero-title {
    font-size: clamp(1.5rem, 4vw + 1rem, 3rem);
    font-weight: 700;
    color: var(--color-text-heading);
    text-transform: lowercase;
    margin-bottom: 2.5rem;
    line-height: 1.2;
}

.cursor {
    color: var(--color-accent);
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

.hero-buttons {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-btn {
    display: inline-block;
    padding: 0.5rem 0;
    font-size: clamp(1.125rem, 1.5vw + 0.75rem, 1.25rem);
    font-weight: 600;
    text-transform: lowercase;
    background: none;
    border: none;
    color: var(--color-text-normal);
    cursor: pointer;
}

.hero-btn:hover {
    color: var(--color-hover-light);
}

.btn-modules {
    text-decoration: underline;
    text-underline-offset: 0.25rem;
}

.btn-more {
    text-decoration: none;
}

/* floating dots */
.floating-dots {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.dot {
    position: absolute;
    width: 0.5rem;
    height: 0.5rem;
    background-color: var(--color-accent);
    border-radius: 50%;
    animation: float 15s infinite ease-in-out;
}

.dot:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 12s;
}

.dot:nth-child(2) {
    top: 40%;
    left: 80%;
    animation-delay: 2s;
    animation-duration: 14s;
}

.dot:nth-child(3) {
    top: 60%;
    left: 20%;
    animation-delay: 4s;
    animation-duration: 16s;
}

.dot:nth-child(4) {
    top: 80%;
    left: 70%;
    animation-delay: 6s;
    animation-duration: 13s;
}

.dot:nth-child(5) {
    top: 30%;
    left: 50%;
    animation-delay: 1s;
    animation-duration: 15s;
}

.dot:nth-child(6) {
    top: 70%;
    left: 40%;
    animation-delay: 3s;
    animation-duration: 17s;
}

.dot:nth-child(7) {
    top: 15%;
    left: 90%;
    animation-delay: 5s;
    animation-duration: 11s;
}

.dot:nth-child(8) {
    top: 50%;
    left: 15%;
    animation-delay: 7s;
    animation-duration: 18s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0);
        opacity: 0.3;
    }
    25% {
        transform: translate(1.875rem, -2.5rem);
        opacity: 0.7;
    }
    50% {
        transform: translate(-1.25rem, -5rem);
        opacity: 1;
    }
    75% {
        transform: translate(2.5rem, -2.5rem);
        opacity: 0.7;
    }
}

/* landing description section */
.landing-description {
    padding: 1rem 0;
    background-color: var(--color-background);
}

.landing-description p {
    font-size: clamp(0.925rem, 1.5vw + 0.5rem, 1rem);
    line-height: 1.8;
    color: var(--color-text-normal);
    max-width: 50rem;
    margin: 0 auto;
    text-align: center;
}

/* landing page responsive */
@media (max-width: 768px) {
    .hero-title {
        margin-bottom: 1.875rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .hero-btn {
        width: 100%;
        max-width: 18.75rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-btn {
        padding: 0.75rem 1.5rem;
    }

    .landing-description {
        padding: 1rem 0;
    }
}




/* ====================================================================
   MODULES PAGE STYLES
   ==================================================================== */

/* modules page */
.modules-page {
    padding: 3rem 0 4rem;
}

.modules-title {
    font-size: clamp(2rem, 4vw + 1rem, 3rem);
    font-weight: 700;
    color: var(--color-text-heading);
    text-transform: lowercase;
    margin-bottom: 3rem;
    text-align: center;
}

.modules-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 50rem;
    margin: 0 auto;
}

.module-card {
    display: block;
    padding: 1.5rem;
    border: 1px solid var(--color-border-light);
    background-color: var(--color-background);
    transition: all 0.3s ease;
}

.module-card:hover {
    border-color: var(--color-text-normal);
    transform: translateY(-0.25rem);
}

.module-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.module-number {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-accent);
}

.module-arrow {
    font-size: 1.25rem;
    color: var(--color-text-normal);
    transition: transform 0.3s ease;
}

.module-card:hover .module-arrow {
    transform: translateX(0.25rem);
}

.module-title {
    font-size: clamp(1rem, 1.5vw + 0.5rem, 1.25rem);
    font-weight: 600;
    color: var(--color-text-heading);
    text-transform: lowercase;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.module-description {
    font-size: clamp(0.8125rem, 1vw + 0.5rem, 0.875rem);
    color: var(--color-text-normal);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.module-topics {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-text-normal);
    text-transform: lowercase;
}

/* modules page responsive */
@media (max-width: 768px) {
    .modules-list {
        gap: 1rem;
    }

    .module-card {
        padding: 1.25rem;
    }
}

@media (max-width: 480px) {
    .modules-page {
        padding: 2rem 0 3rem;
    }

    .modules-title {
        margin-bottom: 2rem;
    }

    .module-card {
        padding: 1rem;
    }

    .module-header {
        margin-bottom: 0.75rem;
    }
}

/* ====================================================================
   TOPICS PAGE STYLES
   ==================================================================== */

/* topics page */
.topics-page {
    padding: 3rem 0 4rem;
}

/* breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.875rem;
}

.breadcrumb a {
    color: var(--color-text-normal);
    text-transform: lowercase;
}

.breadcrumb a:hover {
    color: var(--color-hover-light);
}

.breadcrumb-separator {
    color: var(--color-text-normal);
}

.breadcrumb-current {
    color: var(--color-accent);
}

/* topics header */
.topics-header {
    margin-bottom: 3rem;
    max-width: 50rem;
    margin-left: auto;
    margin-right: auto;
}

.topics-title {
    font-size: clamp(1.75rem, 3.5vw + 1rem, 2.5rem);
    font-weight: 700;
    color: var(--color-text-heading);
    text-transform: lowercase;
    margin-bottom: 1rem;
}

.topics-description {
    font-size: clamp(0.925rem, 1.5vw + 0.5rem, 1rem);
    line-height: 1.8;
    color: var(--color-text-normal);
}

/* topics list */
.topics-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 50rem;
    margin: 0 auto 3rem;
}

.topic-card {
    display: block;
    padding: 1.5rem;
    border: 1px solid var(--color-border-light);
    background-color: var(--color-background);
    transition: all 0.3s ease;
}

.topic-card:hover {
    border-color: var(--color-text-normal);
    transform: translateY(-0.25rem);
}

.topic-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.topic-number {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-accent);
}

.topic-arrow {
    font-size: 1.25rem;
    color: var(--color-text-normal);
    transition: transform 0.3s ease;
}

.topic-card:hover .topic-arrow {
    transform: translateX(0.25rem);
}

.topic-title {
    font-size: clamp(1rem, 1.5vw + 0.5rem, 1.25rem);
    font-weight: 600;
    color: var(--color-text-heading);
    text-transform: lowercase;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.topic-description {
    font-size: clamp(0.8125rem, 1vw + 0.5rem, 0.875rem);
    color: var(--color-text-normal);
    line-height: 1.6;
}

/* topics navigation */
.topics-navigation {
    display: flex;
    justify-content: center;
    max-width: 50rem;
    margin: 0 auto;
}

.nav-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-normal);
    border: 1px solid var(--color-border-light);
    text-transform: lowercase;
    transition: all 0.3s ease;
}

.nav-button:hover {
    border-color: var(--color-text-normal);
    color: var(--color-hover-light);
    transform: translateY(-0.125rem);
}

/* topics page responsive */
@media (max-width: 768px) {
    .topics-list {
        gap: 1rem;
    }

    .topic-card {
        padding: 1.25rem;
    }
}

@media (max-width: 480px) {
    .topics-page {
        padding: 2rem 0 3rem;
    }

    .breadcrumb {
        margin-bottom: 1.5rem;
        font-size: 0.8125rem;
    }

    .topics-header {
        margin-bottom: 2rem;
    }

    .topics-list {
        margin-bottom: 2rem;
    }

    .topic-card {
        padding: 1rem;
    }

    .topic-header {
        margin-bottom: 0.75rem;
    }

    .nav-button {
        padding: 0.625rem 1.25rem;
    }
}

/* ====================================================================
   TOPIC CONTENT STYLES
   ==================================================================== */

/* topic content */
.topic-content {
    padding: 3rem 0 4rem;
}

.topic-content-header {
    margin-bottom: 2rem;
    max-width: 50rem;
    margin-left: auto;
    margin-right: auto;
}

.topic-content-title {
    font-size: clamp(1.75rem, 3.5vw + 1rem, 2.5rem);
    font-weight: 700;
    color: var(--color-text-heading);
    text-transform: lowercase;
}

/* topic quote */
.topic-quote {
    max-width: 50rem;
    margin: 0 auto 3rem;
    padding: 2rem;
    border-left: 3px solid var(--color-accent);
    background-color: rgba(0, 170, 0, 0.05);
}

.quote-text {
    font-size: clamp(1rem, 1.5vw + 0.5rem, 1.25rem);
    line-height: 1.8;
    color: var(--color-text-heading);
    font-style: italic;
    margin-bottom: 1rem;
}

.quote-author {
    display: block;
    font-size: clamp(0.875rem, 1vw + 0.5rem, 1rem);
    color: var(--color-text-normal);
    font-style: normal;
}

/* topic body */
.topic-body {
    max-width: 50rem;
    margin: 0 auto 3rem;
}

.topic-section {
    margin-bottom: 2.5rem;
}

.topic-section:last-child {
    margin-bottom: 0;
}

.topic-section h2 {
    font-size: clamp(1.25rem, 2vw + 0.75rem, 1.75rem);
    font-weight: 600;
    color: var(--color-text-heading);
    text-transform: lowercase;
    margin-bottom: 1rem;
}

.topic-section p {
    font-size: clamp(0.925rem, 1.5vw + 0.5rem, 1rem);
    line-height: 1.8;
    color: var(--color-text-normal);
    margin-bottom: 1rem;
}

.topic-section p:last-child {
    margin-bottom: 0;
}

.topic-section ul,
.topic-section ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.topic-section li {
    font-size: clamp(0.925rem, 1.5vw + 0.5rem, 1rem);
    line-height: 1.8;
    color: var(--color-text-normal);
    margin-bottom: 0.75rem;
}

.topic-section li:last-child {
    margin-bottom: 0;
}

.topic-section strong {
    color: var(--color-text-heading);
    font-weight: 600;
}

/* topic navigation */
.topic-navigation {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    max-width: 50rem;
    margin: 0 auto;
}

.nav-back,
.nav-next {
    flex: 1;
}

.nav-next {
    text-align: right;
}

/* topic content responsive */
@media (max-width: 768px) {
    .topic-quote {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .topic-content {
        padding: 2rem 0 3rem;
    }

    .topic-content-header {
        margin-bottom: 1.5rem;
    }

    .topic-quote {
        padding: 1rem;
        margin-bottom: 2rem;
    }

    .topic-body {
        margin-bottom: 2rem;
    }

    .topic-section {
        margin-bottom: 2rem;
    }

    .topic-section ul,
    .topic-section ol {
        margin-left: 1rem;
    }

    .topic-navigation {
        flex-direction: column;
    }
}

/* ====================================================================
   ABOUT PAGE STYLES
   ==================================================================== */

/* about page */
.about-page {
    padding: 3rem 0 4rem;
}

.about-header {
    margin-bottom: 3rem;
    max-width: 50rem;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.about-title {
    font-size: clamp(2rem, 4vw + 1rem, 3rem);
    font-weight: 700;
    color: var(--color-text-heading);
    text-transform: lowercase;
}

/* about content */
.about-content {
    max-width: 50rem;
    margin: 0 auto 3rem;
}

.about-section {
    margin-bottom: 2.5rem;
}

.about-section:last-child {
    margin-bottom: 0;
}

.about-section h2 {
    font-size: clamp(1.25rem, 2vw + 0.75rem, 1.75rem);
    font-weight: 600;
    color: var(--color-text-heading);
    text-transform: lowercase;
    margin-bottom: 1rem;
}

.about-section p {
    font-size: clamp(0.925rem, 1.5vw + 0.5rem, 1rem);
    line-height: 1.8;
    color: var(--color-text-normal);
    margin-bottom: 1rem;
}

.about-section p:last-child {
    margin-bottom: 0;
}

.about-section ul,
.about-section ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.about-section li {
    font-size: clamp(0.925rem, 1.5vw + 0.5rem, 1rem);
    line-height: 1.8;
    color: var(--color-text-normal);
    margin-bottom: 0.75rem;
}

.about-section li:last-child {
    margin-bottom: 0;
}

.about-section strong {
    color: var(--color-text-heading);
    font-weight: 600;
}

.about-link {
    color: var(--color-accent);
    text-decoration: underline;
    text-underline-offset: 0.25rem;
}

.about-link:hover {
    color: var(--color-hover-light);
}

/* about navigation */
.about-navigation {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    max-width: 50rem;
    margin: 0 auto;
}

/* about page responsive */
@media (max-width: 768px) {
    .about-header {
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .about-page {
        padding: 2rem 0 3rem;
    }

    .about-header {
        margin-bottom: 1.5rem;
    }

    .about-content {
        margin-bottom: 2rem;
    }

    .about-section {
        margin-bottom: 2rem;
    }

    .about-section ul,
    .about-section ol {
        margin-left: 1rem;
    }

    .about-navigation {
        flex-direction: column;
    }
}