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

:root {
    --bg-color: #050505; /* Deep brutalist black */
    --text-primary: #ffffff;
    --text-secondary: #a3a3a3;
    --accent-red: #e02424;
    --card-bg: rgba(20, 20, 20, 0.4);
    --border-color: rgba(255, 255, 255, 0.08);
    --font-main: 'Outfit', sans-serif;
    --transition: 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html {
    scroll-behavior: smooth;
    overflow-x: clip;
}
body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: clip;
    width: 100%;
    position: relative;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}
.site-wrapper {
    width: 100%;
    position: relative;
    overflow-x: clip;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; transform: translateZ(0); }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.text-red { color: var(--accent-red); }
.text-center { text-align: center; }
.relative { position: relative; z-index: 1; }

/* Buttons & Pills */
.btn-primary { background: var(--accent-red); color: white; padding: 14px 28px; border-radius: 100px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,0.1); }
.btn-primary:hover { background: #b01b1b; }
.btn-secondary { background: rgba(255,255,255,0.05); color: white; padding: 14px 28px; border-radius: 100px; font-weight: 600; border: 1px solid var(--border-color); }
.btn-secondary:hover { background: rgba(255,255,255,0.1); }

/* Liquid Glass with Colors */
.liquid-glass {
    background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.01));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    transform: translateZ(0); /* Hardware acceleration */
    will-change: transform, backdrop-filter;
}

/* Glow Blobs for Liquid Glass effect */
.glow-blob {
    position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.4;
    animation: float-blob 10s ease-in-out infinite alternate;
    transform: translateZ(0); /* Hardware acceleration */
    will-change: transform;
    pointer-events: none;
}
.blob-hero-1 { background: var(--accent-red); width: 300px; height: 300px; top: 0; left: 10%; }
.blob-hero-2 { background: #4a00e0; width: 250px; height: 250px; bottom: 0; right: 10%; animation-delay: -5s; }
.blob-services-1 { background: #e02424; width: 350px; height: 350px; top: -100px; left: -100px; }
.blob-services-2 { background: #ff007b; width: 200px; height: 200px; bottom: -50px; right: -50px; animation-delay: -3s; }

@keyframes float-blob {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, 60px) scale(1.1); }
}

/* Spatial UI & Hover Effects */
.spatial-hover, .spatial-tilt { transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition); transform-style: preserve-3d; }
.spatial-hover:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6), 0 0 20px rgba(255,255,255,0.05);
    border-color: rgba(255, 255, 255, 0.2);
}
.spatial-float {
    animation: float 6s ease-in-out infinite alternate;
}
@keyframes float { 0% { transform: translateY(0); } 100% { transform: translateY(-15px); } }

/* Navbar */
.navbar-wrapper { position: absolute; top: 15px; left: 0; width: 100%; z-index: 100; display: flex; justify-content: center; padding: 0 10px; pointer-events: none; }
.floating-nav { border-radius: 100px; display: flex; align-items: center; justify-content: space-between; padding: 6px; pointer-events: auto; max-width: 100%; flex-wrap: wrap; gap: 4px; }
.nav-pill { padding: 6px 12px; font-weight: 500; font-size: 0.85rem; border-radius: 100px; transition: background 0.3s; white-space: nowrap; }
.nav-pill:hover { background: rgba(255, 255, 255, 0.1); }
.logo-pill { display: flex; align-items: center; gap: 8px; padding-left: 6px; background: rgba(255, 255, 255, 0.05); }
.nav-links { display: flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 4px; }
.btn-contact { background: var(--accent-red); color: white; }

/* Brutalism Hero */
.hero { padding-top: 140px; padding-bottom: 60px; touch-action: pan-y; }
.hero-title-wrapper { text-align: center; position: relative; display: flex; justify-content: center; align-items: center; min-height: 200px; touch-action: pan-y; }
.brutal-text {
    font-size: 16vw; 
    line-height: 0.85; 
    font-weight: 900; 
    letter-spacing: -0.04em; 
    position: relative; 
    z-index: 1;
    text-transform: uppercase;
    -webkit-text-stroke: 2px rgba(255,255,255,0.8);
    color: transparent;
}
.brutal-text .text-filled {
    color: var(--text-primary);
    -webkit-text-stroke: 0;
}
.hero-avatar-container { 
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); 
    z-index: 2; width: 60vw; max-width: 320px; 
}
.enhance-avatar {
    width: 100%;
    display: block;
    border-bottom-left-radius: 50%;
    border-bottom-right-radius: 50%;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.7)) contrast(1.15) saturate(1.1) brightness(1.05);
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}
.hero-bottom { display: flex; flex-direction: column; align-items: center; gap: 20px; margin-top: 60px; text-align: center; }
.hero-subtitle { font-size: 1.2rem; color: var(--text-secondary); max-width: 400px; font-weight: 500; }

/* Hero Vector Icons Marquee */
.hero-icon-marquee-container {
    width: 100%;
    overflow: hidden;
    margin-top: 40px;
    position: relative;
    z-index: 3;
    pointer-events: none;
    touch-action: pan-y;
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}
.hero-icon-marquee {
    display: flex;
    overflow: hidden;
}
.hero-marquee-track {
    display: flex;
    gap: 40px;
    padding-right: 40px; /* crucial for seamless loop math */
    animation: icon-marquee 8s linear infinite; /* Increased speed */
    width: max-content;
}
.marquee-icon-item {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
}
.marquee-icon-item svg {
    width: 24px;
    height: 24px;
    opacity: 0.8;
}
@keyframes icon-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Sections Common */
section { margin-bottom: 120px; }
.section-title { font-size: 2.5rem; font-weight: 700; line-height: 1.1; margin-bottom: 50px; letter-spacing: -0.02em; }
.section-header-row { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 50px; }

/* Split Layouts (Desktop) */
.split-layout { display: grid; grid-template-columns: 1fr; gap: 60px; }
@media (min-width: 768px) {
    section { margin-bottom: 200px; }
    .split-layout { grid-template-columns: 4fr 6fr; gap: 80px; }
    .sticky-pane { position: sticky; top: 120px; height: fit-content; }
    .hero-bottom { flex-direction: row; justify-content: space-between; text-align: left; margin-top: 120px; padding: 0 50px; }
}

/* Bento Grid */
.bento-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 768px) {
    .bento-grid { grid-template-columns: repeat(2, 1fr); }
    .card-span-2 { grid-column: span 2; }
}

/* Projects */
.project-card { border-radius: 24px; overflow: hidden; display: flex; flex-direction: column; }
.project-card-header { padding: 20px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
@media (min-width: 768px) { .project-card-header { flex-direction: row; justify-content: space-between; padding: 24px; } }
.project-meta h3 { font-size: 1.4rem; font-weight: 600; margin-bottom: 4px; }
.project-meta p { color: var(--text-secondary); font-size: 0.9rem; }
.view-project { padding: 8px 16px; border-radius: 100px; font-size: 0.85rem; font-weight: 500; }
.project-image { padding: 0 20px 20px 20px; height: 100%; }
@media (min-width: 768px) { .project-image { padding: 0 24px 24px 24px; } }
.project-image img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; transition: transform var(--transition); }
.project-card:hover .project-image img { transform: scale(1.03); }
.view-all-wrapper { text-align: center; margin-top: 40px; }
.view-all { color: var(--text-secondary); font-weight: 500; padding: 10px 20px; border-radius: 100px; border: 1px solid var(--border-color); }

/* Quote (Brutalism) */
.quote-section { text-align: center; max-width: 800px; margin: 80px auto; padding: 0 10px; }
@media (min-width: 768px) { .quote-section { margin: 120px auto; } }
.brutal-quote { font-size: 1.8rem; font-weight: 700; line-height: 1.3; margin-bottom: 30px; letter-spacing: -0.03em; }
@media (min-width: 768px) { .brutal-quote { font-size: 2.5rem; margin-bottom: 40px; } }
.quote-author { display: flex; align-items: center; justify-content: center; gap: 16px; }
.quote-author img { width: 48px; height: 48px; }
.quote-author div { text-align: left; display: flex; flex-direction: column; }
.quote-author span { color: var(--text-secondary); font-size: 0.9rem; }

/* Services */
.tools-label { color: var(--text-secondary); margin-bottom: 16px; font-weight: 500; }
.tools-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.tool-icon { padding: 12px; border-radius: 16px; width: 54px; height: 54px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.service-card { border-radius: 24px; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 768px) { .service-card { padding: 32px; } }
.service-icon { font-size: 2rem; color: var(--text-primary); }
.service-content h3 { font-size: 1.5rem; margin-bottom: 8px; }
.service-content p { color: var(--text-secondary); }

/* About */
.about-split { display: grid; grid-template-columns: 1fr; gap: 60px; margin-top: 80px; }
@media (min-width: 768px) { .about-split { grid-template-columns: 350px 1fr; gap: 100px; } }
.profile-card { border-radius: 24px; overflow: hidden; }
.profile-photo { width: 100%; height: 350px; object-fit: cover; }
.profile-info { padding: 24px; }
.profile-info h3 { font-size: 1.5rem; margin-bottom: 4px; }
.profile-info .role { color: var(--accent-red); font-size: 0.9rem; font-weight: 500; }
.card-pad { padding: 24px; border-radius: 24px; margin-bottom: 40px; }
@media (min-width: 768px) { .card-pad { padding: 32px; } }
.about-bio p { color: var(--text-secondary); font-size: 1.1rem; margin-bottom: 16px; }

/* Newspaper UI Integration (Vintage Retro) */
.newspaper-ui {
    background-color: #f1e4c3; /* Vintage yellowed paper */
    background-image: radial-gradient(circle, transparent 50%, rgba(139, 107, 72, 0.15) 120%); /* Aged vignette edges */
    color: #2b2b2b; /* Faded charcoal ink */
    border-radius: 2px; /* Sharp paper edges */
    border: 1px solid #c2b29a;
    padding: 20px;
    margin-bottom: 40px;
    box-shadow: 12px 12px 0px rgba(0,0,0,0.8), inset 0 0 30px rgba(139, 107, 72, 0.1); /* Brutalist shadow + inner aging */
    font-family: 'Playfair Display', serif;
}
@media (min-width: 768px) { .newspaper-ui { padding: 32px; } }
.newspaper-ui p {
    color: #333;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 16px;
    text-align: left;
}
@media (min-width: 768px) { .newspaper-ui p { font-size: 1.05rem; line-height: 1.6; text-align: justify; } }
.newspaper-header {
    border-bottom: 1px solid #2b2b2b;
    border-top: 5px double #2b2b2b; /* Classic vintage double line */
    padding: 12px 0;
    margin-bottom: 24px;
    text-align: center;
}
.newspaper-date, .newspaper-author {
    font-family: var(--font-main);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #555;
    display: block;
}
.newspaper-headline {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 900;
    line-height: 1.1;
    margin: 12px 0;
    text-transform: uppercase;
    color: #1a1a1a;
    letter-spacing: -0.02em;
}
@media (min-width: 768px) { .newspaper-headline { font-size: 2rem; } }
.newspaper-columns {
    column-count: 1;
    column-gap: 30px;
}
@media (min-width: 1024px) {
    .newspaper-columns {
        column-count: 2;
    }
}
.drop-cap {
    float: left;
    font-size: 3.5rem;
    line-height: 0.8;
    padding-top: 4px;
    padding-right: 8px;
    padding-left: 0px;
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    color: #a82727; /* Faded vintage red */
}
@media (min-width: 768px) { .drop-cap { font-size: 4.5rem; } }

.work-history-section { margin-top: 40px; }
.history-title { font-size: 1.5rem; margin-bottom: 24px; }
.history-card { border-radius: 16px; padding: 24px; display: flex; justify-content: space-between; align-items: center; }
.history-info h4 { font-size: 1.2rem; }
.history-info p { color: var(--text-secondary); }
.history-date { background: var(--accent-red); color: white; padding: 6px 14px; border-radius: 100px; font-size: 0.85rem; font-weight: 600; }

/* FAQs */
.accordion { border-radius: 24px; padding: 10px 20px; }
@media (min-width: 768px) { .accordion { padding: 10px 30px; } }
.accordion-item { border-bottom: 1px solid var(--border-color); }
.accordion-item:last-child { border-bottom: none; }
.accordion-header { width: 100%; text-align: left; background: none; border: none; color: white; padding: 20px 0; font-size: 1.05rem; font-weight: 500; display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-family: inherit; }
@media (min-width: 768px) { .accordion-header { padding: 24px 0; font-size: 1.1rem; } }
.accordion-content { max-height: 0; overflow: hidden; transition: max-height var(--transition); }
.accordion-content p { padding-bottom: 24px; color: var(--text-secondary); }

.cta-discovery-card { border-radius: 24px; padding: 32px 20px; }
@media (min-width: 768px) { .cta-discovery-card { padding: 40px; } }
.cta-discovery-card h3 { font-size: 1.8rem; margin-bottom: 16px; line-height: 1.1; font-weight: 800; }
@media (min-width: 768px) { .cta-discovery-card h3 { font-size: 2.2rem; } }
.cta-discovery-card p { color: var(--text-secondary); margin-bottom: 8px; }
.cta-discovery-card .sub-text { margin-bottom: 32px; font-size: 0.9rem; }
.cta-buttons { display: flex; gap: 12px; flex-wrap: wrap; }

/* Footer */
.footer { padding-top: 60px; }
@media (min-width: 768px) { .footer { padding-top: 80px; } }
.footer-top { margin-bottom: 60px; }
@media (min-width: 768px) { .footer-top { margin-bottom: 80px; } }
.footer-title { font-size: 3rem; line-height: 1; margin-bottom: 40px; }
@media (min-width: 768px) { .footer-title { font-size: 4rem; margin-bottom: 60px; } }
.footer-links-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
@media (min-width: 768px) { .footer-links-grid { grid-template-columns: repeat(4, 1fr); gap: 40px; } }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-label { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 8px; }
.footer-col a { font-weight: 500; font-size: 1rem; transition: color 0.3s; }
@media (min-width: 768px) { .footer-col a { font-size: 1.1rem; } }
.footer-col a:hover { color: var(--accent-red); }

/* Marquee with Cement Wall Texture */
.marquee-container { border-top: 1px solid rgba(255,255,255,0.05); overflow: hidden; padding: 20px 0; background: #111; pointer-events: none; touch-action: pan-y; }
.cement-texture {
    display: inline-block; 
    white-space: nowrap; 
    animation: marquee 30s linear infinite; 
    font-size: 10vw; 
    font-weight: 900; 
    letter-spacing: -0.02em;
    
    /* Grey color with rough cement SVG noise filter mapped to background-clip */
    background-color: #888888;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.7'/%3E%3C/svg%3E");
    background-blend-mode: multiply;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    
    /* Adds depth to the cracks */
    -webkit-text-stroke: 1px rgba(0,0,0,0.8);
    text-shadow: 2px 2px 5px rgba(0,0,0,0.3);
    transform: translate3d(0, 0, 0); /* Force GPU compositing for heavy text filter */
    will-change: transform;
}
.cement-texture span { padding-right: 50px; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* Pop-up Animations */
.pop-up {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}
.pop-up.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}


/* ===================================================
   Ask AI Assistant Button & Glassmorphic Drawer
   =================================================== */

/* Navbar AI Button */
.btn-ai-assistant {
    background: linear-gradient(135deg, #e02424, #b01b1b);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 16px;
    border-radius: 100px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(224, 36, 36, 0.35);
    position: relative;
    overflow: hidden;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn-ai-assistant:hover {
    background: linear-gradient(135deg, #ff2e2e, #c71e1e);
    box-shadow: 0 6px 20px rgba(224, 36, 36, 0.5);
    transform: translateY(-2px);
}

/* Backdrop */
.ai-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.ai-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

/* Slide-over Drawer */
.ai-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 440px;
    max-width: 100vw;
    height: 100vh;
    height: 100dvh;
    z-index: 999;
    background: rgba(10, 10, 10, 0.94);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: -15px 0 50px rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: var(--font-main);
    overflow: hidden;
}
.ai-drawer.active {
    transform: translateX(0);
}

/* Drawer Header (Clean: Avatar + Ask AI + Close Button) */
.ai-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
}
.ai-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}
.ai-avatar-wrap {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}
.ai-header-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
}
.ai-profile-info {
    display: flex;
    align-items: center;
}
.ai-header-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.2px;
}
.ai-close-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}
.ai-close-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

/* Quick Starters (Continuously Moving Right to Left) */
.ai-quick-starters {
    width: 100%;
    overflow: hidden;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.35);
    position: relative;
    -webkit-mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
    mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
}
.ai-starters-track {
    display: flex;
    gap: 10px;
    width: max-content;
    animation: ai-starters-scroll 24s linear infinite;
    padding: 0 10px;
}
.ai-starters-track:hover {
    animation-play-state: paused;
}
@keyframes ai-starters-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}
.ai-starter-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e2e2e2;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 7px 14px;
    border-radius: 100px;
    white-space: nowrap;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s, border-color 0.2s, transform 0.2s, color 0.2s;
    user-select: none;
}
.ai-starter-pill:hover {
    background: rgba(224, 36, 36, 0.25);
    border-color: rgba(224, 36, 36, 0.5);
    color: #ffffff;
    transform: translateY(-1px);
}

/* Messages Area */
.ai-messages-area {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    -webkit-overflow-scrolling: touch;
}
.ai-msg-row {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    max-width: 90%;
    animation: fadeInMsg 0.3s ease-out;
}
@keyframes fadeInMsg {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
.ai-msg-incoming {
    align-self: flex-start;
}
.ai-msg-outgoing {
    align-self: flex-end;
    flex-direction: row-reverse;
}
.ai-msg-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ai-msg-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ai-msg-bubble {
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 0.92rem;
    line-height: 1.5;
    position: relative;
    word-break: break-word;
}
.ai-msg-incoming .ai-msg-bubble {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f0f0f0;
    border-bottom-left-radius: 4px;
}
.ai-msg-outgoing .ai-msg-bubble {
    background: linear-gradient(135deg, #e02424, #b01b1b);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border-bottom-right-radius: 4px;
}
.ai-msg-bubble p {
    margin-bottom: 8px;
}
.ai-msg-bubble p:last-child {
    margin-bottom: 0;
}

/* Typing Indicator & Writing Animation Cursor */
.ai-typing-dots {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 4px;
}
.ai-typing-dots span {
    width: 6px;
    height: 6px;
    background: #aaa;
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out;
}
.ai-typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.ai-typing-dots span:nth-child(2) { animation-delay: -0.16s; }
@keyframes typingBounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1.1); opacity: 1; }
}

/* Real-time Typing Cursor for writing animation */
.ai-typing-cursor {
    display: inline-block;
    width: 2px;
    height: 1.05em;
    background-color: var(--accent-red);
    margin-left: 2px;
    vertical-align: -2px;
    animation: blinkCursor 0.75s infinite;
}
@keyframes blinkCursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Lead Capture Form Card (Simplified: No Long Text, No Emojis) */
.ai-lead-form-card {
    background: rgba(18, 18, 18, 0.95);
    border: 1px solid rgba(224, 36, 36, 0.45);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(224, 36, 36, 0.15);
    border-radius: 14px;
    padding: 16px;
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    animation: fadeInForm 0.35s ease-out;
}
@keyframes fadeInForm {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}
.ai-lead-form-card h4 {
    font-size: 1rem;
    color: #ffffff;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.2px;
}
.ai-form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.ai-form-group label {
    font-size: 0.72rem;
    font-weight: 600;
    color: #b5b5b5;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.ai-form-group input, .ai-form-group textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 9px 12px;
    color: #fff;
    font-family: inherit;
    font-size: 0.86rem;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
}
.ai-form-group input:focus, .ai-form-group textarea:focus {
    border-color: var(--accent-red);
    background: rgba(255, 255, 255, 0.08);
}
.ai-lead-submit-btn {
    background: linear-gradient(135deg, #e02424, #b01b1b);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 11px 16px;
    border-radius: 9px;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(224, 36, 36, 0.35);
    margin-top: 4px;
    font-family: inherit;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.ai-lead-submit-btn:hover {
    background: linear-gradient(135deg, #ff2e2e, #c71e1e);
    box-shadow: 0 6px 20px rgba(224, 36, 36, 0.5);
    transform: translateY(-1px);
}
.ai-lead-submit-btn:disabled {
    opacity: 0.7;
    cursor: default;
    transform: none;
}

/* Drawer Footer / Input Form */
.ai-drawer-footer {
    padding: 14px 20px 18px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(10, 10, 10, 0.95);
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.ai-input-form {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 100px;
    padding: 4px 6px 4px 16px;
    transition: border-color 0.2s;
}
.ai-input-form:focus-within {
    border-color: var(--accent-red);
}
.ai-input-form input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: #fff;
    font-size: 0.9rem;
    font-family: inherit;
}
.ai-input-form input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}
.ai-send-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent-red);
    border: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s, transform 0.2s;
}
.ai-send-btn:hover {
    background: #b01b1b;
    transform: scale(1.05);
}
.ai-send-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}
.ai-disclaimer {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.3);
    text-align: center;
    margin: 0;
}

@media (max-width: 480px) {
    .ai-drawer {
        width: 100vw;
    }
}


/* Mobile navbar single-line optimization */
@media (max-width: 480px) {
    .floating-nav {
        padding: 4px 6px;
        gap: 3px;
    }
    .nav-pill {
        padding: 5px 8px;
        font-size: 0.76rem;
    }
    .btn-ai-assistant {
        padding: 5px 10px;
        font-size: 0.76rem;
    }
}

/* ===================================================
   Solution Pages (Landing Pages & SEO Silos)
   =================================================== */

.solution-hero {
    padding-top: 140px;
    padding-bottom: 70px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}
.solution-badge {
    background: rgba(224, 36, 36, 0.12);
    border: 1px solid rgba(224, 36, 36, 0.35);
    color: var(--accent-red);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 6px 16px;
    border-radius: 100px;
}
.solution-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5.5vw, 4.2rem);
    line-height: 1.08;
    color: #fff;
    max-width: 900px;
    margin: 0;
}
.solution-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 720px;
    line-height: 1.6;
    margin: 0;
}
.solution-cta-group {
    display: flex;
    gap: 16px;
    margin-top: 10px;
    flex-wrap: wrap;
    justify-content: center;
}
.breadcrumbs {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}
.breadcrumbs a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}
.breadcrumbs a:hover {
    color: #fff;
}
.breadcrumbs span {
    color: rgba(255, 255, 255, 0.3);
}

/* 4-Step Workflow Grid */
.workflow-section {
    padding: 60px 0;
}
.workflow-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 40px;
}
.workflow-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 30px 24px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.workflow-card:hover {
    border-color: rgba(224, 36, 36, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(224, 36, 36, 0.1);
}
.workflow-step-num {
    font-size: 2.2rem;
    font-weight: 900;
    font-family: var(--font-heading);
    color: rgba(224, 36, 36, 0.35);
    line-height: 1;
}
.workflow-card h3 {
    font-size: 1.2rem;
    color: #fff;
    margin: 0;
}
.workflow-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* Comparison Table / Old vs Mayom */
.comparison-section {
    padding: 60px 0;
}
.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 40px;
}
.comparison-card {
    border-radius: 18px;
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.comparison-old {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.comparison-mayom {
    background: rgba(224, 36, 36, 0.04);
    border: 1px solid rgba(224, 36, 36, 0.4);
    box-shadow: 0 0 30px rgba(224, 36, 36, 0.12);
}
.comparison-card h3 {
    font-size: 1.3rem;
    margin: 0;
}
.comparison-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.comparison-card li {
    font-size: 0.92rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.45;
}
.comparison-old li {
    color: #aaa;
}
.comparison-mayom li {
    color: #f0f0f0;
}

/* Industry Specific Bento Grid */
.industries-section {
    padding: 60px 0;
}
.industry-card {
    padding: 28px 24px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.industry-icon {
    font-size: 2rem;
}
.industry-card h4 {
    font-size: 1.15rem;
    color: #fff;
    margin: 0;
}
.industry-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}
