/* ==========================================================================
   FANTOM AI - SHARED DESIGN SYSTEM & CORE STYLES
   ========================================================================== */

:root {
    --bg-dark-base: #03030A;
    --bg-dark-glow: #0B0B1E;
    --bg-card: rgba(14, 14, 30, 0.65);
    --bg-card-hover: rgba(22, 22, 46, 0.85);
    
    --holographic-cyan: #00F2FE;
    --electric-violet: #7F00FF;
    --neon-blue: #0082ff;
    --emerald-green: #10b981;
    --amber-warning: #f59e0b;
    --crimson-danger: #ef4444;

    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;

    --glass-bg: rgba(10, 10, 24, 0.55);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-glow: rgba(0, 242, 254, 0.3);
    --glass-border-violet: rgba(127, 0, 255, 0.35);

    --font-display: 'Space Grotesk', system-ui, -apple-system, sans-serif;
    --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

    --shadow-cyan: 0 0 25px rgba(0, 242, 254, 0.18);
    --shadow-violet: 0 0 30px rgba(127, 0, 255, 0.22);
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark-base);
    background-image: 
        radial-gradient(circle at 50% 0%, var(--bg-dark-glow) 0%, transparent 60%),
        radial-gradient(circle at 10% 40%, rgba(127, 0, 255, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 90% 70%, rgba(0, 242, 254, 0.05) 0%, transparent 50%);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    position: relative;
    overflow-wrap: break-word;
}

h1, h2, h3, h4, h5, h6, p, li, a, span, label, button, td, th {
    overflow-wrap: break-word;
}

/* Background Canvas for Constellations */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    opacity: 0.7;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}
::-webkit-scrollbar-track {
    background: #03030a;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--holographic-cyan);
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 3.5rem;
    background: rgba(5, 5, 14, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    transition: var(--transition-normal);
}

.brand-logo-container {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
    color: white;
}

.logo-q-infinity {
    width: 42px;
    height: 42px;
    position: relative;
    perspective: 800px;
    flex-shrink: 0;
}

.logo-q-infinity canvas {
    display: block;
}

.brand-logo-svg {
    width: 38px;
    height: 38px;
    filter: drop-shadow(0 0 8px rgba(0, 242, 254, 0.5));
    transition: transform var(--transition-normal);
}

.brand-logo-container:hover .brand-logo-svg {
    transform: rotate(5deg) scale(1.05);
}

.brand-title {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #ffffff;
}

.brand-title span {
    background: linear-gradient(135deg, var(--holographic-cyan), var(--electric-violet));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-left: 2px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: rgba(14, 14, 30, 0.45);
    padding: 0.5rem 1.25rem;
    border-radius: 40px;
    border: 1px solid var(--glass-border);
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-family: var(--font-display);
    font-size: 0.92rem;
    font-weight: 500;
    padding: 0.4rem 0.85rem;
    border-radius: 20px;
    transition: all var(--transition-fast);
    position: relative;
}

.nav-links a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.nav-links a.active {
    color: var(--holographic-cyan);
    background: rgba(0, 242, 254, 0.1);
    font-weight: 700;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.15);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-nav-appointment {
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.15), rgba(127, 0, 255, 0.25));
    border: 1px solid rgba(0, 242, 254, 0.4);
    color: #ffffff;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.65rem 1.4rem;
    border-radius: 30px;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.15);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-nav-appointment:hover {
    border-color: var(--holographic-cyan);
    box-shadow: 0 0 25px rgba(0, 242, 254, 0.35);
    transform: translateY(-2px);
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.25), rgba(127, 0, 255, 0.35));
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
}

/* ==========================================================================
   BUTTONS & BADGES
   ========================================================================== */
.btn {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.85rem 1.85rem;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    transition: all var(--transition-normal);
    border: none;
    max-width: 100%;
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
}

.btn > * {
    min-width: 0;
}

.btn-cyber-primary {
    background: linear-gradient(135deg, var(--holographic-cyan), var(--electric-violet));
    color: #03030a;
    font-weight: 700;
    box-shadow: 0 0 25px rgba(0, 242, 254, 0.3);
}

.btn-cyber-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 35px rgba(0, 242, 254, 0.5);
    color: #000;
}

.btn-cyber-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: #ffffff;
    backdrop-filter: blur(10px);
}

.btn-cyber-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.badge-glow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    background: rgba(0, 242, 254, 0.08);
    border: 1px solid rgba(0, 242, 254, 0.25);
    color: var(--holographic-cyan);
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
    max-width: 100%;
    text-align: center;
    overflow-wrap: anywhere;
}

.badge-glow.violet {
    background: rgba(127, 0, 255, 0.1);
    border-color: rgba(127, 0, 255, 0.35);
    color: #c084fc;
}

.badge-glow.green {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    color: #10b981;
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: currentColor;
    box-shadow: 0 0 8px currentColor;
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

/* ==========================================================================
   PAGE LAYOUT & CONTAINER
   ========================================================================== */
.page-wrapper {
    position: relative;
    z-index: 1;
    padding-top: 80px;
    width: 100%;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: 2.75rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-header h2 span {
    background: linear-gradient(135deg, var(--holographic-cyan), var(--electric-violet));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.15rem;
    max-width: 680px;
    margin: 0 auto;
}

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    font-family: var(--font-display);
    font-size: 0.85rem;
    margin-bottom: 2rem;
    overflow-wrap: anywhere;
}

.breadcrumbs a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.breadcrumbs a:hover {
    color: var(--holographic-cyan);
}

.breadcrumbs span.separator {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.breadcrumbs span.current {
    color: var(--holographic-cyan);
    font-weight: 600;
}

/* ==========================================================================
   OFFERING HERO & DETAIL HEADER
   ========================================================================== */
.offering-hero {
    padding: 5rem 0 3.5rem;
    text-align: center;
    position: relative;
}

.offering-hero h1 {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    color: #ffffff;
    margin-bottom: 1.25rem;
    overflow-wrap: anywhere;
}

.offering-hero h1 span {
    background: linear-gradient(135deg, var(--holographic-cyan), var(--electric-violet));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.offering-hero p.lead-desc {
    color: var(--text-secondary);
    font-size: 1.25rem;
    max-width: 820px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.hero-stats-row {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.hero-stat-pill {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 0.85rem 1.75rem;
    border-radius: 16px;
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 100%;
    min-width: 0;
}

.hero-stat-number {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--holographic-cyan);
    overflow-wrap: anywhere;
}

.hero-stat-label {
    font-size: 0.82rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    overflow-wrap: anywhere;
}

/* ==========================================================================
   ARCHITECTURE DIAGRAM SECTION
   ========================================================================== */
.diagram-section {
    margin: 4rem 0 6rem;
}

.diagram-card {
    background: rgba(8, 8, 20, 0.7);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
}

.diagram-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 1.25rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.diagram-card-title {
    min-width: 0;
}

.diagram-card-title h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: #ffffff;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.diagram-card-title p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    overflow-wrap: anywhere;
}

.diagram-badge {
    background: rgba(0, 242, 254, 0.1);
    border: 1px solid rgba(0, 242, 254, 0.3);
    color: var(--holographic-cyan);
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.diagram-frame {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #03030a;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.8);
}

.diagram-frame img,
.diagram-frame svg {
    width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   FEATURE DEEP-DIVES & GRIDS
   ========================================================================== */
.features-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    margin: 3rem 0 5rem;
}

.features-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.5rem;
    margin: 3rem 0 5rem;
}

.feature-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    padding: 2.25rem 2rem;
    backdrop-filter: blur(12px);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    min-width: 0;
}

.feature-card > div,
.feature-card > div > div {
    min-width: 0;
}

.feature-card h3,
.feature-card p,
.feature-card div {
    overflow-wrap: anywhere;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--glass-border-glow);
    box-shadow: var(--shadow-cyan);
}

.feature-icon-wrapper {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.15), rgba(127, 0, 255, 0.2));
    border: 1px solid rgba(0, 242, 254, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--holographic-cyan);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.98rem;
    line-height: 1.65;
}

.feature-card-metric {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.35rem 1rem;
    min-width: 0;
}

.feature-card-metric span.metric-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    min-width: 0;
}

.feature-card-metric span.metric-val {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--holographic-cyan);
    min-width: 0;
    margin-left: auto;
    text-align: right;
    overflow-wrap: anywhere;
}

/* ==========================================================================
   INTERACTIVE SIMULATORS & DEMO WIDGETS
   ========================================================================== */
.simulator-section {
    margin: 5rem 0;
}

.simulator-card {
    background: rgba(10, 10, 26, 0.85);
    border: 1px solid var(--glass-border-violet);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow-violet);
    backdrop-filter: blur(16px);
}

.simulator-header {
    margin-bottom: 2rem;
    text-align: center;
}

.simulator-header h3 {
    font-family: var(--font-display);
    font-size: 1.85rem;
    color: white;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.simulator-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Interactive Simulator Layout */
.simulator-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2rem;
    background: rgba(4, 4, 12, 0.7);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 1.75rem;
}

.simulator-body > * {
    min-width: 0;
}

.simulator-body.webdev-simulator-body {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
}

.simulator-controls {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    min-width: 0;
}

.simulator-console {
    background: #020206;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 1.25rem;
    font-family: 'Space Grotesk', monospace;
    font-size: 0.88rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 280px;
    min-width: 0;
}

.console-output-area {
    color: #e2e8f0;
    line-height: 1.6;
    overflow-y: auto;
    overflow-wrap: anywhere;
    word-break: break-word;
    max-height: 240px;
}

.console-status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 0.75rem;
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.console-status-bar span {
    min-width: 0;
    overflow-wrap: anywhere;
}

/* Waveform Visualizer */
.waveform-bars {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 60px;
    margin: 1.5rem 0;
}

.waveform-bar {
    width: 4px;
    height: 15px;
    background: var(--holographic-cyan);
    border-radius: 2px;
    transition: height 0.15s ease;
}

.waveform-bars.active .waveform-bar {
    animation: wavePulse 1s infinite ease-in-out;
}

@keyframes wavePulse {
    0%, 100% { height: 10px; }
    50% { height: 50px; background: var(--electric-violet); }
}

/* ==========================================================================
   INTEGRATIONS CHIPS
   ========================================================================== */
.integrations-box {
    margin: 4rem 0;
    text-align: center;
}

.integrations-box h3 {
    font-family: var(--font-display);
    font-size: 1.65rem;
    color: white;
    margin-bottom: 0.5rem;
}

.integrations-box p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.integrations-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
}

.integration-tag {
    background: rgba(20, 20, 42, 0.6);
    border: 1px solid var(--glass-border);
    padding: 0.6rem 1.25rem;
    border-radius: 30px;
    font-family: var(--font-display);
    font-size: 0.9rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--transition-fast);
    max-width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
}

.integration-tag span {
    min-width: 0;
}

.integration-tag:hover {
    border-color: var(--holographic-cyan);
    color: var(--holographic-cyan);
    transform: translateY(-2px);
    background: rgba(0, 242, 254, 0.08);
}

/* ==========================================================================
   TECHNICAL SPECIFICATIONS TABLE
   ========================================================================== */
.spec-table-container {
    margin: 4rem 0;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    backdrop-filter: blur(12px);
}

.spec-table-title {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--glass-border);
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: #ffffff;
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
}

.spec-table th,
.spec-table td {
    padding: 1.25rem 2rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    overflow-wrap: anywhere;
}

.spec-table th {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-muted);
    font-family: var(--font-display);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.spec-table td {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.spec-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.spec-table td.spec-name {
    color: #ffffff;
    font-weight: 600;
    font-family: var(--font-display);
}

.spec-table td.spec-val {
    color: var(--holographic-cyan);
    font-weight: 600;
    font-family: var(--font-display);
}

/* ==========================================================================
   CONVERSION CTA BANNER
   ========================================================================== */
.cta-banner {
    margin: 6rem 0;
    padding: 4.5rem 3rem;
    border-radius: 24px;
    background: radial-gradient(circle at center, rgba(127, 0, 255, 0.25) 0%, rgba(10, 10, 26, 0.9) 70%);
    border: 1px solid var(--glass-border-violet);
    box-shadow: 0 0 50px rgba(127, 0, 255, 0.2);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-banner h2 {
    font-family: var(--font-display);
    font-size: 2.75rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1rem;
}

.cta-banner p {
    color: var(--text-secondary);
    font-size: 1.15rem;
    max-width: 650px;
    margin: 0 auto 2.5rem;
}

.cta-banner-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* ==========================================================================
   UNIVERSAL INTERACTIVE DETAILS DRAWER
   ========================================================================== */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(3, 3, 10, 0.6);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    z-index: 2000;
    transition: opacity 0.4s ease, visibility 0.4s;
}

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

.drawer {
    position: fixed;
    top: 0;
    right: -600px;
    width: 550px;
    height: 100vh;
    background: rgba(10, 10, 22, 0.95);
    backdrop-filter: blur(25px);
    border-left: 1px solid var(--glass-border-glow);
    z-index: 2001;
    padding: 4rem 3rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    overflow-y: auto;
    transition: right 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -20px 0 50px rgba(0, 0, 0, 0.8);
}

.drawer.active {
    right: 0;
}

.btn-close-drawer {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-close-drawer:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: rotate(90deg);
}

.drawer-icon-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    background: rgba(0, 242, 254, 0.05);
    border: 1px solid rgba(0, 242, 254, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--holographic-cyan);
    margin-bottom: 1rem;
}

.drawer h2 {
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 800;
    color: white;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.drawer-subtitle {
    color: var(--holographic-cyan);
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: -1rem;
    margin-bottom: 1rem;
    overflow-wrap: anywhere;
}

.drawer-body {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.drawer-pitch-list {
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.drawer-pitch-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    min-width: 0;
}

.drawer-pitch-item > div {
    min-width: 0;
}

.drawer-pitch-item i {
    color: var(--holographic-cyan);
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.drawer-pitch-item h4 {
    color: white;
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
    overflow-wrap: anywhere;
}

.drawer-pitch-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    overflow-wrap: anywhere;
}

.drawer-integrations-section {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding-top: 2rem;
    margin-top: auto;
}

.drawer-integrations-section h4 {
    color: white;
    font-family: var(--font-display);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.integrations-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.integration-chip {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--text-primary);
    font-weight: 500;
}

/* ==========================================================================
   APPOINTMENT MODAL
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(3, 3, 10, 0.75);
    backdrop-filter: blur(12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

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

.appointment-modal {
    background: #0d0d1e;
    border: 1px solid var(--glass-border-glow);
    border-radius: 24px;
    padding: 3rem;
    width: 100%;
    max-width: 580px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 35px rgba(0, 242, 254, 0.2);
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 90vh;
    overflow-y: auto;
}

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

.btn-close-modal {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.btn-close-modal:hover {
    color: white;
    background: rgba(255, 255, 255, 0.15);
    transform: rotate(90deg);
}

.appointment-modal h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
}

.modal-sub {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
}

.form-group label {
    font-family: var(--font-display);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(5, 5, 14, 0.8);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 0.85rem 1rem;
    color: white;
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: all var(--transition-fast);
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--holographic-cyan);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
}

.form-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.25rem;
}

.btn-submit-glow {
    width: 100%;
    background: linear-gradient(135deg, var(--holographic-cyan), var(--electric-violet));
    color: #03030a;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    padding: 1rem;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 0 25px rgba(0, 242, 254, 0.3);
    transition: all var(--transition-normal);
    margin-top: 1rem;
}

.btn-submit-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 35px rgba(0, 242, 254, 0.5);
}

/* ==========================================================================
   GLOBAL CYBER FOOTER
   ========================================================================== */
.cyber-footer {
    border-top: 1px solid var(--glass-border);
    background: rgba(3, 3, 10, 0.9);
    padding: 4.5rem 3.5rem 2.5rem;
    position: relative;
    z-index: 10;
}

.footer-grid {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.5fr);
    gap: 3rem;
    margin-bottom: 3.5rem;
}

.footer-brand h2 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: white;
    margin-bottom: 0.85rem;
}

.footer-brand h2 span {
    background: linear-gradient(135deg, var(--holographic-cyan), var(--electric-violet));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-tagline {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 320px;
    margin-bottom: 1.5rem;
}

.footer-col h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.92rem;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--holographic-cyan);
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.92rem;
    margin-bottom: 0.85rem;
    transition: color var(--transition-fast);
    min-width: 0;
}

.footer-contact-item span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.footer-brand,
.footer-col {
    min-width: 0;
}

.footer-contact-item:hover {
    color: var(--holographic-cyan);
}

.footer-contact-item i {
    color: var(--holographic-cyan);
}

.footer-bottom {
    max-width: 1240px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.88rem;
    flex-wrap: wrap;
    gap: 1rem;
}

/* ==========================================================================
   RESPONSIVE QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
    .navbar {
        padding: 0 1.5rem;
    }
    .features-grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .simulator-body,
    .simulator-body.webdev-simulator-body {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 900px) {
    .nav-links {
        display: none;
    }
    .mobile-nav-toggle {
        display: block;
    }
    .mobile-nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: rgba(5, 5, 14, 0.96);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--glass-border);
        padding: 1.5rem;
        display: none;
        flex-direction: column;
        gap: 1rem;
        z-index: 999;
    }
    .mobile-nav-menu.active {
        display: flex;
    }
    .mobile-nav-menu a {
        color: var(--text-primary);
        font-family: var(--font-display);
        font-size: 1.1rem;
        text-decoration: none;
        padding: 0.5rem 0;
    }
    .mobile-nav-menu a.active {
        color: var(--holographic-cyan);
        font-weight: 700;
    }
}

@media (max-width: 768px) {
    .features-grid-3,
    .features-grid-2 {
        grid-template-columns: minmax(0, 1fr);
    }
    .form-row {
        grid-template-columns: minmax(0, 1fr);
    }
    .footer-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .offering-hero h1 {
        font-size: 2.5rem;
    }
    .cta-banner h2 {
        font-size: 2rem;
    }
    .appointment-modal {
        padding: 2rem 1.5rem;
    }
    .drawer {
        width: 100vw;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0 1rem;
    }
    .brand-title {
        font-size: 1.25rem;
    }
    .btn-nav-appointment {
        display: none;
    }
    .container {
        padding: 0 1rem;
    }
    .section-header h2 {
        font-size: 1.75rem;
    }
    .offering-hero h1 {
        font-size: 2rem;
    }
    .cta-banner {
        padding: 2.5rem 1.25rem;
    }
    .cta-banner h2 {
        font-size: 1.6rem;
    }
    .simulator-card,
    .diagram-card {
        padding: 1.5rem 1.25rem;
    }
    .simulator-body {
        padding: 1.25rem;
    }
    .feature-card {
        padding: 1.75rem 1.25rem;
    }
    .drawer {
        padding: 3rem 1.25rem;
    }
    .drawer h2 {
        font-size: 1.75rem;
    }
    .spec-table-title {
        padding: 1.25rem 1rem;
    }
    .spec-table th,
    .spec-table td {
        padding: 0.85rem 1rem;
    }
}
