/* CSS Reset & Variables */
:root {
    --bg-color: #030307;
    --text-primary: #ffffff;
    --text-secondary: #a0a0ba;
    --accent-blue: #00f0ff;
    --accent-purple: #bd00ff;
    --accent-orange: #ff7b00;
    --glass-bg: rgba(10, 10, 20, 0.4);
    --glass-border: rgba(255, 255, 255, 0.05);
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --cursor-color: #00f0ff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    user-select: none;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: none; /* Hide scrollbar Firefox */
}

html::-webkit-scrollbar {
    display: none; /* Hide scrollbar Chrome/Safari */
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    min-height: 100vh;
}

/* Three.js Background Canvas */
#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}

/* Ambient Visual Effects */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: center center;
    z-index: 1;
    pointer-events: none;
}

.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.15;
    z-index: 1;
    pointer-events: none;
    transition: all 1.5s ease-in-out;
}

#glow-orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-blue) 0%, transparent 70%);
    top: -100px;
    left: -100px;
}

#glow-orb-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-purple) 0%, transparent 70%);
    bottom: -150px;
    right: -150px;
}

/* Custom Cursor */
.custom-cursor {
    width: 40px;
    height: 40px;
    border: 1px solid var(--cursor-color);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: width 0.3s, height 0.3s, background-color 0.3s, border-color 0.3s;
    transition-timing-function: cubic-bezier(0.1, 0.8, 0.2, 1);
}

.custom-cursor-dot {
    width: 6px;
    height: 6px;
    background-color: var(--cursor-color);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
}

/* Cursor Hover states */
body.hovering-link .custom-cursor {
    width: 60px;
    height: 60px;
    background-color: rgba(0, 240, 255, 0.05);
    border-color: var(--accent-blue);
}

body.hovering-btn .custom-cursor {
    width: 50px;
    height: 50px;
    background-color: rgba(189, 0, 255, 0.1);
    border-color: var(--accent-purple);
    mix-blend-mode: difference;
}

/* Header & Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.logo {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.9rem;
    letter-spacing: -2px;
    color: var(--text-primary);
    text-transform: uppercase;
    line-height: 1;
}

.nav-links {
    display: flex;
    gap: 40px;
    padding: 10px 30px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.nav-link {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: color 0.3s;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--accent-blue);
    transition: width 0.3s, left 0.3s;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link.active {
    color: var(--accent-blue);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.nav-link.active::after {
    width: 100%;
    left: 0;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-action-link {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    transition: opacity 0.3s;
}

.nav-action-link:hover {
    opacity: 0.8;
}

.nav-lang {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.3s;
}

.nav-lang:hover {
    color: var(--text-primary);
}

.menu-toggle {
    background: transparent;
    border: none;
    width: 20px;
    height: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    padding: 0;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    transition: transform 0.3s, opacity 0.3s;
}

/* Side HUD Elements */
.hud-left {
    position: fixed;
    bottom: 60px;
    left: 60px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.hud-line {
    width: 40px;
    height: 2px;
    background-color: var(--accent-blue);
    box-shadow: 0 0 8px var(--accent-blue);
}

.hud-text {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    letter-spacing: 3px;
    color: var(--text-secondary);
}

.hud-coordinates {
    font-family: monospace;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
}

.hud-right {
    position: fixed;
    bottom: 60px;
    right: 60px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 25px;
}

.hud-indicators {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hud-dot {
    width: 6px;
    height: 6px;
    border: 1px solid var(--text-secondary);
    border-radius: 50%;
    transition: background-color 0.3s, border-color 0.3s, transform 0.3s;
}

.hud-dot.active {
    background-color: var(--accent-blue);
    border-color: var(--accent-blue);
    box-shadow: 0 0 8px var(--accent-blue);
    transform: scale(1.4);
}

.hud-text-vertical {
    writing-mode: vertical-rl;
    text-transform: uppercase;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    letter-spacing: 3px;
    color: var(--text-secondary);
    transform: rotate(180deg);
}

/* Scroll Progress Bar */
.scroll-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 3px;
    z-index: 101;
    background-color: rgba(255, 255, 255, 0.02);
}

.scroll-progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple), var(--accent-orange));
    box-shadow: 0 0 8px var(--accent-blue);
}

/* Content Container & Scroll Sections */
.content-container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.section {
    min-height: 100vh;
    width: 100%;
    padding: 120px 10%;
    display: flex;
    align-items: center;
    justify-content: flex-end; /* Text on the right by default */
    opacity: 0.15;
    transform: translateY(50px);
    transition: opacity 1.2s cubic-bezier(0.25, 1, 0.5, 1), transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.section.active-section {
    opacity: 1;
    transform: translateY(0);
}

.section-content {
    max-width: 50%;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Asymmetry / Layout variance */
.section.left-align {
    justify-content: flex-start;
}
.section-content.left-align {
    max-width: 55%;
}

.section-content.centered {
    max-width: 70%;
    margin: 0 auto;
    align-items: center;
    text-align: center;
}

/* Typography styles */
.badge {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 4px;
    color: var(--accent-blue);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
}

.badge::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 1px;
    background-color: var(--accent-blue);
}

h1 {
    font-family: var(--font-heading);
    font-size: 6.5rem;
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -2px;
    color: var(--text-primary);
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.05);
}

h2 {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -1px;
    text-transform: uppercase;
    color: var(--text-primary);
}

.section-lead {
    font-size: 1.6rem;
    font-weight: 300;
    line-height: 1.5;
    color: var(--text-secondary);
}

.section-lead span {
    color: var(--text-primary);
    font-weight: 500;
}

.section-desc {
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.7;
    color: var(--text-secondary);
}

.section-desc.max-w-600 {
    max-width: 600px;
}

/* Scroll prompt mouse anim */
.scroll-prompt {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 30px;
}

.scroll-mouse {
    width: 20px;
    height: 32px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    position: relative;
}

.scroll-wheel {
    width: 4px;
    height: 6px;
    background-color: var(--accent-blue);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel-anim 1.5s infinite;
}

/* Custom SVG Grain Overlay */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.045;
    pointer-events: none;
    z-index: 9999;
}

/* Corner Decor Crosshairs */
.corner-decor {
    position: absolute;
    font-family: monospace;
    font-size: 0.9rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.15);
    pointer-events: none;
    z-index: 5;
    user-select: none;
}
.corner-decor.top-left { top: 30px; left: 30px; }
.corner-decor.top-right { top: 30px; right: 30px; }
.corner-decor.bottom-left { bottom: 30px; left: 30px; }
.corner-decor.bottom-right { bottom: 30px; right: 30px; }

/* Hero Tech Readout */
.hero-tech-readout {
    position: absolute;
    top: 130px;
    right: 10%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-family: monospace;
    font-size: 0.72rem;
    letter-spacing: 1px;
    color: var(--text-secondary);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    padding-left: 15px;
    z-index: 5;
}
.readout-item {
    display: flex;
    gap: 8px;
}
.readout-item span:first-child {
    color: rgba(255, 255, 255, 0.25);
}

/* Outlined Header Font */
.text-outline {
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.25);
    transition: -webkit-text-stroke 0.4s, text-shadow 0.4s;
}
h1:hover .text-outline {
    -webkit-text-stroke: 1px var(--accent-blue);
    text-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

/* Bespoke Bento Grid Layout */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 20px;
    width: 100%;
    margin-top: 35px;
}

.bento-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 35px 30px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 25px;
    transition: border-color 0.4s, transform 0.4s, box-shadow 0.4s;
    position: relative;
    overflow: hidden;
}

.bento-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at bottom left, rgba(255, 255, 255, 0.015), transparent 60%);
    pointer-events: none;
}

.bento-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.bento-card.span-2 {
    grid-column: span 2;
}

.bento-meta {
    font-family: monospace;
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.35);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 12px;
}

.bento-body h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

.bento-body p {
    font-size: 0.85rem;
    font-weight: 300;
    line-height: 1.6;
    color: var(--text-secondary);
}

.bento-telemetry {
    display: flex;
    justify-content: space-between;
    font-family: monospace;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.25);
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding-top: 12px;
}

.glowing {
    color: var(--accent-blue);
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.3);
}

/* Asymmetric DNA Split Layout */
.dna-split {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    width: 100%;
    margin-top: 35px;
    text-align: left;
}

.dna-left {
    display: flex;
    flex-direction: column;
}

.hud-box {
    background: rgba(10, 10, 20, 0.5);
    border: 1px solid rgba(0, 240, 255, 0.12);
    border-radius: 14px;
    padding: 30px;
    font-family: monospace;
    box-shadow: inset 0 0 15px rgba(0, 240, 255, 0.02);
}

.hud-box-header {
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: var(--accent-blue);
    border-bottom: 1px solid rgba(0, 240, 255, 0.12);
    padding-bottom: 15px;
    margin-bottom: 20px;
    font-weight: 600;
}

.hud-box-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
}

.hud-box-row span:first-child {
    color: rgba(255, 255, 255, 0.3);
}

.accent-color {
    color: var(--accent-purple);
    text-shadow: 0 0 8px rgba(189, 0, 255, 0.3);
}

.dna-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dna-row {
    display: flex;
    gap: 25px;
    padding: 25px 30px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    backdrop-filter: blur(10px);
    transition: border-color 0.4s, background-color 0.4s, transform 0.4s;
}

.dna-row:hover {
    border-color: rgba(189, 0, 255, 0.15);
    background: rgba(189, 0, 255, 0.015);
    transform: translateX(6px);
}

.dna-row-num {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--accent-purple);
    opacity: 0.7;
}

.dna-row-body h4 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.dna-row-body p {
    font-size: 0.88rem;
    font-weight: 300;
    line-height: 1.55;
    color: var(--text-secondary);
}

/* Portal Controls */
.portal-controls {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
    max-width: 900px;
    margin: 40px auto 25px auto;
    background: rgba(10, 10, 20, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px 40px;
    backdrop-filter: blur(15px);
}

.control-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.control-group label {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.control-group input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    outline: none;
}

.control-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent-blue);
    cursor: pointer;
    box-shadow: 0 0 10px var(--accent-blue);
    transition: transform 0.2s;
}

.control-group input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.control-group select {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px 15px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.85rem;
    outline: none;
    cursor: pointer;
    transition: border-color 0.3s;
}

.control-group select:focus {
    border-color: var(--accent-blue);
}

.control-group select option {
    background: var(--bg-color);
    color: var(--text-primary);
}

.control-val {
    font-family: monospace;
    font-size: 0.8rem;
    color: var(--accent-blue);
}

.portal-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.action-btn {
    padding: 15px 35px;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.action-btn.primary {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    border: none;
    color: var(--text-primary);
    box-shadow: 0 5px 15px rgba(0, 240, 255, 0.25);
}

.action-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 240, 255, 0.4), 0 0 10px rgba(189, 0, 255, 0.3);
}

.action-btn.secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-secondary);
}

.action-btn.secondary:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
    transform: translateY(-3px);
}

/* Modal Styling */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.modal.active {
    opacity: 1;
    pointer-events: all;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(3, 3, 7, 0.85);
    backdrop-filter: blur(15px);
}

.modal-content {
    position: relative;
    background: rgba(10, 10, 20, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    width: 90%;
    max-width: 500px;
    padding: 50px;
    z-index: 2;
    transform: scale(0.9);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.1);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 240, 255, 0.05);
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 25px;
    right: 25px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-content h3 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    margin: 15px 0 10px 0;
}

.modal-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.5;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 15px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.3s, background-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-blue);
    background-color: rgba(255, 255, 255, 0.05);
}

.submit-btn {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    border: none;
    color: var(--text-primary);
    padding: 16px;
    border-radius: 12px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 240, 255, 0.3);
}

/* Animations Keyframes */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
    }
    50% {
        transform: scale(1.2);
        box-shadow: 0 0 20px rgba(0, 240, 255, 0.6);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
    }
}

@keyframes scroll-wheel-anim {
    0% {
        opacity: 1;
        top: 6px;
    }
    50% {
        opacity: 0.3;
        top: 18px;
    }
    100% {
        opacity: 1;
        top: 6px;
    }
}

/* Responsive Web Design Layouts */
@media (max-width: 1024px) {
    .navbar {
        padding: 20px 30px;
    }
    
    .nav-links {
        gap: 20px;
    }

    h1 {
        font-size: 4.5rem;
    }
    
    h2 {
        font-size: 3.2rem;
    }

    .section-content {
        max-width: 70%;
    }
    
    .section-content.left-align {
        max-width: 70%;
    }

    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dna-split {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .portal-controls {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 15px;
        padding: 15px 20px;
        backdrop-filter: blur(15px);
    }

    .nav-links {
        width: 100%;
        justify-content: space-around;
        padding: 8px 15px;
    }

    .nav-actions {
        display: none;
    }

    .hud-left, .hud-right {
        display: none;
    }

    .section {
        justify-content: center !important;
        padding: 140px 20px 80px 20px;
    }

    .section-content {
        max-width: 100% !important;
        text-align: center;
        align-items: center;
    }

    .bento-grid {
        grid-template-columns: 1fr;
    }
    .bento-card.span-2 {
        grid-column: span 1;
    }

    .portal-actions {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }

    .action-btn {
        width: 100%;
        justify-content: center;
    }

    h1 {
        font-size: 3.5rem;
    }

    h2 {
        font-size: 2.5rem;
    }

    .custom-cursor, .custom-cursor-dot {
        display: none;
    }
}
