:root {
    --navy: #001BB7;
    --blue: #0046FF;
    --orange: #FF8040;
    --cream: #F5F1DC;
    --ink: #07103d;
    --white: #ffffff;
    --shadow-soft: 0 12px 0 rgba(0, 27, 183, 0.2);
    --shadow-hard: 0 16px 28px rgba(0, 17, 73, 0.35);
}

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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: "Chicle", cursive;
    background: var(--cream);
    color: var(--ink);
    line-height: 1.45;
    overflow-x: hidden;
}

h1,
h2,
h3,
.logo,
.btn,
.nav-link {
    font-family: "Lilita One", cursive;
    letter-spacing: 0.02em;
}

a {
    color: inherit;
}

.container {
    width: min(1100px, calc(100% - 2.25rem));
    margin-inline: auto;
}

.scene-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 16% 18%, rgba(255, 128, 64, 0.48), transparent 32%),
        radial-gradient(circle at 86% 22%, rgba(0, 70, 255, 0.32), transparent 34%),
        linear-gradient(180deg, #f7f4e2 0%, #f5f1dc 100%);
}

.orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(10px);
    opacity: 0.6;
    animation: float 8s ease-in-out infinite;
}

.orb-a {
    width: 170px;
    height: 170px;
    background: rgba(255, 128, 64, 0.6);
    top: 12%;
    left: 8%;
}

.orb-b {
    width: 220px;
    height: 220px;
    background: rgba(0, 70, 255, 0.42);
    top: 50%;
    right: 6%;
    animation-delay: -2.8s;
}

.orb-c {
    width: 140px;
    height: 140px;
    background: rgba(0, 27, 183, 0.42);
    bottom: 10%;
    left: 20%;
    animation-delay: -4.5s;
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 27, 183, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 27, 183, 0.08) 1px, transparent 1px);
    background-size: 38px 38px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 92%);
}

.section {
    padding: 5.2rem 0;
}

.section-alt {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.2));
    border-block: 3px solid rgba(0, 27, 183, 0.18);
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(245, 241, 220, 0.9);
    border-bottom: 3px solid rgba(0, 27, 183, 0.28);
}

.topbar-wrap {
    min-height: 4.9rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    text-decoration: none;
    font-size: 1.7rem;
    color: var(--navy);
}

.logo span {
    color: var(--orange);
}

.main-nav {
    margin-left: auto;
    display: flex;
    gap: 1rem;
}

.nav-link {
    text-decoration: none;
    color: var(--navy);
    padding: 0.35rem 0.45rem;
    border-radius: 0.4rem;
    transition: transform 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(0, 70, 255, 0.12);
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    width: 2.7rem;
    height: 2.5rem;
    border: 2px solid var(--navy);
    border-radius: 0.5rem;
    background: var(--white);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.28rem;
}

.menu-toggle span {
    width: 1.3rem;
    height: 2px;
    background: var(--navy);
}

.btn {
    appearance: none;
    border: 2px solid var(--navy);
    border-radius: 0.7rem;
    background: var(--blue);
    color: var(--cream);
    padding: 0.7rem 1.15rem;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-soft);
    transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.btn:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: var(--shadow-hard);
    background: var(--navy);
}

.btn:active {
    transform: translateY(2px);
}

.btn-small {
    padding: 0.58rem 0.92rem;
    font-size: 0.86rem;
}

.btn-ghost {
    background: var(--cream);
    color: var(--navy);
}

.hero {
    padding-top: 5.7rem;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 1.4rem;
    align-items: start;
}

.kicker {
    color: var(--orange);
    text-transform: uppercase;
    letter-spacing: 0.11em;
    font-size: 0.86rem;
    margin-bottom: 0.45rem;
}

.hero-copy h1 {
    font-size: clamp(2.1rem, 5vw, 4.2rem);
    color: var(--navy);
    text-shadow: 2px 2px 0 rgba(0, 70, 255, 0.18);
}

.lead {
    font-size: 1.2rem;
    margin-top: 0.7rem;
    max-width: 54ch;
    color: #19255b;
}

.hero-actions {
    margin-top: 1.2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.quest-text {
    margin-top: 0.95rem;
    color: var(--navy);
    background: rgba(255, 128, 64, 0.18);
    border: 2px dashed rgba(255, 128, 64, 0.72);
    border-radius: 0.7rem;
    padding: 0.55rem 0.75rem;
    max-width: 48ch;
}

.stat-row {
    margin-top: 1.3rem;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
}

.stat-row li {
    padding: 0.75rem;
    border: 2px solid rgba(0, 27, 183, 0.28);
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.74);
}

.stat-row strong {
    display: block;
    color: var(--blue);
    font-family: "Lilita One", cursive;
    font-size: 1.15rem;
}

.stat-row span {
    color: var(--ink);
    font-size: 0.95rem;
}

.status-panel {
    background: linear-gradient(150deg, var(--navy), #1131d6);
    border: 3px solid rgba(255, 128, 64, 0.9);
    border-radius: 1rem;
    padding: 1.3rem;
    color: var(--cream);
    box-shadow: var(--shadow-hard);
}

.status-panel h2 {
    color: var(--cream);
    font-size: 1.6rem;
    margin: 0.5rem 0 0.8rem;
}

.panel-title {
    color: #ffd4be;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.status-panel ul {
    margin-left: 1rem;
    display: grid;
    gap: 0.5rem;
}

.panel-badges {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.panel-badges span {
    background: rgba(255, 128, 64, 0.92);
    color: #4a1800;
    border-radius: 999px;
    padding: 0.26rem 0.62rem;
    font-size: 0.82rem;
}

.section-head {
    margin-bottom: 1.25rem;
}

.section-head h2 {
    color: var(--navy);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.about-grid,
.project-grid,
.feedback-grid,
.contact-layout {
    display: grid;
    gap: 1rem;
}

.about-grid,
.contact-layout {
    grid-template-columns: 1fr 1fr;
}

.project-grid,
.feedback-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card,
.project-card,
.feedback-card,
.contact-form {
    background: rgba(255, 255, 255, 0.8);
    border: 3px solid rgba(0, 27, 183, 0.35);
    border-radius: 1rem;
    padding: 1rem;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.card:hover,
.project-card:hover,
.feedback-card:hover,
.contact-form:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hard);
    border-color: var(--orange);
}

.card h3,
.project-card h3,
.feedback-card h3 {
    color: var(--navy);
    font-size: 1.45rem;
}

.card p,
.project-card p,
.feedback-card p {
    margin-top: 0.55rem;
    color: #17265a;
    font-size: 1.06rem;
}

.meter-list {
    margin-top: 0.8rem;
    display: grid;
    gap: 0.65rem;
}

.meter-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--navy);
}

.meter-track {
    margin-top: 0.35rem;
    height: 0.72rem;
    border: 2px solid rgba(0, 27, 183, 0.55);
    border-radius: 999px;
    background: rgba(0, 70, 255, 0.12);
    overflow: hidden;
}

.meter-fill {
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--orange), #ff9d6c);
    transition: width 0.95s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-bottom: 0.8rem;
}

.filter-btn,
.copy-btn,
.to-top {
    border: 2px solid var(--navy);
    border-radius: 0.6rem;
    padding: 0.45rem 0.72rem;
    text-decoration: none;
    background: rgba(0, 70, 255, 0.12);
    color: var(--navy);
    cursor: pointer;
}

.filter-btn.active {
    background: var(--orange);
    color: #411700;
    border-color: #8a3f17;
}

.project-card {
    transform-style: preserve-3d;
}

.project-card.is-hidden {
    display: none;
}

.project-tag {
    display: inline-block;
    margin-bottom: 0.3rem;
    padding: 0.22rem 0.56rem;
    border-radius: 999px;
    background: rgba(0, 70, 255, 0.15);
    color: var(--blue);
    font-size: 0.84rem;
}

.link-arrow {
    margin-top: 0.7rem;
    display: inline-flex;
    text-decoration: none;
    color: var(--blue);
    border-bottom: 2px dashed rgba(0, 70, 255, 0.5);
}

.contact-list {
    margin-top: 0.85rem;
    list-style: none;
    display: grid;
    gap: 0.6rem;
}

.contact-list li {
    border: 2px solid rgba(0, 27, 183, 0.3);
    background: rgba(255, 255, 255, 0.72);
    border-radius: 0.7rem;
    padding: 0.6rem;
}

.contact-list span {
    display: block;
    font-size: 0.82rem;
    color: rgba(0, 27, 183, 0.82);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.contact-list a {
    text-decoration: none;
    color: var(--ink);
    font-size: 1.1rem;
}

.copy-actions {
    margin-top: 0.8rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.contact-form {
    display: grid;
    gap: 0.75rem;
    align-content: start;
}

.contact-form label {
    display: grid;
    gap: 0.3rem;
    color: var(--navy);
    font-size: 1rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 2px solid rgba(0, 27, 183, 0.28);
    border-radius: 0.65rem;
    background: #fffdf2;
    padding: 0.58rem 0.7rem;
    font: inherit;
    color: var(--ink);
}

.contact-form textarea {
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(255, 128, 64, 0.28);
}

.footer {
    padding: 1.1rem 0 2rem;
    border-top: 3px solid rgba(0, 27, 183, 0.2);
}

.footer-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.6rem;
    color: var(--navy);
}

#toast-stack {
    position: fixed;
    top: 1rem;
    right: 1rem;
    display: grid;
    gap: 0.45rem;
    z-index: 300;
}

.toast {
    background: var(--navy);
    color: var(--cream);
    border: 2px solid var(--orange);
    border-radius: 0.75rem;
    padding: 0.6rem 0.75rem;
    font-size: 0.96rem;
    box-shadow: var(--shadow-hard);
    animation: toast-in 0.28s ease;
}

.feedback-btn.burst {
    animation: burst 0.35s ease;
}

.reveal {
    opacity: 0;
    transform: translateY(22px) scale(0.97);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.shake {
    animation: shake 0.35s ease;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-24px);
    }
}

@keyframes burst {
    0% {
        transform: scale(1);
    }
    35% {
        transform: scale(1.08);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes shake {
    0%,
    100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    50% {
        transform: translateX(5px);
    }
    75% {
        transform: translateX(-3px);
    }
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateX(24px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 980px) {
    .hero-layout,
    .about-grid,
    .contact-layout,
    .project-grid,
    .feedback-grid,
    .stat-row {
        grid-template-columns: 1fr;
    }

    .status-panel {
        order: -1;
    }
}

@media (max-width: 760px) {
    .menu-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: calc(100% + 0.35rem);
        left: 1rem;
        right: 1rem;
        flex-direction: column;
        background: #fffdf5;
        border: 2px solid rgba(0, 27, 183, 0.34);
        border-radius: 0.8rem;
        padding: 0.6rem;
        box-shadow: var(--shadow-hard);
    }

    .main-nav.open {
        display: flex;
    }

    .btn-small {
        display: none;
    }

    .section {
        padding: 4.4rem 0;
    }

    .hero {
        padding-top: 5rem;
    }

    #toast-stack {
        left: 1rem;
        right: 1rem;
    }

    .toast {
        width: 100%;
    }
}
