/* 
   UI/UX Pro Max Design System 
   Theme: Neo-Brutalism / Soft Pop
   Reference: LearnHub (primer.jpg)
*/

:root {
    /* Colors */
    --c-bg: #FFFBF5;
    /* Cream Canvas */
    --c-ink: #1A1A1A;
    /* Almost Black (Borders/Text) */
    --c-primary: #FF6B35;
    /* Warm Orange */
    --c-secondary: #4D96FF;
    /* Sky Blue */
    --c-highlight: #FFD93D;
    /* Sunny Yellow */
    --c-green: #6BCB77;
    /* Fresh Green */
    --c-surface: #FFFFFF;
    /* Pure White */

    /* Typography */
    --font-main: 'Nunito', 'Segoe UI', sans-serif;

    /* Spacing & Layout */
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 8px;
    --radius-pill: 100px;

    --border-width: 3px;

    --container: 1200px;
    --header-h: 90px;

    /* Shadows (Hard Offset) */
    --shadow-hard: 4px 4px 0px var(--c-ink);
    --shadow-hard-hover: 6px 6px 0px var(--c-ink);
    --shadow-hard-small: 2px 2px 0px var(--c-ink);

    /* Transitions */
    --ease-bounce: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--c-bg);
    color: var(--c-ink);
    font-family: var(--font-main);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
    border: var(--border-width) solid var(--c-ink);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-hard);
}

a {
    color: inherit;
    text-decoration: none;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: var(--c-ink);
}

h1 {
    font-size: clamp(3.5rem, 6vw, 5rem);
}

h2 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
}

h3 {
    font-size: 1.75rem;
}

p {
    font-size: 1.25rem;
    color: var(--c-ink);
    font-weight: 600;
    opacity: 0.8;
}

/* Utilities */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

.section-py {
    padding: 100px 0;
}

.text-center {
    text-align: center;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Components */

/* Buttons (Chunky & Clicky) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: var(--radius-sm);
    /* Slightly rounded squares like visual example from user */
    font-weight: 800;
    font-size: 1.125rem;
    border: var(--border-width) solid var(--c-ink);
    box-shadow: var(--shadow-hard);
    transition: all 0.1s ease;
    cursor: pointer;
    text-transform: capitalize;
}

/* Pill variant if defined specifically */
.btn-pill {
    border-radius: var(--radius-pill);
}

.btn-primary {
    background-color: var(--c-green);
    /* Matching "Start Free" green from ref */
    color: var(--c-ink);
}

.btn-primary:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px var(--c-ink);
}

.btn-primary:hover {
    background-color: #5AB365;
}

.btn-secondary {
    background-color: var(--c-secondary);
    /* Blue like "Browse Courses" */
    color: var(--c-ink);
}

.btn-secondary:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px var(--c-ink);
}

.btn-outline {
    background-color: transparent;
    color: var(--c-ink);
}

.btn-outline:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Navbar (Floating Pill) */
.nav-pill {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--c-surface);
    padding: 15px 30px;
    border-radius: var(--radius-pill);
    /* Hard pill shape */
    border: var(--border-width) solid var(--c-ink);
    box-shadow: var(--shadow-hard);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    width: 90%;
    max-width: 1000px;
}

.nav-logo {
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--c-ink);
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--c-primary);
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 2px solid var(--c-ink);
    font-size: 1.25rem;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-link {
    font-weight: 700;
    font-size: 1rem;
    color: var(--c-ink);
    transition: color 0.2s;
}

.nav-link:hover {
    text-decoration: underline;
    text-decoration-thickness: 3px;
    text-decoration-color: var(--c-primary);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--c-ink);
    margin-bottom: 5px;
    border-radius: 2px;
    transition: all 0.3s;
}

.hamburger span:last-child {
    margin-bottom: 0;
}

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--c-bg);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mobile-menu.active {
    transform: translateY(0);
}

.mobile-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    font-size: 3rem;
    font-weight: 900;
    cursor: pointer;
    color: var(--c-ink);
}

.mobile-links {
    display: flex;
    flex-direction: column;
    gap: 30px;
    text-align: center;
}

.mobile-link {
    font-size: 2rem;
    font-weight: 900;
    color: var(--c-ink);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding-top: 160px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-text {
    position: relative;
}

/* Badge (New Feature!) */
.badge {
    display: inline-block;
    background-color: var(--c-green);
    color: var(--c-ink);
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    border: 2px solid var(--c-ink);
    font-weight: 800;
    font-size: 0.9rem;
    margin-bottom: 24px;
    box-shadow: var(--shadow-hard-small);
}

.hero-text h1 {
    margin-bottom: 24px;
    color: var(--c-ink);
}

.hero-text p {
    margin-bottom: 40px;
    font-size: 1.35rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 450px;
    /* Reduced from 500px */
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-card {
    background: var(--c-surface);
    border: var(--border-width) solid var(--c-ink);
    border-radius: var(--radius-lg);
    padding: 12px;
    box-shadow: 4px 4px 0px var(--c-ink);
    width: 100%;
    max-width: 340px;
    position: relative;
    z-index: 2;
    transform: scale(0.75);
}

.hero-card img {
    width: 100%;
    margin-bottom: 12px;
    /* Reduced from 20px */
    border: 2px solid var(--c-ink);
    box-shadow: none;
    /* Reset standard img shadow inside card */
    border-radius: var(--radius-sm);
}

/* Progress Bar (Decoration) */
.progress-container {
    height: 20px;
    /* Reduced from 24px */
    background: #E0E0E0;
    border: 2px solid var(--c-ink);
    border-radius: var(--radius-pill);
    overflow: hidden;
    margin-bottom: 12px;
    /* Reduced from 20px */
}

.progress-bar {
    height: 100%;
    background: var(--c-green);
    width: 65%;
    border-right: 2px solid var(--c-ink);
}

/* Sticker Decorations */
.sticker {
    position: absolute;
    z-index: 3;
    background: var(--c-highlight);
    border: 2px solid var(--c-ink);
    border-radius: var(--radius-sm);
    padding: 12px;
    box-shadow: 4px 4px 0px var(--c-ink);
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.sticker-1 {
    top: -20px;
    right: -20px;
    transform: rotate(10deg);
    background: var(--c-secondary);
    border-radius: 50%;
    width: 60px;
    height: 60px;
}

.sticker-2 {
    bottom: -30px;
    left: -10px;
    transform: rotate(-10deg);
    background: #E6E6FA;
}

/* Marquee */
.marquee {
    background: var(--c-ink);
    color: var(--c-surface);
    padding: 24px 0;
    border-top: var(--border-width) solid var(--c-ink);
    border-bottom: var(--border-width) solid var(--c-ink);
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    transform: rotate(-2deg) scale(1.02);
    margin: 60px 0;
    box-shadow: var(--shadow-hard);
}

.marquee-content {
    display: inline-block;
    animation: scroll 20s linear infinite;
    font-weight: 900;
    font-size: 2rem;
    text-transform: uppercase;
}

.marquee-item {
    margin: 0 40px;
    -webkit-text-stroke: 1px var(--c-surface);
    /* Outline text effect? Or just solid */
    /* Let's keep solid white for readability */
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.bento-item {
    background: var(--c-surface);
    border: var(--border-width) solid var(--c-ink);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-hard);
    transition: transform 0.2s;
    position: relative;
}

.bento-item:hover {
    transform: translate(-4px, -4px);
    box-shadow: 8px 8px 0px var(--c-ink);
}

.bento-large {
    grid-column: span 2;
    background: var(--c-ink);
    color: var(--c-surface);
}

.bento-large h3,
.bento-large p {
    color: var(--c-surface);
}

.bento-tall {
    grid-row: span 2;
    background: var(--c-highlight);
}

.bento-icon {
    width: 60px;
    height: 60px;
    background: var(--c-bg);
    border: 2px solid var(--c-ink);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 24px;
    box-shadow: 2px 2px 0px var(--c-ink);
}

/* Contact Form */
.form-container {
    background: var(--c-surface);
    border: var(--border-width) solid var(--c-ink);
    border-radius: var(--radius-lg);
    padding: 60px;
    box-shadow: var(--shadow-hard-hover);
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 24px;
}

.form-input {
    width: 100%;
    background: var(--c-bg);
    border: 2px solid var(--c-ink);
    border-radius: var(--radius-sm);
    padding: 16px;
    font-family: inherit;
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--c-ink);
    outline: none;
    transition: all 0.2s;
}

.form-input:focus {
    box-shadow: 4px 4px 0px var(--c-secondary);

    transform: translate(-2px, -2px);
}

.form-consent {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    font-weight: 700;
}

.form-consent input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border: 2px solid var(--c-ink);
    border-radius: 4px;
    background: var(--c-bg);
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
}

.form-consent input[type="checkbox"]:checked {
    background: var(--c-primary);
}

.form-consent input[type="checkbox"]:checked::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--c-ink);
    font-weight: 900;
    font-size: 1.2rem;
}

.form-consent a {
    color: var(--c-primary);
    text-decoration: underline;
    text-decoration-thickness: 2px;
}

.form-consent a:hover {
    color: var(--c-ink);
}

/* FAQ Accordion */
.faq-item {
    background: var(--c-surface);
    border: var(--border-width) solid var(--c-ink);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    box-shadow: var(--shadow-hard);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-question {
    padding: 24px;
    font-weight: 800;
    font-size: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: var(--c-surface);
    border-bottom: 2px solid transparent;
    /* Hidden by default */
    transition: all 0.3s;
}

.faq-item.active .faq-question {
    border-bottom: 2px solid var(--c-ink);
    background: #FFF8E1;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: var(--c-surface);
}

.faq-answer p {
    padding: 24px;
    margin: 0;
    /* Override default p margin */
    font-size: 1.1rem;
    opacity: 0.9;
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 900;
    transition: transform 0.3s;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: var(--c-primary);
}

.footer {
    background: var(--c-ink);
    color: var(--c-surface);
    padding: 80px 0;
    border-top: var(--border-width) solid var(--c-ink);
}

.footer-flex {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    text-align: left;
}

.footer-content {
    flex: 1;
    max-width: 600px;
}

/* Cases Grid - Horizontal Scroll */
.cases-grid {
    display: flex;
    overflow-x: auto;
    gap: 30px;
    padding: 20px 0 40px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.cases-grid::-webkit-scrollbar {
    height: 10px;
}

.cases-grid::-webkit-scrollbar-track {
    background: var(--c-bg);
    border: 2px solid var(--c-ink);
    border-radius: 5px;
}

.cases-grid::-webkit-scrollbar-thumb {
    background: var(--c-primary);
    border: 2px solid var(--c-ink);
    border-radius: 5px;
}

.case-item {
    flex: 0 0 350px;
    scroll-snap-align: start;
    cursor: pointer;
    perspective: 1000px;
}

.case-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.4s var(--ease-bounce);
    border: var(--border-width) solid var(--c-ink);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-hard);
    background: white;
    /* Added background to make it look clean even if loading */
}

.case-item:hover img {
    transform: scale(1.05) rotate(2deg) translateY(-10px);
    box-shadow: 12px 12px 0px var(--c-ink);
}

/* Footer Card */
.footer-card {
    background: var(--c-surface);
    border: 2px solid var(--c-ink);
    border-radius: var(--radius-md);
    padding: 15px;
    box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.5);
    width: fit-content;
    margin: 0;
    position: relative;
    color: var(--c-ink);
    transform: scale(0.85) rotate(-2deg);
}

.footer-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.footer-postcard {
    max-width: 150px;
    display: block;
    border: 2px solid var(--c-ink);
    border-radius: 8px;
    box-shadow: none !important;
    /* Overriding global image shadow */
}

.sticker-stamp {
    background: white;
    border: 2px solid var(--c-ink);
    border-radius: 4px;
    /* Small base rounding */
    padding: 6px 10px;
    font-size: 1.25rem;
    box-shadow: 4px 4px 0px var(--c-ink);
    transform: rotate(5deg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;

    /* Perforated edges effect using a negative radial gradient background */
    background-image:
        radial-gradient(circle at center, transparent 3px, white 3.5px);
    background-size: 10px 10px;
    background-position: -5px -5px;

    /* Ensuring the icon stays on top and visible */
    z-index: 1;
}

.sticker-stamp::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 2px solid var(--c-ink);
    background: white;
    z-index: -1;
    border-radius: 2px;
}

/* Mobile */
@media (max-width: 1024px) {
    .footer-flex {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .footer-card {
        margin: 0 auto;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-text p {
        margin-left: auto;
        margin-right: auto;
    }

    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-large {
        grid-column: span 1;
    }
}

@media (max-width: 600px) {
    .nav-pill {
        width: 95%;
        padding: 12px 20px;
    }

    .nav-links {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .nav-cta {
        display: none;
        /* Hide 'Contact' button on mobile to save space */
    }

    h1 {
        font-size: 2.5rem;
    }
}