.navbar {
    background: transparent;
}

.nav-links a {
    color: white;
}

.nav-links a.active {
    color: white;
}

.btn-secondary {
    color: white;
}

.legal-page-body {
    background: var(--color-primary-950, #080127);
    color: var(--color-surface-white);
}

.legal-page {
    padding: var(--section-padding);
}

.legal-card {
    max-width: 880px;
    margin: 0 auto;
    background: rgba(14, 6, 51, 0.96);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 18px 60px rgba(5, 0, 40, 0.55);
    padding: 32px 28px 36px;
}

.legal-header h1 {
    font-family: Staatliches, var(--font-secondary);
    font-size: 32px;
    line-height: 32px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.legal-header p {
    font-size: 15px;
    color: var(--color-neutral-200, #CCCCCC);
    margin-bottom: 4px;
}

.legal-meta {
    font-size: 12px;
    color: var(--color-neutral-400, #999999);
    margin-bottom: 18px;
}

.legal-content h2 {
    font-size: 18px;
    margin: 22px 0 6px;
    font-family: Switzer Variable, var(--font-secondary);
}

.legal-content p {
    font-size: 14px;
    line-height: 22px;
    color: var(--color-neutral-200, #CCCCCC);
    margin: 0 0 6px;
}

.legal-content a {
    color: var(--color-primary-300, #9179FF);
    text-decoration: none;
}

.legal-content a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .legal-page {
        padding: 24px 12px 32px;
    }

    .legal-card {
        padding: 22px 16px 26px;
        border-radius: 18px;
    }

    .legal-header h1 {
        font-size: 26px;
    }
}

/* ========================================
   Contact Section
   ======================================== */
.contact-section {
    padding: var(--section-padding);
    background: var(--color-primary-950, #080127);
}

.contact-card {
    max-width: 720px;
    margin: 0 auto;
    background: rgba(14, 6, 51, 0.9);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 18px 60px rgba(5, 0, 40, 0.55);
    padding: 32px 24px 28px 24px;
}

.contact-header h2 {
    font-family: Staatliches, var(--font-secondary);
    font-size: 32px;
    line-height: 32px;
    letter-spacing: 1px;
    color: var(--color-surface-white);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.contact-header p {
    font-size: 16px;
    line-height: 24px;
    color: var(--color-neutral-200, #CCCCCC);
    margin-bottom: 24px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    /* gap: 18px; */
}

.form-row {
    width: 100%;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-field label {
    font-size: 14px;
    font-family: Inter, sans-serif;
    font-weight: 500;
    color: var(--color-neutral-100, #EFEFEF);
}

.form-field label span {
    color: #ff6b81;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 13px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(10, 3, 40, 0.9);
    color: var(--color-surface-white);
    font-size: 14px;
    font-family: Inter, sans-serif;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: var(--color-neutral-400, #999999);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: var(--color-primary-400, #6D4CFF);
    box-shadow: 0 0 0 1px rgba(109, 76, 255, 0.5);
    background: rgba(12, 5, 46, 0.95);
}

.contact-submit {
    margin-top: 10px;
    width: 100%;
}

/* Mobile tweaks */
@media (max-width: 600px) {
    .contact-card {
        border-radius: 20px;
        padding: 24px 16px 22px 16px;
    }

    .contact-header h2 {
        text-align: left;
        font-size: 26px;
    }

    .contact-header p {
        font-size: 14px;
        line-height: 22px;
    }

    .contact-submit {
        height: 44px;
        font-size: 15px;
    }
}

.error-msg {
    color: #ff6b81;
    font-size: 12px;
    line-height: 16px;
    min-height: 16px;
}

.success-msg {
    color: #4ade80;
    font-size: 12px;
    line-height: 16px;
    min-height: 16px;
}

.form-field.invalid input,
.form-field.invalid textarea {
    border-color: #ff6b81;
}

#toast-container {
    position: fixed;
    right: 16px;
    bottom: 600px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    min-width: 260px;
    max-width: 340px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 14px;
    font-family: Inter, sans-serif;
    color: #f9fafb;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
    transform: translateY(20px);
    opacity: 0;
    animation: toast-in 0.28s ease-out forwards;
}

.toast-success {
    background: linear-gradient(135deg, #16a34a, #4ade80);
}

.toast-error {
    background: linear-gradient(135deg, #b91c1c, #f97373);
}

.toast-close {
    margin-left: auto;
    cursor: pointer;
    font-weight: 600;
    opacity: 0.9;
}

@keyframes toast-in {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.97);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes toast-out {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    100% {
        opacity: 0;
        transform: translateY(10px) scale(0.97);
    }
}

/* --- 1. Layout Structure (Split Screen) --- */
.contact-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    position: relative;
    z-index: 2;
}

/* Ensure the form doesn't stretch too wide on desktop */
.contact-card {
    flex: 1;
    max-width: 550px;
    width: 100%;
    /* Keep your existing styles, but remove margin: 0 auto */
    margin: 0;
}

/* --- 2. Left Side Visuals --- */
.contact-visuals {
    flex: 1;
    position: relative;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.visual-content h1 {
    font-family: Staatliches, sans-serif;
    /* Using your existing font */
    font-size: 56px;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 20px;
    position: relative;
    z-index: 10;
}

.visual-content h1 .highlight {
    background: linear-gradient(90deg, #6D4CFF, #ff6b81);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.visual-content p {
    font-family: Inter, sans-serif;
    color: var(--color-neutral-200, #CCCCCC);
    font-size: 18px;
    max-width: 400px;
    position: relative;
    z-index: 10;
}

/* --- 3. The Animation (Instrings Vibe) --- */
.animation-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    /* Let clicks pass through */
}

/* Glowing Orbs (The background blobs) */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.6;
    animation: float 10s infinite ease-in-out;
}

.orb-1 {
    width: 300px;
    height: 300px;
    background: #6D4CFF;
    /* Primary Purple */
    top: -20px;
    left: -50px;
    animation-delay: 0s;
}

.orb-2 {
    width: 250px;
    height: 250px;
    background: #ff6b81;
    /* Accent Pink/Red */
    bottom: -20px;
    right: 50px;
    animation-delay: -5s;
}

/* Abstract Floating Cards (Glassmorphism) */
.glass-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    display: flex;
    /* Add this */
    align-items: center;
    /* Add this */
    justify-content: center;
    /* Add this */
    color: rgba(255, 255, 255, 0.8);
}

.float-1 {
    width: 80px;
    height: 80px;
    top: 20%;
    right: 10%;
    animation: floatCard 6s infinite ease-in-out;
}

.float-2 {
    width: 120px;
    height: 120px;
    bottom: 11%;
    left: 68%;
    animation: floatCard 8s infinite ease-in-out reverse;
}

/* --- 4. Keyframe Animations --- */
@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}

@keyframes floatCard {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }

    100% {
        transform: translateY(0) rotate(0deg);
    }
}

/* --- 5. Mobile Responsiveness --- */
@media (max-width: 992px) {
    .contact-wrapper {
        flex-direction: column;
        gap: 40px;
    }

    .contact-visuals {
        min-height: auto;
        text-align: center;
        padding-bottom: 20px;
    }

    .visual-content p {
        margin: 0 auto;
    }

    /* Reduce animation intensity on mobile */
    .orb-1,
    .orb-2 {
        width: 200px;
        height: 200px;
        filter: blur(50px);
    }
}

/* --- 404 Section Layout --- */
.error-section {
    position: relative;
    height: 100vh;
    /* Full viewport height */
    width: 100%;
    background: var(--color-primary-950, #080127);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.error-content {
    position: relative;
    z-index: 10;
    max-width: 600px;
    margin: 0 auto;
}

/* --- The Glitch Text Effect --- */
.glitch-wrapper {
    display: inline-block;
    margin-bottom: 10px;
}

.glitch {
    font-family: Staatliches, sans-serif;
    font-size: 150px;
    line-height: 1;
    font-weight: 700;
    color: #fff;
    position: relative;
    letter-spacing: 5px;
}

/* Creating the glitch layers */
.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-primary-950, #080127);
    /* Matches background to hide main text */
}

/* Layer 1: Pink/Red shift */
.glitch::before {
    left: 2px;
    text-shadow: -2px 0 #ff6b81;
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

/* Layer 2: Blue/Purple shift */
.glitch::after {
    left: -2px;
    text-shadow: -2px 0 #6D4CFF;
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2.5s infinite linear alternate-reverse;
}

/* --- Typography --- */
.error-content h2 {
    font-family: Staatliches, sans-serif;
    font-size: 42px;
    color: #fff;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.error-content p {
    font-family: Inter, sans-serif;
    font-size: 18px;
    color: var(--color-neutral-200, #CCCCCC);
    margin-bottom: 40px;
    line-height: 1.6;
}

/* --- Button Styling --- */
.btn-home {
    display: inline-flex;
    align-items: center;
    padding: 14px 32px;
    background: #6D4CFF;
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-family: Inter, sans-serif;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(109, 76, 255, 0.4);
}

.btn-home:hover {
    transform: translateY(-2px);
    background: #5835ff;
    box-shadow: 0 8px 25px rgba(109, 76, 255, 0.6);
}

/* --- Background Tech Grid (Optional Texture) --- */
.tech-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 0;
    pointer-events: none;
}

/* --- Animation Keyframes --- */
@keyframes glitch-anim {
    0% {
        clip: rect(12px, 9999px, 50px, 0);
    }

    20% {
        clip: rect(80px, 9999px, 100px, 0);
    }

    40% {
        clip: rect(10px, 9999px, 80px, 0);
    }

    60% {
        clip: rect(40px, 9999px, 90px, 0);
    }

    80% {
        clip: rect(75px, 9999px, 5px, 0);
    }

    100% {
        clip: rect(30px, 9999px, 60px, 0);
    }
}

@keyframes glitch-anim-2 {
    0% {
        clip: rect(65px, 9999px, 100px, 0);
    }

    20% {
        clip: rect(10px, 9999px, 50px, 0);
    }

    40% {
        clip: rect(90px, 9999px, 10px, 0);
    }

    60% {
        clip: rect(15px, 9999px, 70px, 0);
    }

    80% {
        clip: rect(50px, 9999px, 40px, 0);
    }

    100% {
        clip: rect(5px, 9999px, 80px, 0);
    }
}

/* Mobile Tweaks */
@media (max-width: 600px) {
    .glitch {
        font-size: 100px;
    }

    .error-content h2 {
        font-size: 32px;
    }

    .error-content p {
        font-size: 16px;
        padding: 0 20px;
    }
}