/* ==========================================================================
   ALCHEMIST AI - STYLE SYSTEM (Premium Black & Gold Theme)
   ========================================================================== */

/* --- Custom Variables & Tokens --- */
:root {
    --bg-dark: #0a0a0a;
    --bg-card: #121212;
    --bg-card-hover: #1a1a1a;
    --bg-header: rgba(10, 10, 10, 0.75);
    
    /* Gold Palette */
    --gold-primary: #d4af37;
    --gold-secondary: #aa841c;
    --gold-glow: rgba(212, 175, 55, 0.15);
    --gold-glow-strong: rgba(212, 175, 55, 0.4);
    --gold-gradient: linear-gradient(135deg, #f3e098 0%, #d4af37 50%, #aa841c 100%);
    --gold-gradient-soft: linear-gradient(90deg, #d4af37, #f3e098, #aa841c);
    
    /* Colors */
    --text-primary: #f0f0f0;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;
    --border-color: rgba(212, 175, 55, 0.15);
    --border-hover: rgba(212, 175, 55, 0.4);
    --red-alert: #ff4a4a;
    --green-success: #4eff8a;
    
    /* Font stacks */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* System Sizes */
    --max-width: 1200px;
    --header-height: 80px;
    --border-radius: 12px;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Reset & Global styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 100px 0;
}

/* --- Ambient Glowing Effects --- */
@keyframes floatGlow1 {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(80px, -40px) scale(1.15); }
    100% { transform: translate(0, 0) scale(1); }
}

@keyframes floatGlow2 {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-60px, 80px) scale(0.9); }
    100% { transform: translate(0, 0) scale(1); }
}

@keyframes floatGlow3 {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, 50px) scale(1.1); }
    100% { transform: translate(0, 0) scale(1); }
}

.ambient-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(160px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.15;
    mix-blend-mode: screen;
}

.glow-1 {
    top: 5%;
    left: -200px;
    background: radial-gradient(circle, var(--gold-primary) 0%, transparent 70%);
    animation: floatGlow1 20s infinite ease-in-out;
}

.glow-2 {
    top: 35%;
    right: -200px;
    background: radial-gradient(circle, var(--gold-secondary) 0%, transparent 70%);
    animation: floatGlow2 25s infinite ease-in-out;
}

.glow-3 {
    bottom: 10%;
    left: 20%;
    background: radial-gradient(circle, var(--gold-primary) 0%, transparent 70%);
    animation: floatGlow3 22s infinite ease-in-out;
}

/* --- Utility Typography & Text --- */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #ffffff;
    line-height: 1.2;
}

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

.white-text {
    color: #ffffff;
}

.red-text {
    color: var(--red-alert);
}

.gold-gradient-text {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.text-muted {
    color: var(--text-muted);
}

.section-tag {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 12px;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 18px;
    max-width: 650px;
    margin: 16px auto 0;
    font-weight: 300;
}

.section-header {
    margin-bottom: 60px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 15px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    outline: none;
    letter-spacing: 0.02em;
}

.btn-gold {
    background: var(--gold-gradient);
    color: #0a0a0a;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.25);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-gold::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #aa841c, #d4af37, #aa841c);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.btn-gold:hover::before {
    opacity: 1;
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(212, 175, 55, 0.4);
}

.btn-outline {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-outline:hover {
    border-color: var(--gold-primary);
    box-shadow: 0 0 15px var(--gold-glow);
    background: rgba(212, 175, 55, 0.03);
    transform: translateY(-2px);
}

.btn-small {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-full {
    width: 100%;
}

/* --- Cards Styling --- */
.gold-glow-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 35px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: var(--transition-smooth);
    position: relative;
}

.gold-glow-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.08);
}

/* --- Navigation Header --- */
#main-header {
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background-color: var(--bg-header);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-smooth);
}

#main-header.scrolled {
    height: 70px;
    border-bottom-color: var(--border-color);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

#nav-menu ul {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 32px;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
    position: relative;
}

.nav-link:hover {
    color: #ffffff;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    width: 0;
    height: 1.5px;
    background: var(--gold-primary);
    transition: width 0.3s ease, left 0.3s ease;
}

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

.btn-nav {
    padding: 10px 20px;
    font-size: 14px;
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 22px;
    cursor: pointer;
}

/* --- Hero Section --- */
#hero {
    min-height: 100vh;
    padding-top: calc(var(--header-height) + 40px);
    display: flex;
    align-items: center;
    position: relative;
    z-index: 10;
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    position: relative;
    z-index: 20;
    transform: translateZ(10px);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.badge {
    display: inline-flex;
    padding: 6px 14px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 24px;
}

.gold-badge {
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid var(--border-color);
    color: var(--gold-primary);
}

.hero-content h1 {
    font-size: 58px;
    margin-bottom: 24px;
    line-height: 1.1;
    font-weight: 800;
}

.hero-subtitle {
    font-size: 19px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-weight: 300;
    line-height: 1.5;
}

.hero-actions {
    display: flex;
    gap: 16px;
    position: relative;
    z-index: 30;
    pointer-events: auto !important;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
    transition: var(--transition-smooth);
}

.hero-visual:hover .image-wrapper {
    border-color: var(--border-hover);
    box-shadow: 0 25px 60px rgba(212, 175, 55, 0.12);
}

.hero-img {
    filter: brightness(0.95);
    width: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.hero-visual:hover .hero-img {
    transform: scale(1.03);
}

.glow-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 30%, rgba(10, 10, 10, 0.6) 100%),
                radial-gradient(circle at center, var(--gold-glow) 0%, transparent 60%);
    pointer-events: none;
}

.hero-bottom-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    background: linear-gradient(to top, var(--bg-dark), transparent);
    z-index: 15;
}

/* --- Animations for page loading --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-slide-up {
    opacity: 0;
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-fade-in {
    opacity: 0;
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.2s;
}

.animate-fade-in-delayed {
    opacity: 0;
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.4s;
}

.animate-scale-up {
    opacity: 0;
    animation: scaleIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.3s;
}

/* --- Philosophy / Comparison Section --- */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 50px;
}

.comparison-card {
    border-radius: var(--border-radius);
    padding: 40px;
    background: #0f0f0f;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-smooth);
}

.comparison-card.traditional {
    opacity: 0.65;
}

.comparison-card.traditional:hover {
    opacity: 0.85;
    border-color: rgba(255, 255, 255, 0.1);
}

.card-icon {
    font-size: 38px;
    margin-bottom: 24px;
    color: var(--text-muted);
}

.comparison-card h3 {
    font-size: 24px;
    margin-bottom: 24px;
}

.comparison-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.comparison-list li {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 15px;
    color: var(--text-secondary);
}

.comparison-list li i {
    width: 20px;
    font-size: 16px;
}

/* --- Services Grid Section --- */
.bg-dark-secondary {
    background-color: #080808;
    border-top: 1px solid rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: var(--border-radius);
    padding: 35px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 10%, rgba(212, 175, 55, 0.08) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.service-card:hover::after {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-5px);
    background: var(--bg-card-hover);
    border-color: rgba(212, 175, 55, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.service-icon {
    font-size: 28px;
    margin-bottom: 24px;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

.service-card:hover .service-icon {
    color: var(--gold-primary);
    transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 300;
    line-height: 1.6;
}

.service-card.special-card {
    border-color: var(--border-color);
    background: linear-gradient(135deg, rgba(18, 18, 18, 1) 0%, rgba(30, 25, 15, 1) 100%);
}

.service-card.special-card:hover {
    border-color: var(--gold-primary);
    box-shadow: 0 12px 35px rgba(212, 175, 55, 0.1);
}

/* --- AI Answer Panel (Hero Visual) --- */
.visual-panel-wrapper {
    position: relative;
    border-radius: 12px;
    background: rgba(18, 18, 18, 0.7);
    border: 1px solid rgba(212, 175, 55, 0.15);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 24px;
    width: 100%;
    max-width: 480px;
    transition: var(--transition-smooth);
    will-change: transform;
}

.visual-panel-wrapper:hover {
    border-color: var(--border-hover);
    box-shadow: 0 25px 60px rgba(212, 175, 55, 0.12);
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 14px;
    margin-bottom: 18px;
}

.panel-header .dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: inline-block;
}

.panel-header .dot.red { background: var(--red-alert); }
.panel-header .dot.yellow { background: #ffbd2e; }
.panel-header .dot.green { background: var(--green-success); }

.panel-header .panel-label {
    font-size: 11px;
    color: var(--text-secondary);
    margin-left: auto;
    letter-spacing: 0.02em;
}

.panel-query-bar {
    background: #070707;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.search-gold-icon {
    color: var(--gold-primary);
    font-size: 13px;
}

.query-text {
    font-family: var(--font-body);
    font-size: 13px;
    color: #ffffff;
    font-weight: 300;
}

.panel-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.panel-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    text-align: left;
}

.panel-table th {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 8px;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.05em;
}

.panel-table td {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    line-height: 1.4;
}

.panel-table tbody tr:last-child td {
    border-bottom: none;
}

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

.panel-alert-box {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.06) 0%, rgba(212, 175, 55, 0.02) 100%);
    border: 1px dashed var(--gold-primary);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.alert-gold-icon {
    color: var(--gold-primary);
    font-size: 16px;
    margin-top: 2px;
}

.panel-alert-box p {
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-secondary);
}

.panel-caption {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 14px;
    text-align: right;
    display: block;
}

/* --- Agent Lab / Simulator Section --- */
.lab-container {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    gap: 40px;
    margin-top: 50px;
}

.lab-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.agent-selector {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: var(--border-radius);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.agent-selector:hover {
    background: var(--bg-card-hover);
    border-color: rgba(212, 175, 55, 0.15);
}

.agent-selector.active {
    background: linear-gradient(90deg, #161512 0%, #1e1b12 100%);
    border-color: var(--gold-primary);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.05);
}

.selector-icon {
    font-size: 22px;
    color: var(--text-muted);
    transition: var(--transition-smooth);
    width: 30px;
    text-align: center;
}

.agent-selector:hover .selector-icon,
.agent-selector.active .selector-icon {
    color: var(--gold-primary);
}

.selector-info h4 {
    font-size: 16px;
    margin-bottom: 2px;
}

.selector-role {
    font-size: 12px;
    color: var(--text-muted);
}

.agent-selector.active .selector-role {
    color: var(--gold-primary);
}

/* Terminal Simulator Styles */
.lab-terminal {
    display: flex;
    flex-direction: column;
    height: 420px;
    padding: 0;
    overflow: hidden;
    border-color: var(--border-color);
}

.terminal-header {
    background: #181818;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.terminal-buttons {
    display: flex;
    gap: 6px;
}

.terminal-buttons .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.terminal-buttons .dot.red { background: var(--red-alert); }
.terminal-buttons .dot.yellow { background: #ffbd2e; }
.terminal-buttons .dot.green { background: var(--green-success); }

.terminal-title {
    font-family: monospace;
    font-size: 12px;
    color: var(--text-secondary);
}

.terminal-status {
    font-family: monospace;
    font-size: 11px;
    color: var(--green-success);
    display: flex;
    align-items: center;
    gap: 6px;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green-success);
    box-shadow: 0 0 8px var(--green-success);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.4; }
    100% { transform: scale(1); opacity: 1; }
}

.terminal-body {
    background: #070707;
    padding: 24px;
    flex: 1;
    font-family: monospace;
    font-size: 13px;
    color: #e0e0e0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    line-height: 1.5;
    position: relative;
}

/* CRT Scanline Effect Overlay */
.terminal-body::before {
    content: " ";
    display: block;
    position: absolute;
    top: 0; left: 0; bottom: 0; right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.18) 50%), linear-gradient(90deg, rgba(212, 175, 55, 0.02), rgba(0, 255, 0, 0.002), rgba(0, 0, 255, 0.02));
    z-index: 10;
    background-size: 100% 4px, 6px 100%;
    pointer-events: none;
}

/* Blinking terminal caret cursor */
.terminal-cursor {
    display: inline-block;
    width: 8px;
    height: 14px;
    background-color: var(--gold-primary);
    margin-left: 5px;
    animation: caretBlink 1s step-end infinite;
    vertical-align: middle;
}

@keyframes caretBlink {
    from, to { background-color: transparent }
    50% { background-color: var(--gold-primary) }
}

.terminal-line {
    word-break: break-all;
    white-space: pre-wrap;
}

.terminal-line.command {
    color: var(--gold-primary);
}

.terminal-line.output {
    color: #a0a0a0;
}

.terminal-line.highlight {
    color: #ffffff;
    font-weight: bold;
}

.terminal-footer {
    background: #101010;
    padding: 16px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: flex-end;
}

/* --- Consultation Contact Section --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 60px;
    align-items: center;
}

.contact-image-section {
    position: relative;
    overflow: hidden;
    border: none;
    box-shadow: none;
}

.contact-blend-wrapper {
    width: 100%;
    height: 480px;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    perspective: 1000px;
}

@keyframes breatheAgent {
    0% {
        transform: translateY(0) scale(0.97);
        filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.15));
    }
    50% {
        transform: translateY(-10px) scale(1.00);
        filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.35));
    }
    100% {
        transform: translateY(0) scale(0.97);
        filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.15));
    }
}

.contact-img-animated {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: screen; /* Fades the black background of the image, leaving only the glowing gold robot! */
    animation: breatheAgent 6s infinite ease-in-out;
    will-change: transform, filter;
}

.particles-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 8;
}

.contact-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 35%, #0a0a0a 90%),
                radial-gradient(circle at center, rgba(212, 175, 55, 0.02) 0%, transparent 70%);
    pointer-events: none;
    z-index: 10;
}

.contact-form-section h2 {
    font-size: 32px;
    margin-bottom: 12px;
}

.contact-form-section p {
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: 15px;
    font-weight: 300;
}

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

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
    background: #070707;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 14px 18px;
    font-family: var(--font-body);
    font-size: 14px;
    color: #ffffff;
    outline: none;
    transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--gold-primary);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.1);
    background: #0f0f0f;
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='gold' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    padding-right: 40px;
    cursor: pointer;
}

.form-success-container {
    text-align: center;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.success-icon {
    font-size: 58px;
    color: var(--gold-primary);
    text-shadow: 0 0 20px var(--gold-glow-strong);
}

.success-icon i {
    animation: successPulse 1s ease;
}

@keyframes successPulse {
    0% { transform: scale(0.6); }
    70% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.hidden {
    display: none !important;
}

/* --- Footer Section --- */
footer {
    background-color: #040404;
    border-top: 1px solid var(--border-color);
    padding: 80px 0 0;
    position: relative;
    z-index: 10;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 50px;
    padding-bottom: 60px;
}

.footer-brand .logo {
    display: inline-block;
    margin-bottom: 20px;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 300;
    max-width: 320px;
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links ul a {
    color: var(--text-secondary);
    font-size: 14px;
}

.footer-links ul a:hover {
    color: var(--gold-primary);
    padding-left: 4px;
}

.footer-contact p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding: 30px 0;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 12px;
}

/* --- Responsive Media Queries --- */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 48px;
    }
    
    .footer-container {
        grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
    }
}

@media (max-width: 900px) {
    .section-padding {
        padding: 70px 0;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

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

    .comparison-grid,
    .calculator-wrapper,
    .lab-container,
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .lab-terminal {
        height: 380px;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .contact-image-section {
        display: none;
    }
}

@media (max-width: 600px) {
    .hero-content h1 {
        font-size: 38px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-actions .btn {
        width: 100%;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* Mobile Nav Layout Styles */
    .mobile-nav-toggle {
        display: block;
    }

    #nav-menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: rgba(10, 10, 10, 0.98);
        border-bottom: 1px solid var(--border-color);
        padding: 30px 24px;
        transform: translateY(-150%);
        transition: var(--transition-smooth);
        backdrop-filter: blur(10px);
    }

    #nav-menu.active {
        transform: translateY(0);
    }

    #nav-menu ul {
        flex-direction: column;
        gap: 24px;
        align-items: stretch;
        text-align: center;
    }

    .btn-nav {
        width: 100%;
    }
}

/* Hero 3D core canvas styling (Background positioning for particle wave) */
.hero-3d-bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none !important;
    opacity: 0.45; /* Subtle background glow so text stays perfectly readable */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

#hero-3d-canvas {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none !important;
    z-index: 1;
}

/* --- Technical Label (JetBrains Mono font) --- */
.technical-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.hero-paragraphs {
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hero-sub-para {
    font-size: 15px;
    color: var(--text-secondary);
    font-weight: 300;
    line-height: 1.6;
}

.hero-caption {
    margin-top: 30px;
}

/* Service full width card details */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.service-card .service-num {
    font-size: 13px;
    color: var(--gold-secondary);
    display: block;
    margin-bottom: 12px;
}

.service-card .service-sub {
    color: var(--text-muted);
    font-size: 10px;
    text-transform: uppercase;
    margin-bottom: 16px;
    font-weight: 700;
}

.full-width-card {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border-color: var(--border-color) !important;
    background: linear-gradient(135deg, rgba(18, 18, 18, 1) 0%, rgba(30, 25, 15, 1) 100%) !important;
}

.full-width-card:hover {
    border-color: var(--gold-primary) !important;
    box-shadow: 0 12px 35px rgba(212, 175, 55, 0.1) !important;
}

/* --- Operator Section Styles --- */
.operator-wrapper {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.operator-bio {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 24px;
}

.operator-bio p {
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 300;
    line-height: 1.6;
}

.operator-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    transition: var(--transition-smooth);
}

.stat-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.05);
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 44px;
    font-weight: 800;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 400;
    line-height: 1.4;
}

/* --- Consultation Contact adjustments --- */
.contact-text-section {
    max-width: 500px;
}

.contact-para {
    font-size: 16px;
    color: var(--text-secondary);
    margin-top: 24px;
    margin-bottom: 20px;
    font-weight: 300;
}

.contact-caption {
    margin-top: 20px;
}

/* Terminal simulator update style */
.terminal-disclaimer {
    color: var(--text-muted);
    font-size: 10px;
    margin-right: auto;
}

/* Perspective setup for 3D card tilt */
.services-grid, .comparison-grid, .operator-stats-grid, .lab-container {
    perspective: 1500px;
}

.service-card, .comparison-card, .stat-card, .lab-terminal, .contact-form-section, .visual-panel-wrapper {
    transform-style: preserve-3d;
    backface-visibility: hidden;
    will-change: transform;
}

/* Internal 3D depth alignment */
.service-num, .service-icon, .card-icon, .stat-value, .terminal-header, .panel-header {
    transform: translateZ(30px);
}

.service-card h3, .comparison-card h3, .stat-label, .terminal-body, .panel-body {
    transform: translateZ(15px);
}

@media (max-width: 900px) {
    .operator-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
}

@media (max-width: 500px) {
    .operator-stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Journey comparison adjustments */
.journey-step-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.journey-step {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.journey-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}

.journey-text {
    font-size: 15px;
}

/* Small mobile layout adjustments */
@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}
