@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@500;700;800&display=swap');

/* ==========================
   CSS Variables & Settings (Organic Light Mode)
   ========================== */
:root {
    /* Desk Photo Palette (Warm & Botanical) */
    --bg-primary: #FAF8F5; /* Soft Warm Canvas */
    --bg-secondary: #FFFFFF;
    --text-primary: #2A2826; /* Deep Espresso/Charcoal */
    --text-secondary: #6B655F; /* Warm Muted Gray */
    --accent-primary: #36513A; /* Deep Succulent Green */
    --accent-secondary: #C5A37E; /* Terracotta/Coffee Wood */
    
    --border-color: rgba(42, 40, 38, 0.1);
    --glass-bg: #FFFFFF;
    --glass-hover: #F4F1ED;

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

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --section-padding: 120px 0;
    --nav-height: 80px;

    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 8px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
    overflow-x: hidden;
}

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

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

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.section { padding: var(--section-padding); }

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

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
}

a { text-decoration: none; color: inherit; }
li { list-style: none; }

/* Abstract Glow Orbs */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    z-index: 0;
    pointer-events: none;
    opacity: 0.5;
}

.orb-1 {
    top: -100px;
    left: -200px;
    width: 600px;
    height: 600px;
    background: var(--accent-primary);
    animation: drift 20s infinite alternate linear;
}

.orb-2 {
    top: 40%;
    right: -200px;
    width: 500px;
    height: 500px;
    background: var(--accent-secondary);
    animation: drift-rev 25s infinite alternate linear;
}

@keyframes drift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(100px, 100px); }
}
@keyframes drift-rev {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-100px, -100px); }
}

/* ==========================
   Buttons
   ========================== */
.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 100px;
    font-weight: 600;
    font-family: var(--font-body);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-primary);
    box-shadow: 0 0 0 rgba(255,255,255,0);
}

.btn-primary:hover {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--text-primary);
    box-shadow: 0 0 20px rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

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

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

.badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(6, 182, 212, 0.1);
    color: var(--accent-secondary);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

/* ==========================
   Navigation
   ========================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    border-bottom: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

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

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

.logo span { color: var(--accent-primary); }

.nav-links { display: flex; gap: 40px; }

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cart-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 100px;
    padding: 10px 16px;
    font-size: 1.2rem;
    color: var(--text-primary);
    cursor: pointer;
    position: relative;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-btn:hover {
    background: var(--glass-hover);
    border-color: var(--accent-primary);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--accent-primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-toggle { display: none; }

/* ==========================
   Hero Section
   ========================== */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    width: 100%;
}

.hero-content {
    flex: 1;
    max-width: 650px;
    padding-top: 50px;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-floating-img {
    width: 100%;
    max-width: 550px;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(6, 182, 212, 0.15);
    animation: float 6s ease-in-out infinite;
    position: relative;
    z-index: 5;
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(1deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 6rem;
    font-weight: 800;
    letter-spacing: -3px;
    line-height: 1;
    margin-bottom: 10px;
    background: linear-gradient(180deg, #2A2826 0%, #5E5851 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 2.2rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 30px;
    min-height: 50px;
}

.hero-text {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 650px;
    line-height: 1.8;
}

.hero-buttons { display: flex; gap: 20px; }

.cursor { animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--text-secondary);
    animation: bounce 2s infinite ease-in-out;
}
.mouse {
    width: 24px;
    height: 36px;
    border: 2px solid var(--text-secondary);
    border-radius: 12px;
    margin: 0 auto 10px;
    position: relative;
}
.mouse::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 6px;
    background: var(--text-primary);
    border-radius: 2px;
    animation: scrollMouse 2s infinite;
}
@keyframes scrollMouse {
    0% { top: 6px; opacity: 1; }
    100% { top: 18px; opacity: 0; }
}
@keyframes bounce {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, 10px); }
}

/* ==========================
   Bento Box Layout
   ========================== */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(220px, auto);
    gap: 24px;
}

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

/* Mouse Glow Effect Handler via JS for Light Mode */
.glass-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: inherit;
    padding: 1px;
    background: transparent;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 10;
    transition: background 0.3s ease;
}
.glass-card:hover {
    background: var(--glass-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.05); /* Lighter shadow for light mode */
}

.bento-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.bento-card p {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.icon-wrap {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    font-size: 1.8rem;
    border: 1px solid var(--border-color);
}

/* Grid Spanning */
.bento-large {
    grid-column: span 2;
    grid-row: span 2;
    background: linear-gradient(135deg, #FFFFFF 0%, #FAF8F5 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bento-span-2 { grid-column: span 2; }
.bento-span-4 { grid-column: span 4; }

/* Image background support for cards */
.image-card {
    padding: 0;
}

.bento-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.4;
    transition: var(--transition);
}

.image-card:hover .bento-bg-image {
    opacity: 0.6;
    transform: scale(1.05);
}

.card-content-overlay {
    position: relative;
    z-index: 2;
    padding: 40px;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.6) 100%);
}

/* Stats inside Bento Large */
.stats-container {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.gradient-text {
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 2.5rem;
    line-height: 1;
    margin-bottom: 5px;
}

.stat-box p {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Tech Stack Tags */
.stack-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}
.tag {
    padding: 10px 22px;
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: 100px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    box-shadow: 0 4px 10px rgba(42, 40, 38, 0.03);
    transition: var(--transition);
    cursor: default;
}
.tag:hover {
    color: #FFFFFF;
    border-color: var(--accent-primary);
    background: var(--accent-primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(54, 81, 58, 0.25);
}

/* ==========================
   Client Grid Section
   ========================== */
.experience-section {
    max-width: 1000px;
    margin: 0 auto;
}

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

.client-card {
    padding: 35px;
}

.client-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.client-header .icon {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.client-header h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--text-primary);
}

.client-card h4 {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timeline-bullets {
    list-style: none;
    color: var(--text-secondary);
}

.timeline-bullets li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 12px;
    font-size: 1rem;
}

.timeline-bullets li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: var(--accent-secondary);
    border-radius: 50%;
}

/* ==========================
   Aggressive CTA Footer
   ========================== */
.cta-banner {
    text-align: center;
    padding: 80px 40px;
    background: linear-gradient(135deg, rgba(54, 81, 58, 0.05) 0%, rgba(197, 163, 126, 0.05) 100%);
    border: 1px solid rgba(54, 81, 58, 0.1);
    border-radius: var(--radius-lg);
}

.cta-banner h2 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    letter-spacing: -1px;
    margin-bottom: 15px;
}

.cta-banner p {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 80px;
}

.contact-card {
    display: flex;
    align-items: center;
    padding: 20px;
    margin-bottom: 15px;
    text-decoration: none;
    font-size: 1.1rem;
    color: var(--text-secondary);
    gap: 15px;
}

.contact-card:hover {
    color: var(--text-primary);
    border-color: var(--accent-primary);
}

.glass-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-row {
    display: flex;
    gap: 20px;
}

.glass-input {
    width: 100%;
    padding: 18px 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.glass-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.05);
}

.mt-5 { margin-top: 50px; }

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.privacy-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.privacy-link:hover {
    color: var(--accent-primary);
}

/* ==========================
   E-Commerce Store
   ========================== */
.store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-price {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--accent-secondary);
    margin-bottom: 20px;
}

.product-card h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.product-card p {
    color: var(--text-secondary);
    margin-bottom: 30px;
    flex: 1;
}

.btn-add-cart {
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-primary);
    border: 1px solid var(--accent-primary);
    padding: 14px 20px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    font-family: var(--font-body);
    transition: var(--transition);
}

.btn-add-cart:hover, .btn-add-cart.added {
    background: var(--accent-primary);
    color: #fff;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
}

.w-100 { width: 100%; }

/* ==========================
   Cart Sidebar
   ========================== */
.cart-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}
.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -450px;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: var(--bg-secondary);
    border-left: 1px solid var(--border-color);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
}
.cart-sidebar.open {
    right: 0;
}

.cart-header {
    padding: 30px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.cart-header h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
}
.close-cart {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
}
.close-cart:hover { color: var(--text-primary); }

.cart-items {
    padding: 30px;
    flex: 1;
    overflow-y: auto;
}
.empty-cart-msg {
    color: var(--text-secondary);
    text-align: center;
    margin-top: 50px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    padding: 15px;
    border-radius: var(--radius-md);
    margin-bottom: 15px;
}
.item-info h4 { font-size: 1rem; }
.item-info p { color: var(--accent-secondary); font-weight: 700; margin-top: 5px;}
.remove-item {
    background: rgba(255,0,0,0.1);
    color: #ff4d4d;
    border: none;
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.8rem;
}

.cart-footer {
    padding: 30px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-primary);
}
.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    font-family: var(--font-heading);
}
.checkout-note {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-align: center;
    margin-top: 15px;
}

/* ==========================
   AI Lead Chatbot
   ========================== */
.ai-chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 2000;
}

.ai-chat-toggle {
    background: var(--text-primary);
    color: var(--bg-primary);
    border: none;
    padding: 15px 25px;
    border-radius: 100px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}
.ai-chat-toggle:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.ai-chat-window {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 350px;
    height: 500px;
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform-origin: bottom right;
    transform: scale(0.8);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
}
.ai-chat-window.active {
    transform: scale(1);
    opacity: 1;
    pointer-events: all;
}

.ai-chat-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255,255,255,0.8);
}
.ai-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}
.status-dot {
    width: 10px;
    height: 10px;
    background: #25D366;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(37, 211, 102, 0.5);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
.ai-chat-header h4 { font-family: var(--font-heading); font-size: 1.1rem; }
.ai-chat-header p { font-size: 0.8rem; color: var(--text-secondary); }

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

.ai-chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chat-msg {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    animation: fadeInMsg 0.3s forwards;
    line-height: 1.5;
}
@keyframes fadeInMsg {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.bot-msg {
    background: #F4F1ED;
    color: var(--text-primary);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}
.user-msg {
    background: var(--text-primary);
    color: var(--bg-primary);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.chat-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 5px;
}
.chat-option-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    text-align: left;
    font-size: 0.9rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
}
.chat-option-btn:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
}

.typing-indicator {
    display: flex;
    gap: 4px;
    align-items: center;
    padding: 8px 12px;
    height: 40px;
}
.typing-indicator span {
    width: 6px;
    height: 6px;
    background: var(--text-secondary);
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out both;
}
.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }

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

.ai-chat-input-area {
    padding: 15px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 10px;
    background: rgba(255,255,255,0.8);
}
.ai-chat-input-area .glass-input {
    padding: 10px 15px;
    border-radius: 100px;
}
.btn-send-msg {
    background: var(--text-primary);
    border: none;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}
.btn-send-msg:hover {
    transform: scale(1.05);
}

@media screen and (max-width: 768px) {
    .ai-chat-widget {
        bottom: 20px;
        right: 20px;
    }
    .ai-chat-toggle {
        width: 60px;
        height: 60px;
        padding: 0;
        border-radius: 50%;
        justify-content: center;
    }
    #ai-toggle-text {
        display: none;
    }
    .ai-chat-toggle .icon {
        font-size: 1.8rem;
        margin: 0;
    }
    .ai-chat-window {
        bottom: 75px;
        width: calc(100vw - 40px);
        height: 65vh;
    }
}
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
.fade-in-up {
    animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================
   Testimonials Infinite Marquee
   ========================== */
.testimonials-section {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.marquee-wrapper {
    position: relative;
    display: flex;
    overflow: hidden;
    width: 100%;
    /* Edge masking for premium seamless effect */
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    padding: 20px 0;
}

.marquee-track {
    display: flex;
    gap: 30px;
    width: max-content;
    animation: scrollMarquee 70s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

.reverse-track {
    animation-direction: reverse;
}

.testimonial-card {
    width: 380px;
    flex-shrink: 0;
    padding: 35px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.stars {
    color: #FBBF24;
    font-size: 1.25rem;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.testimonial-card .quote {
    color: var(--text-primary);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 25px;
    font-style: italic;
    flex: 1; /* Aligns author block strictly to bottom */
}

.testimonial-card .client-name {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes scrollMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 15px)); }
}
/* ==========================
   Responsive
   ========================== */
@media screen and (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-title { font-size: 5rem; }
    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 60px;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero-floating-img {
        max-width: 400px;
    }
}

@media screen and (max-width: 768px) {
    .section { padding: 80px 0; }
    
    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--nav-height));
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        transition: var(--transition);
        z-index: 999;
    }
    
    .nav-links.active { left: 0; }
    
    .nav-links a { font-size: 1.25rem; font-weight: 600; }
    
    .desktop-only { display: none !important; }
    
    .menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 6px;
        cursor: pointer;
        z-index: 1000;
        margin-left: 15px;
    }
    
    .menu-toggle .bar {
        width: 25px;
        height: 2px;
        background: var(--text-primary);
        transition: var(--transition);
    }
    
    .menu-toggle.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .menu-toggle.active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    
    .hero {
        height: auto;
        min-height: 100vh;
        padding-top: calc(var(--nav-height) + 100px);
        padding-bottom: 60px;
        align-items: flex-start;
    }
    
    .hero-content {
        padding: 0 10px;
    }
    
    .hero-title { font-size: 2.8rem; line-height: 1.1; margin-bottom: 15px; word-break: break-word; }
    .hero-subtitle { font-size: 1.25rem; min-height: 60px; }
    
    .hero-buttons { flex-direction: column; width: 100%; gap: 15px; }
    .hero-buttons .btn-primary, .hero-buttons .btn-secondary { width: 100%; }
    
    .bento-grid {
        grid-template-columns: 1fr;
    }
    .bento-large, .bento-span-2, .bento-span-4 {
        grid-column: span 1;
    }
    
    .stats-container {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    
    .section-header h2 { font-size: 2.2rem; }
    
    .store-grid, .client-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-banner { padding: 40px 20px; }
    .cta-banner h2 { font-size: 2.5rem; }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .input-row {
        flex-direction: column;
        gap: 15px;
    }
    
    /* Ensure action buttons stack neatly to prevent overflow */
    .action-buttons-row {
        flex-direction: column !important;
        gap: 15px !important;
    }
    .action-buttons-row .btn-primary {
        width: 100% !important;
    }
    
    /* Hide background objects shrinking viewport */
    .glow-orb {
        display: none !important;
    }
    
    .cart-sidebar {
        width: 100%;
        max-width: 100%;
        right: -100%;
    }
}
