/* ===================================
   CSS RESET & BASE STYLES
   =================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.5;
    overflow-x: hidden;
    background-color: #000;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.2;
}

ul,
ol {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

img,
video,
svg {
    display: block;
    max-width: 100%;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font: inherit;
}

/* ===================================
   UTILITY CLASSES
   =================================== */

/* Typography */
.text-xs {
    font-size: 0.75rem;
}

.text-sm {
    font-size: 0.875rem;
}

.text-base {
    font-size: 1rem;
}

.text-regular {
    font-size: 16px;
}

.text-medium {
    font-size: medium;
}

.text-lg {
    font-size: 1.125rem;
}

.text-large {
    font-size: large;
}

.text-xl {
    font-size: 1.25rem;
}

.text-2xl {
    font-size: 1.5rem;
}

.text-xxl {
    font-size: xx-large;
}

.text-3xl {
    font-size: 1.875rem;
}

.text-4xl {
    font-size: 2.25rem;
}

.font-thin {
    font-weight: 100;
}

.font-light {
    font-weight: 300;
}

.font-normal {
    font-weight: 400;
}

.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

.font-extrabold {
    font-weight: 800;
}

.leading-tight {
    line-height: 1.1;
}

.leading-small {
    line-height: 1.2;
}

.leading-snug {
    line-height: 1.375;
}

.leading-normal {
    line-height: 1.5;
}

.leading-relaxed {
    line-height: 1.625;
}

.leading-loose {
    line-height: 2;
}

.text-left {
    text-align: left;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-justify {
    text-align: justify;
}

.uppercase {
    text-transform: uppercase;
}

.lowercase {
    text-transform: lowercase;
}

.capitalize {
    text-transform: capitalize;
}

/* Colors */
.white {
    color: white;
}

.black {
    color: black;
}

.text-danger {
    color: #ef4444;
}

.text-gray-light {
    color: #a3a3a3;
}

.text-gray {
    color: #666;
}

/* Layout */
.flex {
    display: flex;
}

.inline-flex {
    display: inline-flex;
}

.grid {
    display: grid;
}

.block {
    display: block;
}

.inline-block {
    display: inline-block;
}

.hidden {
    display: none;
}

.invisible {
    visibility: hidden;
}

.flex-row {
    flex-direction: row;
}

.flex-col {
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

.items-start {
    align-items: flex-start;
}

.items-center {
    align-items: center;
}

.items-end {
    align-items: flex-end;
}

.items-stretch {
    align-items: stretch;
}

.justify-start {
    justify-content: flex-start;
}

.justify-center {
    justify-content: center;
}

.justify-end {
    justify-content: flex-end;
}

.justify-between {
    justify-content: space-between;
}

.justify-around {
    justify-content: space-around;
}

.gap-1 {
    gap: 0.25rem;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-8 {
    gap: 2rem;
}

/* Positioning */
.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.fixed {
    position: fixed;
}

.sticky {
    position: sticky;
}

.static {
    position: static;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.top-0 {
    top: 0;
}

.right-0 {
    right: 0;
}

.bottom-0 {
    bottom: 0;
}

.left-0 {
    left: 0;
}

/* Sizing */
.w-full {
    width: 100%;
}

.w-screen {
    width: 100vw;
}

.w-auto {
    width: auto;
}

.h-full {
    height: 100%;
}

.h-screen {
    height: 100vh;
}

.h-auto {
    height: auto;
}

.min-h-screen {
    min-height: 100vh;
}

/* Spacing */
.p-0 {
    padding: 0;
}

.p-2 {
    padding: 0.5rem;
}

.p-4 {
    padding: 1rem;
}

.p-6 {
    padding: 1.5rem;
}

.p-8 {
    padding: 2rem;
}

.m-0 {
    margin: 0;
}

.m-2 {
    margin: 0.5rem;
}

.m-4 {
    margin: 1rem;
}

.m-6 {
    margin: 1.5rem;
}

.m-8 {
    margin: 2rem;
}

.m-auto {
    margin: auto;
}

/* Border */
.rounded {
    border-radius: 0.25rem;
}

.rounded-md {
    border-radius: 0.375rem;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-xl {
    border-radius: 0.75rem;
}

.rounded-2xl {
    border-radius: 1rem;
}

.rounded-full {
    border-radius: 9999px;
}

/* Effects */
.shadow-sm {
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.shadow {
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.opacity-0 {
    opacity: 0;
}

.opacity-50 {
    opacity: 0.5;
}

.opacity-75 {
    opacity: 0.75;
}

.opacity-100 {
    opacity: 1;
}

.transition {
    transition: all 0.3s ease;
}

.transition-fast {
    transition: all 0.15s ease;
}

.transition-slow {
    transition: all 0.5s ease;
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.focus-visible:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

/* Performance */
.will-change-transform {
    will-change: transform;
}

.will-change-opacity {
    will-change: opacity;
}

.gpu-accelerated {
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Responsive containers */
.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .container {
        max-width: 640px;
    }
}

@media (min-width: 1000px) {
    .container {
        max-width: 1000px;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 1024px;
    }
}

@media (min-width: 1280px) {
    .container {
        max-width: 1280px;
    }
}

/* ===================================
   CUSTOM FONTS
   =================================== */
@font-face {
    font-family: 'modius';
    src: url('../fonts/Modius.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
    /* Performance: avoid invisible text */
}

.font-modius {
    font-family: 'modius', sans-serif;
}

@font-face {
    font-family: 'akira';
    src: url('../fonts/Akira.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

.font-akira {
    font-family: 'akira', sans-serif;
}

@font-face {
    font-family: 'armstrong';
    src: url('../fonts/Armstrong.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

.font-armstrong {
    font-family: 'armstrong', sans-serif;
}

@font-face {
    font-family: 'estoria';
    src: url('../fonts/Estoria.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

.font-estoria {
    font-family: 'estoria', sans-serif;
}

@font-face {
    font-family: 'kahless';
    src: url('../fonts/Kahless2p.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

.font-kahless {
    font-family: 'kahless', sans-serif;
}

@font-face {
    font-family: 'mregular';
    src: url('../fonts/MRegular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

.font-mregular {
    font-family: 'mregular', sans-serif;
}

@font-face {
    font-family: 'rockstar';
    src: url('../fonts/Rockstar-ExtraBold.otf') format('opentype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

.font-rockstar {
    font-family: 'rockstar', sans-serif;
}

@font-face {
    font-family: 'cosmic';
    src: url('../fonts/ca.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
.font-cosmic {
    font-family: 'cosmic', sans-serif;
}

/* ===================================
   HOMEPAGE OVERLAY STYLES
   =================================== */
.home-page {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    overflow: hidden;
    will-change: opacity, visibility;
}

/* Animated Starfield - Optimized */
.home-page::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background-image:
        radial-gradient(2px 2px at 20% 30%, white, transparent),
        radial-gradient(2px 2px at 60% 70%, white, transparent),
        radial-gradient(1px 1px at 50% 50%, white, transparent),
        radial-gradient(1px 1px at 80% 10%, white, transparent),
        radial-gradient(2px 2px at 90% 60%, white, transparent),
        radial-gradient(1px 1px at 33% 80%, white, transparent),
        radial-gradient(2px 2px at 15% 90%, white, transparent),
        radial-gradient(1px 1px at 70% 40%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1px 1px at 25% 65%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1px 1px at 45% 15%, rgba(255, 255, 255, 0.6), transparent);
    background-size: 200% 200%, 200% 200%, 300% 300%, 250% 250%, 200% 200%, 280% 280%, 220% 220%, 240% 240%, 260% 260%, 290% 290%;
    animation: stars 200s linear infinite;
    opacity: 0.3;
    will-change: transform;
}

/* Space Nebula Effect */
.home-page::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at center, rgba(100, 100, 100, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(150, 150, 150, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 20% 80%, rgba(120, 120, 120, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(80, 80, 80, 0.04) 0%, transparent 70%);
    animation: nebula 15s ease-in-out infinite alternate;
    will-change: opacity, transform;
}

.home-page.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.home-content {
    text-align: center;
    color: white;
    position: relative;
    z-index: 2;
}

.home-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 3rem;
    font-weight: 700;
    letter-spacing: 0.75em;
    text-transform: uppercase;
    background: linear-gradient(45deg, #e0e0e0, #ffffff, #d0d0d0);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.4)) drop-shadow(0 0 40px rgba(200, 200, 200, 0.3));
    animation: fadeInDown 1s ease, gradientShift 3s ease infinite, hologram 4s ease-in-out infinite;
}

/* ===================================
   ANIMATIONS
   =================================== */
@keyframes stars {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes nebula {
    0% {
        opacity: 0.4;
        transform: scale(1);
    }

    100% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

@keyframes hologram {

    0%,
    100% {
        filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.4)) drop-shadow(0 0 40px rgba(200, 200, 200, 0.3));
    }

    50% {
        filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.5)) drop-shadow(0 0 50px rgba(220, 220, 220, 0.4)) drop-shadow(0 0 60px rgba(180, 180, 180, 0.2));
    }
}

@keyframes borderGlow {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes phaseBoxGlow {

    0%,
    100% {
        filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.4));
    }

    50% {
        filter: drop-shadow(0 0 25px rgba(255, 255, 255, 0.7)) drop-shadow(0 0 35px rgba(200, 200, 200, 0.5));
    }
}

@keyframes phaseGlow {

    0%,
    100% {
        filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
    }

    50% {
        filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.6)) drop-shadow(0 0 30px rgba(200, 200, 200, 0.4));
    }
}

/* ===================================
   BUTTON STYLES
   =================================== */
.enter-btn {
    position: relative;
    background: transparent;
    border: 1px solid #c0c0c0;
    color: #e0e0e0;
    padding: clamp(15px, 4vw, 20px) clamp(40px, 8vw, 60px);
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    animation: fadeInUp 1s ease 0.3s both;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    box-shadow:
        0 0 20px rgba(200, 200, 200, 0.25),
        inset 0 0 20px rgba(255, 255, 255, 0.08);
    will-change: transform;
    font-family: mregular, sans-serif;
    font-size: 1rem;
}

.enter-btn::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #b0b0b0, #ffffff, #d0d0d0, #b0b0b0);
    background-size: 300% 300%;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s;
    animation: borderGlow 3s linear infinite;
}

.enter-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #111111;
    border-color: #ffffff;
    transform: scale(1.05);
    box-shadow:
        0 0 40px rgba(255, 255, 255, 0.4),
        0 0 60px rgba(200, 200, 200, 0.3),
        inset 0 0 30px rgba(255, 255, 255, 0.15);
}

.enter-btn:hover::before {
    opacity: 0.7;
}

.enter-btn:active {
    transform: scale(0.98);
}

.enter-btn:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 4px;
}

/* ===================================
   CONTROL BUTTONS
   =================================== */
.controls {
    position: fixed;
    bottom: 30px;
    left: 0;
    right: 0;
    display: flex;
    gap: 15px;
    z-index: 10000;
    width: 100%;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}

.control-btn {
    pointer-events: auto;
    position: relative;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #b0b0b0;
    color: #d0d0d0;
    width: 50px;
    height: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
    box-shadow:
        0 0 15px rgba(200, 200, 200, 0.2),
        inset 0 0 15px rgba(255, 255, 255, 0.08);
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #ffffff;
    color: #ffffff;
    transform: scale(1.1);
    box-shadow:
        0 0 25px rgba(255, 255, 255, 0.35),
        inset 0 0 25px rgba(255, 255, 255, 0.12);
}

.control-btn:active {
    transform: scale(0.95);
}

.control-btn:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

.sound-off-icon {
    display: none;
}

.control-btn.sound-off .sound-on-icon {
    display: none;
}

.control-btn.sound-off .sound-off-icon {
    display: block;
}

/* ===================================
   PHASE NAVIGATION
   =================================== */
.all-phases-container {
    position: fixed;
    top: 30px;
    left: 55%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: row;
    gap: 1.2rem;
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.3s ease;
    pointer-events: none;
    justify-content: center;
    max-width: 100%;
    font-family: mregular, sans-serif;
}




.all-phases-container.active {
    opacity: 1;
    pointer-events: auto;
}

.phase-box {
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.85);
    border: 0.5px solid #b0b0b0;
    backdrop-filter: blur(15px);
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
    box-shadow:
        0 0 20px rgba(200, 200, 200, 0.4),
        inset 0 0 20px rgba(255, 255, 255, 0.15);
    opacity: 0;
    transform: translateY(20px) scale(0.8);
    transition: all 0.5s ease;
    text-decoration: none;
    display: block;
    cursor: pointer;
}

.phase-box:hover,
.phase-box:focus-visible {
    background: rgba(255, 255, 255, 0.15);
    border-color: #ffffff;
    transform: translateY(0) scale(1.05);
    box-shadow:
        0 0 30px rgba(255, 255, 255, 0.5),
        inset 0 0 25px rgba(255, 255, 255, 0.2);
    outline: none;
}

.phase-box.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.phase-box-text {
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.1875em;
    text-transform: uppercase;
    color: white;
    white-space: nowrap;
    text-decoration: none;
}

.phase-text {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.375em;
    text-transform: uppercase;
    background: linear-gradient(45deg, #e0e0e0, #ffffff, #d0d0d0);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite, phaseGlow 2s ease-in-out infinite;
    text-align: center;
    transition: opacity 0.25s ease;
}

.phase-3-container,
.phase-5-container {
    position: relative;
    display: inline-block;
}

.hover-links,
.hover-links2 {
    margin-top: 10px;
    display: none;
    flex-direction: column;
    gap: 1.6rem;
    align-items: flex-start;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 14px;
    position: absolute;
    top: 3.8rem;
    left: 0;
    transition: all 0.3s ease;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.hover-links2 {
    align-items: center;
    justify-content: center;
    border-color: rgba(255, 29, 29, 0.797);
    background-color: rgba(255, 92, 92, 0.2);
    min-width: 180px;
}

.hover-links::before,
.hover-links2::before {
    content: '';
    position: absolute;
    top: -40px;
    left: 0;
    width: 100%;
    height: 40px;
    background: transparent;
    z-index: 1001;
}

.hover-links.visible,
.hover-links2.visible {
    display: flex;
}

/* Fix SVG display in navigation links */
.hover-links svg,
.hover-links2 svg {
    display: inline-block;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* Logo Styles */
.site-logo {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 10002;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    padding: 10px;
    border-radius: 8px;
    border: 0.5px solid rgba(176, 176, 176, 0.3);
    transition: all 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
}

.site-logo img {
    height: 35px;
    width: auto;
    display: block;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
    transition: all 0.3s ease;
}

.site-logo:hover {
    background: rgba(0, 0, 0, 0.85);
    border-color: rgba(255, 255, 255, 0.5);
}

.site-logo:hover img {
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.5));
    transform: scale(1.05);
}

/* Hamburger Menu Styles */
.hamburger-menu {
    display: flex;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10002;
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border: 0.5px solid rgba(176, 176, 176, 0.3);
    border-radius: 8px;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
}

.hamburger-menu:hover {
    background: rgba(0, 0, 0, 0.85);
    border-color: rgba(255, 255, 255, 0.5);
}

.hamburger-menu span {
    width: 24px;
    height: 2px;
    background: white;
    transition: all 0.3s ease;
    display: block;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 4.5px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -4.5px);
}

.mobile-menu-overlay {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(/images/helium-2.png);
    background-repeat: no-repeat;
    background-size: cover;
    backdrop-filter: blur(10px);
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mobile-menu-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 400px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px 0;
    font-family: mregular , sans-serif;
    font-size: 1rem;
}

.mobile-menu-content::-webkit-scrollbar {
    width: 6px;
}

.mobile-menu-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.mobile-menu-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.mobile-menu-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.mobile-menu-content .phase-box {
    width: 100%;
    text-align: center;
    padding: 16px 24px;
    flex-shrink: 0;
    display: block;
    background: rgba(0, 0, 0, 0.85);
    border: 0.5px solid #b0b0b0;
    backdrop-filter: blur(15px);
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
    box-shadow:
        0 0 20px rgba(200, 200, 200, 0.4),
        inset 0 0 20px rgba(255, 255, 255, 0.15);
    opacity: 1;
    transform: none;
    transition: all 0.3s ease;
    text-decoration: none;
    color: white;
}

.mobile-menu-content .phase-box:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #ffffff;
    transform: scale(1.02);
    box-shadow:
        0 0 30px rgba(255, 255, 255, 0.5),
        inset 0 0 25px rgba(255, 255, 255, 0.2);
}

.mobile-menu-content .phase-box-text {
    letter-spacing: 0.2em;
}

.mobile-phase-accordion {
    width: 100%;
    flex-shrink: 0;
}

.mobile-accordion-header {
    width: 100%;
    padding: 16px 24px;
    background: rgba(0, 0, 0, 0.85);
    border: 0.5px solid #b0b0b0;
    backdrop-filter: blur(15px);
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
    box-shadow:
        0 0 20px rgba(200, 200, 200, 0.4),
        inset 0 0 20px rgba(255, 255, 255, 0.15);
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.mobile-accordion-header:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #ffffff;
}

.mobile-accordion-header .phase-box-text {
    letter-spacing: 0.2em;
}

.mobile-accordion-chevron {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.mobile-accordion-header.active .mobile-accordion-chevron {
    transform: rotate(180deg);
}

.mobile-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-accordion-content.active {
    max-height: 500px;
    margin-top: 12px;
}

.mobile-accordion-content a {
    width: 100%;
    padding: 14px 24px;
    background: rgba(0, 0, 0, 0.85);
    border: 0.5px solid #b0b0b0;
    backdrop-filter: blur(15px);
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
    box-shadow:
        0 0 20px rgba(200, 200, 200, 0.4),
        inset 0 0 20px rgba(255, 255, 255, 0.15);
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.mobile-accordion-content a:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #ffffff;
}

.mobile-accordion-content .phase-box-text {
    font-size: 0.875rem;
    letter-spacing: 0.15em;
}

.mobile-accordion-content.phase-5 {
    padding: 0;
    border: none;
    background: transparent;
    transition: all 0.3s ease;
}

.mobile-accordion-content.phase-5.active {
    border: 1px solid rgba(255, 29, 29, 0.5);
    padding: 12px;
    background: rgba(255, 92, 92, 0.1);
    border-radius: 4px;
}

/* ===================================
   PAGE-SPECIFIC STYLES
   =================================== */
.video,
video {
    width: 100%;
    height: 100vh;
    object-fit: cover;
}

.aloxyn-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: black;
}

.aloxyn-content {
    color: white;
    text-align: left;
    height: 100vh;
    left: 0;
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
}

.aloxyn-image {
    width: 100%;
    height: 100%;
    flex-grow: 1;
}

.aloxyn-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    object-position: 80% 50%;
}

.aloxyn-text {
    max-width: 650px;
    color: white;
    padding: 20px;
    margin-left: 5rem;
    font-size: 1.2rem;
    line-height: 1.6;
    margin-top: 20%;
    width: 100%;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.aloxyn-details {
    display: flex;
    width: 100%;
    align-items: center;
}

.aloxyn-img {
    width: 100%;
    height: 100%;
    flex-grow: 1;
}

.aloxyn-details>* {
    flex: 1;
    width: 100%;
    height: 100vh;
    box-sizing: border-box;
}

.aloxyn-details .aloxyn-text {
    margin: 0;
    max-width: none;
    padding: 40px;
    width: 50%;
    flex: 1;
}

.aloxyn-details img {
    object-fit: cover;
    height: 100%;
    flex: 1;
}

.header-description {
    text-align: left;
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

#notForHumansText {
    display: inline-block;
    min-width: 180px;
    text-align: left;
    font-weight: 700;
    letter-spacing: 0.0625em;
}


.main-heading {
    position: relative;
    font-family: 'mregular';
    color: #fff;
    z-index: 2;
    font-size: 2.25rem;
    font-weight: 700;
    max-width: 2xl;
    width: fit-content;
    margin-bottom: 8px;
    /* remove the negative margin */
}

@media (max-width:1000px) {
    .main-heading {
        max-width: 420px;
    }
}

@media (max-width:480px) {
    .main-heading {
        max-width: 100%;
        font-size: 1.5rem;
    }
}

.main-paragraph {
    position: relative;
    color: #fff;
    z-index: 2;
    font-size: 18px;
    max-width: 80%;
    line-height: 1.4;
}

@media (max-width:1000px) {
    .main-paragraph {
        max-width: 420px;
    }
}

@media (max-width:480px) {
    .main-paragraph {
        max-width: 100%;
        font-size: 14px;
        line-height: 1.6;
    }
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 1000px) {
    .site-logo {
        top: 15px;
        left: 15px;
    }

    .controls {
        bottom: 20px;
        padding: 0 20px;
    }

    .control-btn {
        width: 45px;
        height: 45px;
    }

    .all-phases-container {
        display: none !important;
    }

    .hamburger-menu {
        display: flex;
    }

    .mobile-menu-overlay {
        display: block;
    }

    .phase-box {
        padding: 10px 18px;
    }

    .phase-box-text {
        font-size: 0.9rem;
        letter-spacing: 0.125em;
    }

    .aloxyn-text {
        margin-left: 0;
        margin-top: 10%;
        font-size: 1rem;
        padding: 20px;
        max-width: 100%;
    }

    .aloxyn-details {
        flex-direction: column;
    }

    .aloxyn-details>* {
        width: 100%;
        height: auto;
        min-height: 50vh;
    }

    .aloxyn-details .aloxyn-text {
        width: 100%;
        padding: 30px 20px;
        margin: 0;
    }

    .aloxyn-details div:has(img) {
        min-height: 50vh;
        height: auto;
    }

    .aloxyn-details img {
        width: 100%;
        height: 100%;
        min-height: 50vh;
        object-fit: cover;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .site-logo {
        top: 10px;
        left: 10px;
    }

    .hamburger-menu {
        top: 10px;
        right: 10px;
        width: 50px;
        height: 50px;
    }

    .hamburger-menu span {
        width: 20px;
    }

    .aloxyn-text {
        margin-left: 0;
        margin-top: 5%;
        font-size: 0.9rem;
        padding: 15px;
    }

    .aloxyn-details .aloxyn-text {
        padding: 20px 15px;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print styles */
@media print {

    .controls,
    .all-phases-container,
    .home-page {
        display: none;
    }
}

@media (max-width: 1500px) {
    .phase-box-text {
        font-size: 0.6rem;
    }
}