@import url("https://fonts.googleapis.com/css2?family=Rajdhani:wght@300;400;500;600;700&family=Orbitron:wght@400;700;900&family=Exo+2:wght@300;400;500;600;700&display=swap");

:root {
    color-scheme: dark;
    --surface-glass: rgba(7, 11, 16, 0.05);
    --surface-border: rgba(255, 255, 255, 0.02);
    --surface-shadow: rgba(0, 0, 0, 0.18);
    --accent-primary: #61d8ff;
    --accent-secondary: #ff92c6;
    --accent-tertiary: #f6c989;
    --body-bg: #03070d;
    --text-main: #f5f9ff;
    --text-muted: rgba(241, 246, 255, 0.72);
}

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: "Exo 2", "Rajdhani", Arial, sans-serif;
    background: #000;
    color: var(--text-main);
    min-height: 100%;
    overflow-x: hidden;
    position: relative;
}

/* Black transparent filter overlay for better text visibility */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    pointer-events: none;
    z-index: 1;
}

body {
    position: relative;
}

#background-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

#background-canvas.page {
    position: relative;
    z-index: 10;
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.page {
    position: relative;
    z-index: 5;
    padding: clamp(4rem, 6vw, 8rem) clamp(2rem, 6vw, 7rem);
    max-width: 1200px;
    margin: 0 auto;
    background: transparent;
    backdrop-filter: none;
    border: none;
    border-radius: 26px;
    box-shadow: none;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.32);
}

.page::before {
    content: "";
    position: absolute;
    inset: clamp(-2.4rem, -3vw, -1.6rem);
    background: transparent;
    border-radius: 32px;
    backdrop-filter: none;
    opacity: 0;
    pointer-events: none;
    z-index: -1;
}

.nav {
    position: sticky;
    top: 2rem;
    display: flex;
    gap: 0.6rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
    transition: all 0.4s ease;
}

.nav.collapsed {
    display: none !important;
}

.nav.collapsed.open {
    display: flex !important;
    position: fixed;
    top: 2rem;
    right: 2rem;
    margin: 0;
    z-index: 100;
    flex-direction: column;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5), rgba(10, 10, 30, 0.4));
    backdrop-filter: blur(20px) saturate(180%) brightness(0.7);
    -webkit-backdrop-filter: blur(20px) saturate(180%) brightness(0.7);
    padding: 1rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    gap: 0.6rem;
}

.nav-toggle {
    display: none;
    position: fixed;
    top: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5), rgba(10, 10, 30, 0.4));
    backdrop-filter: blur(20px) saturate(180%) brightness(0.7);
    -webkit-backdrop-filter: blur(20px) saturate(180%) brightness(0.7);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    cursor: pointer;
    z-index: 101;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.nav-toggle:hover {
    background: linear-gradient(135deg, rgba(0, 191, 255, 0.3), rgba(138, 43, 226, 0.3));
    border-color: rgba(0, 191, 255, 0.5);
}

.nav-toggle.visible {
    display: flex;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.nav a {
    border-radius: 999px;
    padding: 0.65rem 1.4rem;
    font-family: "Orbitron", monospace;
    font-size: 0.75rem;
    letter-spacing: 0.22em;
    text-decoration: none;
    color: var(--text-main);
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3), rgba(10, 10, 30, 0.25));
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), 
                inset 0 1px 0 rgba(255, 255, 255, 0.1),
                0 0 30px rgba(0, 191, 255, 0.2);
    transition: transform 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}

.nav a:hover,
.nav a:focus-visible {
    color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4), 
                inset 0 1px 0 rgba(255, 255, 255, 0.15),
                0 0 40px rgba(0, 191, 255, 0.5);
    outline: none;
}

.eyebrow {
    font-family: "Orbitron", monospace;
    letter-spacing: 0.36em;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.56);
    margin-bottom: 1.25rem;
}

.title-gradient {
    font-family: "Orbitron", monospace;
    font-size: clamp(2.8rem, 6vw, 4.8rem);
    font-weight: 900;
    line-height: 1.05;
    margin: 0 0 1.5rem 0;
    background: linear-gradient(135deg, #ff1493, #ffa500, #00bfff, #8a2be2);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: titleGradientShift 8s ease-in-out infinite;
    text-shadow: 0 0 40px rgba(255, 20, 147, 0.4);
}

@keyframes titleGradientShift {
    0%, 100% { background-position: 0% 50%; }
    25% { background-position: 100% 0%; }
    50% { background-position: 100% 100%; }
    75% { background-position: 0% 100%; }
}

.lead {
    font-size: 1.05rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 1);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.95), 
                 0 0 40px rgba(0, 0, 0, 0.8),
                 0 4px 16px rgba(0, 0, 0, 1);
    max-width: 760px;
    margin-bottom: 3rem;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(12px) saturate(150%) brightness(0.7);
    -webkit-backdrop-filter: blur(12px) saturate(150%) brightness(0.7);
    padding: 1.8rem 2.5rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), 
                inset 0 1px 0 rgba(255, 255, 255, 0.08);
}


.section-title {
    font-family: "Orbitron", monospace;
    font-size: clamp(1.8rem, 3.6vw, 2.8rem);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin: 3.5rem 0 1rem;
    color: var(--accent-primary);
}

/* Black filtered backdrop for body text only (not in cards) */
section > p:not(.eyebrow):not(.lead) {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(12px) saturate(150%) brightness(0.7);
    -webkit-backdrop-filter: blur(12px) saturate(150%) brightness(0.7);
    padding: 1.5rem 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), 
                inset 0 1px 0 rgba(255, 255, 255, 0.08);
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 1);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.95), 
                 0 0 40px rgba(0, 0, 0, 0.8),
                 0 4px 16px rgba(0, 0, 0, 1);
}

.grid {
    display: grid;
    gap: 1.6rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
    padding: 1.8rem;
    border-radius: 24px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), 
                inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px) saturate(150%) brightness(0.7);
    -webkit-backdrop-filter: blur(12px) saturate(150%) brightness(0.7);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 64px rgba(0, 0, 0, 0.4), 
                inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.card h3 {
    font-family: "Orbitron", monospace;
    letter-spacing: 0.18em;
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
    color: var(--accent-secondary);
}

.card p,
.card li {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 1);
    margin: 0 0 0.8rem 0;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.95), 
                 0 0 40px rgba(0, 0, 0, 0.8),
                 0 4px 16px rgba(0, 0, 0, 1);
}

.card ul {
    margin: 0;
    padding-left: 1.1rem;
}

.cta {
    margin: 3rem 0 0;
    padding: 2.5rem;
    border-radius: 28px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), 
                inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px) saturate(150%) brightness(0.7);
    -webkit-backdrop-filter: blur(12px) saturate(150%) brightness(0.7);
}

.cta h2 {
    font-family: "Orbitron", monospace;
    font-size: clamp(2.1rem, 4.8vw, 3rem);
    margin: 0 0 1rem 0;
}

.cta p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 1);
    margin-bottom: 1.6rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.95), 
                 0 0 40px rgba(0, 0, 0, 0.8),
                 0 4px 16px rgba(0, 0, 0, 1);
}

.cta a {
    display: inline-block;
    padding: 0.85rem 2.4rem;
    border-radius: 999px;
    font-family: "Rajdhani", sans-serif;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    text-decoration: none;
    background: linear-gradient(90deg, var(--accent-secondary), var(--accent-tertiary), var(--accent-primary));
    color: #0b0f16;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cta a:hover,
.cta a:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
    outline: none;
}

input, select, textarea {
    width: 100%;
    margin: 0.4rem 0 1.1rem;
    padding: 0.75rem 0.85rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(8, 12, 18, 0.55);
    color: var(--text-main);
    font-size: 0.95rem;
    font-family: "Exo 2", sans-serif;
    backdrop-filter: blur(14px);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(97, 216, 255, 0.2);
}

button {
    padding: 0.85rem 2.2rem;
    border-radius: 999px;
    border: none;
    font-family: "Rajdhani", sans-serif;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    background: linear-gradient(90deg, var(--accent-secondary), var(--accent-tertiary));
    color: #050a12;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button:hover,
button:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
    outline: none;
}

@media (max-width: 720px) {
    .page {
        padding: 4rem 1.6rem 3.5rem;
        border-radius: 18px;
    }

    .nav {
        justify-content: center;
        flex-wrap: wrap;
    }

    .nav a {
        padding: 0.55rem 1.1rem;
        font-size: 0.68rem;
    }
}
