/* VULCANUM - Premium Tech Startup Landing Page */
/* Base color palette and theme variables */

:root {
    --bg-color: #171717;
    --text-color: #e0e0e0;
    --primary-gold: #deb05a;
    --primary-hover: #b38733;
    --surface-color: #000000;
    --surface-light: #1f1f1f;
    
    --font-heading: 'Space Grotesk', 'Outfit', sans-serif;
    --font-body: 'Outfit', 'Inter', sans-serif;
    
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 32px;
    --spacing-xl: 64px;
    
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: #ffffff;
    font-weight: 700;
    line-height: 1.2;
}

.section-title {
    font-size: 3rem;
    margin-bottom: var(--spacing-xl);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-gold);
}

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

.text-center::after {
    left: 50%;
    transform: translateX(-50%);
}

a {
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-gold);
}

.btn-primary {
    display: inline-block;
    padding: 12px 28px;
    background-color: transparent;
    color: var(--primary-gold);
    border: 1px solid var(--primary-gold);
    border-radius: var(--border-radius-sm);
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: var(--primary-gold);
    color: var(--surface-color);
    box-shadow: 0 0 15px rgba(222, 176, 90, 0.4);
}

/* ================= Navbar ================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 100;
    background: rgba(23, 23, 23, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(224, 224, 224, 0.05);
    transition: padding 0.3s ease;
}

.navbar.scrolled {
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 40px;
    width: auto;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: #ffffff;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ================= Hero Section ================= */
.hero {
    position: relative;
    height: 100vh;
    min-height: 800px;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -2;
    filter: brightness(0.4) contrast(1.2);
}

/* Subtle gradient overlay to match Dembrandt colors */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(23,23,23,0.9) 0%, rgba(0,0,0,0.4) 100%);
    z-index: -1;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 600px;
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(90deg, #ffffff, var(--primary-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #b0b0b0;
    margin-bottom: 40px;
    max-width: 480px;
}

.hero-visuals {
    position: relative;
    height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.parallax-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.1s ease-out;
}

.parallax-layer img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.layer-aura img {
    transform: scale(1.2);
    opacity: 0.6;
    animation: slowSpin 60s linear infinite;
}

.layer-main img {
    transform: scale(0.9);
    z-index: 2;
}

.layer-frame img {
    z-index: 3;
}

@keyframes slowSpin {
    from { transform: scale(1.2) rotate(0deg); }
    to { transform: scale(1.2) rotate(360deg); }
}

/* ================= Manifesto Section ================= */
.manifesto {
    padding: 140px 0;
    background-color: var(--surface-color);
    position: relative;
}

.manifesto-visual {
    position: absolute;
    top: 50%;
    left: calc(50% + 200px);
    transform: translateY(-50%);
    width: 1000px;
    max-width: 55vw;
    height: auto;
    opacity: 0.8;
    z-index: 0;
    pointer-events: none;
    mix-blend-mode: screen; /* In case the background isn't perfectly transparent */
}

.manifesto-art {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.manifesto-container {
    position: relative;
    z-index: 1;
}

.manifesto-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    align-items: center;
}

.manifesto-text p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #b0b0b0;
}

.manifesto-stats {
    display: flex;
    gap: 40px;
    justify-content: center;
}

.stat-item {
    text-align: center;
    padding: 40px;
    background: var(--surface-light);
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(222, 176, 90, 0.1);
    min-width: 200px;
}

.stat-value {
    display: block;
    margin-bottom: 10px;
}

.stat-img {
    height: 60px; /* Approximately matches the 4rem text size */
    width: auto;
    object-fit: contain;
}

.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ================= Technologies Section ================= */
.technologies {
    padding: 140px 0;
    background-color: var(--bg-color);
    position: relative;
    background-image: 
        radial-gradient(circle at 50% 50%, rgba(222, 176, 90, 0.08) 0%, transparent 70%),
        linear-gradient(rgba(222, 176, 90, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(222, 176, 90, 0.03) 1px, transparent 1px);
    background-size: 100% 100%, 50px 50px, 50px 50px;
    background-position: center center;
    overflow: hidden; /* To prevent the hand from causing horizontal scroll */
}

.creation-hand {
    position: absolute;
    top: -5%;
    left: -5%;
    width: 35vw;
    max-width: 450px;
    opacity: 0.85;
    z-index: 0;
    pointer-events: none;
    transform: rotate(15deg); /* Reach down diagonally */
    mix-blend-mode: screen;
}

.hand-img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.tech-card {
    background: var(--surface-light);
    padding: 40px;
    border-radius: var(--border-radius-sm);
    border-top: 2px solid transparent;
    transition: all 0.3s ease;
}

.tech-card:hover {
    transform: translateY(-10px);
    border-top-color: var(--primary-gold);
    background: #252525;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.tech-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 24px;
    color: var(--primary-gold);
}

.tech-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.tech-card p {
    color: #a0a0a0;
    font-size: 0.95rem;
}

/* ================= Global Network Section ================= */
.network {
    padding: 120px 0;
    background-color: var(--surface-color);
    position: relative;
    overflow: hidden;
}

.network-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
}

.network-content p {
    font-size: 1.1rem;
    color: #b0b0b0;
    margin-bottom: 40px;
}

.hubs-list {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.hub-item {
    padding: 10px 20px;
    border: 1px solid rgba(222, 176, 90, 0.3);
    border-radius: 20px;
    transition: var(--transition-fast);
}

.hub-item:hover {
    color: var(--primary-gold);
    background: rgba(222, 176, 90, 0.05);
}

.hub-others {
    border-color: transparent !important;
    color: var(--primary-gold) !important;
    font-style: italic;
    opacity: 0.7;
    padding-left: 5px;
}

.network-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.network-map-img {
    width: 100%;
    max-width: 650px;
    height: auto;
    object-fit: contain;
    opacity: 0.9;
}/* ================= Footer ================= */
footer {
    background-color: #101010;
    padding: 80px 0 0 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    position: relative;
    overflow: hidden;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
    position: relative;
    z-index: 1; /* keep text above the pedestal feet */
}

.footer-col h4 {
    margin-bottom: 24px;
    color: var(--primary-gold);
    font-size: 1.1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #a0a0a0;
    font-size: 0.95rem;
}

.footer-col ul li a:hover {
    color: var(--primary-gold);
    padding-left: 5px;
}

.footer-tagline {
    margin-top: 16px;
    color: #808080;
    font-size: 1.1rem;
}

.contact-col p {
    color: #a0a0a0;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.footer-bottom {
    background-color: #000000;
    padding: 24px 0;
    text-align: center;
    color: #505050;
    font-size: 0.9rem;
}

/* ================= Sub-Pages ================= */
.subpage-body {
    background-color: #050505;
    color: #f0f0f0;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.subpage-hero {
    position: relative;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 60px 20px;
}

.subpage-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -2;
    filter: brightness(0.5) contrast(1.1);
}

.subpage-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10,10,10,0.85) 0%, rgba(0,0,0,0.6) 100%);
    z-index: -1;
}

.subpage-content {
    position: relative;
    z-index: 1;
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 60px 40px;
    max-width: 800px;
    width: 100%;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.subpage-title {
    font-size: 3rem;
    margin-bottom: 24px;
    background: linear-gradient(90deg, #ffffff, var(--primary-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subpage-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #c0c0c0;
    margin-bottom: 40px;
    text-align: left;
}

.subpage-text p {
    margin-bottom: 20px;
}

.subpage-text strong {
    color: var(--primary-gold);
}

.btn-back {
    display: inline-block;
    padding: 12px 32px;
    background-color: transparent;
    color: var(--primary-gold);
    border: 1px solid var(--primary-gold);
    border-radius: 30px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.btn-back:hover {
    background-color: rgba(222, 176, 90, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(222, 176, 90, 0.2);
}

/* ================= Job Board (Careers) ================= */
.subpage-hero-banner {
    position: relative;
    height: 40vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
}

.subpage-banner-title {
    font-size: 3.5rem;
    margin-bottom: 16px;
    background: linear-gradient(90deg, #ffffff, var(--primary-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subpage-banner-subtitle {
    font-size: 1.2rem;
    color: #b0b0b0;
    max-width: 600px;
    margin: 0 auto;
}

.job-board-section {
    padding: 80px 0;
    background-color: #080808;
    flex-grow: 1;
}

.job-board-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 20px;
}

.job-board-header h2 {
    font-size: 2rem;
}

.job-filters {
    display: flex;
    gap: 16px;
}

.job-filters .filter {
    padding: 8px 16px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.job-filters .filter:hover, .job-filters .filter.active {
    background-color: rgba(222, 176, 90, 0.1);
    border-color: var(--primary-gold);
    color: var(--primary-gold);
}

.job-board-container {
    min-height: 200px;
}

.loading-state {
    text-align: center;
    padding: 60px 0;
    color: #808080;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(222, 176, 90, 0.2);
    border-top-color: var(--primary-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px auto;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

.no-jobs-message {
    background: rgba(20, 20, 20, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-left: 4px solid var(--primary-gold);
    padding: 40px;
    border-radius: 0 12px 12px 0;
    max-width: 800px;
}

.no-jobs-message h3 {
    color: var(--primary-gold);
    margin-bottom: 24px;
    font-size: 1.5rem;
}

.no-jobs-message p {
    color: #c0c0c0;
    margin-bottom: 16px;
    line-height: 1.6;
}

/* ================= Dashboard (Telemetry) ================= */
.dashboard-section {
    padding: 80px 0;
    background-color: #080808;
    flex-grow: 1;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
}

.dashboard-panel {
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 30px;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
}

.metrics-panel h3 {
    margin-bottom: 24px;
    font-size: 1.5rem;
    color: var(--primary-gold);
    border-bottom: 1px solid rgba(222, 176, 90, 0.2);
    padding-bottom: 10px;
}

.metric-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    font-family: 'Space Grotesk', sans-serif;
}

.metric-label {
    color: #808080;
}

.metric-value {
    color: #e0e0e0;
    font-weight: 600;
}

.status-nominal {
    color: #4CAF50;
    display: flex;
    align-items: center;
    gap: 8px;
}

.blink-dot {
    width: 8px;
    height: 8px;
    background-color: #4CAF50;
    border-radius: 50%;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.terminal-panel {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}

.terminal-header {
    background: #111;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    color: #808080;
}

.auth-level {
    color: var(--primary-gold);
}

.terminal-body {
    padding: 20px;
    flex-grow: 1;
    font-family: monospace;
    font-size: 0.95rem;
    color: #a0a0a0;
    background: #050505;
    height: 300px;
    overflow-y: auto;
}

.terminal-line {
    margin-bottom: 8px;
    line-height: 1.4;
}

.log-time { color: #505050; margin-right: 10px; }
.log-normal { color: #b0b0b0; }
.log-warning { color: #ff9800; }
.log-success { color: #4CAF50; }

/* ================= Document (Alignment) ================= */
.document-section {
    padding: 80px 0;
    background-color: #050505;
    flex-grow: 1;
}

.document-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 60px;
}

.doc-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.doc-nav {
    list-style: none;
    border-left: 1px solid rgba(255,255,255,0.1);
    padding-left: 0;
}

.doc-nav li {
    margin-bottom: 16px;
}

.doc-nav a {
    color: #808080;
    text-decoration: none;
    font-size: 0.95rem;
    display: block;
    padding-left: 20px;
    position: relative;
    transition: var(--transition-fast);
}

.doc-nav a::before {
    content: '';
    position: absolute;
    left: -1px;
    top: 0;
    height: 100%;
    width: 2px;
    background-color: var(--primary-gold);
    transform: scaleY(0);
    transition: var(--transition-fast);
}

.doc-nav a:hover, .doc-nav a.active {
    color: var(--primary-gold);
}

.doc-nav a.active::before {
    transform: scaleY(1);
}

.doc-content {
    max-width: 800px;
}

.doc-section {
    margin-bottom: 80px;
}

.doc-section h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #fff;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.doc-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #c0c0c0;
    margin-bottom: 24px;
}

.doc-section p strong {
    color: var(--primary-gold);
}

.security-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.security-card {
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 24px;
    border-radius: 12px;
}

.security-card h4 {
    color: var(--primary-gold);
    margin-bottom: 16px;
    font-size: 1.1rem;
}

.security-card p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

.terminal-mockup {
    background: #0a0a0a;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 20px;
    font-family: monospace;
    margin-top: 30px;
}

.terminal-mockup p {
    color: #4CAF50;
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.terminal-mockup p.error {
    color: #f44336;
}

/* ================= Responsive ================= */
@media (max-width: 992px) {
    .hero {
        height: auto;
        min-height: 100vh;
        padding-top: 140px;
        padding-bottom: 80px;
        align-items: flex-start; /* Fix flexbox top-clipping bug on tall content */
    }

    .hero-container, .manifesto-grid, .network-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .manifesto-visual {
        position: absolute;
        top: 10%;
        left: auto;
        right: -30%;
        width: 70vw;
        max-width: 400px;
        opacity: 0.3;
        pointer-events: none;
    }
    
    .manifesto-container {
        position: relative;
        z-index: 1;
    }

    .section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        margin: 0 auto 40px auto;
    }
    
    .manifesto-stats {
        margin-top: 40px;
    }
    
    .tech-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 768px) {
    .nav-links {
        display: none; /* simple mobile behavior for now */
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .manifesto-stats {
        flex-direction: column;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .creation-hand {
        width: 65vw;
        top: 2%;
        left: -15%;
        opacity: 0.4;
    }

    .dashboard-grid, .document-container, .security-grid {
        grid-template-columns: 1fr;
    }

    .doc-sidebar {
        position: relative;
        top: 0;
        margin-bottom: 40px;
    }
}

/* ================= Language Switcher ================= */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.lang-switcher {
    position: relative;
    display: flex;
    align-items: center;
}

.lang-globe {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 50%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lang-globe svg {
    width: 24px;
    height: 24px;
}

.lang-globe:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

.lang-dropdown {
    position: absolute;
    top: 120%;
    right: 0;
    background-color: var(--surface-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px 0;
    list-style: none;
    min-width: 80px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 1000;
}

.lang-switcher.open .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown li a {
    display: block;
    padding: 8px 20px;
    color: var(--text-color);
    text-decoration: none;
    text-align: center;
    transition: background-color 0.2s, color 0.2s;
}

.lang-dropdown li a:hover {
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--primary-gold);
}

/* ================= Modal ================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 2000; /* Above navbar */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--surface-color);
    border: 1px solid rgba(212, 175, 55, 0.2);
    padding: 40px;
    border-radius: 4px;
    width: 90%;
    max-width: 500px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 40px rgba(212, 175, 55, 0.05);
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    z-index: 10;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.modal-close:hover {
    opacity: 1;
    color: var(--primary-gold);
}

/* The real form behind the alert (blurred) */
.modal-form-container {
    opacity: 0.35;
    filter: blur(3.5px);
    pointer-events: none;
    user-select: none;
}

.modal-form-container h3 {
    margin-bottom: 24px;
    color: var(--primary-gold);
    font-family: var(--font-heading);
    font-size: 1.5rem;
}

.access-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.access-form .form-group {
    margin-bottom: 20px;
    text-align: left;
}

.access-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: #ccc;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.access-form input,
.access-form textarea {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    color: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s, background-color 0.2s;
}

.access-form input::placeholder,
.access-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.access-form input:focus,
.access-form textarea:focus {
    outline: none;
    border-color: var(--primary-gold);
    background: rgba(255, 255, 255, 0.08);
}

.form-submit-btn {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    margin-top: 10px;
    cursor: pointer;
}

/* The alert overlay */
.modal-alert {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85%;
    text-align: center;
    background: rgba(15, 15, 15, 0.95);
    border: 1px solid var(--primary-gold);
    padding: 30px 25px;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    z-index: 2;
}

.alert-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 16px;
    color: var(--primary-gold);
}

.modal-alert h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-alert p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #ccc;
    margin: 0;
}

/* ================= Enhancements ================= */
/* Flag Icons */
.lang-dropdown li a {
    display: flex;
    align-items: center;
    gap: 10px;
}
.lang-dropdown li a img {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
}

/* Custom Cursor */
body {
    cursor: none;
}
a, button, .filter {
    cursor: none;
}
.cursor-dot, .cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}
.cursor-dot {
    width: 6px;
    height: 6px;
    background-color: var(--primary-gold);
}
.cursor-outline {
    width: 30px;
    height: 30px;
    border: 1px solid rgba(222, 176, 90, 0.5);
    transition: width 0.2s, height 0.2s, background-color 0.2s, border-color 0.2s;
}
.cursor-hover .cursor-outline {
    width: 50px;
    height: 50px;
    background-color: rgba(222, 176, 90, 0.1);
    border-color: var(--primary-gold);
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 3D Tilt on Tech Cards */
.tech-card {
    position: relative;
    transform-style: preserve-3d;
    transform: perspective(1000px);
    transition: transform 0.1s;
}
.tech-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(222, 176, 90, 0.15) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    border-radius: inherit;
    z-index: -1;
}
.tech-card:hover::before {
    opacity: 1;
}

/* Magnetic Buttons */
.magnetic {
    display: inline-block;
}
