/* ==========================================================================
   VoiceAgentX Core Stylesheet
   ========================================================================== */

/* --- Design Tokens / Variables --- */
:root {
    /* Color Palette */
    --bg-dark: #07050a;
    --bg-card: rgba(13, 9, 22, 0.45);
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-glass-active: rgba(99, 102, 241, 0.3);
    
    --primary: #6366f1;
    --primary-glow: rgba(99, 102, 241, 0.5);
    --primary-grad: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    
    --secondary: #06b6d4;
    --secondary-glow: rgba(6, 182, 212, 0.4);
    --secondary-grad: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    
    --accent: #a855f7;
    --accent-grad: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dark: #475569;
    
    /* Semantic Colors */
    --success: #10b981;
    --success-glow: rgba(16, 185, 129, 0.4);
    
    /* Typography */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing & Utilities */
    --container-width: 1200px;
    --transition-smooth: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-fast: all 0.2s ease-out;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-dark);
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-glow);
}

/* Selection Color */
::selection {
    background: var(--primary-glow);
    color: var(--text-main);
}

/* --- Helper Classes / Layout --- */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 8rem 0;
    position: relative;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.font-mono { font-family: 'Courier New', Courier, monospace; }

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

.items-center { align-items: center; }
.gap-lg { gap: 4rem; }
.relative { position: relative; }

/* Background Glowing Orbs */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}
.glow-orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--primary) 0%, rgba(99, 102, 241, 0) 70%);
    top: -100px;
    right: -100px;
    animation: pulse-glow 10s infinite alternate;
}
.glow-orb-2 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, var(--secondary) 0%, rgba(6, 182, 212, 0) 70%);
    top: 50%;
    left: -150px;
    animation: pulse-glow 12s infinite alternate-reverse;
}
.glow-orb-3 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent) 0%, rgba(168, 85, 247, 0) 70%);
    bottom: -100px;
    right: 10%;
    animation: pulse-glow 15s infinite alternate;
}

@keyframes pulse-glow {
    0% { transform: scale(1) translate(0, 0); opacity: 0.3; }
    50% { transform: scale(1.1) translate(30px, -20px); opacity: 0.45; }
    100% { transform: scale(0.9) translate(-10px, 40px); opacity: 0.3; }
}

/* Glassmorphism Card Style */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
    transition: var(--transition-smooth);
}

.hover-glow:hover {
    transform: translateY(-5px);
    border-color: var(--border-glass-active);
    box-shadow: 0 12px 40px 0 rgba(99, 102, 241, 0.15);
}

/* Typography styles */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.25;
}

h2.section-title {
    font-size: 2.75rem;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

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

.gradient-text {
    background: var(--primary-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.text-glow {
    text-shadow: 0 0 30px rgba(99, 102, 241, 0.3);
}

.section-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 30px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
    white-space: nowrap;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--primary-grad);
    color: #fff;
    box-shadow: 0 4px 15px 0 rgba(99, 102, 241, 0.4);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(99, 102, 241, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(8px);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-lg {
    padding: 1rem 2.25rem;
    font-size: 1.05rem;
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-mobile-only {
    display: none;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.navbar-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 100;
    background: rgba(7, 5, 10, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-glass);
    transition: var(--transition-fast);
}

.navbar-header.scrolled {
    height: 70px;
    background: rgba(7, 5, 10, 0.85);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-main);
}
.logo-img {
    height: 38px;
    width: auto;
    display: block;
    object-fit: contain;
}
.logo-icon {
    font-size: 1.5rem;
}
.logo-highlight {
    color: var(--secondary);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.25rem;
}

.nav-link {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
    padding: 0.25rem 0;
}
.nav-link:hover, .nav-link.active {
    color: var(--text-main);
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-grad);
    transition: var(--transition-fast);
}
.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

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

.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 102;
}
.mobile-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: var(--text-main);
    transition: var(--transition-fast);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    padding-top: 150px;
    padding-bottom: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.hero-canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}
#hero-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.hero-center-layout {
    position: relative;
    width: 100%;
    min-height: 580px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 780px;
    margin: 0 auto;
    z-index: 10;
    position: relative;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.25);
    padding: 0.5rem 1rem;
    border-radius: 30px;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}
.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary);
    animation: flash 1.5s infinite alternate;
}
@keyframes flash {
    0% { opacity: 0.4; }
    100% { opacity: 1; }
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 580px;
    text-align: center;
}

.hero-actions {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
}

/* Floating Elements & Spheres */
.floating-element {
    position: absolute;
    pointer-events: none;
    z-index: 1;
    animation: float-around var(--float-duration) ease-in-out infinite alternate;
    animation-delay: var(--float-delay);
}

.sphere-1 {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(99, 102, 241, 0.15) 0%, rgba(99, 102, 241, 0.03) 70%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(4px);
    box-shadow: inset -5px -5px 15px rgba(0,0,0,0.3), 0 10px 25px rgba(99, 102, 241, 0.08);
    left: 8%;
    top: 60%;
}

.sphere-2 {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(6, 182, 212, 0.12) 0%, rgba(6, 182, 212, 0.02) 70%);
    border: 1px solid rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(3px);
    box-shadow: inset -8px -8px 20px rgba(0,0,0,0.4), 0 15px 35px rgba(6, 182, 212, 0.05);
    right: 8%;
    top: 55%;
}

.sphere-3 {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(168, 85, 247, 0.15) 0%, rgba(168, 85, 247, 0.03) 70%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(4px);
    left: 48%;
    top: -5%;
}

.ai-node {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(13, 9, 22, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 3;
}

.node-1 { left: 18%; top: 5%; }
.node-2 { right: 18%; top: 12%; }
.node-3 { left: 26%; top: 76%; }
.node-4 { right: 24%; top: 78%; }

/* Floating Cards Layout & Styles */
.floating-card {
    position: absolute;
    padding: 0.85rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-radius: 16px;
    width: 220px;
    z-index: 5;
    animation: float-around var(--float-duration) ease-in-out infinite alternate;
    animation-delay: var(--float-delay);
}

.card-voice {
    top: 15%;
    left: 0%;
}
.card-memory {
    top: 30%;
    right: 0%;
}
.card-automation {
    bottom: 15%;
    left: 4%;
}

@keyframes float-around {
    0% { transform: translateY(0) rotate(-1deg); }
    100% { transform: translateY(-15px) rotate(2deg); }
}

.card-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    position: absolute;
    top: 10px;
    right: 12px;
}
.pulse-green {
    background: var(--success);
    box-shadow: 0 0 8px var(--success);
    animation: pulse-dot 1.2s infinite alternate;
}
.pulse-cyan {
    background: var(--secondary);
    box-shadow: 0 0 8px var(--secondary);
    animation: pulse-dot 1.4s infinite alternate;
}
.pulse-purple {
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
    animation: pulse-dot 1.6s infinite alternate;
}

@keyframes pulse-dot {
    0% { opacity: 0.4; }
    100% { opacity: 1; }
}

.card-icon {
    font-size: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.card-icon i {
    width: 24px;
    height: 24px;
    stroke-width: 2px;
}
.card-voice .card-icon i { color: var(--primary); }
.card-memory .card-icon i { color: var(--secondary); }
.card-automation .card-icon i { color: var(--accent); }
.card-automation .spinning-gear i { color: rgba(255, 255, 255, 0.4); }

.card-info {
    display: flex;
    flex-direction: column;
}
.card-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
}
.card-meta {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Custom mini elements inside floating cards */
.mini-voice-bars {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    margin-left: auto;
}
.bar-item {
    width: 2px;
    background: var(--success);
    border-radius: 1px;
    animation: vertical-scale 0.6s infinite alternate;
}
.bar-item:nth-child(1) { height: 8px; }
.bar-item:nth-child(2) { height: 16px; animation-delay: 0.2s; }
.bar-item:nth-child(3) { height: 12px; animation-delay: 0.1s; }
.bar-item:nth-child(4) { height: 6px; animation-delay: 0.3s; }

@keyframes vertical-scale {
    0% { transform: scaleY(0.4); }
    100% { transform: scaleY(1); }
}

.memory-indicator {
    margin-left: auto;
    font-size: 0.65rem;
    background: rgba(6, 182, 212, 0.15);
    color: var(--secondary);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-weight: 600;
}

.spinning-gear {
    margin-left: auto;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    animation: spin 5s linear infinite;
}
.spinning-gear i {
    width: 14px;
    height: 14px;
    stroke-width: 2px;
}
.ai-node i {
    width: 20px;
    height: 20px;
    stroke-width: 2.2px;
}
.node-1 i { color: var(--secondary); }
.node-2 i { color: var(--accent); }
.node-3 i { color: var(--primary); }
.node-4 i { color: var(--secondary); }

/* Trust Bar */
.hero-trust-bar {
    margin-top: 5rem;
    position: relative;
    z-index: 2;
    border-top: 1px solid var(--border-glass);
    padding-top: 2rem;
}
.trust-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}
.trust-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 3.5rem;
}
.trust-logo {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-muted);
    opacity: 0.45;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-fast);
}
.trust-logo span {
    font-size: 1.15rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.trust-logo span i {
    width: 16px;
    height: 16px;
    stroke-width: 2.2px;
}
.trust-logo:hover {
    opacity: 0.8;
    color: var(--text-main);
}

/* ==========================================================================
   Solutions (Services) Section
   ========================================================================== */
.section-header {
    max-width: 650px;
    margin: 0 auto 5rem auto;
}
.section-description {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.solution-card {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.solution-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.solution-icon {
    width: 28px;
    height: 28px;
}
.voice-bg { background: rgba(99, 102, 241, 0.1); }
.memory-bg { background: rgba(6, 182, 212, 0.1); }
.auto-bg { background: rgba(168, 85, 247, 0.1); }

.text-indigo { color: #818cf8; }
.text-cyan { color: #22d3ee; }
.text-purple { color: #c084fc; }

.solution-card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.solution-card-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.solution-features {
    list-style: none;
    margin-top: auto;
    width: 100%;
}
.solution-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}
.check-icon {
    width: 16px;
    height: 16px;
    color: var(--success);
}

/* ==========================================================================
   How It Works Section
   ========================================================================== */
.how-it-works-section {
    overflow: hidden;
}
.process-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 4rem;
    position: relative;
}

/* Horizontal line between cards on desktop */
.process-line {
    position: absolute;
    top: 110px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(to right, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
    opacity: 0.2;
    z-index: 1;
}

.process-step {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    background: var(--primary-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.step-content {
    padding: 2.25rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 20px;
    width: 100%;
    height: 100%;
    transition: var(--transition-smooth);
}
.step-content:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.15);
}

.step-icon-box {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: var(--primary);
}
.step-icon-box i {
    width: 22px;
    height: 22px;
}

.step-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.step-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-desc {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.stat-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
}
.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 700;
    background: var(--primary-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
    margin-bottom: 0.25rem;
}
.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 500;
}

/* Interactive Mock Terminal */
.terminal-header {
    background: rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid var(--border-glass);
    padding: 0.75rem 1.25rem;
    border-top-left-radius: 19px;
    border-top-right-radius: 19px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.terminal-dots {
    display: flex;
    gap: 6px;
}
.terminal-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.terminal-dots span:nth-child(1) { background: #ff5f56; }
.terminal-dots span:nth-child(2) { background: #ffbd2e; }
.terminal-dots span:nth-child(3) { background: #27c93f; }

.terminal-title {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.terminal-body {
    padding: 1.5rem;
    font-size: 0.85rem;
    color: #e2e8f0;
}
.terminal-line {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.terminal-line:last-child {
    margin-bottom: 0;
}
.text-green { color: #10b981; }
.text-muted { color: var(--text-muted); }
.text-cyan { color: #06b6d4; }
.text-indigo { color: #818cf8; }

.inline-icon {
    width: 14px;
    height: 14px;
}

.cursor-blink {
    animation: blink-anim 1s infinite step-end;
}
@keyframes blink-anim {
    from, to { opacity: 0; }
    50% { opacity: 1; }
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-desc {
    font-size: 1.1rem;
    margin-bottom: 3.5rem;
}
.contact-details {
    display: grid;
    gap: 1.5rem;
}
.contact-detail-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    text-decoration: none;
    color: inherit;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    transition: var(--transition-smooth);
}
.contact-detail-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(99, 102, 241, 0.25);
    transform: translateX(5px);
}
.detail-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}
.detail-icon-box i {
    width: 20px;
    height: 20px;
}
.detail-text {
    display: flex;
    flex-direction: column;
}
.detail-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}
.detail-value {
    font-size: 0.95rem;
    font-weight: 600;
}

/* Contact Form */
.contact-form {
    padding: 3rem;
}
.form-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}
.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}
.form-input {
    width: 100%;
    padding: 0.85rem 1.15rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}
.form-input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.25);
}

select.form-input {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.15rem center;
    background-size: 1.15rem;
    padding-right: 2.5rem;
}
select.form-input option {
    background-color: var(--bg-dark);
    color: var(--text-main);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.btn-icon {
    width: 16px;
    height: 16px;
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta-box {
    position: relative;
    padding: 5rem 2rem;
    border-radius: 30px;
    overflow: hidden;
}
.cta-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(6, 182, 212, 0.05) 50%, rgba(0,0,0,0) 80%);
    z-index: 1;
    pointer-events: none;
}
.cta-title {
    font-size: 2.75rem;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 2;
}
.cta-subtitle {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2.5rem auto;
    position: relative;
    z-index: 2;
}
.cta-actions {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    position: relative;
    z-index: 2;
}

/* ==========================================================================
   Footer Section
   ========================================================================== */
.footer {
    border-top: 1px solid var(--border-glass);
    background: #040306;
    padding: 5rem 0 3rem 0;
    position: relative;
    z-index: 10;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-tagline {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-top: 1rem;
    max-width: 320px;
}

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

.link-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.group-title {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}
.link-group a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}
.link-group a:hover {
    color: var(--text-main);
    transform: translateX(2px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-contact a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}
.footer-contact a:hover {
    color: var(--text-main);
}
.footer-contact i {
    width: 16px;
    height: 16px;
}

.copyright {
    font-size: 0.85rem;
    color: var(--text-dark);
}

/* ==========================================================================
   Modals
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-container {
    width: 90%;
    max-width: 520px;
    padding: 3rem;
    position: relative;
    transform: translateY(30px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.modal-large {
    max-width: 700px;
}

.modal-overlay.open .modal-container {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    font-size: 2rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    transition: var(--transition-fast);
}
.modal-close:hover {
    color: var(--text-main);
}

.modal-header {
    margin-bottom: 2rem;
}
.modal-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.modal-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.modal-textarea {
    min-height: 100px;
}

.modal-body-content {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 0.5rem;
}
.modal-body-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 1.5rem 0 0.5rem 0;
    color: var(--text-main);
}
.modal-body-content h4:first-of-type {
    margin-top: 0;
}
.modal-body-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.6;
}
.modal-body-content a {
    color: var(--primary);
    text-decoration: none;
}
.modal-body-content a:hover {
    text-decoration: underline;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1001;
    background: rgba(13, 9, 22, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass-active);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    transform: translateY(100px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
    pointer-events: none;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-icon {
    width: 20px;
    height: 20px;
    background: var(--success);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
    box-shadow: 0 0 10px var(--success-glow);
}

.toast-message {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-main);
}

/* ==========================================================================
   Scroll Animations
   ========================================================================== */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.reveal-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Base animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }
.delay-4 { animation-delay: 0.6s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

/* Tablet & Smaller (Max 1024px) */
@media (max-width: 1024px) {
    h2.section-title {
        font-size: 2.25rem;
    }
    
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .process-steps {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .process-line {
        display: none;
    }
    .process-step {
        align-items: flex-start;
    }
    .step-content {
        text-align: left;
        align-items: flex-start;
    }
    
    .hero-title {
        font-size: 3rem;
    }
}

/* Mobile Nav & Layout (Max 768px) */
@media (max-width: 768px) {
    .section {
        padding: 5rem 0;
    }
    
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero-center-layout {
        min-height: auto;
        padding: 3rem 0 6rem 0;
    }
    
    .hero-content {
        align-items: center;
    }
    
    .floating-element,
    .floating-card {
        display: none !important; /* Hide floating elements and cards on mobile to prevent layout overflow and text clutter */
    }
    
    /* Navigation drawer */
    .mobile-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(7, 5, 10, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 3rem;
        gap: 2rem;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
        z-index: 101;
    }
    
    .nav-menu.open {
        transform: translateX(0);
    }
    
    .navbar-actions .btn-cta {
        display: none; /* Hide desktop button */
    }
    .btn-mobile-only {
        display: inline-flex !important;
        margin-top: 1rem;
    }
    
    /* Hamburger Active state */
    .mobile-toggle.open .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .mobile-toggle.open .bar:nth-child(2) {
        opacity: 0;
    }
    .mobile-toggle.open .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Small Devices (Max 480px) */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    .hero-actions .btn {
        width: 100%;
    }
    
    .grid-3 {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .modal-container {
        padding: 2rem 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* --- Preloader --- */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.6s cubic-bezier(0.25, 0.8, 0.25, 1), visibility 0.6s;
}
.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}
.wave-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 60px;
}
.wave-loader span {
    width: 4px;
    height: 15px;
    background: linear-gradient(180deg, var(--secondary) 0%, var(--primary) 50%, var(--accent) 100%);
    border-radius: 10px;
    animation: preloader-wave 1.2s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.15s);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
}
@keyframes preloader-wave {
    0%, 100% {
        height: 15px;
    }
    50% {
        height: 60px;
    }
}
.preloader-text {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    color: var(--text-main);
    text-transform: uppercase;
    animation: preloader-text-glow 1.5s ease-in-out infinite alternate;
}
@keyframes preloader-text-glow {
    0% {
        opacity: 0.5;
        text-shadow: 0 0 5px rgba(255,255,255,0.1);
    }
    100% {
        opacity: 1;
        text-shadow: 0 0 15px var(--secondary), 0 0 30px var(--primary);
    }
}
