:root{
  --bg: #0b1220;
  --bg-rgb: 11, 18, 32;
  --card: #0f172a;
  --text: #ffffff; 
  --muted: #a5b4fc; 
  --primary: #7c3aed;
  --primary-rgb: 124, 58, 237;
  --accent: #06b6d4;
  --accent-rgb: 6, 182, 212;
  --brand: linear-gradient(135deg, #00f0ff 0%, #8e00ff 50%, #d417ff 100%);
  --radius-2xl: 1.25rem;
  --shadow-soft: 0 10px 30px rgba(0,0,0,.35);
}

/* Base Styles */
html, body{ height: 100%; scroll-behavior: smooth; }
body{
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  box-sizing: border-box; /* Ensure box model consistency */
}
*, *::before, *::after {
  box-sizing: inherit; /* Inherit box-sizing for all elements */
}

#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background:
        radial-gradient(1200px 800px at 10% -10%, rgba(var(--primary-rgb),.15), transparent 60%),
        radial-gradient(1200px 800px at 110% 20%, rgba(var(--accent-rgb),.12), transparent 60%),
        linear-gradient(180deg, #0b1220 0%, #0b1220 100%);
}

/* Navbar */
.navbar{
  background: rgba(11,18,32,.7);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  perspective: 1000px; /* Add perspective for 3D effect on children */
}

/* --- ▼▼▼ 3D Tilt Effect for Navbar Brand ▼▼▼ --- */
#brand-container {
  transform-style: preserve-3d;
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  will-change: transform;
}
#brand-logo { 
  height: 60px;
  object-fit: contain;
  transform: translateZ(10px); /* Lift the logo slightly */
}
#brand-name {
  font-family: 'Kaushan Script', cursive; /* Use the new font */
  font-size: 2.3rem; /* Adjusted size for better impact */
  background: var(--brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transform: translateZ(20px);
}
/* --- ▲▲▲ END of New Brand Effect Code ▲▲▲ --- */

.btn-brand {
    background: var(--brand);
    color: #fff;
    border: 0;
    border-radius: .9rem;
    box-shadow: var(--shadow-soft);
    position: relative; /* Crucial for positioning the swoosh */
    overflow: hidden;     /* Hides the swoosh when it's off-screen */
    z-index: 1;           /* Ensures button content stays on top */
}

.btn-brand:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

/* --- ▼▼▼ Light Swoosh Effect Code ▼▼▼ --- */
.btn-brand::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 120%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(-25deg); /* Tilts the shine effect */
    transition: left 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.btn-brand:hover::after {
    left: 150%;
}
/* --- ▲▲▲ END of New Effect Code ▲▲▲ --- */


/* Hero */
.hero{ position: relative; padding: 8rem 0 6rem; overflow: hidden; }
.hero h1{ font-family: 'Montserrat', sans-serif; font-weight: 800; letter-spacing: .5px; }
.glow{ background: var(--brand); -webkit-background-clip:text; background-clip:text; color: transparent; text-shadow: 0 8px 40px rgba(var(--primary-rgb),.35); }
.hero-card{ background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius-2xl); box-shadow: var(--shadow-soft); }

/* Border Reveal Hover Effect for Hero Card */
.hero-card { position: relative; transition: box-shadow 0.3s ease; }
.hero-card::before, .hero-card::after { content: ''; position: absolute; box-sizing: border-box; border-radius: var(--radius-2xl); pointer-events: none; }
.hero-card::before { top: 0; left: 50%; transform: translateX(-50%); width: 0; height: 100%; border-top: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transition: width 0.3s ease-out; }
.hero-card::after { left: 0; top: 50%; transform: translateY(-50%); height: 0; width: 100%; border-left: 2px solid var(--accent); border-right: 2px solid var(--accent); transition: height 0.3s ease-out 0.2s; }
.hero-card:hover::before { width: 100%; }
.hero-card:hover::after { height: 100%; }

/* --- ▼▼▼ Site-Wide Text Reveal Animation Styles ▼▼▼ --- */
@keyframes reveal-line {
  from { transform: translateY(110%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
/* Initial hidden states for all animated text */
.animated-headline .line { display: block; transform: translateY(110%); opacity: 0; }
.animated-headline .line-wrapper { display: block; overflow: hidden; }
.animated-paragraph, .animated-li, .animated-element { opacity: 0; }

/* Animation triggers for elements inside a revealed container */
.reveal.show .animated-headline .line,
.hero .animated-headline .line {  
    animation: reveal-line 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;  
}
.reveal.show .animated-paragraph,
.reveal.show .animated-li,
.reveal.show .animated-element,
.hero .animated-paragraph {  
    animation: fade-in-up 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;  
}

/* Staggered delays for Hero section */
.hero .animated-headline .line-wrapper:nth-child(2) .line { animation-delay: 0.15s; }
.hero .animated-headline .line-wrapper:nth-child(3) .line { animation-delay: 0.3s; }
.hero .animated-paragraph { animation-delay: 0.5s; }

/* Staggered delay helper classes */
.reveal.show .delay-1 { animation-delay: 0.1s !important; }
.reveal.show .delay-2 { animation-delay: 0.2s !important; }
.reveal.show .delay-3 { animation-delay: 0.3s !important; }
.reveal.show .delay-4 { animation-delay: 0.4s !important; }
.reveal.show .delay-5 { animation-delay: 0.5s !important; }
/* --- ▲▲▲ END of Text Animation ▲▲▲ --- */

/* Sections */
section{ padding: 5rem 0; }
.section-title{ font-family:'Montserrat',sans-serif; font-weight:800; }
.muted{ color: var(--muted); }

.service-card-link {
    text-decoration: none;
    display: block;
    height: 100%;
}
.service-card { position: relative; background: var(--card); border-radius: var(--radius-2xl); border: 1px solid rgba(255, 255, 255, .1); transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.4s ease; overflow: hidden; --glow-color: rgba(6, 182, 212, 0.4); --glow-border-color: rgba(6, 182, 212, 0.5); }
.service-card::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: 0; opacity: 0; transition: opacity 0.4s ease; border-radius: inherit; background: radial-gradient(400px circle at var(--mouse-x) var(--mouse-y), var(--glow-color), transparent 80%); }
.service-card::after { content: ''; position: absolute; left: 1px; top: 1px; width: calc(100% - 2px); height: calc(100% - 2px); z-index: 0; background: var(--card); border-radius: inherit; }
.service-card .card-content { position: relative; z-index: 1; }
.service-card-link:hover .service-card { transform: translateY(-5px); box-shadow: 0 10px 40px -10px var(--glow-border-color); border-color: var(--glow-border-color); }
.service-card-link:hover .service-card::before { opacity: 1; }
.service-card.web-dev { --glow-color: rgba(13, 110, 253, 0.4); --glow-border-color: rgba(13, 110, 253, 0.5); }
.service-card.app-dev { --glow-color: rgba(144, 238, 144, 0.4); --glow-border-color: rgba(144, 238, 144, 0.5); }
.service-card.ui-ux { --glow-color: rgba(255, 0, 0, 0.35); --glow-border-color: rgba(255, 0, 0, 0.4); }
.service-card.ai-ml { --glow-color: rgba(255, 215, 0, 0.35); --glow-border-color: rgba(255, 215, 0, 0.4); }
.service-card.logo-making { --glow-color: rgba(255, 0, 85, 0.4); --glow-border-color: rgba(255, 0, 85, 0.5); }
.service-card.poster-making { --glow-color: rgba(0, 255, 255, 0.35); --glow-border-color: rgba(0, 255, 255, 0.4); }
.service-card.reel-making { --glow-color: rgba(255, 192, 203, 0.5); --glow-border-color: rgba(255, 192, 203, 0.6); }
.service-card.video-editing { --glow-color: rgba(220, 220, 220, 0.3); --glow-border-color: rgba(220, 220, 220, 0.4); }
.service-card.card-design { --glow-color: rgba(255, 255, 0, 0.35); --glow-border-color: rgba(255, 255, 0, 0.4); }

/* Glow/Shadow Hover Effect for .glass-card */
.glass-card { background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius-2xl); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.glass-card:hover { transform: translateY(-8px); box-shadow: 0 10px 30px rgba(var(--primary-rgb), 0.3); }

.icon-pill{ width: 56px; height: 56px; border-radius: 14px; display:grid; place-items:center; background: radial-gradient(120% 120% at 20% 20%, rgba(255,255,255,.25), rgba(255,255,255,.06)); border: 1px solid rgba(255,255,255,.14); }
.web-dev-icon i { color: #0d6efd; } .app-dev-icon i { color: lightgreen; } .ui-ux-icon i { color: red; } .ai-ml-icon i { color: gold; } .poster-icon i { color: cyan; } .reel-icon i { color: pink; } .card-design-icon i { color: yellow; } .video-icon i { color: #dddddd; } .logo-icon i { background: linear-gradient(45deg, #007bff, #ff0055); -webkit-background-clip: text; background-clip: text; color: transparent; }

.project-card { position: relative; }
.project-card img{ border-top-left-radius: var(--radius-2xl); border-top-right-radius: var(--radius-2xl); transition: transform .5s ease; }
.project-card .tag{ font-size: .75rem; border:1px solid rgba(255,255,255,.18); border-radius: 999px; padding:.25rem .6rem; }
.project-card:hover img{ transform: scale(1.03); }

/* Layer Lift Hover Effect for About Card */
.about-stats-card { position: relative; z-index: 0; }
.about-stats-card::before, .about-stats-card::after { content: ''; position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius-2xl); transition: transform 0.3s ease-out, opacity 0.3s ease-out; }
.about-stats-card::before { z-index: -1; opacity: 0.6; }
.about-stats-card::after { z-index: -2; opacity: 0.3; }
.about-stats-card:hover { transform: translateY(-16px); box-shadow: none; }
.about-stats-card:hover::before { transform: translateY(8px); }
.about-stats-card:hover::after { transform: translateY(16px); }

/* Slide Glow Effect for Contact Form Card */
.contact-form-card { position: relative; overflow: hidden; }
.contact-form-card::after { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: linear-gradient( 110deg, transparent 40%, rgba(var(--accent-rgb), 0.25) 50%, transparent 60% ); transform: translateX(-100%); transition: transform 0.75s cubic-bezier(0.2, 1, 0.3, 1); pointer-events: none; }
.contact-form-card:hover::after { transform: translateX(100%); }

/* Cyan Glow for Quick Contact Card */
.quick-contact-card:hover { box-shadow: 0 10px 30px rgba(var(--accent-rgb), 0.3); }

/* Parallax Tilt Effect for Contact Details */
.contact-details-card {
    transform-style: preserve-3d;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    will-change: transform;
}
.contact-details-card .card-content-wrapper {
    transform: translateZ(30px);
    padding: 2.5rem;
}
.contact-details-card:hover {
    transform: none;  
    box-shadow: 0 15px 40px rgba(var(--accent-rgb), 0.3);
}

.form-control, .form-select{ background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); color: var(--text); }
.form-control:focus{ background: rgba(255,255,255,.08); color: #fff; border-color: #7c3aed; box-shadow: 0 0 0 .25rem rgba(var(--primary-rgb),.25); }
footer{ background: rgba(11,18,32,.7); border-top: 1px solid rgba(255,255,255,.08); }
.reveal{ opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.reveal.show{ opacity: 1; transform: translateY(0); }
.max-w-3xl{ max-width: 980px; } .max-w-6xl{ max-width: 1180px; }
.footer-icon, .social-icon{ width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,0.06); color: #fff; font-size: 1.2rem; transition: all 0.3s ease; border: 1px solid rgba(255,255,255,0.1); }
.footer-icon:hover, .social-icon:hover{ transform: translateY(-5px) scale(1.1); box-shadow: 0 8px 25px rgba(var(--primary-rgb),0.4); }
.social-icon.instagram:hover{ background: #E1306C; box-shadow: 0 8px 25px #E1306C70; }
.social-icon.telegram:hover{ background: #0088cc; box-shadow: 0 8px 25px #0088cc70; }
.navbar .nav-link { position: relative; transition: color 0.3s ease; color: #ffffff; }
.navbar .nav-link::after { content: ''; position: absolute; width: 0%; height: 2px; bottom: -4px; left: 0; background: var(--brand); transition: width 0.3s ease; border-radius: 2px; }
.navbar .nav-link:hover::after { width: 100%; }
.navbar .nav-link:hover { color: #00f0ff; }
.navbar .nav-link.active { color: #d417ff; }
.navbar .nav-link.active::after { width: 100%; }
.footer-icon.call-icon { color: #32cd32; } .footer-icon.call-icon:hover { background: rgba(50,205,50,0.2); box-shadow: 0 8px 25px rgba(50,205,50,0.4); }
.footer-icon.email-icon { color: #FFD700; } .footer-icon.email-icon:hover { background: rgba(255,215,0,0.2); box-shadow: 0 8px 25px rgba(255,215,0,0.4); }
.footer-icon.instagram-icon { color: #ff1493; } .footer-icon.instagram-icon:hover { background: rgba(255,20,147,0.2); box-shadow: 0 8px 25px rgba(255,20,147,0.4); }
.footer-icon.whatsapp-icon { color: #25D366; } .footer-icon.whatsapp-icon:hover { background: rgba(37,211,102,0.2); box-shadow: 0 8px 25px rgba(37,211,102,0.4); }


/* --- ▼▼▼ NEW: Animated Logo Showcase in Contact Card ▼▼▼ --- */

/* Keyframes for the subtle floating animation */
@keyframes float-animation {
  0% {
    transform: translateY(0px);
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.2));
  }
  50% {
    transform: translateY(-12px);
    filter: drop-shadow(0 20px 25px rgba(var(--accent-rgb), 0.25));
  }
  100% {
    transform: translateY(0px);
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.2));
  }
}

/* Container for the logo to enable 3D perspective */
.logo-showcase {
  perspective: 900px;
}

/* Styling and animation for the logo image */
.showcase-logo {
  max-width: 90%; /* Ensures the logo fits well inside the card */
  animation: float-animation 6s ease-in-out infinite;
  transition: transform 0.4s ease, filter 0.4s ease;
}

/* Enhances the 3D effect and glow when the card is hovered */
.quick-contact-card:hover .showcase-logo {
    transform: scale(1.05) translateZ(25px); /* Lifts the logo towards the viewer */
    filter: drop-shadow(0 25px 30px rgba(var(--accent-rgb), 0.35));
}

/* Adjusts padding on the card to give the logo more space */
.quick-contact-card {
    padding: 1.5rem !important;
}

/* --- ▲▲▲ END of New Code ▲▲▲ --- */

/* --- Animated Code Snippet Styles --- */
.code-showcase pre {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin: 0;
    white-space: pre-wrap;
    font-size: 0.9rem;
    line-height: 1.6;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.code-showcase code {
    font-family: 'Courier New', Courier, monospace;
    color: #f8f8f2;
}
.code-showcase .keyword { color: #ff79c6; }
.code-showcase .variable { color: #8be9fd; }
.code-showcase .class { color: #50fa7b; }
.code-showcase .method { color: #50fa7b; }
.code-showcase .property { color: #a5b4fc; }
.code-showcase .string { color: #f1fa8c; }
/* --- ▼▼▼ Neon Glow Reveal Effect (Updated) ▼▼▼ --- */
@keyframes neon-glow-reveal-animation {
    0% {
        opacity: 0;
        text-shadow: none;
        color: transparent;
    }
    70% {
        opacity: 1;
        color: var(--accent);
        text-shadow:
            0 0 5px var(--accent),
            0 0 10px var(--accent),
            0 0 20px var(--accent),
            0 0 40px var(--accent);
    }
    100% {
        opacity: 1;
        color: var(--muted); /* Final color for the paragraph */
        text-shadow: 0 0 2px rgba(var(--accent-rgb), 0.6); /* A faint final halo */
    }
}

.fire-reveal-text {
    opacity: 0; /* Starts hidden, waiting for animation */
}

/* This triggers the animation when it scrolls into view */
.reveal.show .fire-reveal-text,
.hero .fire-reveal-text {
    /* The hardcoded animation-delay was removed from here */
    animation: neon-glow-reveal-animation 2.5s ease-in-out forwards;
}
/* Add these to your list of delay helpers */
.reveal.show .delay-6 { animation-delay: 0.6s !important; }
.reveal.show .delay-7 { animation-delay: 0.7s !important; }
.reveal.show .delay-8 { animation-delay: 0.8s !important; }
/* --- ▼▼▼ Glitch Text Reveal Effect ▼▼▼ --- */
.glitch-text {
    position: relative;
    opacity: 0; /* Start hidden until reveal */
    color: var(--text);
}

/* The two pseudo-elements create the colored glitch layers */
.glitch-text::before,
.glitch-text::after {
    content: attr(data-text); /* Duplicates the text from the data-text attribute */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg);
    overflow: hidden;
    color: var(--text);
}

.glitch-text::before {
    left: 2px;
    text-shadow: -2px 0 var(--accent);
    clip-path: inset(50% 0 50% 0);
}

.glitch-text::after {
    left: -2px;
    text-shadow: -2px 0 #E1306C, 2px 2px var(--accent); /* Using pink and cyan for glitch colors */
    clip-path: inset(50% 0 50% 0);
}

/* Trigger animation when the .reveal.show class is added */
.reveal.show .glitch-text {
    opacity: 1;
    animation: glitch-main 1.5s 1; /* Run animation once */
}

.reveal.show .glitch-text::before {
    animation: glitch-pseudo 1.5s 1;
}

.reveal.show .glitch-text::after {
    animation: glitch-pseudo 1.5s 1 reverse; /* Run the same animation in reverse */
}

/* Keyframes for the slicing/clipping effect on the pseudo-elements */
@keyframes glitch-pseudo {
    0% { clip-path: inset(75% 0 5% 0); }
    5% { clip-path: inset(55% 0 25% 0); }
    10% { clip-path: inset(20% 0 60% 0); }
    15% { clip-path: inset(50% 0 30% 0); }
    20% { clip-path: inset(5% 0 75% 0); }
    25% { clip-path: inset(80% 0 5% 0); }
    30% { clip-path: inset(40% 0 45% 0); }
    35% { clip-path: inset(65% 0 10% 0); }
    40% { clip-path: inset(30% 0 50% 0); }
    45% { clip-path: inset(70% 0 15% 0); }
    50% { clip-path: inset(45% 0 40% 0); }
    55% { clip-path: inset(100% 0 0% 0); } /* Disappear */
    100% { clip-path: inset(100% 0 0% 0); }
}

/* Keyframes for the main text jumping/shaking */
@keyframes glitch-main {
    0% { transform: translate(0); }
    5% { transform: translate(-2px, 2px); }
    10% { transform: translate(2px, -2px); }
    15% { transform: translate(-2px, -2px); }
    20% { transform: translate(2px, 2px); }
    25% { transform: translate(0); }
    /* Pause for readability */
    100% { transform: translate(0); }
}
/* --- ▼▼▼ Light Sweep Reveal Effect ▼▼▼ --- */
.light-sweep-text {
    position: relative;
    overflow: hidden; /* Crucial for containing the sweep element */
    opacity: 0; /* Start hidden */
}

/* This pseudo-element is the light beam */
.light-sweep-text::after {
    content: '';
    position: absolute;
    top: -50%;
    left: 0;
    width: 40px; /* The width of the light beam */
    height: 200%;
    background: rgba(255, 255, 255, 0.3);
    filter: blur(15px); /* Softens the edges of the beam */
    transform: translateX(-150px) skewX(-25deg); /* Start off-screen to the left */
}

/* We use your existing fade-in-up animation for the text itself,
  ensuring it's readable as the effect plays over it.
*/
.reveal.show .light-sweep-text {
    animation: fade-in-up 0.8s forwards;
}

/* This triggers the sweep animation on the pseudo-element after the text
  has started fading in.
*/
.reveal.show .light-sweep-text::after {
    animation: light-sweep-animation 2s ease-in-out forwards;
    animation-delay: 0.2s;  
}

@keyframes light-sweep-animation {
    0% {
        transform: translateX(-150px) skewX(-25deg);
    }
    100% {
        /* Adjust the 600px value if your container is wider */
        transform: translateX(600px) skewX(-25deg);  
    }
}
/* --- ▼▼▼ Liquid Text Reveal Effect ▼▼▼ --- */
.liquid-text {
    opacity: 0;
    /* The combination of high contrast and blur creates the liquid/gooey look */
    filter: blur(8px) contrast(15);  
}

.reveal.show .liquid-text {
    animation: liquid-reveal-animation 2s ease-out forwards;
}

@keyframes liquid-reveal-animation {
    0% {
        opacity: 0.5;
        filter: blur(8px) contrast(15);
    }
    100% {
        opacity: 1;
        filter: blur(0) contrast(1);
    }
}
/* --- ▼▼▼ Masking Reveal Effect ▼▼▼ --- */
.mask-container {
    overflow: hidden; /* This acts as the mask */
    display: block;
}

.mask-reveal-text {
    display: block;
    transform: translateY(110%);
    opacity: 0;
    /* Adding a slight rotation for a more dynamic entry */
    transform: rotate(5deg) translateY(110%);  
    transform-origin: bottom left;
}

.reveal.show .mask-reveal-text {
    animation: mask-reveal-animation 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes mask-reveal-animation {
    from {
        transform: rotate(5deg) translateY(110%);
        opacity: 0;
    }
    to {
        transform: rotate(0) translateY(0);
        opacity: 1;
    }
}
/* --- Logo Modal Styles --- */
#logoModal .modal-dialog {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
}

#logoModal .modal-content {
    background-color: rgba(11, 18, 32, 0.85); /* Semi-transparent dark background */
    backdrop-filter: blur(10px);
}

.modal-close-btn {
    position: absolute;
    top: 1rem; /* Adjusted for better mobile placement */
    right: 1rem; /* Adjusted for better mobile placement */
    font-size: 1.5rem;
    z-index: 10;
    opacity: 0.8;
}
.modal-close-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

.modal-logo-image {
    max-width: 95vw; /* Adjusted for better mobile fit */
    max-height: 90vh; /* Adjusted for better mobile fit */
    object-fit: contain;
    border-radius: 1rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* Ensure project card image doesn't cover text */
.project-card .logo-thumbnail {
    aspect-ratio: 16 / 9;
    object-fit: cover;
}
/* --- Video Modal Styles --- */
#videoModal .modal-dialog {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
}

#videoModal .modal-content {
    background-color: rgba(11, 18, 32, 0.85); /* Semi-transparent dark background */
    backdrop-filter: blur(10px);
}

.modal-video {
    width: 100%;
    max-width: 95vw; /* Adjusted for better mobile fit */
    height: auto;
    max-height: 90vh; /* Adjusted for better mobile fit */
    border-radius: 1rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
/* --- ▼▼▼ Sparkle Button Effect ▼▼▼ --- */
.btn-sparkle {
    position: relative;
    overflow: hidden; /* This is crucial to contain the sparkles */
}

.btn-sparkle .sparkle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 0 5px white, 0 0 10px white, 0 0 15px white;
}

.btn-sparkle:hover .sparkle {
    animation: sparkle-animation 0.8s ease-in-out;
}

@keyframes sparkle-animation {
    0% {
        transform: scale(0) translateY(0);
        opacity: 0;
    }
    50% {
        transform: scale(1) translateY(-15px);
        opacity: 1;
    }
    100% {
        transform: scale(0) translateY(-30px);
        opacity: 0;
    }
}

/* Position and delay each sparkle for a random effect */
.btn-sparkle .sparkle:nth-of-type(1) { top: 80%; left: 15%; }
.btn-sparkle .sparkle:nth-of-type(2) { top: 20%; left: 30%; }
.btn-sparkle .sparkle:nth-of-type(3) { top: 70%; left: 55%; }
.btn-sparkle .sparkle:nth-of-type(4) { top: 30%; left: 80%; }
.btn-sparkle .sparkle:nth-of-type(5) { top: 50%; left: 95%; }
.btn-sparkle .sparkle:nth-of-type(6) { top: 10%; left: 5%; }

.btn-sparkle:hover .sparkle:nth-of-type(1) { animation-delay: 0.1s; }
.btn-sparkle:hover .sparkle:nth-of-type(2) { animation-delay: 0.3s; }
.btn-sparkle:hover .sparkle:nth-of-type(3) { animation-delay: 0.2s; }
.btn-sparkle:hover .sparkle:nth-of-type(4) { animation-delay: 0.5s; }
.btn-sparkle:hover .sparkle:nth-of-type(5) { animation-delay: 0.4s; }
.btn-sparkle:hover .sparkle:nth-of-type(6) { animation-delay: 0.15s; }
/* --- ▲▲▲ END of Sparkle Effect --- */

/* --- Services Section Header Font Styles --- */
#services .text-center .small {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    letter-spacing: 1.5px; /* Adds more space for a refined look */
}

#services .text-center .section-title {
    font-family: 'Kaushan Script', cursive; /* The eye-catching script font */
    font-size: 3.5rem; /* Increase font size for impact */
    font-weight: normal; /* Script fonts don't need bold */
    background: var(--brand);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    padding-bottom: 10px;
}

#services .text-center p.muted {
    font-style: italic; /* Adds an elegant touch to the subtitle */
    font-size: 1.1rem;
}

/* --- Portfolio Section Header Font Styles --- */
#portfolio .text-uppercase.small {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    letter-spacing: 1.5px; /* Adds refined spacing */
}

#portfolio .section-title {
    font-family: 'Kaushan Script', cursive; /* The eye-catching script font */
    font-size: 3.5rem; /* Increase font size for impact */
    font-weight: normal; /* Script fonts don't need to be bold */
}
/* --- About Section Font Styles --- */
#about .section-title {
    font-family: 'Kaushan Script', cursive; /* The eye-catching script font */
    font-size: 3.5rem;
    font-weight: normal;
}

#about p.glitch-text {
    font-size: 1.1rem; /* Slightly larger for better readability */
    line-height: 1.7;
}

#about ul li.glitch-text {
    font-size: 1.05rem; /* A small touch to the list items */
}

#about ul li i {
    color: var(--accent); /* Makes the checkmark icons pop */
}
/* --- Contact Section Header Font Styles --- */
#contact .section-title {
    font-family: 'Kaushan Script', cursive; /* The eye-catching script font */
    font-size: 3.1rem;
    font-weight: normal;
}

#contact p.muted {
    font-style: italic; /* Adds an elegant touch */
    font-size: 1.1rem;
}
/* --- Contact Details Card Font Styles --- */
.contact-details-card h5,
.contact-details-card h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700; /* Bold and clear headings */
    letter-spacing: 0.5px;
    color: var(--text);
}

.contact-details-card ul li {
    font-size: 1.05rem; /* Slightly larger for readability */
    transition: color 0.3s ease;
}

.contact-details-card ul li i {
    color: var(--accent); /* Makes the icons pop with your accent color */
    margin-right: 0.75rem; /* A bit more space after the icon */
    font-size: 1.2rem;
}

.contact-details-card p.small {
    font-size: 0.95rem; /* A cleaner size for the business hours */
    line-height: 1.6;
}
/* --- Hero Section Font Styles --- */
.hero h1 .glow {
    font-family: 'Kaushan Script', cursive; /* Use the eye-catching script font */
    font-weight: normal; /* Script fonts do not need to be bold */
    font-size: 1.2em; /* Makes the script word slightly larger and more impactful */
}

.hero p.lead {
    font-style: italic; /* Adds an elegant, refined touch to the main paragraph */
    line-height: 1.7; /* Increases space between lines for better readability */
}

/* --- Hero Section Core Expertise Card Styles --- */
.hero .glass-card h5 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700; /* Bold and clear heading */
    letter-spacing: 0.5px;
    color: var(--text);
}

.hero .glass-card .fw-medium {
    font-weight: 600; /* Makes the expertise text slightly bolder */
    font-size: 1.05rem;
}

.hero .glass-card p.small {
    font-style: italic; /* Adds an elegant touch to the final sentence */
    font-size: 0.95rem;
}
/* --- Animated Hide on Scroll Navbar --- */
.navbar.sticky-top {
    /* Animate the transform property for smooth sliding */
    transition: transform 0.4s ease-out;
}

.navbar-hidden {
    /* Moves the navbar up by its own height, hiding it */
    transform: translateY(-100%);
}

/* --- Service Card Font Styles --- */
.service-card h5 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700; /* Makes titles bold and clear */
    letter-spacing: 0.5px;
}

.service-card p.muted {
    font-size: 0.95rem; /* A clean, readable size for the description */
    line-height: 1.6;
}
/* --- Portfolio Project Card Font Styles --- */
.project-card h5 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700; /* Bold and clear project titles */
}

.project-card p.muted {
    font-size: 0.95rem; /* A clean, readable size for the description */
    line-height: 1.6;
}

/* --- Responsive Adjustments --- */

/* Small devices (phones, 576px and down) */
@media (max-width: 575.98px) {
    .navbar-brand #brand-logo {
        height: 45px; /* Smaller logo on small screens */
    }
    .navbar-brand #brand-name {
        font-size: 1.8rem; /* Smaller brand name */
    }
    .hero {
        padding: 6rem 0 4rem; /* Reduced padding for hero section */
    }
    .hero h1.display-5 {
        font-size: 2.5rem; /* Smaller heading for mobile */
    }
    .hero p.lead {
        font-size: 1rem; /* Adjust lead paragraph size */
    }
    .hero-card, .glass-card {
        padding: 1.5rem; /* Smaller padding for cards */
    }
    section {
        padding: 3rem 0; /* Reduced section padding */
    }
    #services .text-center .section-title,
    #portfolio .section-title,
    #about .section-title,
    #contact .section-title {
        font-size: 2.5rem; /* Smaller section titles */
    }
    #services .text-center p.muted,
    #contact p.muted {
        font-size: 0.95rem; /* Adjust subtitle size */
    }
    #about p.glitch-text,
    #about ul li.glitch-text,
    .contact-details-card ul li {
        font-size: 0.9rem; /* Adjust text sizes */
    }
    .footer-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    footer .light-sweep-text {
        font-size: 0.8rem; /* Smaller footer text */
        text-align: center;
        width: 100%;
        margin-top: 10px;
    }
    .contact-details-card .card-content-wrapper {
        padding: 1.5rem; /* Smaller padding for contact card */
    }
    .btn-brand, .btn-outline-light {
        font-size: 0.9rem;
        padding: 0.6rem 1rem;
    }
    .modal-close-btn {
        top: 0.5rem;
        right: 0.5rem;
        font-size: 1.2rem;
    }
}

/* Medium devices (tablets, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .navbar-brand #brand-logo {
        height: 50px;
    }
    .navbar-brand #brand-name {
        font-size: 2rem;
    }
    .hero h1.display-5 {
        font-size: 3rem;
    }
    .hero-card, .glass-card {
        padding: 2rem;
    }
    section {
        padding: 4rem 0;
    }
    #services .text-center .section-title,
    #portfolio .section-title,
    #about .section-title,
    #contact .section-title {
        font-size: 3rem;
    }
    #services .text-center p.muted,
    #contact p.muted {
        font-size: 1rem;
    }
    #about p.glitch-text,
    #about ul li.glitch-text,
    .contact-details-card ul li {
        font-size: 1rem;
    }
    .footer-icon {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
    }
    footer .light-sweep-text {
        font-size: 0.9rem;
    }
    .contact-details-card .card-content-wrapper {
        padding: 2rem;
    }
}

/* Large devices (desktops, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .navbar-brand #brand-logo {
        height: 55px;
    }
    .navbar-brand #brand-name {
        font-size: 2.1rem;
    }
    .hero h1.display-5 {
        font-size: 3.5rem;
    }
    #services .text-center .section-title,
    #portfolio .section-title,
    #about .section-title,
    #contact .section-title {
        font-size: 3.2rem;
    }
    .contact-details-card .card-content-wrapper {
        padding: 2.5rem;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .navbar-brand #brand-logo {
        height: 60px;
    }
    .navbar-brand #brand-name {
        font-size: 2.3rem;
    }
    .hero h1.display-5 {
        font-size: 4rem; /* Keep original large size */
    }
    #services .text-center .section-title,
    #portfolio .section-title,
    #about .section-title,
    #contact .section-title {
        font-size: 3.5rem; /* Keep original large size */
    }
    footer .light-sweep-text {
        font-size: 1rem; /* Keep original size */
    }
}

/* Ensure images in project cards are responsive */
.project-card img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Generic responsiveness for modals (though already good) */
.modal-dialog {
    margin: 0.5rem; /* Small margin for phones */
}
@media (min-width: 576px) {
    .modal-dialog {
        max-width: 500px;
        margin: 1.75rem auto;
    }
}
@media (min-width: 992px) {
    .modal-dialog {
        max-width: 800px;
    }
}
/* Ensure project image paths are relative */
.project-card .logo-thumbnail[src^="D:\\"] {
    /* Handle local paths gracefully or replace with web-accessible ones */
    /* For now, just ensuring it doesn't break layout */
    object-fit: contain; /* or 'cover' depending on desired cropping */
}
/* --- Center Footer Icons on Mobile (Revised Fix) --- */
@media (max-width: 767.98px) {
    footer .container {
        /* Force items to stack vertically on top of each other */
        flex-direction: column !important;  
    }
    
    /* Center the copyright text content */
    footer .container > div:first-child {
        text-align: center;
    }
}
/* --- Apply Brand Gradient to Section Titles --- */
#portfolio .section-title,
#about .section-title,
#contact .section-title {
    background: var(--brand);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* FIX: This ensures the "glitch" animation still works correctly on the About title */
#about .section-title.glitch-text::before,
#about .section-title.glitch-text::after {
    color: var(--text);
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
}
/* --- Increase Footer Logo Size --- */
footer .container img {
  height: 40px !important;
}
/* --- Service Card Sparkle Effect --- */
.service-card {
    position: relative; /* Ensure position for absolute sparkles */
    overflow: hidden; /* Crucial to hide sparkles when outside the card */
}

.service-card .sparkle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 0 6px white, 0 0 12px white, 0 0 18px white;
    z-index: 1; /* Ensures sparkles are above the glow but below content */
}

/* This is the animation the sparkles will use */
@keyframes service-sparkle-animation {
    0% {
        transform: scale(0) translateY(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) translateY(-25px);
        opacity: 1;
    }
    100% {
        transform: scale(0) translateY(-50px);
        opacity: 0;
    }
}

/* This triggers the animation when you hover over the card's link */
.service-card-link:hover .service-card .sparkle {
    animation: service-sparkle-animation 1s ease-in-out forwards; /* 'forwards' keeps the last state */
}

/* This positions each sparkle randomly and gives it a unique delay */
.service-card .sparkle:nth-of-type(1) { top: 90%; left: 10%; animation-delay: 0.1s; }
.service-card .sparkle:nth-of-type(2) { top: 20%; left: 85%; animation-delay: 0.3s; }
.service-card .sparkle:nth-of-type(3) { top: 60%; left: 40%; animation-delay: 0.2s; }
.service-card .sparkle:nth-of-type(4) { top: 30%; left: 20%; animation-delay: 0.5s; }
.service-card .sparkle:nth-of-type(5) { top: 75%; left: 70%; animation-delay: 0.4s; }

/* Prevent image dragging and selection for logo thumbnails */
#logo-projects .logo-thumbnail {
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none;    /* Firefox */
    -ms-user-select: none;     /* IE 10+ */
    user-select: none;         /* Standard */
    -webkit-user-drag: none;   /* Safari */
    -moz-user-drag: none;      /* Firefox */
    -ms-user-drag: none;       /* IE */
    user-drag: none;           /* Standard */
    pointer-events: auto;      /* Ensure click events still work if needed */
}
/* Prevent image dragging and selection for protected portfolio images */
#logo-projects .logo-thumbnail,
#poster-projects .logo-thumbnail,
#card-design-projects .logo-thumbnail {
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none;    /* Firefox */
    -ms-user-select: none;     /* IE 10+ */
    user-select: none;         /* Standard */
    -webkit-user-drag: none;   /* Safari */
    -moz-user-drag: none;      /* Firefox */
    -ms-user-drag: none;       /* IE */
    user-drag: none;           /* Standard */
}
/* --- Logo Modal Styles --- */
#logoModal .modal-dialog {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
}

/* --- USE THIS CORRECTED CODE INSTEAD --- */
#logoModal .modal-content {
    background-color: rgba(11, 18, 32, 0.85); /* Keeps your blur effect */
    backdrop-filter: blur(10px);
}

/* This new rule ensures the image inside the modal is centered */
#logoModal .modal-body {
    height: 100vh; /* Make the container full-height */
}

/* --- Dynamic Spotlight Text --- */
.spotlight-text-dynamic {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    
    /* FIX: The font size now scales more gently.
    I've changed "12vw" to "9vw" and the minimum size to "2.5rem".
    This ensures the text gets smaller on narrower screens.
    */
    font-size: clamp(2.5rem, 9vw, 10rem);
    
    user-select: none;
    cursor: default;
    white-space: nowrap;
    
    background-image:
        url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 150 150"%3E%3Cfilter id="n"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="4" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%" height="100%" filter="url(%23n)"/%3E%3C/svg%3E'),
        linear-gradient(to right, #4a4a4a, #3a3a4a);

    background-size: 150px 150px, 100% 100%;
    
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;

    -webkit-mask-image: radial-gradient(
        circle at var(--x, 50%) var(--y, 50%),
        black 10%, 
        rgba(0,0,0,0.2) 25%,
        transparent 40%
    );
    mask-image: radial-gradient(
        circle at var(--x, 50%) var(--y, 50%),
        black 10%, 
        rgba(0,0,0,0.2) 25%,
        transparent 40%
    );
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}


/* =========================================
   ULTIMATE ROBOT CSS
   ========================================= */
#ai-widget-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    font-family: 'Poppins', sans-serif;
}

/* --- Robot Character Animation --- */
.robot-wrapper {
    width: 80px;
    height: 110px;
    cursor: pointer;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    transition: transform 0.3s ease;
}
.robot-wrapper:hover { transform: scale(1.1) translateY(-5px); }

/* Tooltip bubble */
.robot-tooltip {
    position: absolute;
    top: -30px;
    background: white;
    color: #0b1220;
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    opacity: 0;
    transform: translateY(10px);
    animation: tooltipPop 3s infinite 2s; /* Delays start */
    pointer-events: none;
}
@keyframes tooltipPop {
    0%, 100% { opacity: 0; transform: translateY(10px); }
    10%, 90% { opacity: 1; transform: translateY(0); }
}

.robot-character {
    position: relative;
    z-index: 2;
    animation: floatRobot 3.5s ease-in-out infinite;
}

@keyframes floatRobot {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Antenna */
.antenna { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; }
.antenna .ball { width: 8px; height: 8px; background: #ff0055; border-radius: 50%; animation: blinkRed 1.5s infinite; box-shadow: 0 0 8px #ff0055; }
.antenna .stick { width: 2px; height: 12px; background: #a5b4fc; }

/* Head */
.head {
    width: 50px; height: 38px;
    background: linear-gradient(135deg, #e0e7ff, #a5b4fc);
    border-radius: 14px;
    border: 2px solid #ffffff;
    position: relative;
    z-index: 2;
    display: flex; justify-content: center; align-items: center; flex-direction: column;
    box-shadow: inset 0 -4px 6px rgba(0,0,0,0.1);
}

/* Eyes */
.eyes { display: flex; gap: 8px; margin-top: 5px; }
.eye { width: 10px; height: 10px; background: #0b1220; border-radius: 50%; animation: robotBlink 4s infinite; position: relative; overflow: hidden; }
.eye::after { content: ''; width: 3px; height: 3px; background: white; border-radius: 50%; position: absolute; top: 2px; right: 2px; }

/* Mouth */
.mouth { width: 18px; height: 3px; background: #0b1220; margin-top: 4px; border-radius: 2px; opacity: 0.7; }

/* Body */
.body {
    width: 42px; height: 38px;
    background: linear-gradient(135deg, #4f46e5, #4338ca);
    border-radius: 10px;
    margin: -6px auto 0; /* Neck overlap */
    position: relative;
    z-index: 1;
    display: flex; justify-content: center; align-items: center;
    border: 2px solid #ffffff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Chest Screen */
.chest-screen {
    width: 26px; height: 18px;
    background: #0b1220;
    border-radius: 4px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid rgba(255,255,255,0.2);
}
.heartbeat { width: 12px; height: 2px; background: #00f0ff; animation: heartbeat 1.2s infinite; box-shadow: 0 0 6px #00f0ff; }

/* Arms */
.arms { width: 100%; position: absolute; top: 48px; }
.arm {
    width: 10px; height: 28px;
    background: #a5b4fc;
    position: absolute;
    border-radius: 10px;
    border: 1px solid white;
    z-index: 0;
}
.arm.left { left: 5px; transform: rotate(25deg); transform-origin: top; animation: waveLeft 3s infinite; }
.arm.right { right: 5px; transform: rotate(-25deg); transform-origin: top; }

/* Pulse Ring on Floor */
.pulse-ring {
    position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
    width: 60px; height: 20px;
    background: rgba(0, 240, 255, 0.4);
    border-radius: 50%;
    filter: blur(6px);
    z-index: 0;
    animation: pulseShadow 2s infinite;
}

/* Animations */
@keyframes robotBlink { 0%, 96%, 100% { transform: scaleY(1); } 98% { transform: scaleY(0.1); } }
@keyframes blinkRed { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
@keyframes heartbeat { 0% { width: 4px; opacity: 0.5; } 20% { width: 18px; opacity: 1; } 40% { width: 4px; opacity: 0.5; } 100% { width: 4px; opacity: 0.5; } }
@keyframes waveLeft { 0%, 100% { transform: rotate(25deg); } 50% { transform: rotate(45deg); } }
@keyframes pulseShadow { 0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.6; } 50% { transform: translateX(-50%) scale(1.4); opacity: 0.2; } }

/* --- Chat Window --- */
#ai-chat-window {
    position: absolute; bottom: 120px; right: 0; width: 360px; height: 550px;
    background: rgba(11, 18, 32, 0.95); backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 20px;
    display: flex; flex-direction: column;
    transform-origin: bottom right; transform: scale(0); opacity: 0;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
    overflow: hidden;
}
#ai-chat-window.active { transform: scale(1); opacity: 1; }

.chat-header { padding: 15px; background: rgba(255, 255, 255, 0.05); border-bottom: 1px solid rgba(255, 255, 255, 0.1); display: flex; justify-content: space-between; align-items: center; }
.robot-head-icon { width: 30px; height: 24px; background: #e0e7ff; border-radius: 8px; position: relative; display: flex; justify-content: center; align-items: center; gap: 4px; }
.robot-head-icon .eye-icon { width: 6px; height: 6px; background: #0b1220; border-radius: 50%; }

.chat-body { flex: 1; padding: 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 15px; scrollbar-width: thin; }

.message { max-width: 85%; font-size: 0.9rem; line-height: 1.5; animation: slideIn 0.3s ease; }
.bot-message { align-self: flex-start; }
.bot-message .msg-content { background: rgba(255, 255, 255, 0.1); color: #e2e8f0; padding: 12px 16px; border-radius: 12px 12px 12px 0; border-left: 3px solid var(--accent); }
.user-message { align-self: flex-end; }
.user-message .msg-content { background: var(--brand); color: white; padding: 12px 16px; border-radius: 12px 12px 0 12px; }
.msg-time { font-size: 0.7rem; color: rgba(255,255,255,0.4); margin-top: 4px; }

.chat-footer { padding: 15px; background: rgba(0,0,0,0.3); }
.glass-input-group { background: rgba(255,255,255,0.08); border-radius: 25px; padding: 2px; border: 1px solid rgba(255,255,255,0.1); display: flex; }
#chat-input { background: transparent; border: none; color: white; box-shadow: none; padding-left: 15px; }
.btn-icon { color: var(--accent); border-radius: 50%; width: 40px; height: 40px; display: grid; place-items: center; }

@keyframes slideIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Mobile */
@media (max-width: 576px) {
    #ai-chat-window { width: 92vw; right: 4vw; bottom: 130px; height: 60vh; }
}