/* ===== ATELIUS VIBRANT DESIGN SYSTEM ===== */

:root {
    /* Colors - Highlighter Palette */
    --bg-paper: #fdfbf7;
    --text-ink: #2d3436;

    --highlight-blue: #00d2ff;
    --highlight-pink: #ff7eb3;
    --highlight-yellow: #ffeaa7;
    --highlight-green: #55efc4;

    /* Typography */
    --font-hand: 'Patrick Hand', cursive;
    --font-marker: 'Permanent Marker', cursive;
    --font-body: 'Nunito', sans-serif;

    /* Spacing */
    --container-width: 1100px;
    --section-spacing: 6rem;
}

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

body {
    background-color: var(--bg-paper);
    background-image: radial-gradient(#e0e0e0 1px, transparent 1px);
    background-size: 20px 20px;
    color: var(--text-ink);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-marker);
    line-height: 1.2;
    transform: rotate(-1deg);
}

a {
    text-decoration: none;
    color: inherit;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.marker-highlight {
    position: relative;
    display: inline-block;
    z-index: 1;
}

.marker-highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: -5px;
    width: calc(100% + 10px);
    height: 40%;
    background: var(--highlight-yellow);
    z-index: -1;
    transform: rotate(-1deg);
    opacity: 0.7;
    border-radius: 4px;
}

.highlight-pink::after {
    background: var(--highlight-pink);
}

.highlight-blue::after {
    background: var(--highlight-blue);
}

/* Components */
.btn-doodle {
    display: inline-block;
    padding: 1rem 2rem;
    font-family: var(--font-marker);
    font-size: 1.5rem;
    color: var(--text-ink);
    background: white;
    border: 3px solid var(--text-ink);
    border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
    box-shadow: 4px 4px 0 var(--text-ink);
    transition: all 0.2s ease;
    cursor: pointer;
    transform: rotate(-2deg);
}

.btn-doodle:hover {
    transform: translate(2px, 2px) rotate(-1deg);
    box-shadow: 2px 2px 0 var(--text-ink);
}

.sticker-card {
    background: white;
    padding: 2rem;
    border: 2px solid var(--text-ink);
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    position: relative;
}

.sticker-card:hover {
    transform: scale(1.05) rotate(1deg);
    z-index: 10;
}

/* Navigation */
.nav {
    padding: 1.5rem 0;
    position: relative;
}

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

.logo {
    font-family: var(--font-marker);
    font-size: 2rem;
    transform: rotate(-3deg);
    z-index: 1001;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    font-family: var(--font-hand);
    font-size: 1.2rem;
    color: var(--text-ink);
    transition: color 0.2s ease;
    position: relative;
}

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

.nav-links a.active {
    color: var(--highlight-pink);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--highlight-pink);
    border-radius: 2px;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: var(--bg-paper);
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        padding: 2rem;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.4rem;
    }

    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

    .nav-overlay.active {
        display: block;
    }
}

/* Hero Section */
.hero {
    padding: 4rem 0 8rem;
    text-align: center;
    position: relative;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.5rem;
    font-family: var(--font-hand);
    max-width: 700px;
    margin: 0 auto 3rem;
}

/* Timeline Section */
.timeline-section {
    padding: var(--section-spacing) 0;
    position: relative;
}

.timeline-path {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 4px;
    background: repeating-linear-gradient(90deg, var(--text-ink) 0, var(--text-ink) 10px, transparent 10px, transparent 20px);
    z-index: -1;
    transform: translateY(-50%);
}

.timeline-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    text-align: center;
}

.step-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    border: 3px dashed var(--text-ink);
    transform: rotate(2deg);
    height: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.step-card:nth-child(2) {
    transform: rotate(-2deg);
    margin-top: 3rem;
}

.step-card:nth-child(3) {
    transform: rotate(1deg);
}

.step-number {
    display: inline-block;
    width: 50px;
    height: 50px;
    line-height: 50px;
    background: var(--text-ink);
    color: white;
    border-radius: 50%;
    font-family: var(--font-marker);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Missions Section */
.missions {
    padding: var(--section-spacing) 0;
    background: var(--highlight-yellow);
    transform: skewY(-2deg);
}

.missions-container {
    transform: skewY(2deg);
}

.missions-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 3rem;
}

.mission-card {
    width: 250px;
    height: 350px;
    background: white;
    padding: 1.5rem;
    border: 8px solid white;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transform: rotate(var(--rot));
    transition: all 0.3s ease;
}

.mission-card:hover {
    transform: scale(1.1) rotate(0deg);
    z-index: 10;
}

.mission-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

/* Curiosity Board */
.curiosity {
    padding: var(--section-spacing) 0;
}

.curiosity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.idea-note {
    background: var(--highlight-blue);
    padding: 1.5rem;
    font-family: var(--font-hand);
    font-size: 1.2rem;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.1);
    transform: rotate(var(--rot));
}

.idea-note:nth-child(2n) {
    background: var(--highlight-pink);
}

.idea-note:nth-child(3n) {
    background: var(--highlight-green);
}

/* Footer */
.footer {
    padding: 4rem 0;
    text-align: center;
    font-family: var(--font-hand);
    font-size: 1.2rem;
}

/* Mobile */
@media (max-width: 768px) {
    .timeline-path {
        display: none;
    }

    .step-card:nth-child(2) {
        margin-top: 0;
    }

    .hero h1 {
        font-size: 3rem;
    }

    /* Scale down character sprites on mobile */
    .character-sprite {
        max-width: 100% !important;
        height: 120px !important;
        margin-bottom: 1rem !important;
    }

    .character-sprite img {
        opacity: 0.6 !important;
    }
}