/* ==========================================================================
   ApexAutomation CSS Design System (Premium Dark-Glassmorphism Style)
   ========================================================================== */

/* Custom Variables */
:root {
    --bg-dark: #080b11;
    --bg-darker: #04060a;
    --panel-glass: rgba(13, 20, 30, 0.55);
    --panel-glass-hover: rgba(20, 30, 45, 0.7);
    --panel-border: rgba(255, 255, 255, 0.08);
    --panel-border-glow: rgba(0, 242, 258, 0.25);
    
    --accent-cyan: #00f2fe;
    --accent-indigo: #4facfe;
    --accent-gradient: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-indigo) 100%);
    --bg-glow: radial-gradient(circle, rgba(0, 242, 254, 0.08) 0%, rgba(79, 172, 254, 0.03) 50%, rgba(0,0,0,0) 100%);
    
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --text-dark: #475569;
    
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-premium: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
    --blur-glass: blur(16px);
}

/* Reset and Core Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-darker);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-indigo);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Typography elements */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

p {
    font-family: var(--font-body);
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Common Badges & Buttons */
.badge {
    background: rgba(0, 242, 254, 0.1);
    border: 1px solid rgba(0, 242, 254, 0.2);
    color: var(--accent-cyan);
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    width: fit-content;
}

.sub-badge {
    color: var(--accent-indigo);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 0.5rem;
}

/* Button UI */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.8rem 1.6rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #04060a;
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.25);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 242, 254, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border-color: var(--panel-border);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border-color: rgba(255, 255, 255, 0.2);
}
.btn-outline:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.btn-text {
    background: transparent;
    color: var(--text-muted);
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
    text-decoration: underline;
}
.btn-text:hover {
    color: var(--accent-cyan);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.btn-block {
    width: 100%;
}

/* Glass Card Base Style */
.glass-card {
    background: var(--panel-glass);
    border: 1px solid var(--panel-border);
    backdrop-filter: var(--blur-glass);
    border-radius: 12px;
    box-shadow: var(--shadow-premium);
    transition: var(--transition-smooth);
}

/* ==========================================================================
   Header Navigation Styling
   ========================================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(8, 11, 17, 0.6);
    backdrop-filter: var(--blur-glass);
    border-bottom: 1px solid var(--panel-border);
    transition: var(--transition-smooth);
}

.main-header.scrolled {
    background: rgba(4, 6, 10, 0.85);
    padding: 0.75rem 0;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.01em;
}
.logo-text span {
    font-weight: 400;
    color: var(--text-muted);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}
.nav-links a:hover {
    color: var(--accent-cyan);
}

.nav-btn {
    padding: 0.5rem 1.1rem;
    font-size: 0.85rem;
}

/* Hamburger Menu Toggle */
.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}
.mobile-nav-toggle span {
    width: 100%;
    height: 2px;
    background-color: var(--text-main);
    transition: var(--transition-smooth);
    transform-origin: left center;
}

/* Mobile Drawer */
.mobile-drawer {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: 0;
    background: var(--bg-darker);
    z-index: 999;
    overflow: hidden;
    transition: var(--transition-smooth);
    border-bottom: 0px solid var(--panel-border);
}
.mobile-drawer.open {
    height: calc(100vh - 70px);
    border-bottom: 1px solid var(--panel-border);
}
.mobile-nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    height: 100%;
    padding-bottom: 80px;
}
.mobile-nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    transition: var(--transition-smooth);
}
.mobile-nav-links a:hover {
    color: var(--accent-cyan);
}

/* ==========================================================================
   Hero Section Styling
   ========================================================================== */
.hero-section {
    position: relative;
    padding-top: 160px;
    padding-bottom: 100px;
    background: transparent;
    overflow: hidden;
}

/* Ambient light glow */
.hero-glow {
    position: absolute;
    width: 40vw;
    height: 40vw;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 1;
    pointer-events: none;
}
.hero-glow-1 {
    top: -10%;
    right: 5%;
    background: rgba(0, 242, 254, 0.08);
}
.hero-glow-2 {
    bottom: -10%;
    left: -5%;
    background: rgba(79, 172, 254, 0.05);
}

.hero-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: center;
}

/* ----- Fixed Backdrop & Canvas Layers ----- */
.fixed-backdrop {
    position: fixed;
    inset: 0;
    background: var(--bg-dark);
    z-index: -5;
}

#hero-3d-canvas,
.hero-particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -4;
    pointer-events: none;
}

.glowing-floor {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30vh;
    background: linear-gradient(to top, rgba(0, 242, 254, 0.03), transparent);
    z-index: -3;
    pointer-events: none;
}

/* ----- Gradient Overlay (cosmic multi-color drift + pulse) ----- */
.hero-gradient-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 15% 25%, rgba(0, 242, 254, 0.08), transparent),
        radial-gradient(ellipse 50% 40% at 85% 20%, rgba(79, 172, 254, 0.08), transparent),
        radial-gradient(ellipse 70% 55% at 75% 75%, rgba(120, 40, 180, 0.06), transparent),
        radial-gradient(ellipse 55% 45% at 25% 80%, rgba(200, 50, 120, 0.05), transparent),
        radial-gradient(ellipse 40% 35% at 50% 50%, rgba(30, 160, 200, 0.06), transparent);
    background-size: 200% 200%;
    mix-blend-mode: screen;
    opacity: 1;
    pointer-events: none;
    z-index: -2;
}

@keyframes gradientDrift {
    0%   { background-position: 0% 0%; }
    20%  { background-position: 40% 60%; }
    40%  { background-position: 80% 20%; }
    60%  { background-position: 100% 80%; }
    80%  { background-position: 30% 100%; }
    100% { background-position: 0% 0%; }
}

@keyframes gradientPulse {
    0%, 100% { opacity: 0.65; }
    50%      { opacity: 1; }
}

/* ----- Noise Texture (pure CSS, no external file) ----- */
.hero-noise {
    display: none;
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    opacity: 0.035;
    mix-blend-mode: overlay;
}
.hero-noise::before {
    content: '';
    position: absolute;
    inset: -200%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 256px 256px;
}

@keyframes noiseShift {
    0%   { transform: translate(0, 0); }
    33%  { transform: translate(-80px, -40px); }
    66%  { transform: translate(40px, -80px); }
    100% { transform: translate(-40px, 40px); }
}

/* ----- Floating Code Overlay ----- */
.hero-code-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.hero-content {
    max-width: 620px;
}
.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-main);
    margin-bottom: 1rem;
    font-weight: 400;
}

.hero-meta {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Terminal Mockup */
.hero-visual {
    display: flex;
    justify-content: center;
}

.terminal-mockup {
    width: 100%;
    max-width: 460px;
    background: #090e15;
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    overflow: hidden;
}

.terminal-header {
    display: flex;
    align-items: center;
    height: 36px;
    padding: 0 1rem;
    background: #111823;
    border-bottom: 1px solid var(--panel-border);
    gap: 0.4rem;
}
.terminal-header .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.terminal-header .dot.red { background: #ef4444; }
.terminal-header .dot.yellow { background: #f59e0b; }
.terminal-header .dot.green { background: #10b981; }
.terminal-header .terminal-title {
    margin-left: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.terminal-body {
    padding: 1.2rem;
    font-size: 0.85rem;
    line-height: 1.6;
    height: 270px;
    overflow-y: auto;
}

.terminal-body .line {
    margin-bottom: 0.4rem;
}

/* Terminal colors */
.font-mono { font-family: var(--font-mono); }
.t-cyan { color: var(--accent-cyan); }
.t-green { color: var(--success); }
.t-yellow { color: var(--warning); }
.t-gray { color: var(--text-muted); }
.t-blue { color: var(--accent-indigo); }

/* Terminal Simulation & Cursor Animations */
.terminal-cursor {
    display: inline-block;
    width: 8px;
    height: 15px;
    background-color: var(--accent-cyan);
    margin-left: 4px;
    vertical-align: middle;
    animation: blinkCursor 0.8s step-end infinite;
}

@keyframes blinkCursor {
    from, to { background-color: transparent }
    50% { background-color: var(--accent-cyan) }
}

.terminal-pointer {
    position: absolute;
    width: 14px;
    height: 14px;
    background-color: #ffffff;
    border: 1.5px solid #000000;
    border-radius: 50% 50% 50% 0; /* Creates arrow pointer */
    transform: rotate(-45deg); /* Point up-left */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
    z-index: 10;
    pointer-events: none;
    transition: left 0.8s cubic-bezier(0.25, 0.8, 0.25, 1), top 0.8s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.4s;
    opacity: 0;
}

.click-ripple {
    position: absolute;
    width: 6px;
    height: 6px;
    border: 2px solid var(--accent-cyan);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9;
    animation: rippleEffect 0.5s ease-out forwards;
}

@keyframes rippleEffect {
    0% {
        width: 6px;
        height: 6px;
        opacity: 1;
    }
    100% {
        width: 32px;
        height: 32px;
        opacity: 0;
    }
}

.animate-pulse {
    animation: pulse 1.5s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.cursor-block {
    display: inline-block;
    width: 7px;
    background-color: var(--text-main);
    margin-left: 2px;
}

/* ==========================================================================
   What I Can Build - Grid Columns
   ========================================================================== */
.section-padding {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem auto;
}
.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.section-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
}

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.cap-column {
    background: rgba(13, 20, 30, 0.1);
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    transition: var(--transition-smooth);
    backdrop-filter: none;
}
.cap-column:hover {
    border-color: var(--panel-border-glow);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 242, 254, 0.05);
}

.cap-column-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--panel-border);
    padding-bottom: 1rem;
}

.cap-icon {
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cap-column h3 {
    font-size: 1.2rem;
    font-weight: 600;
}

.cap-list {
    list-style: none;
}
.cap-list li {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
}
.cap-list li::before {
    content: "•";
    color: var(--accent-indigo);
    font-size: 1rem;
    line-height: 1;
    margin-top: 0.05rem;
    flex-shrink: 0;
}

/* ==========================================================================
   Featured Client Solutions (Accordion)
   ========================================================================== */
.projects-section {
    background: transparent;
}

.projects-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 1000px;
    margin: 0 auto;
}

.project-accordion {
    background: var(--panel-glass);
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition-smooth);
}
.project-accordion:hover {
    border-color: var(--panel-border-glow);
}

.project-header {
    width: 100%;
    background: transparent;
    border: none;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    text-align: left;
    color: inherit;
    gap: 1rem;
}

.project-meta-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.project-num {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
}

.project-title-group h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    transition: var(--transition-smooth);
}
.project-accordion:hover .project-title-group h3 {
    color: var(--accent-cyan);
}

.project-category {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.accordion-indicators {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.badge-tech {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--panel-border);
    padding: 0.25rem 0.65rem;
    border-radius: 4px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.toggle-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-muted);
}

.project-accordion.open .toggle-icon {
    transform: rotate(180deg);
    color: var(--accent-cyan);
}

/* Accordion Expand Panel */
.project-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-content-inner {
    padding: 0 2rem 2.5rem 2rem;
    border-top: 1px solid var(--panel-border);
    background: rgba(4, 6, 10, 0.3);
}

.project-details-grid {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    padding-top: 2rem;
}

.project-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    width: 100%;
}

@media (max-width: 768px) {
    .project-info {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.detail-block {
    margin-bottom: 1.5rem;
}
.detail-block h4 {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}
.detail-block p {
    font-size: 0.92rem;
    color: var(--text-main);
}

.detail-list {
    list-style: none;
}
.detail-list li {
    font-size: 0.9rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}
.detail-list li::before {
    content: "✓";
    color: var(--accent-cyan);
    position: absolute;
    left: 0;
    font-weight: 700;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.tech-tags .tag {
    background: rgba(0, 242, 254, 0.05);
    border: 1px solid rgba(0, 242, 254, 0.15);
    color: var(--accent-cyan);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.highlight-box {
    background: rgba(16, 185, 129, 0.04);
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: 8px;
    padding: 1.25rem;
}
.highlight-box h4 {
    color: var(--success);
}
.highlight-box p {
    font-weight: 500;
}

/* Accordion Tab Assets Panel */
.project-assets {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 850px;
    margin: 0 auto;
}

.asset-tab-nav {
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid var(--panel-border);
    padding-bottom: 0.5rem;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 6px;
    transition: var(--transition-smooth);
}
.tab-btn:hover {
    color: var(--text-main);
    background: rgba(255,255,255,0.03);
}
.tab-btn.active {
    color: var(--accent-cyan);
    background: rgba(0, 242, 254, 0.08);
}

.asset-tab-content {
    background: #090e15;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    height: 480px;
    overflow: hidden;
    position: relative;
}

.tab-pane {
    display: none;
    height: 100%;
    width: 100%;
}
.tab-pane.active {
    display: block;
}

/* Mockups inside Tab panes */
.video-mockup-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #000;
}

.project-video {
    width: 100%;
    height: calc(100% - 48px);
    background: #000;
    object-fit: contain;
    outline: none;
    border: none;
}

.video-mockup-wrapper.solo-video .project-video {
    height: 100%;
}

.video-selector-bar {
    display: flex;
    align-items: center;
    background: #0d121c;
    border-top: 1px solid var(--panel-border);
    padding: 0.5rem 1rem;
    gap: 0.5rem;
    height: 48px;
    flex-shrink: 0;
}

.video-selector-bar.scrollable-bar {
    overflow-x: auto;
    white-space: nowrap;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
}
.video-selector-bar.scrollable-bar::-webkit-scrollbar {
    height: 3px;
}
.video-selector-bar.scrollable-bar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
}

/* ----- Video Navigation Arrow Wrapper ----- */
.video-nav-wrapper {
    display: flex;
    align-items: stretch;
    background: #0d121c;
    border-top: 1px solid var(--panel-border);
}

.video-nav-wrapper .video-selector-bar {
    border-top: none;
    flex: 1;
    min-width: 0;
}

.video-nav-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    min-width: 36px;
    background: rgba(0, 242, 254, 0.05);
    border: none;
    color: var(--accent-cyan);
    cursor: pointer;
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.video-nav-arrow:hover {
    background: rgba(0, 242, 254, 0.15);
    color: #fff;
    box-shadow: inset 0 0 15px rgba(0, 242, 254, 0.15);
}

.video-nav-arrow:active {
    background: rgba(0, 242, 254, 0.25);
    transform: scale(0.92);
}

.video-nav-left {
    border-right: 1px solid var(--panel-border);
}

.video-nav-right {
    border-left: 1px solid var(--panel-border);
}

.selector-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-right: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}

.video-sel-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--panel-border);
    color: var(--text-muted);
    padding: 0.25rem 0.65rem;
    border-radius: 4px;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.72rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    white-space: nowrap;
    flex-shrink: 0;
}
.video-sel-btn:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.08);
}
.video-sel-btn.active {
    color: var(--accent-cyan);
    border-color: var(--accent-cyan);
    background: rgba(0, 242, 254, 0.08);
}

.mock-terminal {
    height: 100%;
    display: flex;
    flex-direction: column;
}
.terminal-titlebar {
    background: #111823;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    gap: 0.4rem;
    border-bottom: 1px solid var(--panel-border);
}
.term-btn {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.term-close { background: var(--error); }
.term-min { background: var(--warning); }
.term-max { background: var(--success); }
.terminal-titlebar span:last-child {
    margin-left: 0.5rem;
}
.terminal-screen {
    padding: 1.25rem;
    font-size: 0.8rem;
    flex: 1;
    overflow-y: auto;
    line-height: 1.6;
}
.t-line {
    margin-bottom: 0.4rem;
}

/* Excel Spreadsheet mockup */
.excel-mockup {
    height: 100%;
    display: flex;
    flex-direction: column;
}
.excel-header {
    background: #107c41;
    color: #fff;
    padding: 0.4rem 1rem;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
}
.excel-table-wrapper {
    flex: 1;
    overflow: auto;
}
.excel-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-body);
    font-size: 0.75rem;
    text-align: left;
}
.excel-table th, .excel-table td {
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.5rem;
}
.excel-table thead tr:first-child th {
    background: #182230;
    text-align: center;
    color: var(--text-dark);
}
.excel-table .table-columns th {
    background: #111823;
    color: var(--text-muted);
    font-weight: 600;
}
.excel-table tbody tr {
    background: #090e15;
}
.excel-table tbody tr:nth-child(even) {
    background: #0d131d;
}
.excel-table td {
    color: var(--text-main);
}
.excel-table td.t-green {
    color: #10b981;
}
.excel-table td.t-gray {
    color: var(--text-dark);
}

/* JSON Code Mockup */
.json-mockup {
    padding: 1.25rem;
    overflow: auto;
    height: 100%;
    background: #05080c;
}
.json-header {
    font-size: 0.75rem;
    color: var(--text-dark);
    border-bottom: 1px solid var(--panel-border);
    padding-bottom: 0.5rem;
    margin-bottom: 0.75rem;
}
.json-mockup pre {
    margin: 0;
    font-size: 0.8rem;
    color: var(--accent-cyan);
}

/* Folder tree Mockup */
.folder-mockup {
    padding: 1.25rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.folder-header {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--panel-border);
    padding-bottom: 0.5rem;
    margin-bottom: 0.75rem;
}
.folder-tree {
    flex: 1;
    overflow-y: auto;
    font-size: 0.82rem;
}
.tree-item {
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.tree-item.indent-1 {
    padding-left: 1.5rem;
}

/* ==========================================================================
   Capabilities Section
   ========================================================================== */
.capabilities-section-main {
    background-color: transparent;
}

.details-capabilities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.detail-cap-card {
    background: rgba(13, 20, 30, 0.1);
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    padding: 2.25rem 2rem;
    transition: var(--transition-smooth);
    backdrop-filter: none;
}
.detail-cap-card:hover {
    border-color: var(--panel-border-glow);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 242, 254, 0.05);
}

.d-cap-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.d-cap-icon {
    font-size: 1.5rem;
}

.detail-cap-card h3 {
    font-size: 1.25rem;
}
.detail-cap-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ==========================================================================
   Leads Store Section
   ========================================================================== */
.leads-store-section {
    background: transparent;
    border-top: none;
}

.store-filter-bar {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 3.5rem;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--panel-border);
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.88rem;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.filter-btn:hover {
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-main);
}
.filter-btn.active {
    background: var(--accent-gradient);
    color: #04060a;
    border-color: transparent;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.2);
}

.leads-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.lead-card {
    background: var(--panel-glass);
    border: 1px solid var(--panel-border);
    border-radius: 16px;
    padding: 2.25rem;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
}
.lead-card:hover {
    border-color: var(--panel-border-glow);
    transform: translateY(-4px);
    box-shadow: 0 15px 40px -10px rgba(0,0,0,0.5);
}

.lead-header {
    margin-bottom: 1.25rem;
}
.category-tag {
    background: rgba(79, 172, 254, 0.1);
    border: 1px solid rgba(79, 172, 254, 0.25);
    color: var(--accent-indigo);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 0.5rem;
}
.lead-header h3 {
    font-size: 1.4rem;
}

.lead-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: rgba(4, 6, 10, 0.4);
    border: 1px solid var(--panel-border);
    padding: 1rem;
    border-radius: 8px;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.meta-item {
    display: flex;
    flex-direction: column;
}
.meta-item .label {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.meta-item .value {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
}
.success-color {
    color: var(--success);
}

.card-volume-select {
    background: rgba(4, 6, 10, 0.7);
    border: 1px solid var(--panel-border);
    color: var(--text-main);
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    font-size: 0.78rem;
    font-family: var(--font-heading);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
    width: 100%;
    margin-top: 0.25rem;
}
.card-volume-select:focus, .card-volume-select:hover {
    border-color: var(--panel-border-glow);
    background: rgba(4, 6, 10, 0.95);
    outline: none;
}
.card-volume-select option {
    background-color: var(--bg-darker);
    color: var(--text-main);
}

.lead-summary {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    flex-grow: 1;
    line-height: 1.6;
}

.lead-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--panel-border);
    padding-top: 1.5rem;
}

.lead-price {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-main);
}

.lead-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ==========================================================================
   Custom Order Booking Wizard & Price Estimator
   ========================================================================== */
.order-wizard-section {
    background: transparent;
    border-top: none;
}

.wizard-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    background: rgba(13, 20, 30, 0.1);
    border: 1px solid var(--panel-border);
    border-radius: 20px;
    padding: 3rem;
    backdrop-filter: none;
}

.wizard-form-side {
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 1.5rem;
}
.form-group label {
    display: block;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.92rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

input[type="url"],
input[type="email"],
input[type="text"],
textarea,
select {
    width: 100%;
    background: rgba(4, 6, 10, 0.6);
    border: 1px solid var(--panel-border);
    padding: 0.8rem 1rem;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-main);
    transition: var(--transition-smooth);
}
textarea {
    resize: vertical;
    min-height: 100px;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.15);
}

.form-row {
    display: flex;
    gap: 1.5rem;
}
.form-group.half {
    width: 50%;
}

/* Checkbox Cards Grid */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.checkbox-card {
    position: relative;
    background: rgba(4, 6, 10, 0.3);
    border: 1px solid var(--panel-border);
    border-radius: 10px;
    padding: 1.25rem 1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}
.checkbox-card input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}
.checkbox-card:hover {
    border-color: rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.02);
}
.checkbox-card input:checked + .checkbox-title {
    color: var(--accent-cyan);
}
.checkbox-card:has(input:checked) {
    border-color: var(--accent-cyan);
    background: rgba(0, 242, 254, 0.03);
}

.checkbox-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    color: var(--text-main);
}
.checkbox-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.3;
}

/* Site Complexity Toggle Tags */
.complexity-toggles {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.toggle-tag {
    position: relative;
    cursor: pointer;
}
.toggle-tag input {
    position: absolute;
    opacity: 0;
}
.toggle-tag span {
    display: inline-block;
    background: rgba(4, 6, 10, 0.4);
    border: 1px solid var(--panel-border);
    padding: 0.5rem 1.1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    transition: var(--transition-smooth);
}
.toggle-tag:hover span {
    border-color: rgba(255,255,255,0.15);
}
.toggle-tag input:checked + span {
    background: rgba(0, 242, 254, 0.1);
    color: var(--accent-cyan);
    border-color: var(--accent-cyan);
}

/* Wizard Summary Side */
.wizard-summary-side {
    display: flex;
}

.estimator-card {
    background: rgba(4, 6, 10, 0.1);
    border: 1px solid var(--panel-border);
    border-radius: 16px;
    padding: 2.25rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    backdrop-filter: none;
}

.estimator-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.estimate-value-box {
    background: rgba(0, 242, 254, 0.05);
    border: 1px solid rgba(0, 242, 254, 0.15);
    border-radius: 12px;
    padding: 1.75rem;
    text-align: center;
    margin-bottom: 2rem;
}

.estimate-price {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--accent-cyan);
    display: block;
    margin-bottom: 0.25rem;
}
.estimate-period {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.estimator-divider {
    border: none;
    border-top: 1px solid var(--panel-border);
    margin-bottom: 2rem;
}

.estimate-breakdown h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.breakdown-list {
    list-style: none;
    margin-bottom: auto;
}
.breakdown-list li {
    display: flex;
    justify-content: space-between;
    font-size: 0.88rem;
    margin-bottom: 0.75rem;
    color: var(--text-main);
}

.estimator-trust-badge {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    border-top: 1px solid var(--panel-border);
    padding-top: 1.5rem;
    margin-top: 2rem;
}
.estimator-trust-badge svg {
    color: var(--accent-indigo);
    flex-shrink: 0;
    margin-top: 0.1rem;
}

/* ==========================================================================
   Contact & CTA Section
   ========================================================================== */
.contact-section {
    position: relative;
    background: transparent;
}

.contact-box {
    background: radial-gradient(100% 100% at 0% 0%, rgba(0, 242, 254, 0.03) 0%, rgba(0, 0, 0, 0) 100%), rgba(13, 20, 30, 0.1);
    border: 1px solid var(--panel-border);
    border-radius: 24px;
    padding: 4rem;
    backdrop-filter: none;
    overflow: hidden;
}

.contact-content-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.contact-text-side h2 {
    font-size: 2.5rem;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.15;
}

.contact-text-side p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 2.5rem;
}

.contact-instructions h3 {
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
}
.contact-instructions ul {
    list-style: none;
}
.contact-instructions li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}
.contact-instructions li .icon {
    font-size: 1.2rem;
}

/* Glassy Contact Card (Right Side) */
.glass-contact-card {
    background: rgba(4, 6, 10, 0.1);
    border: 1px solid var(--panel-border);
    border-radius: 16px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    backdrop-filter: none;
}
.glass-contact-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}
.card-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.email-copy-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #05080c;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
}
.email-text {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--accent-cyan);
}
.copy-email-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}
.copy-email-btn:hover {
    color: var(--text-main);
    transform: scale(1.1);
}

.response-time {
    display: block;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 1rem;
}

/* ==========================================================================
   Footer Styling
   ========================================================================== */
.footer-bar {
    background: transparent;
    border-top: none;
    padding: 2rem 0;
    font-size: 0.85rem;
    color: var(--text-dark);
}
.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.footer-links {
    display: flex;
    gap: 1.5rem;
}
.footer-links a {
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition-smooth);
}
.footer-links a:hover {
    color: var(--accent-indigo);
}

/* ==========================================================================
   Modal Dialog
   ========================================================================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(4, 6, 10, 0.8);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}
.modal.open {
    opacity: 1;
    pointer-events: auto;
}
.modal-content {
    max-width: 440px;
    width: 90%;
    padding: 3rem;
    text-align: center;
    position: relative;
    border-color: rgba(16, 185, 129, 0.3);
}
.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}
.modal-close:hover {
    color: var(--text-main);
}
.modal-icon {
    width: 60px;
    height: 60px;
    background: rgba(16, 185, 129, 0.1);
    border: 2px solid var(--success);
    color: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 1.5rem auto;
}
.modal-content h2 {
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
}
.modal-content p {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* ==========================================================================
   Responsive Design Media Queries
   ========================================================================== */

@media (max-width: 1024px) {
    .capabilities-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .project-details-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .details-capabilities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .wizard-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 2.5rem;
    }
    
    .contact-content-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-box {
        padding: 3rem;
    }
}

@media (max-width: 768px) {
    .capabilities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .main-header {
        background: rgba(8, 11, 17, 0.95);
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-nav-toggle {
        display: flex;
    }
    
    /* Active menu animations */
    .mobile-nav-toggle.open span:nth-child(1) {
        transform: rotate(45deg);
    }
    .mobile-nav-toggle.open span:nth-child(2) {
        opacity: 0;
    }
    .mobile-nav-toggle.open span:nth-child(3) {
        transform: rotate(-45deg);
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 4rem;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-visual {
        max-width: 100%;
    }
    
    .leads-grid {
        grid-template-columns: 1fr;
    }
    
    .store-filter-bar {
        margin-bottom: 2rem;
    }
    
    .section-padding {
        padding: 70px 0;
    }
    
    .contact-box {
        padding: 2rem;
    }
    
    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .capabilities-grid {
        grid-template-columns: 1fr;
    }
    
    .details-capabilities-grid {
        grid-template-columns: 1fr;
    }
    
    .project-header {
        padding: 1.25rem 1rem;
    }
    
    .project-meta-info {
        gap: 0.75rem;
    }
    
    .project-num {
        font-size: 1.2rem;
    }
    
    .project-title-group h3 {
        font-size: 1.05rem;
    }
    
    .badge-tech {
        display: none; /* Hide badges on small devices to save space */
    }
    
    .project-content-inner {
        padding: 0 1rem 1.5rem 1rem;
    }
    
    .asset-tab-content {
        height: 280px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    .form-group.half {
        width: 100%;
    }
    
    .checkbox-grid {
        grid-template-columns: 1fr;
    }
    
    .wizard-container {
        padding: 1.5rem;
    }
    
    .estimator-card {
        padding: 1.5rem;
    }
    
    .glass-contact-card {
        padding: 1.5rem;
    }
    
    .email-text {
        font-size: 0.95rem;
    }
}

/* ==========================================================================
   3D Canvas & Constellation Background
   ========================================================================== */
#hero-3d-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    pointer-events: none;
}

.glowing-floor {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    height: 12px;
    background: linear-gradient(to top, rgba(0, 242, 254, 0.4), rgba(0, 242, 254, 0.1) 40%, transparent);
    box-shadow: 0 -6px 30px rgba(0, 242, 254, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.3);
    pointer-events: none;
    z-index: -1;
}

.hero-section {
    position: relative;
}

.hero-container {
    position: relative;
    z-index: 5;
}

/* 3D Perspective Context for Cards */
.lead-card, 
.cap-column, 
.detail-cap-card, 
.estimator-card, 
.glass-contact-card {
    transform-style: preserve-3d;
    will-change: transform;
    transition: transform 0.1s ease-out, box-shadow 0.2s ease, border-color 0.2s ease;
}

/* Pricing Comparison Banner */
.comparison-banner-section {
    background-color: transparent;
    padding-top: 50px;
    padding-bottom: 50px;
}

.pricing-headline-banner {
    background: linear-gradient(135deg, rgba(13, 20, 30, 0.7) 0%, rgba(20, 30, 45, 0.4) 100%);
    border: 1px solid var(--panel-border);
    backdrop-filter: var(--blur-glass);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: var(--shadow-premium), 0 0 40px rgba(0, 242, 254, 0.03);
    position: relative;
    overflow: hidden;
}

.pricing-headline-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 242, 254, 0.05) 0%, rgba(0,0,0,0) 70%);
    pointer-events: none;
}

.banner-grid {
    display: grid;
    grid-template-columns: 1fr 80px 1fr;
    align-items: center;
    position: relative;
    z-index: 2;
}

.banner-col {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.badge-purple {
    background: rgba(124, 58, 237, 0.1) !important;
    border: 1px solid rgba(124, 58, 237, 0.25) !important;
    color: #a78bfa !important;
}

.banner-col h3 {
    font-size: 1.6rem;
    font-weight: 700;
}

.banner-price {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--text-main);
}
.banner-price strong {
    font-size: 1.8rem;
    color: var(--accent-cyan);
}

.banner-price.success-color strong {
    color: var(--success);
}

.banner-desc {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.banner-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    position: relative;
}

.banner-divider span {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--panel-border);
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.banner-divider::before {
    content: '';
    position: absolute;
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, var(--panel-border) 20%, var(--panel-border) 80%, rgba(255,255,255,0) 100%);
}

@media (max-width: 768px) {
    .banner-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .banner-divider {
        height: 40px;
    }
    
    .banner-divider::before {
        width: 100%;
        height: 1px;
        background: linear-gradient(to right, rgba(255,255,255,0) 0%, var(--panel-border) 20%, var(--panel-border) 80%, rgba(255,255,255,0) 100%);
    }
    
    .pricing-headline-banner {
        padding: 2rem;
    }
}

/* ==========================================================================
   Cosmic Click Glow & Ripple Effects
   ========================================================================== */
@keyframes cardGlowPulse {
    0% {
        box-shadow: 0 0 15px rgba(0, 242, 254, 0.15), 0 0 2px rgba(0, 242, 254, 0.3);
        border-color: rgba(0, 242, 254, 0.25);
    }
    50% {
        box-shadow: 0 0 30px rgba(0, 242, 254, 0.4), 0 0 8px rgba(124, 58, 237, 0.5);
        border-color: var(--accent-cyan);
    }
    100% {
        box-shadow: 0 0 15px rgba(0, 242, 254, 0.15), 0 0 2px rgba(0, 242, 254, 0.3);
        border-color: rgba(0, 242, 254, 0.25);
    }
}

.card-glow-active {
    animation: cardGlowPulse 2s infinite alternate !important;
    border-color: var(--accent-cyan) !important;
    transform: perspective(1000px) scale(1.01) translateY(-6px) !important;
}

.cosmic-sparkle {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 100;
    opacity: 1;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 8px currentColor;
    animation: sparkleFlyOut 0.8s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
}

@keyframes sparkleFlyOut {
    to {
        transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty)));
        opacity: 0;
        scale: 0.1;
    }
}

/* ==========================================================================
   Hero Floating Code Overlay (Fixed backdrop across entire page)
   ========================================================================== */
.hero-code-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.fixed-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-dark);
    z-index: -3;
    pointer-events: none;
}

/* E-Commerce Intro Popup Modal custom styles */
.modal#intro-popup-modal {
    z-index: 2000;
}
.modal#intro-popup-modal .modal-content {
    background: rgba(6, 9, 15, 0.96);
    border: 1px solid rgba(0, 242, 254, 0.25);
    box-shadow: 0 0 50px rgba(0, 242, 254, 0.15), var(--shadow-premium);
}

.floating-code-item {
    position: absolute;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    opacity: 0;
    text-shadow: 0 0 10px currentColor;
    animation: floatCodeUp 12s linear forwards;
}

@keyframes floatCodeUp {
    0% {
        transform: translateY(105vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.38;
    }
    90% {
        opacity: 0.38;
    }
    100% {
        transform: translateY(-10vh) rotate(2deg);
        opacity: 0;
    }
}

/* ==========================================================================
   3D Card Rotating & Dragging Adjustments
   ========================================================================== */
.lead-card, 
.cap-column, 
.detail-cap-card, 
.estimator-card, 
.glass-contact-card,
.terminal-mockup {
    user-select: none; /* Prevents text highlighting while dragging cards */
    cursor: grab;
    transform-style: preserve-3d;
}

.lead-card:active, 
.cap-column:active, 
.detail-cap-card:active, 
.estimator-card:active, 
.glass-contact-card:active,
.terminal-mockup:active {
    cursor: grabbing;
}

/* ==========================================================================
   Contextual Theming Colors (Cyan, Purple, Green, Orange, Blue)
   ========================================================================== */

/* 1. Cyan Theme (Web Scraping) */
.cap-column.theme-cyan .cap-icon {
    color: var(--accent-cyan);
    background: rgba(0, 242, 254, 0.08);
    border: 1px solid rgba(0, 242, 254, 0.2);
}
.cap-column.theme-cyan .cap-list li::before {
    color: var(--accent-cyan);
}
.cap-column.theme-cyan:hover {
    border-color: rgba(0, 242, 254, 0.3);
    box-shadow: 0 15px 30px rgba(0, 242, 254, 0.06), var(--shadow-glass);
}

/* 2. Purple Theme (Browser Automation / Creators) */
.cap-column.theme-purple .cap-icon {
    color: #a78bfa;
    background: rgba(124, 58, 237, 0.08);
    border: 1px solid rgba(124, 58, 237, 0.2);
}
.cap-column.theme-purple .cap-list li::before {
    color: #a78bfa;
}
.cap-column.theme-purple:hover {
    border-color: rgba(124, 58, 237, 0.3);
    box-shadow: 0 15px 30px rgba(124, 58, 237, 0.06), var(--shadow-glass);
}
.lead-card.theme-purple .category-tag {
    background: rgba(124, 58, 237, 0.1);
    color: #a78bfa;
    border: 1px solid rgba(124, 58, 237, 0.2);
}
.lead-card.theme-purple:hover {
    border-color: rgba(124, 58, 237, 0.3) !important;
}

/* 3. Green Theme (Bulk Download / B2B) */
.cap-column.theme-green .cap-icon {
    color: var(--success);
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
}
.cap-column.theme-green .cap-list li::before {
    color: var(--success);
}
.cap-column.theme-green:hover {
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 15px 30px rgba(16, 185, 129, 0.06), var(--shadow-glass);
}
.lead-card.theme-green .category-tag {
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.2);
}
.lead-card.theme-green:hover {
    border-color: rgba(16, 185, 129, 0.3) !important;
}

/* 4. Orange Theme (API Extraction / E-Commerce) */
.cap-column.theme-orange .cap-icon {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.2);
}
.cap-column.theme-orange .cap-list li::before {
    color: #f59e0b;
}
.cap-column.theme-orange:hover {
    border-color: rgba(245, 158, 11, 0.3);
    box-shadow: 0 15px 30px rgba(245, 158, 11, 0.06), var(--shadow-glass);
}
.lead-card.theme-orange .category-tag {
    background: rgba(245, 158, 11, 0.1);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.2);
}
.lead-card.theme-orange:hover {
    border-color: rgba(245, 158, 11, 0.3) !important;
}

/* 5. Blue Theme (Real Estate & AI Agents) */
.lead-card.theme-blue .category-tag {
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.2);
}
.lead-card.theme-blue:hover {
    border-color: rgba(59, 130, 246, 0.3) !important;
}
.cap-column.theme-blue .cap-icon {
    color: #60a5fa;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.2);
}
.cap-column.theme-blue .cap-list li::before {
    color: #60a5fa;
}
.cap-column.theme-blue:hover {
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 15px 30px rgba(59, 130, 246, 0.06), var(--shadow-glass);
}

/* 6. Pink Theme (Custom Solutions) */
.cap-column.theme-pink .cap-icon {
    color: #f472b6;
    background: rgba(244, 114, 182, 0.08);
    border: 1px solid rgba(244, 114, 182, 0.2);
}
.cap-column.theme-pink .cap-list li::before {
    color: #f472b6;
}
.cap-column.theme-pink:hover {
    border-color: rgba(244, 114, 182, 0.3);
    box-shadow: 0 15px 30px rgba(244, 114, 182, 0.06), var(--shadow-glass);
}

/* ==========================================================================
   Reviews Section Styling
   ========================================================================== */
.reviews-section {
    background-color: transparent;
    position: relative;
    z-index: 10;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3.5rem;
}

.review-card {
    /* Glassmorphism style - highly transparent to let background dots show through */
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    border: 1px solid var(--panel-border);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow-premium), 0 0 30px rgba(0, 242, 254, 0.02);
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.review-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 242, 254, 0.04) 0%, rgba(0,0,0,0) 70%);
    pointer-events: none;
}

.review-stars {
    color: var(--warning);
    font-size: 1.15rem;
    margin-bottom: 1.2rem;
    display: flex;
    gap: 0.2rem;
}

.review-text {
    font-size: 0.98rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 1.8rem;
    position: relative;
    z-index: 2;
    flex-grow: 1;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 2;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1.2rem;
}

.review-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    font-size: 1.45rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
}

.review-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.15rem;
}

.review-info span {
    font-size: 0.78rem;
    color: var(--text-muted);
    display: block;
}

/* ==========================================================================
   Continuous Card Border Glow Customization
   ========================================================================== */
body .review-card, 
body .pricing-headline-banner, 
body .lead-card, 
body .detail-cap-card, 
body .estimator-card, 
body .glass-contact-card,
body .cap-column,
body .terminal-mockup,
body .project-accordion {
    border: 1.5px solid rgba(0, 242, 254, 0.65) !important; /* brighter glowing cyan border by default */
    box-shadow: var(--shadow-premium), 0 0 22px rgba(0, 242, 254, 0.28) !important; /* continuous stronger outer glow by default */
}

/* Card hover glow states fallback */
body .review-card:hover,
body .pricing-headline-banner:hover,
body .lead-card:hover,
body .detail-cap-card:hover,
body .estimator-card:hover,
body .glass-contact-card:hover,
body .cap-column:hover,
body .terminal-mockup:hover,
body .project-accordion:hover {
    border-color: rgba(0, 242, 254, 0.85) !important;
    box-shadow: var(--shadow-premium), 0 10px 45px rgba(0, 242, 254, 0.5) !important;
}

/* Section Glow Dividers */
.glow-divider {
    height: 2px;
    width: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(0, 242, 254, 0.8) 25%, rgba(79, 172, 254, 0.8) 75%, transparent 100%);
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.6), 0 0 35px rgba(0, 242, 254, 0.3);
    margin: 4.5rem 0; /* large margins to separate sections nicely */
    position: relative;
    z-index: 5;
    border: none;
}

/* Card Mouse-Glow and Glass Refraction Effects */
.lead-card, .cap-column, .detail-cap-card, .estimator-card, .glass-contact-card, .terminal-mockup, .review-card, .project-accordion {
    position: relative;
    overflow: visible; /* ensure glow border can exceed boundaries slightly */
}

/* Base style for the interactive glow border */
.lead-card::before, .cap-column::before, .detail-cap-card::before, .estimator-card::before, .glass-contact-card::before, .terminal-mockup::before, .review-card::before, .project-accordion::before {
    content: "";
    position: absolute;
    inset: -1.5px;
    background: radial-gradient(
        300px circle at var(--mx, 0px) var(--my, 0px),
        rgba(0, 242, 255, 0.22),
        transparent 70%
    );
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    border-radius: inherit;
}

/* Double border/inner glow overlay */
.lead-card::after, .cap-column::after, .detail-cap-card::after, .estimator-card::after, .glass-contact-card::after, .terminal-mockup::after, .review-card::after, .project-accordion::after {
    content: "";
    position: absolute;
    inset: 1px;
    background: transparent;
    pointer-events: none;
    z-index: 2;
    border-radius: inherit;
    border: 1px solid transparent;
    transition: border-color 0.4s ease;
}

/* Hover States */
.lead-card:hover::before, .cap-column:hover::before, .detail-cap-card:hover::before, .estimator-card:hover::before, .glass-contact-card:hover::before, .terminal-mockup:hover::before, .review-card:hover::before, .project-accordion:hover::before {
    opacity: 1;
}

.lead-card:hover::after, .cap-column:hover::after, .detail-cap-card:hover::after, .estimator-card:hover::after, .glass-contact-card:hover::after, .terminal-mockup:hover::after, .review-card:hover::after, .project-accordion:hover::after {
    border-color: rgba(0, 242, 255, 0.12);
}

#spaceBG {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* above fixed backdrop, below main content */
    display: block;
    pointer-events: none;
}



/* ===== Ensure all page content/headings render ABOVE the 3D space canvas ===== */
#spaceBG { z-index: 0; }
.main-header, .hero-section, main, footer,
section, [class*="-section"],
.section-header, .section-header h2, .section-desc, .section-title,
.projects-section, .capabilities-section-main, .leads-store-section,
.order-wizard-section, .contact-section, .reviews-section, .comparison-banner-section {
    position: relative;
    z-index: 3;
}

/* ==========================================================================
   RESPONSIVE OVERHAUL — device-specific layout fixes (mobile / tablet / desktop)
   Appended last so these rules win the cascade.
   ========================================================================== */

/* ---- Global overflow guards: kill horizontal scroll on every device ---- */
html, body {
    overflow-x: clip;
    max-width: 100%;
}
@supports not (overflow-x: clip) {
    html, body { overflow-x: hidden; }
}
img, video, canvas, svg, iframe {
    max-width: 100%;
}

/* Grid/flex children default to min-width:auto, which lets long content
   (like the contact email) blow the layout open. Reset it. */
.hero-container > *,
.contact-content-grid > *,
.wizard-container > *,
.banner-grid > *,
.project-details-grid > *,
.capabilities-grid > *,
.leads-grid > *,
.reviews-grid > * {
    min-width: 0;
}

/* Long unbreakable strings (emails, URLs) wrap instead of overflowing */
.email-text,
.checkbox-desc,
.contact-instructions li,
.review-text,
.banner-desc {
    overflow-wrap: anywhere;
}
.email-copy-box { min-width: 0; flex-wrap: wrap; }

/* Video selector rows always scroll sideways instead of pushing the page wide */
.video-selector-bar {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}
.asset-tab-nav {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

/* Sample data tables scroll inside their card on small screens */
.excel-table-wrapper { overflow: auto; -webkit-overflow-scrolling: touch; }

/* ---- Tablet (769px – 1024px): two-column rhythm, comfortable density ---- */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    .hero-content { margin: 0 auto; max-width: 640px; }
    .hero-actions { justify-content: center; }
    .hero-visual { max-width: 620px; margin: 0 auto; }

    .capabilities-grid { grid-template-columns: repeat(2, 1fr); }
    .leads-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
    .reviews-grid { grid-template-columns: repeat(2, 1fr); }

    .contact-box { padding: 3rem 2.5rem; }
    .section-padding { padding: 90px 0; }
}

/* ---- Mobile (≤ 768px): single column, tighter spacing, bigger tap targets ---- */
@media (max-width: 768px) {
    .hero-section {
        padding-top: 110px;
        padding-bottom: 60px;
    }
    .hero-container { gap: 2.5rem; }
    .hero-content h1 { font-size: 2.4rem; line-height: 1.15; }
    .hero-subtitle { font-size: 1.02rem; }
    .hero-meta { font-size: 0.9rem; }

    /* Glow blobs are oversized on small screens and cause paint overflow */
    .hero-glow { width: 70vw; height: 70vw; filter: blur(80px); }

    .section-header h2 { font-size: 1.9rem; }
    .section-desc { font-size: 0.95rem; }
    .section-padding { padding: 60px 0; }

    .reviews-grid { grid-template-columns: 1fr; gap: 1.25rem; }
    .review-card { padding: 1.75rem; }

    .leads-grid { gap: 1.25rem; }

    /* Bigger, easier tap targets */
    .video-sel-btn { padding: 0.45rem 0.85rem; font-size: 0.78rem; }
    .tab-btn { padding: 0.5rem 0.9rem; }

    /* Prevent iOS zoom-on-focus by keeping inputs at 16px */
    input, select, textarea { font-size: 16px; }

    .contact-text-side h2 { font-size: 1.8rem; }
    .contact-box { padding: 1.75rem 1.25rem; border-radius: 18px; }

    .footer-links { flex-wrap: wrap; justify-content: center; }
}

/* ---- Small phones (≤ 480px): full-width actions, compact cards ---- */
@media (max-width: 480px) {
    .container { padding: 0 1rem; }

    .hero-content h1 { font-size: 1.9rem; }
    .badge { font-size: 0.7rem; }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    .hero-actions .btn { width: 100%; text-align: center; }

    .section-header h2 { font-size: 1.6rem; }

    .terminal-mockup { border-radius: 10px; }
    .terminal-body { font-size: 0.68rem; }

    .lead-card { padding: 1.25rem; }
    .review-card { padding: 1.4rem; }

    .pricing-headline-banner { padding: 1.5rem 1.25rem; }
    .banner-col h3 { font-size: 1.25rem; }
    .banner-price { font-size: 1.15rem; }
    .banner-price strong { font-size: 1.4rem; }

    .wizard-container { padding: 1.25rem 1rem; }
    .glass-contact-card { padding: 1.25rem 1rem; }
    .email-text { font-size: 0.85rem; }

    .btn-block { width: 100%; }
    .modal-content { margin: 0 1rem; padding: 1.5rem; }
}
