/* ==========================================================================
   DESIGN SYSTEM & CORE CONFIG
   ========================================================================== */
:root {
    /* Colors */
    --color-bg: #07050f;
    --color-bg-alt: #0b0818;
    --color-card: rgba(22, 19, 44, 0.45);
    --color-card-border: rgba(255, 255, 255, 0.08);
    --color-text-primary: #f8fafc;
    --color-text-muted: #94a3b8;
    --color-primary: #8b5cf6;
    --color-primary-glow: rgba(139, 92, 246, 0.15);
    --color-secondary: #06b6d4;
    --color-secondary-glow: rgba(6, 182, 212, 0.15);
    --color-accent-grad: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%);
    --color-error: #ef4444;
    --color-success: #22c55e;
    
    /* Typography */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Layout */
    --container-max-width: 1200px;
    --header-height: 80px;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --border-radius-lg: 16px;
    --border-radius-md: 8px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
    width: 100%;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    -webkit-font-smoothing: antialiased;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--color-bg);
}
::-webkit-scrollbar-thumb {
    background: #252044;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

/* Typography & Globals */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 24px;
}

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

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

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

.glow-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--color-secondary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--color-secondary);
    margin-right: 8px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    outline: none;
}

.btn-primary {
    background: var(--color-accent-grad);
    color: #fff;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(6, 182, 212, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 1px solid var(--color-primary);
}
.btn-outline:hover {
    background: var(--color-primary);
    box-shadow: 0 0 15px var(--color-primary);
}

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

/* Section Common */
section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.section-header {
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

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

/* Glassmorphism Panel */
.glass-panel {
    background: var(--color-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--color-card-border);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    transition: var(--transition-smooth);
}

/* ==========================================================================
   HEADER / NAVIGATION
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    display: flex;
    align-items: center;
    z-index: 1000;
    transition: var(--transition-smooth);
    border-bottom: 1px solid transparent;
}

.header.scrolled {
    background: rgba(7, 5, 15, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-card-border);
    height: 70px;
}

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

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-svg {
    height: 32px;
    width: auto;
    display: block;
    overflow: visible;
}

.logo-text {
    font-size: 1.3rem;
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.5px;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-muted);
}

.nav-link:hover, .nav-link.active {
    color: var(--color-text-primary);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.nav-btn {
    padding: 10px 20px;
    font-size: 0.85rem;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.mobile-toggle .bar {
    width: 25px;
    height: 2px;
    background-color: var(--color-text-primary);
    transition: var(--transition-smooth);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    background: radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 10% 80%, rgba(6, 182, 212, 0.08) 0%, transparent 50%);
}

#nexus-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: all;
}

.hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
}

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

.hero-tag {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 3.8rem;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1.5px;
}

.hero-description {
    font-size: 1.15rem;
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 60px;
}

.hero-features {
    display: flex;
    gap: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 32px;
}

.hero-feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.feature-icon {
    width: 18px;
    height: 18px;
    color: var(--color-secondary);
}

.hero-bottom-glow {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to top, var(--color-bg), transparent);
    z-index: 2;
}

/* ==========================================================================
   STATS SECTION
   ========================================================================== */
.stats-section {
    padding: 60px 0;
    background-color: var(--color-bg-alt);
    border-top: 1px solid var(--color-card-border);
    border-bottom: 1px solid var(--color-card-border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

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

.stat-num {
    font-size: 3rem;
    font-family: var(--font-heading);
    font-weight: 700;
    background: var(--color-accent-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.service-card {
    background: var(--color-card);
    border: 1px solid var(--color-card-border);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(255, 255, 255, 0.05), transparent 40%);
    z-index: 1;
    pointer-events: none;
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.service-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    position: relative;
    z-index: 2;
}

.service-icon-wrapper.purple-glow {
    background: rgba(139, 92, 246, 0.1);
    color: var(--color-primary);
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.service-icon-wrapper.cyan-glow {
    background: rgba(6, 182, 212, 0.1);
    color: var(--color-secondary);
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.service-icon {
    width: 28px;
    height: 28px;
}

.service-card-title {
    font-size: 1.4rem;
    margin-bottom: 16px;
    position: relative;
    z-index: 2;
}

.service-card-desc {
    font-size: 0.95rem;
    margin-bottom: 24px;
    position: relative;
    z-index: 2;
}

.service-bullets {
    list-style: none;
    margin-bottom: 32px;
    position: relative;
    z-index: 2;
}

.service-bullets li {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-bullets li::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: var(--color-primary);
    border-radius: 50%;
}

.service-learn-more {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;
    position: relative;
    z-index: 2;
}

.service-card:hover .service-learn-more {
    color: var(--color-secondary);
}

/* ==========================================================================
   ABOUT / PHILOSOPHY SECTION
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 100%;
}

.about-content {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.about-title {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.about-desc {
    margin-bottom: 20px;
    font-size: 1.05rem;
}

/* Philosophy Tabs */
.philosophy-tabs {
    margin-top: 40px;
}

.tab-headers {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 24px;
    width: 100%;
    max-width: 100%;
}

.tab-btn {
    background: transparent;
    border: none;
    outline: none;
    color: var(--color-text-muted);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 24px;
    cursor: pointer;
    position: relative;
    transition: var(--transition-smooth);
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-accent-grad);
    transform: scaleX(0);
    transition: var(--transition-smooth);
}

.tab-btn.active {
    color: var(--color-text-primary);
}

.tab-btn.active::after {
    transform: scaleX(1);
}

.tab-contents {
    position: relative;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* About Graphics */
.about-graphics {
    perspective: 1000px;
    min-width: 0;
}

.graphic-box {
    background: rgba(14, 11, 30, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--border-radius-lg);
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    max-width: 100%;
}

.box-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.code-editor-header {
    background: #0d0a1b;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    gap: 8px;
}

.code-editor-header .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.code-editor-header .dot.red { background: #ef4444; }
.code-editor-header .dot.yellow { background: #f59e0b; }
.code-editor-header .dot.green { background: #10b981; }

.file-name {
    margin-left: 12px;
    font-size: 0.8rem;
    font-family: var(--font-heading);
    color: var(--color-text-muted);
}

.code-snippet {
    padding: 24px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem;
    overflow-x: auto;
    color: #e2e8f0;
}

.token.keyword { color: #c084fc; font-weight: 600; }
.token.string { color: #38bdf8; }
.token.function { color: #f472b6; }
.token.class { color: #22d3ee; }

/* ==========================================================================
   TECH STACK SECTION
   ========================================================================== */
.tech-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--color-text-muted);
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.filter-btn:hover, .filter-btn.active {
    background: rgba(139, 92, 246, 0.1);
    border-color: var(--color-primary);
    color: var(--color-text-primary);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.2);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.tech-card {
    background: var(--color-card);
    border: 1px solid var(--color-card-border);
    border-radius: var(--border-radius-md);
    padding: 24px;
    text-align: center;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tech-card:hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.tech-icon-box {
    width: 50px;
    height: 50px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tech-svg {
    width: 100%;
    height: 100%;
}

.tech-card h4 {
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.tech-card p {
    font-size: 0.8rem;
}

/* ==========================================================================
   PROJECT ESTIMATOR SECTION
   ========================================================================== */
.estimator-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 32px;
}

.control-group {
    margin-bottom: 32px;
}

.control-group:last-child {
    margin-bottom: 0;
}

.control-label {
    display: block;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 16px;
}

/* Service select buttons */
.service-select-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.select-btn {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--color-card-border);
    color: var(--color-text-muted);
    font-family: var(--font-heading);
    font-weight: 500;
    padding: 16px;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: var(--transition-smooth);
    text-align: center;
}

.select-btn:hover, .select-btn.active {
    background: rgba(6, 182, 212, 0.08);
    border-color: var(--color-secondary);
    color: var(--color-text-primary);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.15);
}

/* Slider Controls */
.range-wrapper {
    padding: 10px 0;
}

.custom-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: #181533;
    border-radius: 3px;
    outline: none;
}

.custom-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--color-secondary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px var(--color-secondary);
    transition: var(--transition-smooth);
}

.custom-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.slider-labels span.active {
    color: var(--color-secondary);
    font-weight: 600;
}

/* Checkbox options */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 32px;
    cursor: pointer;
    font-size: 0.88rem;
    user-select: none;
    color: var(--color-text-muted);
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    height: 20px;
    width: 20px;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-card-border);
    border-radius: 4px;
    transition: var(--transition-smooth);
}

.checkbox-container:hover input ~ .checkmark {
    border-color: var(--color-primary);
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
}

.checkmark::after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark::after {
    display: block;
}

.checkbox-container .checkmark::after {
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Estimator Results panel */
.estimator-results {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.neon-border {
    position: relative;
    border-color: var(--color-primary);
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.15);
}

.results-header {
    font-size: 1.5rem;
    margin-bottom: 32px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.results-display-group {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 32px;
    justify-content: center;
}

.result-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 24px;
}

.result-item:last-child {
    border-bottom: none;
}

.result-label {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 8px;
}

.result-value {
    font-size: 2.2rem;
    font-family: var(--font-heading);
    font-weight: 700;
}

.accent-gradient-text {
    background: linear-gradient(135deg, #06b6d4 0%, #22c55e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.estimate-disclaimer {
    font-size: 0.75rem;
    line-height: 1.4;
    margin-bottom: 24px;
}

/* ==========================================================================
   TESTIMONIALS SECTION
   ========================================================================== */
.testimonials-slider-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.testimonial-slider {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.testimonial-slide {
    min-width: 100%;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.testimonial-slide.active {
    opacity: 1;
}

.testimonial-quote {
    font-size: 1.6rem;
    font-family: var(--font-heading);
    line-height: 1.5;
    color: var(--color-text-primary);
    margin-bottom: 32px;
    font-style: italic;
    position: relative;
}

.testimonial-quote::before {
    content: '"';
    font-size: 5rem;
    color: rgba(139, 92, 246, 0.15);
    position: absolute;
    top: -40px;
    left: -20px;
    font-family: serif;
}

.client-meta {
    display: flex;
    align-items: center;
    gap: 16px;
}

.client-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.1);
}

.avatar-svg {
    width: 24px;
    height: 24px;
}

.client-name {
    font-size: 1rem;
    margin-bottom: 2px;
}

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

/* Slider Controls */
.slider-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 40px;
}

.slider-arrow {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-card-border);
    color: var(--color-text-primary);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.slider-arrow:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    box-shadow: 0 0 15px var(--color-primary);
}

.slider-arrow svg {
    width: 20px;
    height: 20px;
}

.slider-dots {
    display: flex;
    gap: 8px;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.slider-dot.active {
    background: var(--color-primary);
    transform: scale(1.3);
}

/* ==========================================================================
   FAQS SECTION
   ========================================================================== */
.faq-container {
    max-width: 800px;
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--color-card);
    border: 1px solid var(--color-card-border);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    transition: var(--transition-smooth);
}

.faq-trigger {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    padding: 24px;
    color: var(--color-text-primary);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.faq-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: var(--color-text-muted);
    transition: var(--transition-smooth);
}

.faq-icon svg {
    width: 18px;
    height: 18px;
}

.faq-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s ease;
    padding: 0 24px;
}

.faq-answer {
    color: var(--color-text-muted);
    padding-bottom: 24px;
    font-size: 0.95rem;
}

.faq-item.active {
    border-color: rgba(255, 255, 255, 0.15);
}

.faq-item.active .faq-trigger {
    color: var(--color-secondary);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: var(--color-secondary);
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-title {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.contact-subtitle {
    margin-bottom: 40px;
}

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

.info-item {
    display: flex;
    gap: 16px;
}

.info-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--border-radius-md);
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--color-card-border);
    color: var(--color-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-icon svg {
    width: 20px;
    height: 20px;
}

.info-item h5 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.info-item p, .info-item a {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.info-item a:hover {
    color: var(--color-secondary);
}

/* Interactive Map Mockup */
.mock-map {
    height: 220px;
    background: #09071b;
    border: 1px solid var(--color-card-border);
    border-radius: var(--border-radius-md);
    position: relative;
    overflow: hidden;
}

.map-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    /* Grid Dot Effect */
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 15px 15px;
}

.map-marker {
    position: absolute;
    cursor: pointer;
}

.map-marker.gujarat { top: 55%; left: 62%; }

.marker-dot {
    display: block;
    width: 10px;
    height: 10px;
    background-color: var(--color-secondary);
    border-radius: 50%;
    position: relative;
    z-index: 2;
}

.marker-glow {
    position: absolute;
    top: -10px;
    left: -10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: rgba(6, 182, 212, 0.3);
    animation: markerPulse 2s infinite ease-out;
    z-index: 1;
}

@keyframes markerPulse {
    0% { transform: scale(0.5); opacity: 1; }
    100% { transform: scale(2); opacity: 0; }
}

.map-tooltip {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(7, 5, 15, 0.9);
    border: 1px solid var(--color-card-border);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    color: var(--color-text-muted);
    pointer-events: none;
    z-index: 10;
    transition: var(--transition-smooth);
}

/* Contact Form UI */
.contact-form-container {
    position: relative;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 28px;
    height: 100%;
}

.form-title {
    font-size: 1.4rem;
}

.input-group {
    position: relative;
    width: 100%;
}

.input-group input, 
.input-group textarea, 
.input-group select {
    width: 100%;
    padding: 10px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    outline: none;
    color: var(--color-text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.input-group select {
    color: var(--color-text-muted);
    cursor: pointer;
}

.input-group select option {
    background: var(--color-bg-alt);
    color: var(--color-text-primary);
}

.input-group label {
    position: absolute;
    top: 10px;
    left: 0;
    color: var(--color-text-muted);
    pointer-events: none;
    transition: var(--transition-smooth);
    font-size: 0.95rem;
}

.input-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--color-accent-grad);
    transform: scaleX(0);
    transition: var(--transition-smooth);
}

/* Active floating labels */
.input-group input:focus ~ label,
.input-group input:not(:placeholder-shown) ~ label,
.input-group textarea:focus ~ label,
.input-group textarea:not(:placeholder-shown) ~ label {
    top: -12px;
    font-size: 0.8rem;
    color: var(--color-primary);
}

.input-group input:focus ~ .input-line,
.input-group textarea:focus ~ .input-line,
.input-group select:focus ~ .input-line {
    transform: scaleX(1);
}

.error-msg {
    position: absolute;
    bottom: -18px;
    left: 0;
    font-size: 0.75rem;
    color: var(--color-error);
    display: none;
}

.form-terms p {
    font-size: 0.75rem;
    line-height: 1.4;
}

/* Success Overlay */
.form-success-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0f0b21;
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
    z-index: 15;
}

.form-success-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.success-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.success-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 8px;
}

.success-content h4 {
    font-size: 1.4rem;
}

.success-content p {
    font-size: 0.95rem;
    margin-bottom: 16px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    background-color: #04030a;
    border-top: 1px solid var(--color-card-border);
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 60px;
    margin-bottom: 60px;
}

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

.brand-desc {
    font-size: 0.9rem;
    max-width: 320px;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--color-card-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
}

.social-links a:hover {
    color: var(--color-primary);
    border-color: var(--color-primary);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
}

.social-svg {
    width: 18px;
    height: 18px;
}

.footer-links-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.footer-links-col h4 {
    font-size: 0.95rem;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.footer-links-col a {
    font-size: 0.88rem;
    color: var(--color-text-muted);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 992px) {
    .section-title {
        font-size: 2.2rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .tech-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .estimator-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

@media (max-width: 768px) {
    /* Navbar menu for mobile */
    .mobile-toggle {
        display: flex;
        flex-shrink: 0;
    }
    
    .logo-text {
        font-size: 1.1rem !important;
    }
    
    .logo-svg {
        height: 26px !important;
    }
    
    .logo-container {
        gap: 6px !important;
    }
    
    .header .nav-container {
        padding: 0 16px !important;
    }
    
    .tab-headers {
        overflow-x: auto;
        white-space: nowrap;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 8px;
        scrollbar-width: none; /* Firefox */
    }
    
    .tab-headers::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }
    
    .tab-btn {
        flex-shrink: 0;
        padding: 10px 16px;
        font-size: 0.88rem;
    }
    
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: var(--color-bg);
        border-top: 1px solid var(--color-card-border);
        transition: var(--transition-smooth);
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu ul {
        flex-direction: column;
        padding: 40px 24px;
        align-items: stretch;
        gap: 24px;
    }
    
    .nav-link {
        font-size: 1.1rem;
        display: block;
    }
    
    .nav-btn {
        width: 100%;
        text-align: center;
    }
    
    /* Hamburger Active Animation */
    .mobile-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .mobile-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    .mobile-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-features {
        flex-direction: column;
        gap: 16px;
    }
    
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .checkbox-grid {
        grid-template-columns: 1fr;
    }
    
    .service-select-buttons {
        grid-template-columns: 1fr;
    }
    
    .testimonial-quote {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .tech-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   CAREERS PAGE SPECIFICS
   ========================================================================== */
.careers-hero-section {
    padding: 140px 0 80px;
    background: radial-gradient(circle at 50% 30%, rgba(139, 92, 246, 0.08) 0%, transparent 60%);
}

.careers-hero-section .container {
    position: relative;
    z-index: 3;
}

.careers-hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.careers-hero-desc {
    font-size: 1.2rem;
    max-width: 650px;
    margin: 0 auto 40px;
}

.perks-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.perk-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.perk-icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.perk-icon {
    width: 24px;
    height: 24px;
}

.careers-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.c-filter-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--color-text-muted);
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.c-filter-btn:hover, .c-filter-btn.active {
    background: rgba(6, 182, 212, 0.1);
    border-color: var(--color-secondary);
    color: var(--color-text-primary);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.2);
}

.jobs-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.job-row-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 32px 40px;
}

.job-meta-info {
    flex-grow: 1;
}

.job-dept-badge {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 12px;
    text-transform: uppercase;
}

.job-meta-info h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.job-details-row {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: 12px;
}

.job-tags {
    display: flex;
    gap: 8px;
}

.job-tag-item {
    font-size: 0.8rem;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-card-border);
    border-radius: var(--border-radius-md);
    color: var(--color-text-muted);
}

/* Modal Styling */
.application-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(4, 3, 10, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 2000;
    display: none; /* Controlled via JS */
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.application-modal-overlay.active {
    display: flex;
    animation: modalFadeIn 0.3s ease forwards;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-card {
    max-width: 550px;
    width: 100%;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    border-color: var(--color-primary);
}

.modal-close-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    background: transparent;
    border: none;
    outline: none;
    font-size: 2.2rem;
    color: var(--color-text-muted);
    cursor: pointer;
    line-height: 1;
    transition: var(--transition-smooth);
}

.modal-close-btn:hover {
    color: var(--color-text-primary);
}

.modal-title {
    font-size: 1.6rem;
    margin-bottom: 4px;
}

.modal-subtitle-job {
    font-size: 1rem;
    color: var(--color-secondary);
    margin-bottom: 28px;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* File Input */
.file-input-group {
    border: 1px dashed var(--color-card-border);
    border-radius: var(--border-radius-md);
    padding: 16px;
    text-align: center;
}

.file-label-btn {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    transition: var(--transition-smooth);
}

.file-label-btn:hover {
    color: var(--color-secondary);
}

.file-icon-svg {
    width: 18px;
    height: 18px;
}

/* Careers responsive rules */
@media (max-width: 992px) {
    .job-row-card {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding: 24px;
    }
    
    .job-tags {
        margin: 8px 0;
    }
}

@media (max-width: 768px) {
    .perks-grid {
        grid-template-columns: 1fr;
    }
    
    .careers-hero-title {
        font-size: 2.5rem;
    }
}

