/* TechBySoul — AI-Focused Refined Modern Dark SaaS Design System */

:root {
    /* Colors */
    --bg-dark: #020617;
    --bg-slate: #0F172A;
    --primary: #00A3FF;
    --primary-glow: rgba(0, 163, 255, 0.3);
    --secondary: #6366f1;
    --accent: #f43f5e;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);

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

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 8rem;
    --container-max: 1200px;

    /* Effects */
    --shadow-premium: 0 20px 50px rgba(0, 0, 0, 0.5);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html,
body {
    overflow-x: clip;
    width: 100%;
    position: relative;
}

.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

@media (max-width: 1024px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: block !important;
    }

    .mobile-nav-close {
        display: flex !important;
    }
}

.mobile-nav-close {
    display: none;
}

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

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-md);
}

p {
    margin-bottom: var(--space-sm);
}

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

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

/* ─── SECTIONS ─── */
.section-padding {
    padding: var(--space-xl) 0;
}

/* ─── GRADIENTS ─── */
.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient {
    background: linear-gradient(135deg, var(--bg-slate), var(--bg-dark));
}

/* ─── BUTTONS ─── */
.btn-primary {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--primary);
    color: white;
    font-weight: 700;
    border-radius: 50px;
    box-shadow: 0 10px 25px var(--primary-glow);
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 35px var(--primary-glow);
    color: white;
}

/* ─── CARDS ─── */
.glass-card {
    background: var(--glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 3rem;
    transition: var(--transition);
    height: 100%;
}

.glass-card:hover {
    border-color: var(--primary);
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.05);
}

/* ─── HEADER ─── */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.2rem 0;
    transition: var(--transition);
}

header.scrolled {
    padding: 0.8rem 0;
    background: rgba(2, 6, 23, 0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

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

/* ─── LOGO ─── */
.logo-svg-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    letter-spacing: -0.5px;
}

.logo-svg-text .logo-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.logo-svg-text .logo-tagline {
    display: block;
    font-size: 0.55rem;
    font-weight: 400;
    letter-spacing: 2px;
    color: var(--text-muted);
    text-transform: uppercase;
    line-height: 1;
    margin-top: 2px;
}

.logo-wordmark {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

/* ─── NAV ─── */
.nav-links {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    align-items: center;
}

.nav-links>li {
    position: relative;
}

.nav-links>li>a {
    font-weight: 500;
    font-size: 0.95rem;
    opacity: 0.85;
    padding: 0.5rem 0.9rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.nav-links>li>a:hover,
.nav-links>li>a.active {
    opacity: 1;
    color: var(--primary);
    background: rgba(0, 163, 255, 0.06);
}

/* ─── SERVICES DROPDOWN ─── */
.has-dropdown>a::after {
    content: '▾';
    font-size: 0.75rem;
    transition: transform 0.3s;
}

.has-dropdown:hover>a::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.8rem);
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    min-width: 280px;
    background: rgba(10, 20, 40, 0.97);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 9999;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

/* Invisible bridge to keep hover state active over the physical gap */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
    background: transparent;
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: all;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.9rem 1.2rem;
    border-radius: 12px;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: all 0.2s;
    opacity: 1;
}

.dropdown-menu a:hover {
    background: rgba(0, 163, 255, 0.1);
    color: var(--primary);
}

.dropdown-menu a .dd-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    background: var(--glass);
    flex-shrink: 0;
}

/* ─── HERO STATS ─── */
.hero-stats-row {
    display: flex;
    gap: 2.5rem;
    margin-top: 3.5rem;
    border-top: 1px solid var(--glass-border);
    padding-top: 2.5rem;
    flex-wrap: wrap;
}

.stat-item {
    flex: 0 0 auto;
}

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

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

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--glass-border);
    align-self: center;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ─── FAQ ACCORDION ─── */
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.faq-item {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 0 2rem;
    transition: var(--transition);
}

.faq-question {
    padding: 2rem 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 600;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding-bottom 0.4s ease;
    color: var(--text-muted);
    line-height: 1.8;
}

.faq-item.active {
    border-color: var(--primary);
    background: rgba(0, 163, 255, 0.03);
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding-bottom: 2rem;
}

/* ─── TESTIMONIALS ─── */
.testimonial-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 28px;
    padding: 2.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -0.5rem;
    left: 1.5rem;
    font-size: 6rem;
    font-family: var(--font-heading);
    color: var(--primary);
    opacity: 0.15;
    line-height: 1;
}

.testimonial-card:hover {
    border-color: var(--primary);
    transform: translateY(-6px);
}

.testimonial-stars {
    color: #f7b731;
    font-size: 1rem;
    margin-bottom: 1.2rem;
    letter-spacing: 2px;
}

.testimonial-text {
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.8;
    margin-bottom: 1.8rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    font-family: var(--font-heading);
    flex-shrink: 0;
}

.testimonial-info strong {
    display: block;
    font-size: 0.95rem;
    color: var(--text-main);
}

.testimonial-info span {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* ─── WHATSAPP FLOATING BUTTON ─── */
.whatsapp-fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 58px;
    height: 58px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9998;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.whatsapp-fab:hover {
    transform: scale(1.12);
    box-shadow: 0 12px 32px rgba(37, 211, 102, 0.55);
}

.whatsapp-fab svg {
    width: 30px;
    height: 30px;
    fill: white;
}

.whatsapp-tooltip {
    position: absolute;
    right: calc(100% + 0.8rem);
    top: 50%;
    transform: translateY(-50%);
    background: rgba(10, 20, 40, 0.95);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 0.5rem 1rem;
    font-size: 0.82rem;
    color: white;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.whatsapp-fab:hover .whatsapp-tooltip {
    opacity: 1;
}

/* ─── FOOTER ─── */
footer {
    padding: var(--space-xl) 0 4rem;
    background: var(--bg-slate);
    border-top: 1px solid var(--glass-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.footer-address {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.footer-address strong {
    color: var(--text-main);
}

/* ─── PROCESS STEPS ─── */
.process-step {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-left: 2px solid var(--glass-border);
    padding-left: 2rem;
    margin-left: 1.2rem;
    position: relative;
    margin-bottom: 0.5rem;
}

.process-num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
    position: absolute;
    left: -22px;
    top: 1.2rem;
    box-shadow: 0 4px 12px rgba(0, 163, 255, 0.3);
}

/* ─── GRID HELPERS ─── */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    align-items: start;
}

/* Fix sticky sidebar gaps in grid */
.grid-2>aside {
    align-self: stretch;
}

.grid-2>aside .glass-card {
    height: max-content;
    position: sticky;
    top: 120px;
}

/* ─── GRID HELPERS ─── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

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

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

/* ─── MOBILE RESPONSIVE ─── */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 992px) {
    .grid-2 {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
}

@media (max-width: 768px) {
    :root {
        --space-xl: 5rem;
    }

    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .nav-links.mobile-open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(2, 6, 23, 0.98);
        backdrop-filter: blur(20px);
        justify-content: flex-start;
        align-items: center;
        gap: 1.5rem;
        /* Increased gap */
        z-index: 999;
        padding: 2rem 2rem 4rem;
        /* Increased top padding */
        overflow-y: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
        height: 100vh;
    }

    .nav-links.mobile-open>li>a {
        font-size: 1.25rem;
        /* Slightly larger text */
        width: 100%;
        justify-content: center;
        padding: 0.8rem;
    }

    .nav-links.mobile-open::-webkit-scrollbar {
        display: none;
    }

    .nav-links.mobile-open .dropdown-menu {
        display: none;
        /* Hidden by default on mobile unless expanded */
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid var(--glass-border);
        margin-top: 0.5rem;
        width: 100%;
        padding: 0.5rem;
    }

    .has-dropdown.mobile-expand .dropdown-menu {
        display: block;
    }

    .hero-stats-row {
        gap: 1.5rem;
        justify-content: space-between;
    }

    .stat-divider {
        display: none;
    }

    .stat-item {
        flex: 1 1 40%;
        text-align: left;
    }

    h1 {
        font-size: 2.8rem;
        overflow-wrap: break-word;
    }

    h2 {
        font-size: 2.2rem;
        overflow-wrap: break-word;
    }

    .footer-grid {
        grid-template-columns: 1fr !important;
    }

    .services-grid,
    .testimonials-grid,
    .trust-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    .glass-card,
    .testimonial-card,
    .tech-badge {
        width: 100% !important;
        max-width: 100% !important;
        padding: 2rem 1.5rem !important;
        margin-bottom: 0.5rem;
    }

    /* Small hack for better mobile stats on home hero */
    .hero-stats-row {
        gap: 1rem !important;
    }

    .stat-item {
        flex: 1 1 42% !important;
    }

    .whatsapp-fab {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 52px;
        height: 52px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2.4rem;
    }

    .container {
        padding: 0 1.5rem;
    }
}