:root {
    /* Color Palette */
    --bg-dark: #06090f;
    --bg-navy: #0a101f;
    --primary: #0070f3;
    --secondary: #00dfd8;
    --text-main: #f8fafc;
    --text-dim: #94a3b8;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --accent-glow: rgba(0, 112, 243, 0.15);

    /* Typography */
    --font-heading: 'Outfit', 'Inter', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;

    /* Layout */
    --container-width: 1200px;
    --transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --primary-glow: rgba(0, 112, 243, 0.4);
    --secondary-glow: rgba(0, 223, 216, 0.3);
}

/* --- Scroll Progress Bar --- */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    z-index: 2000;
    transition: width 0.1s ease-out;
}

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

html {
    scroll-behavior: smooth;
}

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

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



@keyframes shimmer {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotateX(5deg);
    }

    50% {
        transform: translateY(-20px) rotateX(10deg);
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 20px var(--primary-glow);
    }

    50% {
        box-shadow: 0 0 40px var(--primary-glow), 0 0 60px var(--secondary-glow);
    }
}

.grad-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--primary));
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 5s infinite linear;
}

/* --- Layout Components --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 100px 0;
    position: relative;
}

.glass-card {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 1.25rem;
    padding: 2rem;
    transition: var(--transition);
}

/* Accessibility & Focus States */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 112, 243, 0.4);
    box-shadow: 0 10px 30px rgba(0, 112, 243, 0.1);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    font-size: 1rem;
    gap: 0.5rem;
}

.btn-primary:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 15px 35px var(--primary-glow);
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: var(--glass);
    border-color: var(--text-main);
}

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

/* --- Live Status Indicator --- */
.live-status {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.5rem 1.2rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 2rem;
    font-size: 0.85rem;
    color: #10b981;
    font-weight: 600;
    margin-bottom: 2rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    position: relative;
}

.status-dot::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: #10b981;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

/* --- Navigation --- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
}

nav.scrolled {
    padding: 0.8rem 0;
    background: rgba(6, 9, 15, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    color: white;
}

/* --- Language Switcher --- */
.lang-switcher {
    display: flex;
    gap: 0.5rem;
    background: var(--glass);
    padding: 0.3rem;
    border-radius: 2rem;
    border: 1px solid var(--glass-border);
}

.lang-btn {
    padding: 0.3rem 0.8rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 1.5rem;
    cursor: pointer;
    border: none;
    background: transparent;
    color: var(--text-dim);
    transition: var(--transition);
}

.lang-btn.active {
    background: var(--primary);
    color: white;
}

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

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: var(--transition);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dim);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--primary);
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background:
        radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(0, 112, 243, 0.15) 0%, transparent 50%),
        linear-gradient(rgba(6, 9, 15, 0.85), rgba(6, 9, 15, 0.7)),
        url('Assets/hero-premium-bg.jpg') center/cover no-repeat;
    padding-top: 120px;
    overflow: hidden;
    perspective: 1000px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-content h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-dim);
    margin-bottom: 2.5rem;
}

/* --- Services Grid --- */
.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* --- Trust Badges --- */
.trust-badges {
    padding: 3rem 0;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.01);
}

.badge-grid {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 3rem;
    opacity: 0.6;
    filter: grayscale(1);
    transition: var(--transition);
}

.badge-grid:hover {
    opacity: 1;
    filter: grayscale(0);
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-main);
}

/* --- AI Chatbot --- */
.ai-chatbot-toggle {
    position: fixed;
    bottom: 30px;
    right: 100px;
    /* Offset from WhatsApp */
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 112, 243, 0.4);
    z-index: 1000;
    transition: var(--transition);
}

.ai-chatbot-toggle:hover {
    transform: scale(1.1) rotate(15deg);
}

.chat-window {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    height: 500px;
    background: rgba(10, 16, 31, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    display: none;
    flex-direction: column;
    z-index: 1001;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.chat-window.active {
    display: flex;
    animation: slideUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

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

.chat-header {
    background: var(--primary);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.chat-body {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-msg {
    max-width: 80%;
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

.chat-msg.bot {
    background: var(--glass);
    align-self: flex-start;
    border-bottom-left-radius: 0.2rem;
}

.chat-msg.user {
    background: var(--primary);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 0.2rem;
}

.chat-msg.bot.typing {
    display: flex;
    gap: 0.3rem;
    padding: 0.75rem 1.2rem;
}

.chat-msg.bot.typing span {
    width: 6px;
    height: 6px;
    background: var(--text-dim);
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out;
}

.chat-msg.bot.typing span:nth-child(2) {
    animation-delay: 0.2s;
}

.chat-msg.bot.typing span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingBounce {

    0%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-6px);
    }
}

.chat-input-area {
    padding: 1rem;
    border-top: 1px solid var(--glass-border);
    display: flex;
    gap: 0.5rem;
}

/* --- Smart Forms --- */
.form-group input:invalid:not(:placeholder-shown) {
    border-color: #ef4444;
}

.form-feedback {
    font-size: 0.8rem;
    margin-top: 0.3rem;
    display: none;
}

.form-feedback.error {
    color: #ef4444;
    display: block;
}

.form-feedback.success {
    color: #10b981;
    display: block;
}

.btn-loading {
    position: relative;
    color: transparent !important;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin: -10px 0 0 -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* --- Booking Modal --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: var(--bg-dark);
    width: 95%;
    max-width: 800px;
    border: 1px solid var(--glass-border);
    border-radius: 2rem;
    overflow: hidden;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--glass);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    display: block;
}

/* --- Portfolio --- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.portfolio-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 1rem;
    transition: var(--transition);
    background: var(--glass);
    border: 1px solid var(--glass-border);
}

.pos-preview {
    margin-top: 4rem;
    border-radius: 2rem;
    overflow: hidden;
    border: 1px solid rgba(0, 112, 243, 0.3);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 50px rgba(0, 112, 243, 0.1);
    transform: perspective(1000px) rotateX(5deg);
    transition: var(--transition);
}

.pos-preview:hover {
    transform: perspective(1000px) rotateX(0deg) translateY(-10px);
    border-color: var(--primary);
}

.portfolio-info {
    margin-top: 1.5rem;
}

.portfolio-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: block;
}

/* --- About Section --- */
.about-flex {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-img {
    border-radius: 2rem;
    overflow: hidden;
    height: 400px;
}

.about-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Testimonials --- */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    position: relative;
}

.testimonial-card p {
    font-style: italic;
    color: var(--text-dim);
    margin-bottom: 1.5rem;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.client-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
}

/* --- Contact Section --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

/* --- Technical Terminal --- */
.terminal-section {
    padding: 80px 0;
    background: #020408;
}

.terminal-window {
    background: #05070a;
    border: 1px solid var(--glass-border);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
    font-family: 'Courier New', Courier, monospace;
}

.terminal-header {
    background: #1a1b1e;
    padding: 0.75rem 1rem;
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid var(--glass-border);
}

.term-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-body {
    padding: 2rem;
    height: 350px;
    color: #10b981;
    /* Matrix Green */
    overflow-y: auto;
    font-size: 0.9rem;
    line-height: 1.6;
    position: relative;
}

.terminal-body::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 50%, rgba(0, 0, 0, 0.1) 50%);
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 2;
}

.term-line {
    margin-bottom: 0.5rem;
}

.term-input-line {
    display: flex;
    gap: 0.5rem;
}

.term-input {
    background: transparent;
    border: none;
    color: #10b981;
    outline: none;
    flex: 1;
    font-family: inherit;
}

/* --- GitHub Pulse --- */
.github-pulse {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-dim);
    font-size: 0.8rem;
    margin-top: 1rem;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    position: relative;
}

.pulse-dot::after {
    content: '';
    position: absolute;
    inset: -4px;
    border: 1px solid #10b981;
    border-radius: 50%;
    animation: githubPulse 2s infinite;
}

@keyframes githubPulse {
    to {
        transform: scale(3);
        opacity: 0;
    }
}

.contact-info-list {
    list-style: none;
}

.contact-info-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    color: var(--text-dim);
}

.contact-info-list i {
    color: var(--primary);
    width: 20px;
}

.contact-form {
    display: grid;
    gap: 1.5rem;
}

.form-group {
    display: grid;
    gap: 0.5rem;
}

.form-group input,
.form-group textarea {
    padding: 1rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 0.75rem;
    color: var(--text-main);
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

/* --- Footer --- */
footer {
    padding: 5rem 0 2rem;
    border-top: 1px solid var(--glass-border);
}

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

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-dim);
    text-decoration: none;
    transition: var(--transition);
}

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

.footer-bottom {
    text-align: center;
    color: var(--text-dim);
    font-size: 0.875rem;
}

/* --- Animations --- */
[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-reveal].active {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered Reveal Delays */
.hero-content h1[data-reveal] {
    transition-delay: 0.1s;
}

.hero-content p[data-reveal] {
    transition-delay: 0.3s;
}

.hero-content .hero-btns[data-reveal] {
    transition-delay: 0.5s;
}

.hero-content .pos-preview[data-reveal] {
    transition-delay: 0.7s;
}

.service-card:nth-child(2) {
    transition-delay: 0.1s;
}

.service-card:nth-child(3) {
    transition-delay: 0.2s;
}

.service-card:nth-child(4) {
    transition-delay: 0.3s;
}

.service-card:nth-child(5) {
    transition-delay: 0.4s;
}

.service-card:nth-child(6) {
    transition-delay: 0.5s;
}



/* --- Trust Bar --- */
.trust-bar {
    padding: 3rem 0;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(6, 9, 15, 0.5);
}

.logo-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
    opacity: 0.6;
}

.logo-item {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 2px;
    color: var(--text-dim);
    filter: grayscale(1);
    transition: var(--transition);
}

.logo-item:hover {
    filter: grayscale(0);
    opacity: 1;
    color: var(--primary);
}

/* --- Process Section --- */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
    position: relative;
}

.process-step {
    text-align: center;
    padding: 2rem;
    position: relative;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-weight: 800;
    box-shadow: 0 0 20px var(--accent-glow);
}

/* --- Tech Stack Horizon --- */
.tech-horizon {
    padding: 60px 0;
    background: rgba(6, 9, 15, 0.3);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.tech-ticker {
    display: flex;
    overflow: hidden;
    user-select: none;
    gap: 4rem;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.tech-slide {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 4rem;
    animation: ticker 30s linear infinite;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-dim);
    font-weight: 600;
    font-size: 1.1rem;
    opacity: 0.6;
    transition: var(--transition);
}

.tech-item:hover {
    opacity: 1;
    color: var(--primary);
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* --- Team Section --- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

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

.team-img-wrapper {
    width: 200px;
    height: 200px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    padding: 8px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    position: relative;
    overflow: hidden;
}

.team-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--bg-dark);
}

.team-card h3 {
    margin-bottom: 0.5rem;
}

.team-card .role {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    display: block;
}

/* --- Testimonials --- */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.testimonial-card {
    position: relative;
}

.quote-icon {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    color: var(--primary);
    opacity: 0.2;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.client-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

/* --- Solution Calculator --- */
.calculator-card {
    max-width: 900px;
    margin: 4rem auto 0;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
}

.calc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

@media (max-width: 768px) {
    .calc-grid {
        grid-template-columns: 1fr;
    }
}

.calc-options h4 {
    margin-bottom: 1.5rem;
}

.option-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.calc-btn {
    padding: 0.6rem 1.2rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 0.5rem;
    color: var(--text-dim);
    cursor: pointer;
    transition: var(--transition);
}

.calc-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 5px 15px var(--primary-glow);
}

.calc-result {
    padding: 2rem;
    background: rgba(0, 112, 243, 0.1);
    border-radius: 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.result-price {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    margin: 1rem 0;
}

/* --- Stats Section --- */
.stats-section {
    background: linear-gradient(rgba(0, 112, 243, 0.05), transparent);
    padding: 80px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    text-align: center;
}

.stat-item h3 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.stat-item p {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    color: var(--text-dim);
}

/* --- FAQ Section --- */
.faq-grid {
    max-width: 800px;
    margin: 4rem auto 0;
}

.faq-item {
    margin-bottom: 1rem;
    border-radius: 1rem;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background: var(--glass);
    border: none;
    color: var(--text-main);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-family: inherit;
    transition: var(--transition);
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.08);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    transition: max-height 0.3s ease-out;
}

.faq-answer p {
    padding: 1.5rem;
    color: var(--text-dim);
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-item.active i {
    transform: rotate(180deg);
}

/* --- WhatsApp Floating Button --- */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4), inset 0 2px 2px rgba(255, 255, 255, 0.2);
    z-index: 1000;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
}

.whatsapp-btn:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.5), inset 0 2px 2px rgba(255, 255, 255, 0.2);
}

/* Tooltip */
.whatsapp-btn::before {
    content: 'Chat with an Engineer';
    position: absolute;
    right: 80px;
    background: var(--bg-navy);
    padding: 0.6rem 1.2rem;
    border-radius: 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s ease;
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.whatsapp-btn:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Pulse Animation */
.whatsapp-btn::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: #25d366;
    z-index: -1;
    opacity: 0.3;
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    70% {
        transform: scale(1.4);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 0;
    }
}

/* --- Dashboard Preview --- */
.dashboard-preview {
    margin-top: 5rem;
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    padding: 1.5rem;
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 1.5rem;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.dash-sidebar {
    border-right: 1px solid var(--glass-border);
    padding-right: 1.5rem;
}

.dash-nav-item {
    padding: 1rem;
    border-radius: 0.75rem;
    margin-bottom: 0.5rem;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
}

.dash-nav-item.active {
    background: rgba(0, 112, 243, 0.1);
    color: var(--primary);
}

.dash-main {
    display: grid;
    gap: 1.5rem;
}

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

.dash-stat-card {
    background: var(--glass);
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid var(--glass-border);
}

.dash-stat-header {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-bottom: 0.5rem;
}

.dash-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
}

.dash-chart-area {
    height: 300px;
    background: radial-gradient(circle at 50% 50%, rgba(0, 112, 243, 0.05), transparent);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    position: relative;
    overflow: hidden;
}

.chart-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    stroke: var(--primary);
    stroke-width: 2;
    fill: none;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawChart 3s ease forwards infinite;
}

@keyframes drawChart {
    to {
        stroke-dashoffset: 0;
    }
}

/* --- Project Roadmap --- */
.roadmap-container {
    position: relative;
    max-width: 1000px;
    margin: 4rem auto 0;
    padding-bottom: 3rem;
}

.roadmap-line {
    position: absolute;
    left: 50%;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), var(--secondary), transparent);
    transform: translateX(-50%);
}

.roadmap-item {
    width: 45%;
    margin-bottom: 3rem;
    position: relative;
}

.roadmap-item:nth-child(even) {
    margin-left: auto;
    text-align: left;
}

.roadmap-item:nth-child(odd) {
    text-align: right;
}

.roadmap-dot {
    position: absolute;
    width: 16px;
    height: 16px;
    background: var(--primary);
    border: 4px solid var(--bg-dark);
    border-radius: 50%;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.roadmap-item:nth-child(even) .roadmap-dot {
    left: -5.5%;
}

.roadmap-item:nth-child(odd) .roadmap-dot {
    right: -5.5%;
    left: auto;
}

/* --- Newsletter --- */
.newsletter-section {
    padding: 80px 0;
}

.newsletter-card {
    background: linear-gradient(135deg, rgba(0, 112, 243, 0.1), rgba(0, 223, 216, 0.05));
    border: 1px solid var(--glass-border);
    border-radius: 2rem;
    padding: 4rem;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 2.5rem auto 0;
}

.newsletter-input {
    flex: 1;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 0.75rem;
    padding: 1rem 1.5rem;
    color: white;
}

/* --- Consolidated Responsive Design --- */
@media (max-width: 1024px) {
    :root {
        --container-width: 95%;
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }

    .mobile-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        height: 100vh;
        background: linear-gradient(145deg, rgba(10, 16, 31, 1) 0%, rgba(6, 9, 15, 1) 100%);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.6s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 999;
        backdrop-filter: blur(25px);
        border-left: 1px solid rgba(0, 112, 243, 0.2);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
        gap: 2rem;
    }

    .nav-links::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: radial-gradient(circle at 100% 0%, rgba(0, 112, 243, 0.1), transparent 50%);
        pointer-events: none;
    }

    .nav-links li {
        opacity: 0;
        transform: translateX(50px);
        transition: 0.4s ease;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateX(0);
    }

    /* Staggered entrance for mobile links */
    .nav-links.active li:nth-child(1) {
        transition-delay: 0.1s;
    }

    .nav-links.active li:nth-child(2) {
        transition-delay: 0.2s;
    }

    .nav-links.active li:nth-child(3) {
        transition-delay: 0.3s;
    }

    .nav-links.active li:nth-child(4) {
        transition-delay: 0.4s;
    }

    .nav-links.active li:nth-child(5) {
        transition-delay: 0.5s;
    }

    .nav-links.active li:nth-child(6) {
        transition-delay: 0.6s;
    }

    .nav-links.active li:nth-child(7) {
        transition-delay: 0.7s;
    }

    .nav-links a {
        font-size: 1.5rem;
        font-weight: 700;
        letter-spacing: 1px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .services-grid,
    .process-grid,
    .stats-grid,
    .portfolio-grid,
    .testimonial-grid,
    .case-study-grid {
        grid-template-columns: 1fr !important;
    }

    .about-flex,
    .contact-grid,
    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .case-study-card {
        padding: 2rem !important;
    }

    .case-study-img {
        order: -1;
    }

    .terminal-window {
        font-size: 0.75rem;
    }

    .terminal-body {
        height: 250px;
        padding: 1.5rem;
    }

    .result-price {
        font-size: 2rem;
    }

    .whatsapp-btn::before {
        display: none;
    }

    .whatsapp-btn {
        bottom: 20px;
        right: 20px;
        width: 56px;
        height: 56px;
    }

    .logo-grid {
        justify-content: center;
        gap: 2rem;
    }

    .stat-item h3 {
        font-size: 2.8rem;
    }

    /* Industry-Leading Responsive Fixes */
    .dashboard-preview {
        grid-template-columns: 1fr;
    }

    .dash-sidebar {
        display: none;
    }

    .dash-stats-grid {
        grid-template-columns: 1fr;
    }

    .roadmap-line {
        left: 20px;
    }

    .roadmap-item {
        width: calc(100% - 60px);
        margin-left: 60px !important;
        text-align: left !important;
    }

    .roadmap-dot {
        left: -40px !important;
        right: auto !important;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-card {
        padding: 2rem;
    }

    .ai-chatbot-toggle {
        bottom: 90px;
        right: 15px;
        width: 50px;
        height: 50px;
    }

    .chat-window {
        width: calc(100% - 30px);
        right: 15px;
        bottom: 80px;
        height: 60vh;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.2rem;
        line-height: 1.2;
    }

    .btn {
        width: 100%;
        padding: 1rem;
    }

    .nav-actions .btn-cta {
        display: none;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .container {
        padding: 0 1.5rem;
    }
}

/* Case Study Specific Classes */
.case-studies-section {
    padding: 60px 0;
}

.case-study-card {
    padding: 4rem;
    margin-bottom: 4rem;
}

.case-study-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.case-study-img {
    width: 100%;
    border-radius: 1.5rem;
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tech-tag {
    background: rgba(0, 112, 243, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--primary);
    border: 1px solid rgba(0, 112, 243, 0.2);
}

.feature-list {
    color: var(--text-dim);
    margin-bottom: 2rem;
    list-style: none;
    padding: 0;
}

.feature-list li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}