/* 
 * AZALTE TECH V5: KİNETİK TİPOGRAFİ & SPATIAL HUD CSS
 * Coded by: CTO
 * Devasa başlıklar, jilet gibi ince logolar, sıfır sınır.
 */

 :root {
    --azalte-bg: #03050a;
    --azalte-text: #F8FAFC;
    --azalte-text-muted: #94A3B8;
    
    --azalte-software: #3B82F6;
    --azalte-finance: #10B981;
    --azalte-myshop: #F59E0B;
    --azalte-game: #8B5CF6;
    --azalte-social: #EC4899;
  
    --azalte-hud-shadow: 0 8px 32px rgba(0, 0, 0, 0.95), 0 0 16px rgba(0, 0, 0, 0.85);
    --azalte-hud-shadow-light: 0 4px 16px rgba(0, 0, 0, 0.15), 0 0 8px rgba(0, 0, 0, 0.05);
  }
  
  [data-theme="light"] {
    --azalte-bg: #F1F5F9;
    --azalte-text: #0F172A;
    --azalte-text-muted: #475569;
    --azalte-software: #1d4ed8;
    --azalte-finance: #047857;
    --azalte-myshop: #b45309;
    --azalte-game: #6d28d9;
    --azalte-social: #be185d;
    --azalte-hud-shadow: var(--azalte-hud-shadow-light);
  }
  
  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
  }
  
  body.azalte-tech-immersive-body {
    background-color: var(--azalte-bg);
    color: var(--azalte-text);
    overflow: hidden;
    transition: background-color 1s cubic-bezier(0.16, 1, 0.3, 1), color 1s;
  }
  
  /* CANVAS & OVERLAY */
  #azalte-tech-morph-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
  }
  
  .azalte-tech-glitch-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #ffffff;
    opacity: 0;
    z-index: 999;
    pointer-events: none;
  }
  .azalte-tech-glitch-mask.warp-flash {
    animation: warpFlash 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }
  @keyframes warpFlash {
    0% { opacity: 0; }
    30% { opacity: 0.35; }
    100% { opacity: 0; }
  }
  [data-theme="light"] .azalte-tech-glitch-mask { background: #000000; }
  
  /* LANGUAGE CONTROLS */
  .lang-tr { display: inline; }
  .lang-en { display: none; }
  [data-lang="en"] .lang-tr { display: none; }
  [data-lang="en"] .lang-en { display: inline; }
  
  /* HEADER (HUD LEVEL) */
  .azalte-tech-premium-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.25rem 5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    mix-blend-mode: normal;
  }
  /* LOGO SIZING FIX: Make it small and sleek */
  .brand-logo-wrapper { width: 70px; margin-bottom: 0; display: flex; align-items: center; }
  .footer-branding-wrapper { width: 100px; margin-bottom: 1rem; }
  .azalte-logo { width: 100%; height: auto; display: block; opacity: 0.85; transition: opacity 0.3s; }
  .azalte-logo:hover { opacity: 1; }
  .logo-dark-env { display: block; }
  .logo-light-env { display: none; }
  [data-theme="light"] .logo-dark-env { display: none; }
  [data-theme="light"] .logo-light-env { display: block; }
  
  .nav-center-zone {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.6em;
    color: var(--azalte-text-muted);
    text-shadow: var(--azalte-hud-shadow);
    text-transform: uppercase;
    text-align: center;
    white-space: nowrap;
  }
  
  .nav-right-zone {
    display: flex;
    gap: 2rem;
    align-items: center;
  }
  .lang-switcher-trigger, .theme-switcher-trigger {
    background: transparent;
    border: none;
    color: var(--azalte-text-muted);
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.8rem;
    cursor: pointer;
    transition: color 0.3s;
    text-shadow: var(--azalte-hud-shadow);
    width: 30px;
    text-align: center;
  }
  .lang-switcher-trigger:hover, .theme-switcher-trigger:hover {
    color: var(--azalte-text);
  }
  
  .nav-action-text-login {
    background: transparent;
    border: none;
    color: var(--azalte-text);
    font-weight: 500;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    cursor: pointer;
    text-shadow: var(--azalte-hud-shadow);
    transition: color 0.3s;
    text-transform: uppercase;
    width: 90px; /* Fixed width to prevent layout shift */
    text-align: right;
  }
  .nav-action-text-login:hover { color: var(--azalte-finance); }
  
  /* STAGE TRACKER (HUD) */
  .azalte-tech-stage-tracker-hud {
    display: none !important;
    position: fixed;
    right: 4rem;
    top: 50%;
    transform: translateY(-50%);
    flex-direction: column;
    gap: 2rem;
    z-index: 100;
  }
  .hud-tracker-line {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    cursor: pointer;
    opacity: 0.2;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .hud-tracker-line span {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    text-shadow: var(--azalte-hud-shadow);
  }
  .hud-tracker-line::after {
    content: '';
    width: 15px;
    height: 1px;
    background: var(--azalte-text);
    transition: width 0.5s, background 0.5s;
  }
  .hud-tracker-line.active {
    opacity: 1;
    transform: translateX(-15px);
  }
  .hud-tracker-line.active::after {
    width: 60px;
    background: var(--active-stage-color, var(--azalte-software));
    box-shadow: 0 0 8px var(--active-stage-color, var(--azalte-software));
  }
  
  /* PAGE PROGRESS INDICATORS (DOTS) */
  .azalte-tech-dot-indicators {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 100;
  }
  .dot-indicator {
    width: 12px;
    height: 12px;
    border: 1px solid var(--azalte-text-muted);
    background: transparent;
    transform: rotate(45deg);
    opacity: 0.4;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
  }
  .dot-indicator.active {
    opacity: 1;
    transform: rotate(45deg) scale(1.3);
    background: var(--active-stage-color, var(--azalte-software));
    border-color: var(--active-stage-color, var(--azalte-software));
    box-shadow: 0 0 12px var(--active-stage-color, var(--azalte-software));
  }
  
  /* STAGES */
  .azalte-tech-stage-viewport-wrapper {
    position: relative;
    width: 100vw;
    height: 100vh;
  }
  .azalte-tech-cinematic-stage {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateY(60px) scale(0.95);
    display: flex;
    align-items: center;
    z-index: 10;
  }
  .azalte-tech-cinematic-stage.active {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0) scale(1);
  }
  
  /* SPATIAL HUD TEXT (Ambient Occlusion Mask) */
  .spatial-hud-text { text-shadow: var(--azalte-hud-shadow); }
  .spatial-hud-text h1, .spatial-hud-text h2, .spatial-hud-text h3, .spatial-hud-text p {
    text-shadow: var(--azalte-hud-shadow);
  }
  
  /* STAGE 0: HERO */
  .alignment-left {
    padding-left: 6vw;
    max-width: 50vw; 
  }
  .hero-micro-tag {
    font-family: 'Share Tech Mono', monospace;
    color: var(--azalte-software);
    letter-spacing: 0.2em;
    margin-bottom: 2rem;
    font-size: 0.8rem;
    text-transform: uppercase;
  }
  .hero-main-title {
    font-size: clamp(2.2rem, 3.8vw, 4.2rem);
    font-weight: 900;
    line-height: 1.12;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
  }
  .glow-orange-text { color: var(--azalte-myshop); }
  
  .hero-sub-paragraph {
    font-size: clamp(1rem, 1.2vw, 1.5rem);
    line-height: 1.8;
    color: var(--azalte-text-muted);
    margin-bottom: 4rem;
    max-width: 85%;
    font-weight: 300;
  }
  
  /* HERO INTERACTIVE TABS */
  .hero-interactive-tabs {
    display: flex;
    gap: 3rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 1rem;
    width: max-content;
  }
  [data-theme="light"] .hero-interactive-tabs { border-color: rgba(0,0,0,0.05); }
  .hero-tab-btn {
    background: transparent;
    border: none;
    color: var(--azalte-text-muted);
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    cursor: pointer;
    transition: color 0.4s;
    text-shadow: var(--azalte-hud-shadow);
  }
  .hero-tab-btn.active { color: var(--azalte-text); font-weight: 700; }
  
  .hero-tab-content-wrapper { position: relative; min-height: 140px; }
  .tab-content { position: absolute; top: 0; left: 0; opacity: 0; pointer-events: none; transform: translateX(20px); transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
  .tab-content.active { opacity: 1; pointer-events: all; position: relative; transform: translateX(0); }
  
  .hud-scroll-advice {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: var(--azalte-text-muted);
    opacity: 0.4;
    animation: pulse 3s infinite;
    margin-top: 2rem;
  }
  @keyframes pulse {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.6; }
  }
  
  /* COMMON INNER LAYOUT FOR LATER STAGES */
  .stage-grid-scrollable-container {
    width: 100%;
    height: 100%;
    padding: 12vh 8vw 10vh 8vw;
    overflow-y: auto;
    overflow-x: hidden;
  }
  .stage-grid-scrollable-container::-webkit-scrollbar { width: 0; }
  
  .bento-section-header { margin-bottom: 6rem; max-width: 50vw; }
  .section-prefix-indicator {
    font-family: 'Share Tech Mono', monospace;
    color: var(--azalte-software);
    display: block;
    margin-bottom: 1.5rem;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
  }
  .section-main-headline {
    font-size: clamp(1.8rem, 3vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
  }
  
  /* STAGE 1 & 2: SPATIAL GRID */
  .spatial-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 4rem;
    padding-bottom: 15vh;
  }
  
  .spatial-card, .spatial-node {
    position: relative;
    display: flex;
    flex-direction: column;
  }
  
  .spatial-card { grid-column: span 4; justify-content: flex-start; }
  .spatial-card.card-span-dominant { grid-column: span 8; }
  .spatial-card.card-span-wide { grid-column: span 6; }
  
  .premium-bento-card {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s, border-color 0.4s;
  }
  @media (min-width: 1025px) {
    .premium-bento-card:hover {
      transform: scale(1.02) translateZ(30px) !important;
    }
    .glow-software:hover { box-shadow: 0 0 30px rgba(59, 130, 246, 0.3) !important; border-color: rgba(59, 130, 246, 0.5) !important; }
    .glow-finance:hover { box-shadow: 0 0 30px rgba(16, 185, 129, 0.3) !important; border-color: rgba(16, 185, 129, 0.5) !important; }
    .glow-myshop:hover { box-shadow: 0 0 30px rgba(245, 158, 11, 0.3) !important; border-color: rgba(245, 158, 11, 0.5) !important; }
    .glow-game:hover { box-shadow: 0 0 30px rgba(139, 92, 246, 0.3) !important; border-color: rgba(139, 92, 246, 0.5) !important; }
    .glow-social:hover { box-shadow: 0 0 30px rgba(236, 72, 153, 0.3) !important; border-color: rgba(236, 72, 153, 0.5) !important; }
  }

  .bento-card-tag {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.75rem;
    color: var(--azalte-software);
    margin-bottom: 1.5rem;
    letter-spacing: 0.1em;
  }
  .bento-card-title {
    font-size: clamp(1.3rem, 1.8vw, 2rem);
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.01em;
  }
  .bento-card-desc {
    color: var(--azalte-text-muted);
    line-height: 1.7;
    font-size: clamp(0.9rem, 1vw, 1.1rem);
    font-weight: 300;
  }
  
  /* STAGE 2: INFRA HUD SPECIFICS */
  .spatial-node { grid-column: span 4; gap: 2rem; justify-content: flex-start; }
  .infra-node-top-bar {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--azalte-text-muted);
  }
  .terminal-pulse-dot {
    width: 6px; height: 6px; border-radius: 50%; background: var(--azalte-finance);
    animation: pulse 2s infinite;
  }
  .infra-terminal-screen {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.8rem;
    color: var(--azalte-text-muted);
    line-height: 2;
  }
  .t-prefix { color: var(--azalte-software); }
  .t-success { color: var(--azalte-finance); }
  .t-warning { color: var(--azalte-myshop); }
  
  .infra-graphical-box {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.75rem;
    color: var(--azalte-text-muted);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
  }
  .pipeline-block { padding: 0.8rem 0; border-bottom: 1px dashed rgba(255,255,255,0.05); }
  [data-theme="light"] .pipeline-block { border-bottom-color: rgba(0,0,0,0.05); }
  .highlight-block { color: var(--azalte-text); font-weight: bold; letter-spacing: 0.05em; }
  .metric-fill-line { height: 1px; background: var(--azalte-finance); margin-top: 0.8rem; position: relative;}
  .metric-fill-line span { position: absolute; right: 0; top: -1.5rem; }
  
  .infra-node-footer { margin-top: auto; }
  .infra-node-footer h4 { margin-bottom: 0.8rem; font-size: 1.2rem; }
  .infra-node-footer p { color: var(--azalte-text-muted); font-size: 0.9rem; line-height: 1.6; font-weight: 300;}
  
  /* STAGE 3: ROADMAP */
  .spatial-roadmap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6rem;
    padding-bottom: 20vh;
    position: relative;
  }
  
  .roadmap-step { width: 35vw; position: relative; z-index: 2; }
  .step-left { align-self: flex-start; text-align: right; }
  .step-right { align-self: flex-end; text-align: left; }
  
  .roadmap-node-card {
    transition: box-shadow 0.4s ease, border-color 0.4s ease, transform 0.4s ease;
  }
  .step-left .roadmap-node-card:hover {
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.4), inset 0 0 10px rgba(59, 130, 246, 0.2);
    border-color: var(--azalte-software);
    transform: translateY(-5px);
  }
  .step-right .roadmap-node-card:hover {
    box-shadow: 0 0 25px rgba(245, 158, 11, 0.4), inset 0 0 10px rgba(245, 158, 11, 0.2);
    border-color: var(--azalte-finance);
    transform: translateY(-5px);
  }
  
  .roadmap-node-card { padding: 0; }
  .step-left .roadmap-node-card { padding-right: 0; }
  .step-right .roadmap-node-card { padding-left: 0; }
  
  .milestone-quarter {
    font-family: 'Share Tech Mono', monospace;
    color: var(--azalte-software);
    margin-bottom: 1rem;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
  }
  .roadmap-vector-arrow { display: none; }
  
  /* STAGE 4: FAQ HUD */
  .faq-console-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
  }
  .spatial-selectors { display: flex; flex-direction: column; gap: 1.5rem; }
  .azaltech-faq-trigger {
    background: transparent;
    border: none;
    text-align: left;
    color: var(--azalte-text-muted);
    font-size: clamp(0.9rem, 1vw, 1.1rem);
    cursor: pointer;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: color 0.4s, border-color 0.4s;
    text-shadow: var(--azalte-hud-shadow);
    font-weight: 300;
  }
  [data-theme="light"] .azaltech-faq-trigger { border-color: rgba(0,0,0,0.05); }
  .azaltech-faq-trigger.active, .azaltech-faq-trigger:hover {
    color: var(--azalte-text);
    border-color: var(--azalte-software);
  }
  
  .spatial-monitor {
    font-family: 'Share Tech Mono', monospace;
    color: var(--azalte-finance);
    padding: 3rem;
    position: relative;
    font-size: 0.85rem;
    line-height: 1.8;
  }
  .spatial-monitor::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0; width: 1px;
    background: var(--azalte-finance);
  }
  .faq-monitor-header { margin-bottom: 2.5rem; display: flex; gap: 1rem; align-items: center; color: var(--azalte-text-muted); }
  .faq-text-output, .faq-text-loading { font-size: 0.95rem; }
  .faq-cursor { animation: faqBlink 1s step-end infinite; }
  @keyframes faqBlink { 50% { opacity: 0; } }
  .faq-mon-dot { width: 6px; height: 6px; background: var(--azalte-finance); border-radius: 50%; }
  
  .azalte-tech-luxury-footer {
    margin-top: 10vh;
    padding: 2rem 4rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
  }
  [data-theme="light"] .azalte-tech-luxury-footer { border-color: rgba(0,0,0,0.1); background: rgba(255, 255, 255, 0.2); }
  
  .footer-segment-left { text-align: left; display: flex; flex-direction: column; gap: 0.5rem; }
  .footer-segment-right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 0.5rem; }
  
  .footer-branding-wrapper { margin-bottom: 0; justify-content: flex-start; display: flex; }
  .footer-legal-copy { color: var(--azalte-text-muted); font-size: 0.8rem; margin: 0; }
  .footer-segment-center { text-align: center; display: flex; flex-direction: column; gap: 0.5rem; align-items: center; }
  
  .footer-legal-links { margin-top: 0; display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
  .footer-legal-links a { color: var(--azalte-text-muted); font-size: 0.8rem; text-decoration: none; transition: color 0.3s; }
  .footer-legal-links a:hover { color: var(--azalte-software); }
  
  .contact-section-heading { display: none; }
  .contact-links-grid { display: flex; flex-direction: row; gap: 1.5rem; margin-bottom: 0; align-items: center; }
  .corporate-contact-link {
    color: var(--azalte-text);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
  }
  .corporate-contact-link:hover { color: var(--azalte-myshop); }
  
  .footer-social-icons { margin: 0; display: flex; gap: 1rem; justify-content: flex-end; }
  .footer-social-icons a { color: var(--azalte-text); font-weight: 500; font-size: 0.9rem; text-decoration: none; transition: color 0.3s; }
  .footer-social-icons a:hover { color: var(--azalte-social); }
  
  .footer-brand-motto { display: none; }

  /* BACK TO TOP BUTTON */
  .azalte-tech-btt {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--azalte-text);
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
  }
  .azalte-tech-btt.visible {
    opacity: 0.6;
    pointer-events: all;
    transform: translateY(0);
  }
  .azalte-tech-btt.visible:hover {
    opacity: 1;
    background: var(--azalte-software);
    transform: translateY(-5px);
  }
  [data-theme="light"] .azalte-tech-btt {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.1);
  }

/* 
 * ==========================================
 * V8 IMMERSIVE COMMAND CENTER OVERRIDES
 * ==========================================
 */

/* Hide Default Cursor */
body.azalte-tech-immersive-body {
  cursor: none;
}
body.azalte-tech-immersive-body * {
  cursor: none !important;
}

/* 1. Custom Laser Cursor */
#v8-custom-cursor {
  position: fixed;
  top: 0; left: 0;
  width: 6px;
  height: 6px;
  background: var(--azalte-software);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  box-shadow: 0 0 10px 2px rgba(59, 130, 246, 0.8), 0 0 20px rgba(59, 130, 246, 0.4);
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
  transition: width 0.2s, height 0.2s, background 0.2s, box-shadow 0.2s;
}

#v8-custom-cursor.cursor-hovering {
  width: 12px;
  height: 12px;
  background: var(--azalte-myshop);
  box-shadow: 0 0 15px 3px rgba(245, 158, 11, 0.8), 0 0 30px rgba(245, 158, 11, 0.4);
}

[data-theme="light"] #v8-custom-cursor {
  mix-blend-mode: multiply;
  box-shadow: 0 0 10px 2px rgba(29, 78, 216, 0.5), 0 0 20px rgba(29, 78, 216, 0.2);
}
[data-theme="light"] #v8-custom-cursor.cursor-hovering {
  box-shadow: 0 0 15px 3px rgba(180, 83, 9, 0.5), 0 0 30px rgba(180, 83, 9, 0.2);
}

#v8-cursor-trail {
  position: fixed;
  top: 0; left: 0;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(59, 130, 246, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition: top 0.15s cubic-bezier(0.16, 1, 0.3, 1), left 0.15s cubic-bezier(0.16, 1, 0.3, 1), width 0.2s, height 0.2s, border-color 0.2s;
}

#v8-cursor-trail.cursor-hovering {
  width: 50px;
  height: 50px;
  border-color: rgba(245, 158, 11, 0.6);
  border-style: dashed;
  animation: spinTrail 4s linear infinite;
}

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

/* 2. CRT Scanline Overlay */
#v8-scanline-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  pointer-events: none;
  z-index: 20;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.15),
    rgba(0, 0, 0, 0.15) 1px,
    transparent 1px,
    transparent 2px
  );
  opacity: 0.8;
  mix-blend-mode: overlay;
  animation: scanlineScroll 10s linear infinite;
}

/* Light Theme Overlay Adjustments */
[data-theme="light"] #v8-scanline-overlay {
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.05),
    rgba(0, 0, 0, 0.05) 1px,
    transparent 1px,
    transparent 2px
  );
  mix-blend-mode: normal;
  opacity: 0.1;
}

@keyframes scanlineScroll {
  0% { transform: translateY(0); }
  100% { transform: translateY(20px); }
}

/* 3. Vignette Overlay */
#v8-vignette-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  pointer-events: none;
  z-index: 21;
  background: radial-gradient(
    circle at center,
    transparent 40%,
    rgba(0, 0, 0, 0.6) 100%
  );
}

[data-theme="light"] #v8-vignette-overlay {
  background: radial-gradient(
    circle at center,
    transparent 30%,
    rgba(0, 0, 0, 0.15) 100%
  );
}

/* 4. Holographic Panels (3D Perspective applied via JS) */
.azalte-tech-stage-viewport-wrapper {
  perspective: 1200px; /* Enable 3D space for children */
}

.v8-holographic-panel {
  transform-style: preserve-3d;
  will-change: transform;
  /* Glassmorphism base */
  background: rgba(10, 15, 25, 0.2) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255,255,255,0.1) !important;
  border-radius: 8px; /* Slight radius for premium feel */
  padding: 2rem; /* Ensure some padding for standalone text blocks, handled by specifics generally */
}

/* Adjust specifics to avoid double padding where not needed */
header.v8-holographic-panel { 
  border-radius: 0 !important; 
  border-top: none !important; 
  border-left: none !important; 
  border-right: none !important; 
  padding: 0.5rem 4rem !important; 
  height: 60px !important;
}
.azalte-tech-stage-tracker-hud.v8-holographic-panel { padding: 1.5rem; }
.stage-content-box.v8-holographic-panel { padding: 3rem; border-radius: 12px; }

[data-theme="light"] .v8-holographic-panel {
  background: rgba(220, 230, 245, 0.6) !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255,255,255,0.8) !important;
}

/* Give text elements within holographic panels a slight Z-axis pop */
.v8-holographic-panel h1, 
.v8-holographic-panel h2, 
.v8-holographic-panel h3, 
.v8-holographic-panel .bento-card-tag {
  transform: translateZ(20px);
  display: block; /* Ensure transform applies */
}

.v8-holographic-panel p {
  transform: translateZ(10px);
  display: block;
}

/* 
 * ==========================================
 * MOBILE & TABLET OPTIMIZATION (V8)
 * ==========================================
 */

@media (max-width: 1024px) {
  /* Hide Custom Cursor completely */
  #v8-custom-cursor, #v8-cursor-trail { display: none !important; }
  body.azalte-tech-immersive-body, body.azalte-tech-immersive-body * { cursor: auto !important; }

  /* Hide Stage Tracker entirely on Tablet & Mobile as requested */
  .azalte-tech-stage-tracker-hud {
    display: none !important;
  }
  
  /* Tablets: 2 columns for Bento and Infra grids */
  .spatial-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 2rem !important;
  }
  
  .spatial-card, .spatial-node {
    grid-column: span 1 !important;
  }
  
  /* Reset special spanning */
  .spatial-card.card-span-dominant,
  .spatial-card.card-span-wide {
    grid-column: span 1 !important;
  }
}

@media (max-width: 768px) {
  /* Hide center zone on mobile header */
  .nav-center-zone {
    display: none !important;
  }

  /* Reduce header padding */
  header.v8-holographic-panel {
    padding: 0.5rem 1.5rem !important;
  }

  /* Reduce stage paddings */
  .stage-grid-scrollable-container {
    padding: 10vh 5vw 10vh 5vw !important;
  }

  /* Single Column Layout for grids */
  .spatial-grid {
    grid-template-columns: 1fr !important;
  }
  
  /* Bento Headers */
  .bento-section-header {
    max-width: 100% !important;
  }
  
  .section-main-headline {
    font-size: 2.2rem !important;
  }

  /* Roadmap flatten to vertical */
  .roadmap-step {
    width: 100% !important;
  }
  
  .step-left, .step-right {
    align-self: center !important;
    text-align: left !important;
  }

  .roadmap-vector-arrow {
    display: none !important; /* hide zigzag arrows */
  }

  /* FAQ single column */
  .faq-console-wrapper {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  /* Adjust Holographic panel paddings */
  .v8-holographic-panel {
    padding: 1.5rem !important;
  }
  
  .stage-content-box.v8-holographic-panel {
    padding: 1.5rem !important;
  }

  /* Hero Section tweaks */
  .alignment-left {
    padding-left: 5vw !important;
    max-width: 90vw !important;
  }
  
  .hero-main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem) !important;
  }
  
  .hero-sub-paragraph {
    max-width: 100% !important;
  }
  
  .hero-interactive-tabs {
    flex-wrap: wrap;
    gap: 1.5rem;
  }
  
  /* Footer adjustments */
  .azalte-tech-luxury-footer {
    flex-direction: column;
    padding: 2rem !important;
    gap: 2rem;
    align-items: center;
    text-align: center;
  }
  .footer-segment-left, .footer-segment-right {
    align-items: center;
    text-align: center;
  }
  .footer-legal-links, .footer-social-icons, .contact-links-grid, .footer-branding-wrapper {
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
  }
}