/* 
  GeneticsAI - Premium Dark Theme CSS
*/

:root {
    /* Deep Dark Backgrounds */
    --bg-base: #050505;
    --bg-surface: #0f0f11;
    --bg-surface-hover: #16161a;
    --bg-card: rgba(15, 15, 17, 0.7);

    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;

    /* Accents (Purple) */
    --accent-color: #a855f7;
    --accent-glow: rgba(168, 85, 247, 0.4);
    --accent-hover: #9333ea;

    /* Borders */
    --border-color: rgba(255, 255, 255, 0.08);

    /* Typography */
    --font-main: 'Inter', sans-serif;

    /* Spacing & Sizes */
    --container-width: 1200px;
    --section-padding: 8rem 0;
    --border-radius: 16px;
    --border-radius-sm: 8px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* =========================================
   Reset & Base Styles
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

ul {
    list-style: none;
}

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

/* =========================================
   Typography & Utilities
   ========================================= */
.purple-glow-text {
    background: linear-gradient(135deg, #e8b0ff, var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 40px var(--accent-glow);
}

.section-label {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-label::before {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    background-color: var(--accent-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-glow);
}

/* =========================================
   Buttons
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 100px;
    cursor: pointer;
    transition: all var(--transition-smooth);
    border: 1px solid transparent;
}

.btn-primary {
    background-color: #fff;
    color: #000;
}

.btn-primary:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
}

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

.btn-outline:hover {
    border-color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.05);
}

.lg-btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.pulse-glow {
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(255, 255, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

/* =========================================
   Navbar & Logo
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Enhanced Logo Design */
.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, #ffffff 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    z-index: 10;
}

.logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--accent-color), #581c87);
    border-radius: 8px;
    -webkit-text-fill-color: #fff;
    font-size: 1.5rem;
    box-shadow: 0 0 20px var(--accent-glow);
}

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

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
}

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

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    color: var(--text-primary);
    cursor: pointer;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 1000;
    padding: 2rem;
    transition: right 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4rem;
}

.close-menu {
    font-size: 2.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

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

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin-top: 2rem;
}

.mobile-nav-links a {
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

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

.mobile-nav-links .btn {
    font-size: 1.2rem;
    padding: 1rem 2rem;
    margin-top: 2rem;
    width: fit-content;
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
    padding-top: 15rem;
    padding-bottom: 8rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Subtle background glow */
.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
    z-index: -1;
    opacity: 0.5;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6.5rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 2rem;
    color: #fff;
}

.hero-title span {
    display: inline-block;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 3rem auto;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* =========================================
   Marquee
   ========================================= */
.marquee-section {
    padding: 4rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-surface);
    overflow: hidden;
}

.marquee-title {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2rem;
}

.marquee-container {
    display: flex;
    white-space: nowrap;
    position: relative;
}

.marquee-content {
    display: flex;
    gap: 4rem;
    animation: scroll 30s linear infinite;
    padding-left: 4rem;
}

.marquee-content span {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: -0.02em;
}

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

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

/* =========================================
   Services Section
   ========================================= */
.services-section {
    padding: var(--section-padding);
}

.service-row {
    display: flex;
    align-items: center;
    gap: 6rem;
    margin-bottom: 8rem;
}

.service-row.reverse {
    flex-direction: row-reverse;
}

.service-row:last-child {
    margin-bottom: 0;
}

.service-content {
    flex: 1;
}

.service-title {
    font-size: 1rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.service-headline {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.service-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.service-visual {
    flex: 1;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.mockup-window {
    width: 80%;
    height: 80%;
    background: var(--bg-base);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.mockup-header {
    height: 30px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    padding: 0 1rem;
    gap: 6px;
}

.mockup-header i {
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #333;
}

.mockup-body {
    flex: 1;
    padding: 1rem;
}

.mockup-web {
    background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-base) 100%);
    display: flex;
    flex-direction: column;
    padding: 1.5rem !important;
    /* override default padding for this specific mockup */
}

/* Wireframe UI for Web Mockup */
.mw-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.mw-logo {
    width: 40px;
    height: 12px;
    background: var(--text-primary);
    border-radius: 4px;
}

.mw-links {
    display: flex;
    gap: 8px;
}

.mw-line {
    width: 20px;
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
}

.mw-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 2rem;
}

.mw-title {
    width: 80%;
    height: 18px;
    background: var(--text-primary);
    border-radius: 4px;
}

.mw-title.short {
    width: 50%;
}

.mw-subtitle {
    width: 60%;
    height: 8px;
    background: var(--text-secondary);
    border-radius: 4px;
    margin-top: 5px;
}

.mw-btn {
    width: 80px;
    height: 24px;
    background: var(--accent-color);
    border-radius: 12px;
    margin-top: 10px;
}

.mw-grid {
    display: flex;
    gap: 10px;
}

.mw-card {
    flex: 1;
    height: 60px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.mockup-ai {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: flex-end;
}

.chat-bubble {
    padding: 0.8rem 1rem;
    border-radius: 12px;
    font-size: 0.85rem;
    max-width: 80%;
}

.chat-bubble.left {
    background: var(--bg-surface);
    align-self: flex-start;
}

.chat-bubble.right {
    background: var(--accent-color);
    color: #fff;
    align-self: flex-end;
}

.mockup-brand {
    display: flex;
    flex-direction: column;
    padding: 1.5rem !important;
    background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-base) 100%);
}

/* E-Commerce UI Wireframe */
.ecom-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.ecom-logo {
    width: 60px;
    height: 12px;
    background: var(--text-primary);
    border-radius: 4px;
}

.ecom-cart {
    color: var(--text-primary);
    font-size: 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.ecom-hero {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.ecom-product-img {
    flex: 1;
    height: 120px;
    background: var(--accent-glow);
    border-radius: 8px;
    border: 1px solid var(--accent-color);
}

.ecom-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ecom-title {
    width: 90%;
    height: 14px;
    background: var(--text-primary);
    border-radius: 4px;
}

.ecom-price {
    width: 40%;
    height: 12px;
    background: var(--text-secondary);
    border-radius: 4px;
}

.ecom-btn {
    width: 100%;
    height: 28px;
    background: var(--accent-color);
    border-radius: 4px;
    margin-top: 5px;
}

/* Voice Agent UI Wireframe */
.mockup-voice {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 2rem !important;
    background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-base) 100%);
}

.voice-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #fff;
    box-shadow: 0 0 30px var(--accent-glow);
}

.voice-wave {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 40px;
}

.voice-wave span {
    display: block;
    width: 6px;
    height: 10px;
    background: var(--text-primary);
    border-radius: 3px;
    animation: soundWave 1.2s ease-in-out infinite alternate;
}

.voice-wave span:nth-child(1) {
    animation-delay: 0.1s;
    height: 15px;
}

.voice-wave span:nth-child(2) {
    animation-delay: 0.3s;
    height: 30px;
}

.voice-wave span:nth-child(3) {
    animation-delay: 0.5s;
    height: 40px;
    background: var(--accent-color);
}

.voice-wave span:nth-child(4) {
    animation-delay: 0.2s;
    height: 25px;
}

.voice-wave span:nth-child(5) {
    animation-delay: 0.4s;
    height: 10px;
}

@keyframes soundWave {
    0% {
        transform: scaleY(0.5);
    }

    100% {
        transform: scaleY(1.5);
    }
}

.voice-status {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* SaaS UI Wireframe */
.mockup-saas {
    display: flex;
    padding: 0 !important;
    background: var(--bg-surface);
}

.saas-sidebar {
    width: 25%;
    background: rgba(0, 0, 0, 0.5);
    border-right: 1px solid var(--border-color);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.saas-nav-item {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.saas-nav-item:first-child {
    background: var(--accent-color);
    opacity: 0.8;
}

.saas-content {
    flex: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.saas-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.saas-search {
    width: 50%;
    height: 14px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.saas-user {
    width: 20px;
    height: 20px;
    background: var(--text-primary);
    border-radius: 50%;
}

.saas-metrics {
    display: flex;
    gap: 10px;
}

.saas-metric-card {
    flex: 1;
    height: 40px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 6px;
}

.saas-chart {
    flex: 1;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    padding: 10px;
    gap: 5px;
}

.saas-bar {
    width: 15%;
    background: var(--text-secondary);
    border-radius: 2px 2px 0 0;
}

/* =========================================
   Testimonials
   ========================================= */
.testimonials-section {
    padding: var(--section-padding);
    background: var(--bg-surface);
}

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

.testimonial-card {
    background: var(--bg-base);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-text {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
    font-weight: 400;
}

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

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

.author-info {
    display: flex;
    flex-direction: column;
}

.author-info strong {
    font-weight: 500;
}

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

/* =========================================
   Plans Section
   ========================================= */
.plans-section {
    padding: var(--section-padding);
}

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

.plan-card {
    background: linear-gradient(180deg, rgba(168, 85, 247, 0.05) 0%, var(--bg-surface) 100%);
    border: 1px solid var(--accent-color);
    padding: clamp(1.5rem, 4vw, 3rem);
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
}

.plan-card.featured {
    border-color: var(--accent-color);
    background: linear-gradient(180deg, rgba(168, 85, 247, 0.05) 0%, var(--bg-surface) 100%);
}

.plan-title {
    font-size: clamp(1.1rem, 3vw, 1.8rem);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.plan-desc {
    color: var(--text-secondary);
    font-size: clamp(0.85rem, 2vw, 1rem);
    margin-bottom: 2rem;
    min-height: 50px;
}

.plan-features {
    margin-bottom: 3rem;
    flex: 1;
}

.plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-size: clamp(0.85rem, 2vw, 1rem);
}

.plan-features i {
    color: var(--text-primary);
    font-size: 1.2rem;
}

.plan-btn {
    width: 100%;
}

/* =========================================
   About Section
   ========================================= */
.about-section {
    padding: var(--section-padding);
    background: var(--bg-surface);
}

.about-content {
    max-width: 800px;
}

.about-text {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 500;
    line-height: 1.3;
    color: var(--text-secondary);
}

.about-text::first-line {
    color: var(--text-primary);
}

/* =========================================
   FAQ Section
   ========================================= */
.faq-section {
    padding: var(--section-padding);
}

.faq-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
}

.faq-title {
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.03em;
    position: sticky;
    top: 100px;
}

.faq-list {
    display: flex;
    flex-direction: column;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 0;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 500;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.faq-question:hover {
    color: var(--accent-color);
}

.faq-question i {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--text-secondary);
}

.faq-item.active .faq-answer {
    max-height: 200px;
    /* arbitrary max height for animation */
    padding-top: 1rem;
}

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

/* =========================================
   Final CTA
   ========================================= */
.final-cta {
    padding: 10rem 0;
    text-align: center;
    background: radial-gradient(circle at center, var(--bg-surface) 0%, var(--bg-base) 100%);
    border-top: 1px solid var(--border-color);
}

.final-cta-container {
    max-width: 800px;
}

.cta-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.cta-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.urgency-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* =========================================
   Enhanced Footer
   ========================================= */
footer {
    position: relative;
    padding: 6rem 0 2rem 0;
    background: var(--bg-base);
    border-top: 1px solid var(--border-color);
    overflow: hidden;
}

.footer-glow {
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
    opacity: 0.3;
    z-index: 0;
    pointer-events: none;
}

.footer-watermark {
    text-align: center;
    font-size: 15vw;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.03);
    white-space: nowrap;
    letter-spacing: -0.05em;
    user-select: none;
    line-height: 0.8;
    margin-top: 3rem;
    pointer-events: none;
}

.footer-container {
    position: relative;
    z-index: 10;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-logo {
    font-size: 2rem;
}

.footer-links {
    display: flex;
    gap: 8rem;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-col h4 {
    font-size: 1rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-col a {
    color: var(--text-secondary);
    font-size: 1.05rem;
    padding: 0.3rem 0;
    position: relative;
    width: fit-content;
}

.footer-col a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.footer-col a:hover {
    color: #fff;
}

.footer-col a:hover::after {
    width: 100%;
}

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

/* =========================================
   Responsive Design
   ========================================= */
@media (max-width: 992px) {

    .nav-links,
    .nav-btn {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .hero {
        padding-top: 10rem;
    }

    .service-row,
    .service-row.reverse {
        flex-direction: column;
        gap: 3rem;
    }

    /* Reset animations to slide up instead of sideways on smaller screens */
    .service-row .service-content,
    .service-row.reverse .service-content,
    .service-row .service-visual,
    .service-row.reverse .service-visual {
        transform: translateY(40px);
    }

    .service-row.animate-in .service-content,
    .service-row.animate-in .service-visual {
        transform: translateY(0);
    }

    .service-visual {
        width: 100%;
        height: auto;
        min-height: 400px;
    }

    .faq-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .faq-title {
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: clamp(2.5rem, 8vw, 3.5rem);
    }

    .hero-cta {
        flex-direction: column;
    }

    .ecom-hero {
        flex-direction: column;
        align-items: stretch;
    }

    .ecom-product-img {
        width: 100%;
    }

    .mockup-window {
        width: 100%;
        height: 100%;
    }

    .footer-top {
        flex-direction: column;
        gap: 3rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 3rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .plans-grid {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1.2rem;
    }

    :root {
        --section-padding: 5rem 0;
    }

    .lg-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    .mw-grid {
        flex-direction: column;
    }

    .saas-sidebar {
        display: none;
    }

    .plans-grid {
        gap: 0.8rem;
    }

    .marquee-content {
        gap: 2rem;
    }

    .marquee-content span {
        font-size: 1.2rem;
    }

    .service-visual {
        padding: 1rem;
        min-height: 350px;
    }

    .mockup-brand,
    .mockup-web,
    .mockup-ai {
        padding: 1rem !important;
    }
}

/* =========================================
   Enhanced Animations
   ========================================= */

/* Initial states for intersection observer */
.service-row .service-content {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.service-row.reverse .service-content {
    transform: translateX(50px);
}

.service-row .service-visual {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease-out 0.2s, transform 0.8s ease-out 0.2s;
}

.service-row.reverse .service-visual {
    transform: translateX(-50px);
}

.testimonial-card,
.plan-card {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Animated-in states */
.service-row.animate-in .service-content,
.service-row.animate-in .service-visual {
    opacity: 1;
    transform: translateX(0);
}

.testimonial-card.animate-in,
.plan-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Continuous Floating Animation for Mockups */
.mockup-window {
    animation: floatMockup 6s ease-in-out infinite;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

@keyframes floatMockup {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Hover effects for Mockups */
.service-visual {
    perspective: 1000px;
}

.service-visual:hover .mockup-window {
    transform: scale(1.05) rotateY(-5deg) rotateX(5deg);
    box-shadow: 0 30px 60px rgba(168, 85, 247, 0.2);
    animation-play-state: paused;
}

/* Animated SaaS Bars */
.saas-bar {
    animation: barGrow 2s ease-out infinite alternate;
}

.saas-bar:nth-child(1) {
    animation-delay: 0.1s;
}

.saas-bar:nth-child(2) {
    animation-delay: 0.3s;
}

.saas-bar:nth-child(3) {
    animation-delay: 0.5s;
}

.saas-bar:nth-child(4) {
    animation-delay: 0.2s;
}

.saas-bar:nth-child(5) {
    animation-delay: 0.4s;
}

@keyframes barGrow {
    0% {
        transform: scaleY(0.8);
        transform-origin: bottom;
    }

    100% {
        transform: scaleY(1.1);
        transform-origin: bottom;
    }
}

/* Animated Website Mockup Elements */
.mw-card {
    transition: transform 0.3s ease, background 0.3s ease;
}

.service-visual:hover .mw-card {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
}

/* =========================================
   Chatbot UI Styles
   ========================================= */
.chatbot-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    font-family: var(--font-main);
}

.chatbot-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent-color);
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    transition: var(--transition-fast);
    animation: pulseGlow 2s infinite;
}

.chatbot-toggle:hover {
    transform: scale(1.1);
}

.chatbot-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 450px;
    background: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.chatbot-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.chatbot-avatar {
    width: 35px;
    height: 35px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.chatbot-info h4 {
    font-size: 1rem;
    margin: 0;
    color: var(--text-primary);
}

.chatbot-info p {
    font-size: 0.75rem;
    margin: 0;
    color: var(--text-secondary);
}

.chatbot-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

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

.chatbot-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-msg {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.4;
    word-wrap: break-word;
}

.chat-msg.bot {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
}

.chat-msg.user {
    align-self: flex-end;
    background: var(--accent-color);
    color: white;
    border-bottom-right-radius: 4px;
}

.chatbot-input {
    display: flex;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.chatbot-input input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 0.9rem;
    outline: none;
    padding: 0 10px;
}

.chatbot-input input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.chatbot-input button {
    background: var(--accent-color);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition-fast);
}

.chatbot-input button:hover {
    background: var(--accent-hover);
    transform: scale(1.05);
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    border-bottom-left-radius: 4px;
    align-self: flex-start;
    width: fit-content;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: var(--text-secondary);
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

@media (max-width: 480px) {
    .chatbot-window {
        width: calc(100vw - 40px);
        right: -10px;
    }
}