/* ============================================
   ZAVE DIGITAL — Professional Website Styles
   Dark Theme | Modern | Mobile Responsive
   ============================================ */

/* === RESET & BASE === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Light theme (default / system preference) */
:root {
    --bg-primary: #f8f9fc;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #f0f1f5;
    --text-primary: #1a1a2e;
    --text-secondary: #5a5a72;
    --text-muted: #8a8a9a;
    --accent: #6c5ce7;
    --accent-light: #a29bfe;
    --accent-glow: rgba(108, 92, 231, 0.25);
    --gradient: linear-gradient(135deg, #6c5ce7, #00cec9);
    --gradient-text: linear-gradient(135deg, #6c5ce7, #00cec9);
    --whatsapp: #25D366;
    --border: rgba(0,0,0,0.08);
    --border-light: rgba(0,0,0,0.12);
    --shadow: 0 8px 32px rgba(0,0,0,0.08);
    --shadow-lg: 0 16px 64px rgba(0,0,0,0.12);
    --shadow-colored: 0 8px 30px rgba(108, 92, 231, 0.15);
    --shadow-colored-lg: 0 16px 48px rgba(108, 92, 231, 0.25);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark theme — auto when system prefers dark */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #0a0a0f;
        --bg-secondary: #111118;
        --bg-card: #16161f;
        --bg-card-hover: #1c1c28;
        --text-primary: #f0f0f5;
        --text-secondary: #a0a0b0;
        --text-muted: #6a6a7a;
        --border: rgba(255,255,255,0.06);
        --border-light: rgba(255,255,255,0.1);
        --accent-glow: rgba(108, 92, 231, 0.3);
        --shadow: 0 8px 32px rgba(0,0,0,0.4);
        --shadow-lg: 0 16px 64px rgba(0,0,0,0.6);
    }
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

img { max-width: 100%; display: block; }

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

/* === UTILITY === */
.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 4px 20px var(--accent-glow);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(108, 92, 231, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-light);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent-light);
}

.btn-whatsapp {
    background: var(--whatsapp);
    color: #fff;
    justify-content: center;
    font-size: 1.1rem;
    padding: 16px 32px;
}

.btn-whatsapp:hover {
    background: #1da851;
    transform: translateY(-2px);
}

.btn-full { width: 100%; justify-content: center; }

/* === NAVBAR === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(248, 249, 252, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
}
@media (prefers-color-scheme: dark) {
    .navbar.scrolled {
        background: rgba(10, 10, 15, 0.95);
    }
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo - Shield SVG */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo-shield {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    filter: drop-shadow(0 0 8px rgba(168,85,247,0.3));
}

.logo-text-wrap {
    display: flex;
    align-items: center;
}

.logo-zave {
    color: #c084fc;
}

.logo-digital {
    background: linear-gradient(90deg, #a855f7, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero Logo */
.hero-logo {
    margin-bottom: 24px;
    animation: logoFloat 6s ease-in-out infinite;
}

.hero-logo svg {
    filter: drop-shadow(0 0 40px rgba(168,85,247,0.3));
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 36px;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 4px 0;
}

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

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

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

.nav-cta {
    background: var(--gradient);
    color: #fff;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-cta {
    position: relative;
    overflow: hidden;
}

.nav-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.nav-cta:hover::before {
    left: 100%;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108, 92, 231, 0.4);
}
/* Navigation CTA hover end */

/* === LANGUAGE SELECTOR === */
.lang-selector { position: relative; display: inline-block; z-index: 1001; }
.lang-btn {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--text-primary);
    padding: 8px 12px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
    backdrop-filter: blur(8px);
}
.lang-btn:hover {
    background: rgba(255,255,255,0.12);
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(108, 92, 231, 0.25);
}
.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 6px;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-lg);
    list-style: none;
}
.lang-selector.open .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.lang-dropdown li {
    padding: 10px 16px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    transition: all 0.15s ease;
    font-weight: 500;
}
.lang-dropdown li:hover {
    background: rgba(108, 92, 231, 0.1);
    color: var(--accent-primary);
}
.lang-dropdown li.active {
    background: rgba(108, 92, 231, 0.15);
    color: var(--accent-primary);
    font-weight: 600;
}
.lang-flag {
    font-size: 1.3rem;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}
/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

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

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--bg-secondary);
        padding: 16px;
        gap: 12px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 10px 16px;
        border-radius: 8px;
        font-size: 1rem;
        transition: background 0.15s ease;
    }

    .nav-links a:hover {
        background: rgba(108, 92, 231, 0.08);
    }

    .hamburger {
        display: flex;
    }

    .nav-cta {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    .lang-selector {
        margin-left: 8px;
    }

    /* Hide decorative floating cards on mobile (they overlap hero text) */
    .hero-badges {
        display: none;
    }
}

/* === HERO === */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 120px 24px 80px;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    animation: float 8s ease-in-out infinite;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: var(--accent);
    top: -100px;
    right: -100px;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: #00cec9;
    bottom: -100px;
    left: -100px;
    animation-delay: -3s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: #fd79a8;
    top: 50%;
    left: 50%;
    animation-delay: -5s;
    opacity: 0.15;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(108, 92, 231, 0.1);
    border: 1px solid rgba(108, 92, 231, 0.3);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--accent-light);
    margin-bottom: 28px;
    font-weight: 500;
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1.5px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 36px;
    max-width: 560px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 56px;
}

.hero-stats {
    display: flex;
    gap: 48px;
}

.stat { text-align: left; }

.stat-number {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* Floating service highlight cards (inline, below hero text) */
.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 40px;
}

.floating-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 22px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
    animation: floatCard 6s ease-in-out infinite;
    white-space: nowrap;
}

.floating-card i {
    font-size: 1.3rem;
    color: var(--accent-light);
}

.card-1 { animation-delay: 0s; }
.card-2 { animation-delay: -2s; }
.card-3 { animation-delay: -4s; }

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* === SECTIONS COMMON === */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(108, 92, 231, 0.1);
    border: 1px solid rgba(108, 92, 231, 0.2);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--accent-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* === SERVICES === */
.services {
    padding: 100px 0;
    background: var(--bg-secondary);
}

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

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
    transition: var(--transition);
    position: relative;
}

.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.3s;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(108, 92, 231, 0.4);
    transform: translateY(-8px);
    box-shadow: var(--shadow-colored-lg);
}

.service-card.featured {
    border-color: rgba(108, 92, 231, 0.4);
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.05), transparent);
}

.service-tag {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--gradient);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.service-icon {
    width: 56px;
    height: 56px;
    background: rgba(108, 92, 231, 0.1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--accent-light);
    margin-bottom: 20px;
}

.service-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.service-card > p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.7;
}

.service-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.service-features i {
    color: #00cec9;
    font-size: 0.8rem;
}

.service-price {
    margin-top: 18px;
    padding: 12px 16px;
    background: rgba(108, 92, 231, 0.12);
    border: 1px solid rgba(108, 92, 231, 0.25);
    border-radius: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-align: center;
}

.service-price strong {
    color: var(--accent-light);
    font-size: 1.1rem;
    font-weight: 700;
}

.service-tag {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--gradient);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.service-card.featured {
    border-color: rgba(108, 92, 231, 0.4);
    box-shadow: 0 0 40px rgba(108, 92, 231, 0.15);
}

/* === WHY US === */
.why-us {
    padding: 100px 0;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.why-item {
    text-align: center;
    padding: 32px 24px;
}

.why-icon {
    width: 64px;
    height: 64px;
    background: rgba(108, 92, 231, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-light);
    margin: 0 auto 20px;
}

.why-item h4 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.why-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* === ABOUT === */
.about {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 64px;
    align-items: center;
}

.about-content .section-tag { margin-bottom: 12px; }
.about-content .section-title { text-align: left; margin-bottom: 24px; }

.about-content p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 16px;
    line-height: 1.8;
}

.about-credentials {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.credential {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.credential i {
    color: var(--accent-light);
    width: 20px;
}

/* About Visual Card */
.about-visual {
    display: flex;
    justify-content: center;
}

.about-card {
    width: 280px;
    height: 340px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient);
    opacity: 0.05;
}

.about-card-inner {
    text-align: center;
    position: relative;
    z-index: 1;
}

.big-z {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 6rem;
    font-weight: 800;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 16px;
}

.about-card-inner h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.about-card-inner p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* === CONTACT === */
.contact {
    padding: 100px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

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

.contact-icon {
    width: 48px;
    height: 48px;
    background: rgba(108, 92, 231, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--accent-light);
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.contact-item a, .contact-item span {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
}

.contact-item a:hover {
    color: var(--accent-light);
}

.contact-info .btn-whatsapp {
    margin-top: 12px;
}

/* Contact Form */
.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
}

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

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.15);
}

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

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

.form-note {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 16px;
}

/* === FOOTER === */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 64px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 48px;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 16px;
    line-height: 1.7;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-links a {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 4px 0;
}

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

.footer-contact a,
.footer-contact span {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 4px 0;
}

.footer-contact a:hover {
    color: var(--accent-light);
}

.footer-contact i {
    width: 16px;
    color: var(--accent-light);
}

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

/* === AI ASSISTANT CHATBOT === */
.ai-assistant {
    position: fixed;
    bottom: 100px;
    right: 24px;
    z-index: 10000;
    font-family: 'Inter', sans-serif;
}

.ai-launcher {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6c5ce7, #00cec9);
    border: none;
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    box-shadow: 0 10px 36px rgba(108, 92, 231, 0.45);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s ease;
}

.ai-launcher:hover {
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 12px 32px rgba(108, 92, 231, 0.5);
}

.ai-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(108, 92, 231, 0.4);
    animation: aiPulse 2.2s infinite;
    pointer-events: none;
}

.ai-chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 360px;
    max-width: calc(100vw - 40px);
    height: 500px;
    max-height: calc(100vh - 120px);
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.9) translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: bottom right;
}

.ai-chat-window.active {
    transform: scale(1) translateY(0);
    opacity: 1;
    pointer-events: all;
}

.ai-chat-header {
    background: linear-gradient(135deg, #6c5ce7, #00cec9);
    color: white;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.ai-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ai-header-info i {
    font-size: 22px;
}

.ai-header-info h3 {
    font-size: 15px;
    font-weight: 600;
    margin: 0;
}

.ai-status {
    font-size: 11px;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #00ff88;
    display: inline-block;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.ai-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.ai-close:hover {
    background: rgba(255, 255, 255, 0.35);
}

.ai-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #f8f9fc;
}

.ai-msg {
    display: flex;
    gap: 10px;
    max-width: 85%;
    animation: msgIn 0.35s ease;
}

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

.ai-msg.ai-bot {
    align-self: flex-start;
}

.ai-msg.ai-user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.ai-msg-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6c5ce7, #00cec9);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.ai-msg-content {
    background: white;
    padding: 10px 14px;
    border-radius: 14px;
    border-top-left-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    font-size: 13.5px;
    line-height: 1.55;
    color: #2d2d3a;
}

.ai-msg.ai-user .ai-msg-content {
    background: linear-gradient(135deg, #6c5ce7, #00cec9);
    color: white;
    border-top-left-radius: 14px;
    border-top-right-radius: 4px;
}

.ai-msg-content p {
    margin: 0 0 6px;
}

.ai-msg-content p:last-child {
    margin-bottom: 0;
}

.ai-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px 12px;
    border-top: 1px solid #eee;
    background: white;
    flex-shrink: 0;
}

.ai-quick-btn {
    background: #f0f1f5;
    border: 1px solid #e1e3e8;
    color: #2d2d3a;
    padding: 7px 12px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

.ai-quick-btn:hover {
    background: linear-gradient(135deg, #6c5ce7, #00cec9);
    color: white;
    border-color: transparent;
    transform: translateY(-1px);
}

.ai-chat-input-area {
    display: flex;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid #eee;
    background: white;
    flex-shrink: 0;
}

.ai-chat-input-area input {
    flex: 1;
    border: 1px solid #e1e3e8;
    border-radius: 24px;
    padding: 10px 16px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
    font-family: 'Inter', sans-serif;
}

.ai-chat-input-area input:focus {
    border-color: #6c5ce7;
}

.ai-chat-input-area button {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6c5ce7, #00cec9);
    border: none;
    color: white;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.ai-chat-input-area button:hover {
    transform: scale(1.08);
}

.ai-whatsapp-btn {
    display: inline-block;
    background: #25D366;
    color: white;
    padding: 8px 14px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    margin-top: 8px;
    transition: transform 0.2s;
}

.ai-whatsapp-btn:hover {
    transform: translateY(-1px);
    background: #20bd5a;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .ai-chat-window {
        width: calc(100vw - 30px);
        right: -5px;
        bottom: 75px;
        height: 450px;
        max-height: calc(100vh - 100px);
        border-radius: 16px;
    }

    .ai-launcher {
        width: 52px;
        height: 52px;
        font-size: 20px;
    }

    .ai-quick-btn {
        font-size: 11px;
        padding: 6px 10px;
    }

    .ai-msg-content {
        font-size: 12.5px;
    }
}

@media (max-width: 400px) {
    .ai-chat-window {
        width: calc(100vw - 20px);
        right: 0;
        bottom: 70px;
        border-radius: 14px;
    }

    .ai-quick-btn {
        font-size: 10px;
        padding: 5px 8px;
    }
}

/* ============================================
   Payment Methods Section
   ============================================ */
.payment-methods-section {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 80px 0;
}

.payment-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.payment-method-card {
    background: white;
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.3s;
    border-top: 4px solid;
}

.payment-method-card.jazzcash {
    border-top-color: #e6004b;
}

.payment-method-card.easypaisa {
    border-top-color: #009f4a;
}

.payment-method-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.pm-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #6c5ce7, #a855f7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    color: white;
}

.qr-wrapper {
    margin: 20px auto;
    display: inline-block;
}

.qr-image {
    width: 160px;
    height: 160px;
    border-radius: 12px;
    border: 3px solid #e9ecef;
    padding: 8px;
    background: white;
}

.qr-label {
    margin-top: 10px;
    font-size: 0.85em;
    color: #666;
    font-weight: 600;
}

.payment-details {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
}

.payment-details p {
    margin: 5px 0;
    font-size: 0.95em;
}

.payment-note {
    margin-top: 40px;
    padding: 25px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: center;
}

.payment-note p {
    margin: 8px 0;
    font-size: 1em;
    color: #555;
}

.payment-note i {
    color: #6c5ce7;
    margin-right: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .payment-methods {
        grid-template-columns: 1fr;
    }
    
    .qr-image {
        width: 140px;
        height: 140px;
    }
}





/* === MOBILE PERFORMANCE OPTIMIZATION === */
@media (max-width: 768px) {
  *, *::before, *::after {
    -webkit-tap-highlight-color: transparent;
    -webkit-font-smoothing: antialiased;
  }
  
  /* Disable expensive blur filters on mobile */
  .navbar, .lang-dropdown, .floating-card, .hero-orbs::before, .hero-orbs::after {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  
  /* Keep futuristic theme on mobile: gradients, glow & float restored.
     Only heavy backdrop blur stays off for performance. */
  
  /* Optimize scrolling performance */
  .service-card, .portfolio-item, .testimonial-card {
    will-change: auto !important;
    transform: translateZ(0) !important;
    -webkit-transform: translateZ(0) !important;
  }
  
  /* Reduce font rendering cost */
  body {
    text-rendering: optimizeSpeed;
    -webkit-text-size-adjust: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===== SERVICE CATEGORY FILTER BUTTONS ===== */
.category-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    max-width: 1000px;
    margin: 0 auto 40px;
    padding: 0 15px;
}
.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid rgba(108, 92, 231, 0.2);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    font-family: inherit;
}
.filter-btn i { font-size: 0.85rem; color: var(--accent); transition: var(--transition); }
.filter-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent);
    transform: translateY(-2px);
}
.filter-btn.active {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 6px 18px var(--accent-glow);
}
.filter-btn.active i { color: #fff; }

/* Mobile: horizontal scroll strip, no cramped wrap */
@media (max-width: 768px) {
    .category-filter {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        gap: 8px;
        padding: 4px 15px 12px;
        margin-bottom: 28px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .category-filter::-webkit-scrollbar { display: none; }
    .filter-btn {
        padding: 9px 15px;
        font-size: 0.82rem;
        flex-shrink: 0;
    }
}
