/* ==========================================================================
   FLUX NETWORKING STYLE SYSTEM
   Custom HSL Space-Dark Architecture & Glassmorphic Component Library
   ========================================================================== */

/* Google Fonts Import done in HTML, fallback here */
:root {
    /* Color Palette */
    --bg-dark: hsl(224, 71%, 4%);
    --bg-dark-rgb: 3, 7, 18;
    --bg-darker: hsl(224, 71%, 2%);
    --bg-card: hsla(224, 71%, 8%, 0.55);
    --bg-card-hover: hsla(224, 71%, 12%, 0.7);
    --border-color: hsla(224, 40%, 20%, 0.45);
    --border-glow: hsla(174, 100%, 41%, 0.3);
    
    /* Neon Accents */
    --primary: hsl(174, 100%, 41%);       /* Flux Teal */
    --primary-rgb: 0, 235, 212;
    --secondary: hsl(263, 90%, 65%);     /* Future Violet */
    --secondary-rgb: 141, 78, 255;
    --accent: hsl(190, 100%, 50%);       /* Cyber Cyan */
    
    /* Text Hierarchy */
    --text-main: hsl(210, 40%, 98%);
    --text-muted: hsl(215, 20%, 72%);
    --text-dark: hsl(220, 15%, 40%);
    
    /* Utility */
    --success: hsl(145, 80%, 45%);
    --error: hsl(355, 90%, 60%);
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    --max-width: 1200px;
    --border-radius: 16px;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

/* ==========================================================================
   RESETS & GLOBAL SETUP
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

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

/* Dynamic network canvas placement */
#network-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: all;
    opacity: 0.85;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-darker);
}
::-webkit-scrollbar-thumb {
    background: hsla(224, 40%, 15%, 1);
    border: 2px solid var(--bg-darker);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

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

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

a {
    color: inherit;
    text-decoration: none;
}

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

.max-width-md {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

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

.grid {
    display: grid;
    gap: 32px;
}

.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }

@media (min-width: 768px) {
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ==========================================================================
   GLASSMORPHISM & PREMIUM UI ELEMENTS
   ========================================================================== */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 32px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: border-color var(--transition-fast), transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.glass-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px 0 rgba(0, 235, 212, 0.08);
}

/* Card Glow Accent overlay */
.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.03) 0%, transparent 60%);
    pointer-events: none;
    transition: transform var(--transition-smooth);
}

.glass-card:hover .card-glow {
    transform: translate(10px, 10px);
}

/* Gradient Text styling */
.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Buttons System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: all var(--transition-smooth);
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: var(--bg-dark);
    padding: 14px 28px;
    box-shadow: 0 4px 20px rgba(var(--primary-rgb), 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 30px rgba(var(--primary-rgb), 0.5);
    transform: scale(1.03);
}

.btn-secondary {
    background: transparent;
    border-color: var(--border-color);
    color: var(--text-main);
    padding: 14px 28px;
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(var(--primary-rgb), 0.05);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.9rem;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.1rem;
}

.btn-full {
    width: 100%;
}

.btn-link {
    background: none;
    border: none;
    color: var(--text-muted);
    font-weight: 500;
    text-decoration: underline;
}
.btn-link:hover {
    color: var(--primary);
}

/* Glow Badges */
.glow-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(var(--primary-rgb), 0.08);
    border: 1px solid rgba(var(--primary-rgb), 0.25);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 0 15px rgba(var(--primary-rgb), 0.1);
}

/* ==========================================================================
   NAVIGATION LAYER (STICKY HEADER)
   ========================================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    transition: background-color var(--transition-smooth), backdrop-filter var(--transition-smooth), border-color var(--transition-smooth);
    border-bottom: 1px solid transparent;
}

.main-header.scrolled {
    background-color: hsla(224, 71%, 3%, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-color: var(--border-color);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

/* Logo CSS Drawing Nodes */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: -0.03em;
    color: var(--text-main);
}

.logo-node {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: var(--primary);
    position: relative;
    box-shadow: 0 0 10px var(--primary);
}

.logo-node::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid rgba(var(--primary-rgb), 0.5);
    animation: pulse 2s infinite;
}

.logo-accent {
    color: var(--primary);
    font-weight: 300;
    margin-left: 2px;
}

/* Menu Toggle Hamburger */
.nav-toggle {
    display: flex;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    width: 32px;
    height: 32px;
    position: relative;
    z-index: 110;
}

.hamburger, .hamburger::before, .hamburger::after {
    width: 24px;
    height: 2px;
    background-color: var(--text-main);
    position: absolute;
    transition: transform var(--transition-fast), background-color var(--transition-fast);
}

.hamburger::before { content: ''; top: -8px; left: 0; }
.hamburger::after { content: ''; bottom: -8px; left: 0; }

.nav-toggle.open .hamburger { background-color: transparent; }
.nav-toggle.open .hamburger::before { transform: rotate(45deg); top: 0; }
.nav-toggle.open .hamburger::after { transform: rotate(-45deg); bottom: 0; }

.nav-menu {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: hsl(224, 71%, 3%);
    border-left: 1px solid var(--border-color);
    padding: 100px 40px;
    gap: 30px;
    list-style: none;
    transition: right var(--transition-smooth);
}

.nav-menu.open {
    right: 0;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.nav-link:hover {
    color: var(--primary);
}

@media (min-width: 992px) {
    .nav-toggle { display: none; }
    .nav-menu {
        position: static;
        flex-direction: row;
        width: auto;
        height: auto;
        background: none;
        border: none;
        padding: 0;
        align-items: center;
        gap: 36px;
    }
    .nav-link {
        font-size: 0.95rem;
    }
}

/* ==========================================================================
   HERO LAYER
   ========================================================================== */
.hero {
    position: relative;
    padding-top: 180px;
    padding-bottom: 120px;
    min-height: 95vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: radial-gradient(circle at 10% 30%, rgba(var(--secondary-rgb), 0.05) 0%, transparent 40%),
                radial-gradient(circle at 90% 70%, rgba(var(--primary-rgb), 0.05) 0%, transparent 40%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 64px;
    align-items: center;
}

@media (min-width: 992px) {
    .hero-grid {
        grid-template-columns: 1.2fr 0.8fr;
    }
}

.hero-content {
    max-width: 650px;
}

.badge-container {
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.2rem);
    font-weight: 800;
    margin-bottom: 24px;
}

.hero-description {
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 550px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.hero-visual {
    position: relative;
    width: 100%;
}

.hero-stats-card {
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Schematic Network Diagram Animation in Hero */
.network-diagram-mock {
    height: 180px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.server-node {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    color: var(--primary);
    z-index: 10;
}

.server-node.origin {
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(var(--primary-rgb), 0.2);
}

.server-node.endpoint-1 {
    top: 20%;
    right: 10%;
    color: var(--secondary);
}

.server-node.endpoint-2 {
    bottom: 20%;
    right: 10%;
    color: var(--accent);
}

.signal-line {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    transform-origin: left center;
    z-index: 1;
}

.signal-1 {
    top: calc(50% - 1px);
    left: 20%;
    width: 60%;
    height: 2px;
    transform: rotate(-22deg);
}

.signal-2 {
    top: calc(50% - 1px);
    left: 20%;
    width: 60%;
    height: 2px;
    transform: rotate(22deg);
}

/* Packet signals pulsing down paths */
.signal-1::before, .signal-2::before {
    content: '';
    position: absolute;
    top: -3px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
    animation: flowPacket 3s infinite linear;
}

.signal-2::before {
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
    animation-delay: 1.5s;
}

.stats-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.status-text {
    font-size: 0.85rem;
    font-weight: 500;
}

.uptime-percentage {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
}

/* Scroll Mouse Icon */
.hero-scroller {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: auto;
    padding-top: 40px;
}

.scroll-mouse {
    width: 26px;
    height: 44px;
    border: 2px solid var(--text-muted);
    border-radius: 13px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
    cursor: pointer;
    transition: border-color var(--transition-fast);
}

.scroll-mouse:hover {
    border-color: var(--primary);
}

.scroll-wheel {
    width: 4px;
    height: 10px;
    background-color: var(--text-muted);
    border-radius: 2px;
    animation: scrollWheel 1.5s infinite;
}

.scroll-mouse:hover .scroll-wheel {
    background-color: var(--primary);
}

/* ==========================================================================
   SERVICES / SOLUTIONS HUB
   ========================================================================== */
.section-header {
    margin-bottom: 64px;
}

.section-title {
    font-size: clamp(2rem, 3.5vw, 3rem);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.service-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-icon {
    width: 56px;
    height: 56px;
    background: rgba(var(--primary-rgb), 0.08);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 24px;
    box-shadow: 0 0 15px rgba(var(--primary-rgb), 0.05);
}

.service-card:nth-child(2) .service-icon {
    background: rgba(var(--secondary-rgb), 0.08);
    border-color: rgba(var(--secondary-rgb), 0.2);
    color: var(--secondary);
}

.service-title {
    font-size: 1.4rem;
    margin-bottom: 14px;
}

.service-desc {
    font-size: 0.95rem;
    margin-bottom: 24px;
    flex-grow: 1;
}

.service-bullets {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.service-bullets li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 500;
}

.service-bullets li i {
    width: 16px;
    height: 16px;
    color: var(--primary);
}

.service-card:nth-child(2) .service-bullets li i {
    color: var(--secondary);
}

/* ==========================================================================
   WHY FLUX METRICS SECTION
   ========================================================================== */
.why-flux {
    background: linear-gradient(180deg, transparent 0%, rgba(var(--secondary-rgb), 0.02) 50%, transparent 100%);
    align-items: center;
}

.why-flux-text {
    max-width: 550px;
}

.why-flux-desc {
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.feature-item {
    display: flex;
    gap: 20px;
    margin-bottom: 28px;
}

.feature-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-item:nth-child(2) .feature-icon {
    background: rgba(var(--secondary-rgb), 0.1);
    color: var(--secondary);
}

.feature-info h4 {
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.feature-info p {
    font-size: 0.95rem;
}

.stat-grid {
    gap: 20px;
}

.stat-card {
    text-align: center;
    padding: 40px 20px;
}

.stat-num {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

/* ==========================================================================
   IT HEALTH ASSESSMENT WIZARD
   ========================================================================== */
.wizard-card {
    padding: 48px;
    box-shadow: 0 0 50px rgba(var(--primary-rgb), 0.05);
}

.quiz-progress-wrapper {
    margin-bottom: 48px;
}

.quiz-steps-indicators {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin-bottom: 16px;
    z-index: 2;
}

.quiz-indicator {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-muted);
    transition: all var(--transition-smooth);
}

.quiz-indicator.active {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 15px rgba(var(--primary-rgb), 0.25);
    background: rgba(var(--primary-rgb), 0.08);
}

.quiz-indicator.completed {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--bg-dark);
}

.progress-bar-container {
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    position: relative;
    top: -34px;
    z-index: 1;
    max-width: 90%;
    margin: 0 auto;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    width: 0%;
    border-radius: 2px;
    transition: width var(--transition-smooth);
}

/* Step panels switcher */
.quiz-step {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity var(--transition-smooth), transform var(--transition-smooth);
}

.quiz-step.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.quiz-step-title {
    font-size: 1.6rem;
    margin-bottom: 8px;
    text-align: center;
}

.quiz-step-sub {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 36px;
    text-align: center;
}

/* Option Card Styling */
.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.quiz-option-card {
    cursor: pointer;
}

.quiz-option-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.option-content {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all var(--transition-fast);
}

.option-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--transition-fast);
}

.option-text {
    display: flex;
    flex-direction: column;
}

.option-text strong {
    font-size: 1.05rem;
    margin-bottom: 4px;
    color: var(--text-main);
}

.option-text span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Option checking animations */
.quiz-option-card:hover .option-content {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(var(--primary-rgb), 0.3);
}

.quiz-option-card input:checked + .option-content {
    background: rgba(var(--primary-rgb), 0.06);
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(var(--primary-rgb), 0.08);
}

.quiz-option-card input:checked + .option-content .option-icon {
    background: var(--primary);
    color: var(--bg-dark);
}

/* Results Screen Layout */
.results-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.radial-score-container {
    width: 140px;
    height: 140px;
    position: relative;
    margin-bottom: 30px;
}

.score-circle-svg {
    transform: rotate(-90deg);
}

.score-circle-bg {
    fill: none;
    stroke: var(--border-color);
    stroke-width: 8;
}

.score-circle-bar {
    fill: none;
    stroke: var(--primary);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 339.29; /* 2 * PI * r(54) = 339.29 */
    stroke-dashoffset: 339.29;
    transition: stroke-dashoffset 1.5s cubic-bezier(0.1, 0.8, 0.25, 1);
}

.score-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 2.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
}

.score-text small {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.results-headline {
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.results-analysis {
    font-size: 1rem;
    max-width: 500px;
    margin-bottom: 32px;
}

.results-recommendation-card {
    background: rgba(var(--secondary-rgb), 0.05);
    border: 1px solid rgba(var(--secondary-rgb), 0.25);
    border-radius: 12px;
    padding: 24px;
    text-align: left;
    width: 100%;
    max-width: 550px;
    margin-bottom: 36px;
    position: relative;
}

.recommendation-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--secondary);
    margin-bottom: 12px;
}

.results-recommendation-card h4 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: var(--text-main);
}

.results-recommendation-card p {
    font-size: 0.9rem;
}

.results-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

/* Wizard Navigation Footer */
.quiz-nav {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
    margin-top: 40px;
}

/* ==========================================================================
   TESTIMONIALS / CASE STUDIES
   ========================================================================== */
.testimonial-card {
    display: flex;
    flex-direction: column;
}

.testimonial-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.client-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
}

.client-logo i {
    width: 24px;
    height: 24px;
}

.rating {
    display: flex;
    gap: 4px;
    color: hsl(45, 100%, 50%); /* Premium Gold */
}

.rating i {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.testimonial-text {
    font-style: italic;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 24px;
    flex-grow: 1;
}

.client-author {
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
    display: flex;
    flex-direction: column;
}

.client-author strong {
    font-size: 0.95rem;
    color: var(--text-main);
}

.client-author span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-info-container {
    max-width: 500px;
}

.contact-desc {
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-bottom: 40px;
}

.contact-detail-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.detail-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.detail-text {
    display: flex;
    flex-direction: column;
}

.detail-text strong {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.detail-text a, .detail-text span {
    font-size: 1.05rem;
    font-weight: 500;
}

.detail-text a:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* Schematic Visual Map HQ Card */
.map-card {
    height: 200px;
    padding: 0;
    overflow: hidden;
}

.schematic-map {
    width: 100%;
    height: 100%;
    position: relative;
    background: radial-gradient(circle at 50% 50%, rgba(var(--primary-rgb), 0.05) 0%, transparent 70%),
                repeating-linear-gradient(0deg, transparent, transparent 15px, rgba(255, 255, 255, 0.02) 15px, rgba(255, 255, 255, 0.02) 16px),
                repeating-linear-gradient(90deg, transparent, transparent 15px, rgba(255, 255, 255, 0.02) 15px, rgba(255, 255, 255, 0.02) 16px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-pulse-node {
    width: 16px;
    height: 16px;
    background-color: var(--primary);
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 15px var(--primary);
}

.map-pulse-node::before {
    content: '';
    position: absolute;
    top: -12px;
    left: -12px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(var(--primary-rgb), 0.4);
    animation: pulse 3s infinite;
}

.map-location-label {
    position: absolute;
    bottom: 20px;
    font-size: 0.8rem;
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    background: hsla(224, 71%, 4%, 0.8);
    padding: 4px 10px;
    border-radius: 10px;
}

/* Contact Form Layout */
.contact-form-card {
    box-shadow: 0 0 50px rgba(var(--secondary-rgb), 0.03);
}

.form-assessment-alert {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(var(--primary-rgb), 0.08);
    border: 1px solid rgba(var(--primary-rgb), 0.3);
    border-radius: 10px;
    padding: 12px 18px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 30px;
    animation: slideInDown 0.4s ease-out;
}

.form-row {
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.form-group input, .form-group select, .form-group textarea {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 0 15px rgba(var(--primary-rgb), 0.05);
}

/* Select styling */
.form-group select option {
    background-color: hsl(224, 71%, 5%);
    color: var(--text-main);
}

/* Error States */
.form-error {
    font-size: 0.78rem;
    color: var(--error);
    margin-top: 6px;
    display: none;
}

.form-group.invalid input {
    border-color: var(--error);
}

.form-group.invalid .form-error {
    display: block;
}

/* Submission success elements */
.form-success-box {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 10px;
}

.success-icon {
    width: 64px;
    height: 64px;
    color: var(--success);
    margin-bottom: 20px;
}

.form-success-box h3 {
    font-size: 1.6rem;
    margin-bottom: 12px;
}

.form-success-box p {
    font-size: 0.95rem;
    max-width: 400px;
}

/* ==========================================================================
   HOW WE WORK TIMELINE SECTION
   ========================================================================== */
.work-process-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 48px;
}

@media (min-width: 992px) {
    .work-process-grid {
        grid-template-columns: repeat(3, 1fr);
        position: relative;
    }
    
    /* Connecting connector horizontal lines between process cards */
    .work-process-grid::before {
        content: '';
        position: absolute;
        top: 86px; /* center of process-icon-box */
        left: 15%;
        right: 15%;
        height: 2px;
        background: linear-gradient(90deg, rgba(var(--primary-rgb), 0.1) 0%, rgba(var(--secondary-rgb), 0.2) 50%, rgba(var(--primary-rgb), 0.1) 100%);
        z-index: 1;
    }
}

.process-card {
    text-align: center;
    padding: 40px 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.process-step-num {
    position: absolute;
    top: 20px;
    right: 24px;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    opacity: 0.08;
    color: var(--text-main);
    transition: opacity var(--transition-fast);
}

.process-card:hover .process-step-num {
    opacity: 0.25;
    color: var(--primary);
}

.process-icon-box {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: rgba(var(--primary-rgb), 0.08);
    border: 1px solid rgba(var(--primary-rgb), 0.25);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.05);
    margin-bottom: 24px;
    transition: all var(--transition-smooth);
}

.process-card:nth-child(2) .process-icon-box {
    background: rgba(var(--secondary-rgb), 0.08);
    border-color: rgba(var(--secondary-rgb), 0.25);
    color: var(--secondary);
    box-shadow: 0 0 20px rgba(var(--secondary-rgb), 0.05);
}

.process-card:hover .process-icon-box {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(var(--primary-rgb), 0.2);
}

.process-card:nth-child(2):hover .process-icon-box {
    box-shadow: 0 0 30px rgba(var(--secondary-rgb), 0.2);
}

.process-card h3 {
    font-size: 1.3rem;
    margin-bottom: 14px;
    color: var(--text-main);
}

.process-card p {
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--text-muted);
}

/* Partner Routing Card */
.partner-routing-card {
    padding: 32px;
    position: relative;
    border: 1px dashed rgba(var(--secondary-rgb), 0.4);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.25);
}

.partner-routing-card:hover {
    border-color: var(--secondary);
    box-shadow: 0 12px 40px 0 rgba(var(--secondary-rgb), 0.08);
}

.partner-routing-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
}

@media (min-width: 768px) {
    .partner-routing-content {
        flex-direction: row;
        align-items: flex-start;
    }
}

.partner-icon-box {
    width: 56px;
    height: 56px;
    background: rgba(var(--secondary-rgb), 0.08);
    border: 1px solid rgba(var(--secondary-rgb), 0.25);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    flex-shrink: 0;
    box-shadow: 0 0 15px rgba(var(--secondary-rgb), 0.05);
}

.partner-text {
    flex-grow: 1;
}

.partner-text h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-main);
}

.partner-text p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 12px;
    color: var(--text-muted);
}

.partner-text strong {
    color: var(--secondary);
}

.partner-subtext {
    font-size: 0.85rem !important;
    font-style: italic;
    color: var(--text-dark) !important;
    margin-bottom: 0 !important;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.main-footer {
    background-color: var(--bg-darker);
    border-top: 1px solid var(--border-color);
    padding-top: 80px;
}

.footer-grid {
    padding-bottom: 60px;
    border-bottom: 1px solid var(--border-color);
}

@media (min-width: 992px) {
    .footer-grid {
        grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
    }
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--text-main);
}

.footer-motto {
    font-style: italic;
    font-size: 0.9rem;
}

.footer-socials {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.footer-socials a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.footer-socials a:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: rgba(var(--primary-rgb), 0.05);
}

.footer-links h4, .footer-newsletter h4 {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-main);
    margin-bottom: 24px;
}

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

.footer-links ul a {
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.footer-links ul a:hover {
    color: var(--primary);
}

.footer-newsletter {
    max-width: 320px;
}

.footer-newsletter p {
    font-size: 0.88rem;
    margin-bottom: 20px;
}

/* Footer Newsletter Form */
.newsletter-form {
    display: flex;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 4px;
}

.newsletter-form input {
    background: none;
    border: none;
    padding: 10px 16px;
    color: var(--text-main);
    font-size: 0.88rem;
    flex-grow: 1;
    width: 100px;
}

.newsletter-form input:focus {
    outline: none;
}

.newsletter-form button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--primary);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-dark);
    cursor: pointer;
    transition: transform var(--transition-fast);
}

.newsletter-form button:hover {
    transform: scale(1.05);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 30px 24px;
    font-size: 0.8rem;
    color: var(--text-dark);
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-bottom-links a {
    transition: color var(--transition-fast);
}

.footer-bottom-links a:hover {
    color: var(--text-muted);
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        padding: 30px 0;
    }
}

/* ==========================================================================
   ANIMATIONS & TRANSITION SYSTEMS
   ========================================================================== */
@keyframes pulse {
    0% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.1; }
    100% { transform: scale(1); opacity: 0.5; }
}

@keyframes scrollWheel {
    0% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(6px); opacity: 0.3; }
    100% { transform: translateY(0); opacity: 1; }
}

@keyframes flowPacket {
    0% { left: 0%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { left: 100%; opacity: 0; }
}

@keyframes slideInDown {
    from { transform: translateY(-10px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Dynamic scroll-reveal animation presets */
.card-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.card-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}
