/* Modern dark theme with enhanced styling */
:root {
    --primary: #8b5cf6;
    --secondary: #6366f1;
    --accent: #a855f7;
    --dark: #0a0a1a;
    --darker: #070712;
    --light: #e0e0e0;
    --lighter: #f8fafc;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--dark);
    color: var(--light);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* --- NEW: Professional Intro Animation --- */
#intro-sequence {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #070712;
    background-image: radial-gradient(ellipse at top left, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
                      radial-gradient(ellipse at bottom right, rgba(99, 102, 241, 0.1) 0%, transparent 50%);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1s cubic-bezier(0.76, 0, 0.24, 1), visibility 1s;
    transition-delay: 0.5s; /* Delay the fade out */
}

#intro-sequence.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.intro-content {
    text-align: center;
    position: relative;
    opacity: 0;
    animation: fadeInContent 1s 0.2s forwards;
}

@keyframes fadeInContent {
    to { opacity: 1; }
}

.intro-svg {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    stroke: var(--primary);
    stroke-width: 1.5;
    fill: none;
    filter: drop-shadow(0 0 5px rgba(139, 92, 246, 0));
    animation: glowIn 1s ease-out 1.5s forwards;
}

.intro-svg .logo-path {
    stroke-dasharray: 1000; /* A large value to cover the path length */
    stroke-dashoffset: 1000;
    animation: drawIn 1.5s cubic-bezier(0.68, -0.55, 0.27, 1.55) 0.5s forwards;
}

.intro-svg .logo-fill {
    fill: var(--primary);
    opacity: 0;
    animation: fillIn 0.5s ease-out 2s forwards;
}

.intro-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 4.5rem;
    font-weight: 400; /* Bebas Neue is already bold */
    color: white;
    letter-spacing: 0.5em; /* Start with wide spacing */
    opacity: 0;
    transform: translateY(20px);
    animation: titleAppear 1s cubic-bezier(0.16, 1, 0.3, 1) 1.8s forwards;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0), 
                 0 0 15px rgba(139, 92, 246, 0), 
                 0 0 30px rgba(139, 92, 246, 0);
}

.intro-subtitle {
    font-size: 1.2rem;
    color: var(--secondary);
    opacity: 0;
    transform: translateY(10px);
    animation: subtitleAppear 0.8s ease-out 2.5s forwards;
}

/* NEW: Intro Loader */
.intro-loader {
    width: 200px;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin: 2.5rem auto 0;
    overflow: hidden;
    opacity: 0;
    animation: loaderAppear 0.5s ease-out 0.5s forwards;
}

.intro-loader-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 3px;
    animation: loadingProgress 3s cubic-bezier(0.4, 0, 0.2, 1) 0.5s forwards;
}

@keyframes loaderAppear {
    to { opacity: 1; }
}

@keyframes loadingProgress {
    from { width: 0%; }
    to { width: 100%; }
}


/* Keyframes for the intro animation */
@keyframes drawIn {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes glowIn {
    to {
        filter: drop-shadow(0 0 15px rgba(139, 92, 246, 0.7));
    }
}

@keyframes fillIn {
    to {
        opacity: 0.15; /* A subtle, glowing fill */
    }
}

@keyframes titleAppear {
    to {
        opacity: 1;
        letter-spacing: 0.1em; /* Animate to normal spacing for Bebas Neue */
        transform: translateY(0);
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.5), 
                     0 0 15px rgba(139, 92, 246, 0.7), 
                     0 0 30px rgba(139, 92, 246, 0.5);
    }
}

@keyframes subtitleAppear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile optimization for intro */
@media (max-width: 768px) {
    .intro-title {
        font-size: 3.5rem;
    }
    .intro-svg {
        width: 80px;
        height: 80px;
    }
}
/* --- End of New Intro Animation Styles --- */


/* Gradient text for highlights */
.gradient-text {
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: gradient-shift 5s ease infinite;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Animation for elements fading in on scroll */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced glassmorphism effect */
.glass-card {
    background: linear-gradient(145deg, rgba(20, 20, 40, 0.7), rgba(10, 10, 25, 0.5));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    transition: all 0.4s ease;
    box-shadow: 0 8px 32px rgba(0, 5, 15, 0.3);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    background: linear-gradient(45deg, var(--primary), var(--accent), var(--secondary), var(--primary));
    z-index: -1;
    border-radius: 1.5rem;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.glass-card:hover::before {
    opacity: 0.3;
}

.glass-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.3);
    border-color: rgba(139, 92, 246, 0.3);
}

/* Spline container styling */
#spline-hero {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.7;
    transition: opacity 0.5s ease;
}

.spline-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.spline-container spline-viewer {
    width: 100%;
    height: 100%;
    display: block;
}

/* Custom button styling */
.cta-button {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: none;
}

.cta-button::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: rgba(255,255,255,0.1);
    transform: rotate(30deg) translate(-20px, -40px);
    transition: all 0.6s ease;
}

.cta-button:hover::after {
    transform: rotate(30deg) translate(20px, 40px);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.6);
}

/* Header styling */
.header-glass {
    background: rgba(10, 10, 20, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

/* Section spacing */
.section-padding {
    padding: 8rem 1.5rem;
}

@media (min-width: 768px) {
    .section-padding {
        padding: 10rem 1.5rem;
    }
}

/* Hero section */
.hero-section {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    background: radial-gradient(ellipse at center, rgba(0,0,0,0) 0%, rgba(0,0,0,0.8) 70%);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Particle background */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -2;
}

/* Floating animation */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

.floating {
    animation: float 6s ease-in-out infinite;
}

/* Wave divider */
.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.wave-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 150px;
}

/* Progress indicator */
.progress-container {
    width: 100%;
    height: 4px;
    background: transparent;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
}

.progress-bar {
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    width: 0%;
    transition: width 0.2s ease;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
    z-index: 99;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Form input styling */
.form-input {
    background: rgba(15, 15, 30, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

/* Tech grid pattern */
.tech-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(99, 102, 241, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: -1;
    opacity: 0.3;
}

/* --- NEW: Our Process Section Styles --- */
.process-line {
    position: absolute;
    top: 50px; /* Aligns with the center of the icons */
    left: 12.5%; 
    width: 75%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.3) 20%, rgba(99, 102, 241, 0.3) 80%, transparent);
    z-index: 0;
}

.process-card {
    background: linear-gradient(145deg, rgba(20, 20, 40, 0.3), rgba(10, 10, 25, 0.2));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    padding: 2rem;
    text-align: center;
    position: relative;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: visible; /* Allows the number to pop out */
}

.process-card:hover {
    transform: translateY(-10px) scale(1.05);
    background: linear-gradient(145deg, rgba(20, 20, 40, 0.7), rgba(10, 10, 25, 0.5));
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.2);
}

.process-icon-wrapper {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    border-radius: 50%;
    background: var(--darker);
    border: 2px solid rgba(99, 102, 241, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.4s ease;
}

.process-card:hover .process-icon-wrapper {
    border-color: var(--primary);
    transform: rotate(15deg);
}

.process-step-number {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, var(--primary), var(--accent));
    border-radius: 50%;
    color: white;
    font-weight: bold;
    font-size: 1rem;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    border: 2px solid var(--dark);
    transition: transform 0.3s ease;
}

.process-card:hover .process-step-number {
    transform: scale(1.2);
}

/* New Projects Section Styles */
.projects-section {
    background: linear-gradient(to bottom, var(--dark) 0%, var(--darker) 100%);
    position: relative;
    overflow: hidden;
}

.project-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    background: rgba(15, 15, 30, 0.5);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: var(--light);
    padding: 0.5rem 1.5rem;
    border-radius: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn.active, .filter-btn:hover {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: white;
    border-color: transparent;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.project-card {
    background: linear-gradient(145deg, rgba(20, 20, 40, 0.7), rgba(10, 10, 25, 0.5));
    border-radius: 1.5rem;
    overflow: hidden;
    transition: opacity 0.4s ease, transform 0.4s ease;
    display: flex; /* Add flex display */
    flex-direction: column; /* Stack content vertically */
    height: 100%; /* FIX: Ensure card takes full height of grid cell */
}

/* This class handles the fade/scale animation */
.project-card.hiding {
    transform: scale(0.9);
    opacity: 0;
    pointer-events: none;
}

/* This class removes the card from the layout completely */
.project-card.hidden-project {
    display: none;
}

.project-card-inner {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-image {
    position: relative;
    height: 250px;
    overflow: hidden;
    background-color: var(--darker);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.8s ease;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(10, 10, 26, 0.9) 0%, transparent 50%);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-content {
    background: rgba(10, 10, 26, 0.7);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    flex-grow: 1; /* Allow content to grow and fill space */
    display: flex; /* Use flexbox for internal alignment */
    flex-direction: column; /* Stack content vertically */
}

.project-content p {
    flex-grow: 1; /* Allow paragraph to take up available space */
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.project-tag {
    background: rgba(99, 102, 241, 0.2);
    color: var(--secondary);
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.4);
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-card.video-card .project-overlay,
.project-card.image-card .project-overlay {
    opacity: 1;
    cursor: pointer;
    background: linear-gradient(to top, rgba(10, 10, 26, 0.9) 0%, transparent 70%);
}

.project-card .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.8);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.project-card:hover .play-icon {
    opacity: 1;
}

/* --- NEW: Testimonials Scrolling Animation --- */
@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.scrolling-wrapper {
    overflow: hidden;
    position: relative;
    padding: 2rem 0;
    -webkit-mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
    mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
}

.testimonials-grid {
    display: flex;
    width: max-content;
    animation: marquee 60s linear infinite;
}

.testimonial-card {
    width: 400px;
    flex-shrink: 0;
    margin-right: 2rem;
    position: relative;
}

.testimonial-card-inner {
    background: linear-gradient(145deg, rgba(20, 20, 40, 0.7), rgba(10, 10, 25, 0.5));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    padding: 2.5rem;
    height: 100%;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.testimonial-card:hover .testimonial-card-inner {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.testimonial-card-inner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 1.5rem;
    border: 2px solid transparent;
    background: linear-gradient(45deg, var(--primary), var(--accent)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.testimonial-card:hover .testimonial-card-inner::before {
    opacity: 1;
}

/* --- End of Testimonials Scrolling --- */

.testimonial-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.client-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 1rem;
    border: 2px solid var(--primary);
}

.client-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.client-info h4 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.client-info p {
    color: var(--secondary);
    font-size: 0.9rem;
}

.testimonial-content {
    position: relative;
}

.testimonial-content .fa-quote-left {
    position: absolute;
    top: -1rem;
    left: -1rem;
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.05);
    z-index: -1;
}

.testimonial-content p {
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.testimonial-rating {
    color: #fbbf24;
    font-size: 1.1rem;
}

.testimonial-stats {
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    margin-top: 1.5rem;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--light);
    opacity: 0.7;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--secondary);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

/* Glowing animation for featured cards */
@keyframes glow {
    0% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(139, 92, 246, 0); }
    100% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0); }
}

.featured-card {
    animation: glow 3s infinite;
}

/* === NEW: Mobile Experience Enhancements === */
@media (max-width: 768px) {
    .hero-section {
        min-height: 90vh; /* Make hero slightly shorter */
    }

    .hero-text {
        font-size: 2.25rem; /* Smaller hero text */
        line-height: 1.2;
    }
    
    .service-grid {
        grid-template-columns: 1fr;
    }
    
    .section-padding {
        padding: 4rem 1rem; /* Reduced padding for all sections */
    }

    .section-title {
        font-size: 1.75rem; /* Smaller section titles */
    }

    .section-subtitle {
        font-size: 1rem; /* Smaller subtitles */
    }

    .process-card {
        padding: 1.5rem; /* Tighter padding on process cards */
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-card {
        width: calc(100vw - 4rem); /* Make testimonial cards fit screen */
        max-width: 320px;
    }

    /* Better positioning and sizing for chat modal on mobile */
    #chat-modal {
        right: 15px;
        bottom: 80px;
        width: calc(100% - 30px);
        max-width: 400px;
        max-height: 65vh;
    }

    #faq-fab {
        bottom: 15px;
        right: 15px;
    }
}

/* SOLUTION: Watermark cover for the Spline logo */
.watermark-cover {
    position: absolute;
    bottom: -2px; 
    left: 0;
    width: 100%;
    height: 80px; /* Increased height for full coverage */
    background: linear-gradient(to right, #69204E, #621F21);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 15;
    pointer-events: auto;
    mask-image: linear-gradient(to top, black 75%, transparent 100%);
    -webkit-mask-image: linear-gradient(to top, black 75%, transparent 100%);
}

.view-toggle-btn {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: none;
    color: white;
    font-weight: bold;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    cursor: pointer;
    margin-top: 3rem;
}
.view-toggle-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.6);
}

.creator-link {
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-block;
}

.creator-link:hover {
    transform: scale(1.1);
    filter: brightness(1.2);
}

/* --- UPDATED: FAQ Bot Styles --- */
.faq-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

#faq-fab {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(139, 92, 246, 0.4);
    transition: all 0.3s ease;
    z-index: 1001; /* Ensure button is on top of pulse */
    animation: pulse-glow 2s infinite;
}
#faq-fab:hover {
    transform: scale(1.1) rotate(15deg);
    animation-play-state: paused;
}

@keyframes pulse-glow {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(139, 92, 246, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(139, 92, 246, 0);
    }
}

#faq-callout {
    position: absolute;
    right: 75px; /* Position to the left of the FAB */
    background-color: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    white-space: nowrap;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

#faq-callout.visible {
    opacity: 1;
    transform: translateX(0);
}

#chat-modal {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 90%;
    max-width: 400px;
    height: 60vh;
    max-height: 500px;
    background: var(--darker);
    border-radius: 1.5rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 999;
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
#chat-modal.visible {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
}

.chat-header {
    background: var(--dark);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.chat-header h4 {
    font-weight: bold;
    color: white;
}
#close-chat {
    background: none;
    border: none;
    color: var(--light);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
}
#close-chat:hover {
    color: var(--primary);
}

.chat-messages {
    flex-grow: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.chat-message {
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    max-width: 80%;
    line-height: 1.5;
}
.user-message {
    background: var(--primary);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 0.25rem;
    animation: slideInFromRight 0.4s ease-out;
}
.bot-message {
    background: #1a1a2e;
    color: var(--light);
    align-self: flex-start;
    border-bottom-left-radius: 0.25rem;
    animation: slideInFromLeft 0.4s ease-out;
}

.bot-message ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-top: 0.5rem;
}

.bot-message a {
    color: var(--secondary);
    text-decoration: underline;
}
.bot-message a:hover {
    color: var(--primary);
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.chat-input-area {
    padding: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    gap: 0.5rem;
}
#chat-input {
    flex-grow: 1;
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 2rem;
    padding: 0.5rem 1rem;
    color: white;
    outline: none;
}
#chat-input:focus {
    border-color: var(--primary);
}
#send-btn {
    background: var(--primary);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
}
#send-btn:hover {
    background: var(--accent);
}
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.75rem 1rem;
}
.typing-indicator span {
    width: 8px;
    height: 8px;
    background-color: var(--secondary);
    border-radius: 50%;
    animation: bounce 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 bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1.0); }
}

/* Styles for lead capture form inside chat */
.bot-message .form-input {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}
.bot-message .form-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.3);
}

/* --- NEW: Project Modal Styles --- */
.project-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.project-modal.visible {
    opacity: 1;
    visibility: visible;
}
.project-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    width: 1000px;
    background: var(--darker);
    border-radius: 1rem;
    box-shadow: 0 10px 50px rgba(0,0,0,0.5);
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}
.project-modal.visible .project-modal-content {
    transform: scale(1);
}
.project-modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1101;
}
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.image-container img {
    width: 100%;
    height: auto;
    max-height: 90vh;
    object-fit: contain;
    display: block;
}

