@import url('https://fonts.googleapis.com/css2?family=Michroma&family=Zen+Dots&family=Orbitron:wght@400..900&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    /* HighGround Palette */
    --primary-bg: #000B1C;
    --primary-mid: #001B3D;
    --primary-dark: #000712;

    /* Text & Structure */
    --secondary-text: #FFFFFF;
    --secondary-muted: #94A3B8;

    /* Electric Cyan Accent */
    --accent: #00A5FF;
    --accent-glow: rgba(0, 165, 255, 0.4);

    /* Layout Spacing */
    --padding-mobile: 1.5rem;
    --padding-desktop: 4rem;
    --header-height: 80px;

    /* Micro-interactions */
    --transition: all 0s cubic-bezier(0.0, 0, 0, 0);
    --shutter-in-speed: 0.2s;
    /* Managed via MenuController in index.html */
    --shutter-out-speed: 0.2s;
    /* Managed via MenuController in index.html */

    /* Typography - Header Font Sizes (Even bigger & bolder) */
    --h1-size: clamp(3.5rem, 10vw, 6rem);
    --h2-size: clamp(2.3rem, 7vw, 3.2rem);
    --h3-size: clamp(1.6rem, 4vw, 2.2rem);
    --h4-size: clamp(1.0rem, 3vw, 1.4rem);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: url('Assets/Background Texture.png') center/cover no-repeat fixed;
    background-color: var(--primary-bg);
    color: var(--secondary-text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    overflow: hidden;
    /* Lock scroll for menu system */
    -webkit-font-smoothing: antialiased;
    position: relative;
    height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 11, 28, 0.4), var(--primary-bg));
    z-index: -1;
}

main {
    position: relative;
    z-index: 10;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

h1,
h2,
h3,
h4,
.logo-text {
    font-family: 'Zen Dots', cursive;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: normal;
    /* Allow natural wrapping without chemically splitting words */
    word-break: normal;
    line-height: 1.1;
}

/* --- Animated Gradient Text Glow --- */
.text-glow {
    background: linear-gradient(0deg,
            var(--secondary-text) 0%,
            var(--accent) 25%,
            #00D4FF 50%,
            var(--accent) 75%,
            var(--secondary-text) 100%);
    background-size: 100% 200%;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation:
        shineUp 8s linear infinite,
        climbHigh 4s ease-in-out infinite;
    display: inline-block;
    will-change: transform, background-position;
    text-shadow: 0 0 15px rgba(0, 165, 255, 0.4);
}

@keyframes shineUp {
    0% {
        background-position: 0% 0%;
    }

    100% {
        background-position: 0% 200%;
    }
}

@keyframes climbHigh {

    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }

    50% {
        transform: translate3d(0, -10px, 0);
    }
}


h1 {
    font-size: var(--h1-size);
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: var(--h2-size);
    margin-bottom: 2rem;
}

h3 {
    font-size: var(--h3-size);
}

h4 {
    font-size: var(--h4-size);
}

p {
    font-size: 1.1rem;
    color: var(--secondary-muted);
}

/* --- Navigation --- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(0, 11, 28, 0.9);
    backdrop-filter: blur(12px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 var(--padding-mobile);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo img {
    height: 40px;
}

.nav-links {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: rgba(0, 11, 28, 0.98);
    flex-direction: column;
    padding: 2rem;
    gap: 2rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    list-style: none;
}

.nav-links.active {
    display: flex;
}

.nav-links a {
    color: var(--secondary-text);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
    padding-bottom: 0.3rem;
    opacity: 0.8;
    display: inline-block;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent);
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--accent-glow);
}

.nav-links a:hover {
    color: var(--accent);
    opacity: 1;
}

.nav-links a:hover::after {
    width: 100%;
}

@media (min-width: 768px) {
    nav {
        padding: 0 var(--padding-desktop);
    }

    .nav-links {
        display: flex;
        position: static;
        width: auto;
        background: transparent;
        flex-direction: row;
        padding: 0;
        border: none;
        gap: 2.5rem;
    }

    .nav-links a {
        font-size: 0.9rem;
    }
}

.about-grid {
    display: grid;
    gap: 3rem;
    margin-top: 3rem;
    align-items: center;
}

@media (min-width: 992px) {
    .about-grid {
        grid-template-columns: repeat(2, 1fr);
        /* Balanced equal width columns */
        gap: 5rem;
    }
}

.about-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 2.5rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .about-card {
        padding: 4rem;
    }
}

.section {
    position: absolute;
    inset: 0;
    padding: calc(var(--header-height) + 4rem) var(--padding-mobile) 6rem;
    max-width: 100%;
    margin: 0;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transition: opacity 0.5s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start !important;
    align-items: center;
    background: rgba(0, 11, 28, 0.4);
}

/* Ensure content doesn't shrink inside flex container */
.section>div {
    flex-shrink: 0;
}

.section>div,
.section>.grid,
.section>.feature-grid {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.section.active-view {
    opacity: 1;
    visibility: visible;
    z-index: 20;
}

/* Shutter Mask / Transition Overlay */
.shutter-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    display: flex;
    flex-direction: column;
}

.shutter-bar {
    flex: 1;
    background: var(--primary-mid);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--shutter-out-speed) ease-in-out;
    border-right: 1px solid rgba(0, 165, 255, 0.1);
}

.shutter-bar:nth-child(even) {
    transform-origin: right;
    background: var(--primary-dark);
    border-left: 1px solid rgba(0, 165, 255, 0.1);
}

.shutter-overlay.active .shutter-bar {
    transform: scaleX(1);
    transition: transform var(--shutter-in-speed) ease-in-out;
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 var(--padding-mobile);
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease;
    background: transparent;
    justify-content: center;
}

.hero.active-view {
    opacity: 1;
    visibility: visible;
    z-index: 20;
}

.hero-content {
    position: relative;
    max-width: 900px;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    padding-left: 1.5rem;
    /* Space for accent line */
    background: rgba(56, 189, 248, 0.05);
    color: var(--accent);
    border: 1px solid rgba(56, 189, 248, 0.1);
    border-left: 3px solid var(--accent);
    /* Subtle accent element */
    border-radius: 4px;
    /* More techy than fully rounded pulse */
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    box-shadow: -5px 0 15px rgba(0, 165, 255, 0.2);
}

.hero p {
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

/* --- Buttons --- */
.return-link {
    color: var(--accent);
    text-decoration: none;
    font-family: 'Michroma', sans-serif;
    font-size: clamp(0.7rem, 2.5vw, 0.9rem);
    letter-spacing: clamp(0.1rem, 1.5vw, 0.2rem);
    text-transform: uppercase;
    white-space: nowrap;
    display: inline-block;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1rem, 3vw, 1.4rem) clamp(1.8rem, 5vw, 3.5rem);
    border-radius: 12px;
    font-weight: 800;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    font-size: clamp(1rem, 3.5vw, 1.35rem);
    font-family: 'Zen Dots', cursive;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    min-height: 100px;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--primary-bg);
    box-shadow: 0 0 25px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px var(--accent-glow);
}

.btn-blink {
    animation: textBlink 1.5s ease-in-out infinite;
}

@keyframes textBlink {

    from,
    to {
        opacity: 1;
        text-shadow: 0 0 10px var(--accent-glow);
    }

    50% {
        opacity: 0.4;
        text-shadow: none;
    }
}

/* --- Content Blocks --- */
.pull-quote {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-family: 'Michroma', sans-serif;
    color: var(--secondary-text);
    text-align: center;
    line-height: 1.4;
    max-width: 1000px;
    margin: 4rem auto;
    position: relative;
    padding: 0 2rem;
}

.pull-quote::before,
.pull-quote::after {
    content: '"';
    color: var(--accent);
    font-size: 5rem;
    position: absolute;
    opacity: 0.3;
}

.pull-quote::before {
    top: -2rem;
    left: 0;
}

.pull-quote::after {
    bottom: -4rem;
    right: 0;
}

.highlight-box {
    background: linear-gradient(135deg, var(--primary-mid), transparent);
    border-left: 4px solid var(--accent);
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 0 16px 16px 0;
}

.feature-grid {
    display: grid;
    gap: 2.5rem;
    margin-top: 4rem;
}

@media (min-width: 992px) {
    .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.large-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: clamp(2rem, 5vw, 4rem);
    border-radius: 20px;
    transition: var(--transition);
    height: 100%;
    /* Ensure equal height if in a grid */
    display: flex;
    flex-direction: column;
}

.large-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--accent);
}

.large-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--accent);
}

.feature-list {
    list-style: none;
    margin-top: 2rem;
}

.feature-list li {
    padding-left: 2rem;
    position: relative;
    margin-bottom: 1.2rem;
    color: var(--secondary-text);
    font-size: 1.15rem;
    line-height: 1.6;
}

.feature-list li strong {
    color: var(--accent);
}

.feature-list li::before {
    content: '→';
    color: var(--accent);
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 1.2rem;
}

/* --- Carousel --- */
.carousel-container {
    overflow: hidden;
    /* Back to hidden for ticker */
    padding: 1rem 0;
    position: relative;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;

    /* Edge Fade Effect */
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.carousel-track {
    display: flex;
    gap: 2rem;
    padding: 1rem;
    overflow-x: auto;
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
    cursor: grab;
    user-select: none;
}

.carousel-track:active {
    cursor: grabbing;
}

.carousel-track::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari and Opera */
}

.partner-card {
    flex: 0 0 350px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    transition: var(--transition);
    text-align: center;
    cursor: pointer;
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    height: 400px;
    /* Fixed height for absolute consistency */
    overflow: hidden;
    padding: 0;
    /* Remove internal padding to allow containers to take full width */
}

@media (max-width: 768px) {
    .partner-card {
        flex: 0 0 85vw;
        padding: 1.5rem;
    }
}

.partner-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.partner-logo {
    height: 70%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    background: radial-gradient(circle, rgba(255, 255, 255, 0.04) 0%, transparent 80%);
    padding: 2.5rem;
    box-sizing: border-box;
}

.partner-logo svg {
    max-width: 90%;
    max-height: 120px;
    /* Cap height to prevent oversized logos */
    width: auto;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
    object-fit: contain;
    transition: var(--transition);
}

.partner-info {
    height: 30%;
    width: 100%;
    padding: 0 1rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-sizing: border-box;
}

.partner-card:hover .partner-logo svg {
    transform: scale(1.3);
}

.partner-card:hover .partner-logo {
    color: var(--secondary-text);
}

.partner-info h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-text);
}

.partner-info p {
    font-size: 0.9rem;
    color: var(--secondary-muted);
    line-height: 1.5;
}


.grid {
    display: grid;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    margin-top: 4rem;
}

@media (min-width: 768px) {
    .section {
        padding: 120px var(--padding-desktop);
    }

    .grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: clamp(2.5rem, 5vw, 3.5rem) clamp(1.5rem, 2.5vw, 2.5rem);
    border-radius: 20px;
    transition: var(--transition);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    container-type: inline-size;
    /* Connects card to cqi logic */
}

.card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--accent);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.card-icon {
    font-size: 4.5rem;
    color: var(--accent);
    margin-bottom: 2.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

.card-icon svg {
    width: 1em;
    height: 1em;
    filter: drop-shadow(0 0 15px var(--accent-glow));
}

.card:hover .card-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 0 10px var(--accent-glow));
}

.card h3 {
    margin-bottom: 1rem;
    font-size: clamp(1.2rem, 3cqi, 1.8rem);
    /* Extremely responsive to the card width natively */
}

/* --- Mobile Menu Trigger --- */
.mobile-menu-btn {
    display: block;
    color: var(--secondary-text);
    font-size: 1.5rem;
}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
}

/* --- Floating Background Elements --- */
.floating-container {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
    /* Above body background, below main content */
}

.floating-item {
    position: absolute;
    font-size: 2.5rem;
    color: var(--accent);
    opacity: 0.15;
    filter: blur(2px);
    animation: float 25s infinite linear;
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(100px, 100px) rotate(90deg);
    }

    50% {
        transform: translate(200px, 0) rotate(180deg);
    }

    75% {
        transform: translate(100px, -100px) rotate(270deg);
    }

    100% {
        transform: translate(0, 0) rotate(360deg);
    }
}

/* --- Section Specific Animations --- */
.pull-quote {
    opacity: 1;
    transform: none;
    position: relative;
    display: block;
    /* Separation from badge */
}

.type-text {
    position: relative;
    display: inline;
}

.type-text::after {
    content: '|';
    /* More authentic typing bar */
    display: inline-block;
    color: var(--accent);
    margin-left: 2px;
    vertical-align: middle;
    animation: blinkCursor 0.75s step-end infinite;
    opacity: 0;
}

.active-view .type-text::after {
    opacity: 1;
}

@keyframes blinkCursor {

    from,
    to {
        opacity: 0
    }

    50% {
        opacity: 1;
    }
}