@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);
    position: relative;
}

/* Animated underline + active state for nav links */
.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    background: var(--accent-primary);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.nav-links a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-links a.active {
    color: var(--accent-primary);
    font-weight: 600;
}

.nav-links a.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Reading / Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    z-index: 1100;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px rgba(54, 81, 58, 0.4);
}

.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 (Professional + Motion)
   ========================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: var(--nav-height);
}

/* Animated backdrop */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}
.hero-grid-overlay {
    position: absolute;
    inset: -2px;
    background-image:
        linear-gradient(rgba(42, 40, 38, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(42, 40, 38, 0.045) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: radial-gradient(ellipse 75% 65% at 62% 42%, #000 25%, transparent 78%);
    mask-image: radial-gradient(ellipse 75% 65% at 62% 42%, #000 25%, transparent 78%);
    animation: gridDrift 32s linear infinite;
}
@keyframes gridDrift {
    from { background-position: 0 0, 0 0; }
    to { background-position: 48px 48px, 48px 48px; }
}
.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.55;
}
.hero-blob-a {
    width: 520px; height: 520px;
    top: -140px; right: -80px;
    background: radial-gradient(circle, rgba(54, 81, 58, 0.30), transparent 70%);
    animation: blobA 18s ease-in-out infinite alternate;
}
.hero-blob-b {
    width: 460px; height: 460px;
    bottom: -160px; left: -110px;
    background: radial-gradient(circle, rgba(197, 163, 126, 0.32), transparent 70%);
    animation: blobB 22s ease-in-out infinite alternate;
}
@keyframes blobA { to { transform: translate(-60px, 70px) scale(1.15); } }
@keyframes blobB { to { transform: translate(80px, -50px) scale(1.12); } }

.hero-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 50px;
    width: 100%;
}

.hero-content { max-width: 640px; }

/* Staggered entrance */
.hero-badge,
.hero-subtitle,
.hero-text,
.hero-buttons,
.hero-stats {
    opacity: 0;
    animation: heroUp 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-badge { animation-delay: 0.1s; }
.hero-subtitle { animation-delay: 0.6s; }
.hero-text { animation-delay: 0.75s; }
.hero-buttons { animation-delay: 0.9s; }
.hero-stats { animation-delay: 1.05s; }
@keyframes heroUp {
    from { opacity: 0; transform: translateY(26px); }
    to { opacity: 1; transform: none; }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 16px;
    border-radius: 100px;
    background: rgba(54, 81, 58, 0.08);
    border: 1px solid rgba(54, 81, 58, 0.2);
    color: var(--accent-primary);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.2px;
    margin-top: 18px;
    margin-bottom: 26px;
}
.hero-badge-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #25D366;
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    animation: pulse 2s infinite;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 5.5rem;
    font-weight: 800;
    letter-spacing: -3px;
    line-height: 0.98;
    margin-bottom: 18px;
}
.hero-title .reveal-line { display: block; overflow: hidden; padding-bottom: 2px; }
.hero-title .word {
    display: inline-block;
    transform: translateY(115%);
    background: linear-gradient(115deg, #2A2826 0%, #4E7355 55%, #C5A37E 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: wordUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-title .reveal-line:nth-child(1) .word { animation-delay: 0.25s; }
.hero-title .reveal-line:nth-child(2) .word { animation-delay: 0.4s; }
@keyframes wordUp { to { transform: translateY(0); } }

.hero-subtitle {
    font-size: 2rem;
    font-weight: 500;
    color: var(--accent-primary);
    margin-bottom: 24px;
    min-height: 44px;
}

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

.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-cta { display: inline-flex; align-items: center; gap: 8px; }
.hero-cta svg { transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.hero-cta:hover svg { transform: translateX(4px); }

.cursor { animation: blink 1s step-end infinite; color: var(--accent-secondary); }
@keyframes blink { 50% { opacity: 0; } }

/* Trust stats */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 26px;
    margin-top: 44px;
}
.hero-stat-num {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(120deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-stat-label {
    font-size: 0.78rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 7px;
}
.hero-stat-div { width: 1px; height: 40px; background: var(--border-color); }

/* Right visual */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 520px;
    opacity: 0;
    animation: heroFade 1.1s ease 0.3s forwards;
}
@keyframes heroFade { to { opacity: 1; } }

.hero-frame {
    position: relative;
    border-radius: 28px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid var(--border-color);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 30px 80px rgba(42, 40, 38, 0.14);
    max-width: 440px;
    z-index: 3;
    animation: floatY 6s ease-in-out infinite;
}
.hero-floating-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 18px;
    display: block;
    position: relative;
    z-index: 2;
}
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }

.hero-glow-ring {
    position: absolute;
    inset: -34px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, rgba(54, 81, 58, 0), rgba(54, 81, 58, 0.28), rgba(197, 163, 126, 0.28), rgba(54, 81, 58, 0));
    filter: blur(42px);
    z-index: 0;
    animation: spin 14s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Orbit + badges */
.hero-orbit {
    position: absolute;
    width: 560px;
    height: 560px;
    border-radius: 50%;
    border: 1px dashed rgba(54, 81, 58, 0.18);
    animation: spin 40s linear infinite;
    z-index: 1;
}
.orbit-badge {
    position: absolute;
    width: 52px; height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    animation: spin 40s linear infinite reverse;
}
.ob-1 { top: -26px; left: 50%; margin-left: -26px; }
.ob-2 { bottom: 70px; right: -26px; }
.ob-3 { bottom: 70px; left: -26px; }

/* Floating info cards */
.hero-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.10);
    font-size: 0.85rem;
    color: var(--text-secondary);
    z-index: 6;
    white-space: nowrap;
}
.hero-card .hc-txt b {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--text-primary);
}
.hero-card .hc-txt span { font-size: 0.76rem; color: var(--text-secondary); }
.hc-icon {
    width: 34px; height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(54, 81, 58, 0.12);
    color: var(--accent-primary);
    font-weight: 700;
    flex-shrink: 0;
}
.hc-icon.green { background: rgba(197, 163, 126, 0.18); color: #9a7040; }
.hc-1 { top: 6%; left: -4%; animation: cardFloat 5s ease-in-out infinite; }
.hc-2 { bottom: 16%; right: -6%; animation: cardFloat 6s ease-in-out infinite 0.8s; }
.hc-3 { bottom: 0; left: 8%; font-weight: 600; color: var(--text-primary); animation: cardFloat 5.5s ease-in-out infinite 0.4s; }
@keyframes cardFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.hc-live {
    width: 9px; height: 9px;
    border-radius: 50%;
    background: #25D366;
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    animation: pulse 1.8s infinite;
    display: inline-block;
    margin-right: 8px;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--text-secondary);
    text-decoration: none;
    animation: bounce 2s infinite ease-in-out;
    z-index: 10;
}
.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); }
}

/* ---- Hero responsive ---- */
@media screen and (max-width: 1100px) {
    .hero-title { font-size: 4.6rem; }
    .hero-orbit { width: 480px; height: 480px; }
    .hero-frame { max-width: 380px; }
}
@media screen and (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 48px;
    }
    .hero-content { max-width: 640px; margin: 0 auto; }
    .hero-text { margin-left: auto; margin-right: auto; }
    .hero-buttons { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-visual { min-height: 440px; order: 2; }
    .hero-orbit { width: 420px; height: 420px; }
    .hero-frame { max-width: 340px; }
}
@media screen and (max-width: 600px) {
    .hero { padding-top: calc(var(--nav-height) + 24px); padding-bottom: 60px; }
    .hero-title { font-size: 3rem; letter-spacing: -1.5px; }
    .hero-subtitle { font-size: 1.35rem; min-height: 34px; }
    .hero-text { font-size: 1.05rem; }
    .hero-buttons { flex-direction: column; width: 100%; }
    .hero-buttons .btn-primary, .hero-buttons .btn-secondary { width: 100%; }
    .hero-stats { gap: 16px; margin-top: 36px; }
    .hero-stat-num { font-size: 1.5rem; }
    .hero-stat-label { font-size: 0.66rem; letter-spacing: 0.5px; }
    /* Hide motion-heavy visual extras on phones to keep it clean + fast */
    .hero-orbit, .hero-card { display: none; }
    .hero-visual { min-height: 300px; }
    .hero-frame { max-width: 280px; }
    .scroll-indicator { display: none; }
}
@media screen and (max-width: 360px) {
    .hero-title { font-size: 2.5rem; }
    .hero-stats { flex-wrap: wrap; }
    .hero-stat-div { display: none; }
}

/* ==========================
   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%;
}

/* ==========================
   Careers Section
   ========================== */
.careers-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
.open-positions h3, .application-form-container h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 25px;
}
.job-card {
    padding: 25px;
    margin-bottom: 20px;
}
.job-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.job-header h4 {
    font-size: 1.2rem;
    color: var(--text-primary);
}
.job-badge {
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-primary);
    padding: 5px 12px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
}
.job-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}
.application-form-container {
    padding: 35px;
}

@media screen and (max-width: 768px) {
    .careers-layout {
        grid-template-columns: 1fr;
    }
}

/* ==========================
   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;
}

.btn-add-more {
    width: 100%;
    background: transparent;
    color: var(--text-primary);
    border: 1px dashed var(--border-color);
    padding: 12px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 600;
    font-family: var(--font-body);
    transition: var(--transition);
    margin-top: 10px;
    text-align: center;
}

.btn-add-more:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
    border-style: solid;
}

.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;
}

@keyframes bounce-bot {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.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);
    animation: bounce-bot 4s infinite;
}
.ai-chat-toggle:hover {
    animation: none;
    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);
}

/* Header actions + restart */
.ai-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}
.ai-chat-restart {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    transition: var(--transition);
}
.ai-chat-restart:hover {
    background: var(--glass-hover);
    color: var(--accent-primary);
    transform: rotate(-45deg);
}

/* Action link buttons inside chat (WhatsApp, call, email, view) */
.chat-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}
.chat-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--accent-primary);
    color: #fff;
    border: none;
    padding: 9px 14px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}
.chat-link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(54, 81, 58, 0.25);
}
.chat-link-btn.alt {
    background: transparent;
    color: var(--accent-primary);
    border: 1px solid var(--accent-primary);
}
.chat-link-btn.wa { background: #25D366; }
.chat-link-btn.wa:hover { box-shadow: 0 6px 16px rgba(37, 211, 102, 0.35); }

/* Service/price list inside chat */
.chat-svc-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
}
.chat-svc {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
}
.chat-svc b { color: var(--text-primary); font-weight: 600; }
.chat-svc .price {
    color: var(--accent-secondary);
    font-weight: 700;
    white-space: nowrap;
    font-family: var(--font-heading);
}

.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;
        background: linear-gradient(135deg, var(--accent-primary), var(--text-primary));
        box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    }
    #ai-toggle-text {
        display: none !important;
    }
    .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,
.marquee-track:active,
.marquee-wrapper:active .marquee-track {
    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);
    }
}

@media screen and (max-width: 768px) {
    .section { padding: 80px 0; }
    
    .blog-title {
        font-size: 2rem !important;
        line-height: 1.3 !important;
    }
    .blog-container {
        margin-top: 100px !important;
    }
    
    .stack-tags { 
        gap: 6px; 
        justify-content: center;
    }
    .tag {
        padding: 5px 12px;
        font-size: 0.8rem;
    }
    
    .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); }
    
    .bento-grid {
        grid-template-columns: 1fr;
    }
    .bento-large, .bento-span-2, .bento-span-4 {
        grid-column: span 1;
    }
    
    .stats-container {
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }
    .stat-box {
        text-align: 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%;
    }
    
    .testimonial-card {
        width: 280px;
        padding: 25px;
    }
    .testimonial-card .quote {
        font-size: 1rem;
    }
    .marquee-wrapper {
        -webkit-mask-image: linear-gradient(to right, transparent, black 2%, black 98%, transparent);
        mask-image: linear-gradient(to right, transparent, black 2%, black 98%, transparent);
    }
    
    .testimonial-card, .blog-card {
        width: 280px;
    }
}


/* --- Trending Blogs --- */
.blog-card {
    width: 380px;
    flex-shrink: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--text-primary);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.blog-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.blog-card-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.blog-tag {
    align-self: flex-start;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    color: var(--accent-primary);
    background: rgba(54, 81, 58, 0.2);
    padding: 4px 10px;
    border-radius: 100px;
}

.blog-card h4 {
    font-size: 1.2rem;
    margin: 0;
    line-height: 1.4;
    color: var(--text-primary);
}

.blog-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* ==========================
   Automation Section
   ========================== */
.automation-bento {
    grid-auto-rows: minmax(200px, auto);
    margin-bottom: 60px;
}

.automation-bento .bento-card {
    grid-column: span 1;
    padding: 28px;
}

.automation-bento .bento-card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
    line-height: 1.35;
}

.automation-bento .bento-card p {
    font-size: 0.95rem;
    line-height: 1.6;
}

.automation-bento .icon-wrap {
    width: 48px;
    height: 48px;
    font-size: 1.4rem;
    margin-bottom: 18px;
}

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

.automation-guarantees {
    background: linear-gradient(135deg, #FFFFFF 0%, #FAF8F5 100%);
    padding: 40px !important;
}

.automation-guarantees h3 {
    font-size: 1.5rem !important;
}

.automation-guarantees .stack-tags {
    margin-top: 20px;
}

.automation-cta-banner {
    margin-top: 40px;
}

/* ==========================
   FAQ Section (site-wide, redesigned)
   ========================== */
.faq-section { position: relative; }

.faq-layout {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 60px;
    align-items: start;
}

/* Left intro column */
.faq-intro { position: sticky; top: 110px; }

.faq-intro h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1.05;
    margin: 8px 0 18px;
    color: var(--text-primary);
}

.faq-intro > p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 360px;
    margin-bottom: 30px;
}

.faq-help-card {
    padding: 26px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
}

.faq-help-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(54, 81, 58, 0.1), rgba(197, 163, 126, 0.12));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    margin-bottom: 12px;
    animation: iconFloat 3s ease-in-out infinite;
}

.faq-help-card h4 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--text-primary);
    margin: 0;
}

.faq-help-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

.faq-help-btn {
    margin-top: 16px;
    width: 100%;
}

/* Right accordion column */
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.faq-item {
    padding: 0;
    overflow: hidden;
    border-radius: var(--radius-md);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.faq-item summary {
    padding: 22px 26px;
    font-family: var(--font-heading);
    font-size: 1.08rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    transition: color 0.3s ease;
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary span { flex: 1; }

/* Animated plus -> minus icon */
.faq-plus {
    position: relative;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.faq-plus::before,
.faq-plus::after {
    content: '';
    position: absolute;
    background: var(--accent-primary);
    border-radius: 2px;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease;
}

.faq-plus::before { top: 9px; left: 0; width: 20px; height: 2px; }
.faq-plus::after  { top: 0; left: 9px; width: 2px; height: 20px; }

.faq-item[open] .faq-plus::before { transform: rotate(180deg); }
.faq-item[open] .faq-plus::after { transform: rotate(90deg); opacity: 0; }

.faq-item[open] summary { color: var(--accent-primary); }

.faq-item[open] {
    border-color: var(--accent-primary);
    box-shadow: 0 12px 30px rgba(54, 81, 58, 0.08);
}

.faq-item:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.faq-answer p {
    padding: 0 26px 24px;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.75;
    margin: 0;
    animation: faqReveal 0.4s ease;
}

@keyframes faqReveal {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

@media screen and (max-width: 900px) {
    .faq-layout { grid-template-columns: 1fr; gap: 36px; }
    .faq-intro { position: static; text-align: center; }
    .faq-intro > p { margin-left: auto; margin-right: auto; }
    .faq-intro h2 { font-size: 2.4rem; }
    .faq-help-card { align-items: center; text-align: center; max-width: 360px; margin: 0 auto; }
}

@media screen and (max-width: 768px) {
    .faq-item summary { font-size: 1rem; padding: 18px 20px; }
    .faq-answer p { padding: 0 20px 20px; }
}

@media screen and (max-width: 1024px) {
    .automation-bento .bento-card {
        grid-column: span 2;
    }
    .automation-bento .bento-span-4 {
        grid-column: span 4;
    }
}

@media screen and (max-width: 768px) {
    .automation-bento .bento-card,
    .automation-bento .bento-span-4 {
        grid-column: span 1;
    }
}


/* ==========================
   Motion Graphics Enhancements
   ========================== */

/* Staggered reveal for automation bento cards.
   Cards are VISIBLE by default; the reveal animation is a progressive
   enhancement that JS opts into via .reveal-ready, so the section always
   shows even if JavaScript or the observer fails on a device. */
.automation-bento.reveal-ready .bento-card {
    opacity: 0;
    transform: translateY(24px);
}

.automation-bento.in-view .bento-card {
    animation: cardRise 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.automation-bento.in-view .bento-card:nth-child(1) { animation-delay: 0.02s; }
.automation-bento.in-view .bento-card:nth-child(2) { animation-delay: 0.06s; }
.automation-bento.in-view .bento-card:nth-child(3) { animation-delay: 0.10s; }
.automation-bento.in-view .bento-card:nth-child(4) { animation-delay: 0.14s; }
.automation-bento.in-view .bento-card:nth-child(5) { animation-delay: 0.18s; }
.automation-bento.in-view .bento-card:nth-child(6) { animation-delay: 0.22s; }
.automation-bento.in-view .bento-card:nth-child(7) { animation-delay: 0.26s; }
.automation-bento.in-view .bento-card:nth-child(8) { animation-delay: 0.30s; }
.automation-bento.in-view .bento-card:nth-child(n+9) { animation-delay: 0.34s; }

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

/* Gentle icon pop on hover for all bento/service cards */
.bento-card .icon-wrap,
.client-header .icon {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s ease, border-color 0.3s ease;
}

.bento-card:hover .icon-wrap {
    transform: translateY(-4px) scale(1.08);
    border-color: var(--accent-primary);
}

/* Product cards subtle rise */
.product-card {
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease, background 0.3s ease;
}

.product-card:hover {
    transform: translateY(-6px);
}

/* Button shine sweep */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.btn-primary:hover::after {
    left: 140%;
}

/* Smooth anchor focus outline for accessibility */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
.glass-input:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

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

    .automation-bento .bento-card {
        opacity: 1;
        transform: none;
    }

    .marquee-track {
        animation: none !important;
    }

    .glow-orb,
    .hero-floating-img,
    .ai-chat-toggle {
        animation: none !important;
    }
}


/* ==========================
   Cursor-Following CTA Badge (desktop only)
   ========================== */
.cursor-cta {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 3000;
    display: none;
    align-items: center;
    gap: 9px;
    padding: 9px 16px;
    border-radius: 100px;
    background: linear-gradient(120deg, #4E7355, #2E4433);
    color: #fff;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.2px;
    white-space: nowrap;
    pointer-events: none;
    box-shadow: 0 12px 30px rgba(54, 81, 58, 0.38);
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    transition: opacity 0.35s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: left, top;
}
.cursor-cta.visible {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}
/* clickable only once the cursor rests (so it never blocks the page mid-move) */
.cursor-cta.visible.still {
    pointer-events: auto;
    cursor: pointer;
}
.cursor-cta.visible.still:hover {
    transform: translate(-50%, -50%) scale(1.08);
    box-shadow: 0 16px 42px rgba(37, 211, 102, 0.45);
}
.cursor-cta .cc-ic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #8FE39A;
    flex-shrink: 0;
    animation: pulse 2s infinite;
    border-radius: 50%;
}
.cursor-cta .cc-ic svg { display: block; }
.cursor-cta .cc-text {
    display: inline-block;
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.cursor-cta .cc-text.swap {
    opacity: 0;
    transform: translateY(-6px);
}

/* Mobile: shake the phone to reveal — then it tumbles around with gravity.
   Position (left/top) is driven by the physics loop in JS; transform only
   centers the badge on that point and handles the pop-in scale. */
.cursor-cta.mobile {
    left: 50%;
    top: 26%;
    bottom: auto;
    padding: 15px 26px;
    font-size: 1rem;
    gap: 11px;
    transform: translate(-50%, -50%) scale(0);
    box-shadow: 0 18px 44px rgba(37, 211, 102, 0.35);
}
.cursor-cta.mobile.visible {
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
    cursor: pointer;
}
/* picked-up feel while dragging */
.cursor-cta.mobile.grabbing {
    transform: translate(-50%, -50%) scale(1.12);
    box-shadow: 0 22px 55px rgba(37, 211, 102, 0.5);
}

/* Mobile dice <-> Connect-button morph.
   .dice is the shell (positions + smoothly morphs between a die and a pill);
   .die-face (rotating red die) and .cc-pill (green button) crossfade. */
.cursor-cta.dice {
    width: 64px;
    height: 64px;
    padding: 0;
    gap: 0;
    background: none;
    border: none;
    border-radius: 16px;
    box-shadow: 0 14px 30px rgba(179, 22, 27, 0.40);
    transition:
        opacity 0.35s ease,
        transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
        width 0.45s cubic-bezier(0.34, 1.4, 0.5, 1),
        height 0.45s cubic-bezier(0.34, 1.4, 0.5, 1),
        border-radius 0.4s ease,
        background 0.4s ease,
        box-shadow 0.4s ease;
}
.cursor-cta.dice .die-face {
    position: absolute;
    inset: 0;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(145deg, #FF5A5A 0%, #E02B2B 50%, #B3161B 100%);
    border: 1px solid rgba(0, 0, 0, 0.14);
    box-shadow: inset 0 2px 6px rgba(255, 255, 255, 0.4), inset 0 -5px 9px rgba(0, 0, 0, 0.28);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    padding: 10px;
    box-sizing: border-box;
    will-change: transform;
    transition: opacity 0.22s ease;
}
.cursor-cta.dice .cell {
    display: flex;
    align-items: center;
    justify-content: center;
}
.cursor-cta.dice .pip {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #ffffff, #e6e6e6);
    box-shadow: inset 0 -1px 1px rgba(0, 0, 0, 0.22), 0 1px 2px rgba(0, 0, 0, 0.28);
}
/* Connect button layer (revealed when the die settles) */
.cursor-cta.dice .cc-pill {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: #fff;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.95rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease 0.1s;
}
.cursor-cta.dice.settled {
    width: 178px;
    height: 52px;
    border-radius: 100px;
    background: linear-gradient(120deg, #4E7355, #2E4433);
    box-shadow: 0 16px 36px rgba(54, 81, 58, 0.42);
}
.cursor-cta.dice.settled .die-face { opacity: 0; }
.cursor-cta.dice.settled .cc-pill { opacity: 1; }
