/* Fonts loaded via <link> in HTML for better performance */

:root {
  --color-dark: #070F1E;       
  --color-white: #ffffff;
  --color-light: #f1f5f9;
  --color-accent: #E31837;     
  --color-accent-hover: #b9122c;
  --color-text: #1E293B;
  --color-text-muted: #475569;
  --font-main: 'Inter', sans-serif;
  --font-heading: 'Montserrat', sans-serif;
  --max-width: 1440px;
  --transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  --shadow-premium: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 35px 60px -15px rgba(0, 0, 0, 0.12);
  --header-padding: 1.2rem;
}

/* Base Responsive Typography */
@media (max-width: 480px) {
  :root {
    --header-padding: 0.8rem;
  }
  h1 { font-size: 2.2rem !important; }
  h2 { font-size: 1.8rem !important; }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden !important;
  position: relative;
}

body {
  font-family: var(--font-main);
  background-color: var(--color-white);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-dark);
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 8rem 0;
}

.section-dark {
  background-color: var(--color-dark);
  color: var(--color-white);
}

.section-dark h2, .section-dark h3, .section-dark p {
  color: var(--color-white);
}

.section-light {
  background-color: var(--color-light);
}

.text-center {
  text-align: center;
}

.grid {
  display: grid;
  gap: 3rem;
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
}

@media (max-width: 1200px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .section { padding: 6rem 0; }
}

@media (max-width: 768px) {
  .container { padding: 0 1.5rem; }
  .section { padding: 4rem 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr !important; gap: 2rem; }
  .section-title { font-size: 2.2rem; margin-bottom: 2.5rem; }
  h1 { font-size: 2.6rem !important; }
  h2 { font-size: 2rem !important; }
  
  /* Mobile Hero Adjustments */
  .hero { padding-top: 60px !important; min-height: 100vh; height: auto !important; padding-bottom: 4rem; }
  .hero-title { font-size: 2.5rem !important; line-height: 1 !important; margin-bottom: 1.5rem !important; letter-spacing: -0.02em !important; }
  .hero-content p { font-size: 1rem !important; margin-bottom: 2.5rem !important; line-height: 1.6 !important; }
  .hero-content .btn { width: 100%; padding: 1.2rem !important; margin-bottom: 1rem; }
  
  /* Header Logo Mobile Scale */
  header .logo img { height: 45px !important; }
  
  /* Resizing the Scroll Indicator for mobile */
  .hero a[href="#core-services"] { bottom: 1.5rem !important; }
  .hero a[href="#core-services"] div { width: 22px !important; height: 38px !important; }
  .hero a[href="#core-services"] span { font-size: 0.6rem !important; letter-spacing: 1px !important; }
}

.btn {
  display: inline-block;
  padding: 1.1rem 2.8rem;
  background-color: var(--color-accent);
  color: var(--color-white) !important;
  font-weight: 700;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-align: center;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}

html, body {
  overflow-x: hidden;
  width: 100%;
}

.btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 20%;
  height: 200%;
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(30deg);
  transition: all 0.6s ease;
}

.btn:hover::after {
  left: 120%;
}

.btn:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 20px 40px rgba(227, 24, 55, 0.4);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--color-white);
  color: var(--color-white) !important;
}

.btn-outline:hover {
  background-color: white !important;
  color: var(--color-dark) !important;
  box-shadow: 0 20px 40px rgba(255, 255, 255, 0.2);
}

.section-title {
  font-size: 3rem;
  margin-bottom: 4rem;
  text-align: center;
  font-weight: 900;
  letter-spacing: -0.02em;
}

/* --- Bulletproof CSS Hero Animation --- */
.hero-css-bg {
  position: absolute;
  inset: 0;
  background: #070f1e;
  z-index: 0;
  overflow: hidden;
}

.css-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(227, 24, 55, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(227, 24, 55, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  transform: perspective(500px) rotateX(60deg) scale(2);
  transform-origin: center top;
  animation: grid-travel 15s linear infinite;
  opacity: 0.5;
}

@keyframes grid-travel {
  0% { background-position: 0 0; }
  100% { background-position: 0 60px; }
}

.css-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(227, 24, 55, 0.15) 0%, transparent 70%);
  animation: glow-pulse 8s ease-in-out infinite alternate;
}

@keyframes glow-pulse {
  0% { transform: scale(1); opacity: 0.3; }
  100% { transform: scale(1.5); opacity: 0.6; }
}

.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: 140px; /* Increased to prevent header overlap */
  background-color: #070f1e;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-color: #070f1e;
  /* Multi-source fallback for absolute reliability */
  background-image: 
    linear-gradient(rgba(7, 15, 30, 0.45), rgba(7, 15, 30, 0.45)), 
    url('../images/hero-iacps-branded.png'),
    url('../images/hero-iacps-branded.jpeg'),
    url('https://images.unsplash.com/photo-1574241604938-14283187127e?auto=format&fit=crop&w=1280&q=60');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  transition: opacity 1s ease-in-out;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(7, 15, 30, 0.4) 0%, rgba(7, 15, 30, 0.9) 100%);
  z-index: 1;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  z-index: -1;
  opacity: 0.6;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: 4.5rem; /* Balanced size */
  color: white;
  font-weight: 900;
  line-height: 1.2; /* Better spacing */
  margin-bottom: 2rem;
  text-shadow: 0 10px 40px rgba(0,0,0,0.5);
  letter-spacing: -0.02em;
}

/* Responsive Gaps & Layouts */
.core-services-grid { gap: 2.5rem; }
.about-preview-section { padding: 8rem 0; }
.about-grid-layout { align-items: center; gap: 6rem; }
.why-choose-grid { gap: 4rem; }

@media (max-width: 1024px) {
  .about-grid-layout { gap: 3rem; }
  .why-choose-grid { gap: 2.5rem; }
}

@media (max-width: 768px) {
  .core-services-grid { gap: 1.5rem !important; }
  .about-preview-section { padding: 4rem 0 !important; }
  .about-grid-layout { gap: 2.5rem !important; }
  .why-choose-grid { gap: 2rem !important; }
}


.section-title span {
  color: var(--color-accent);
}


header {
  padding: var(--header-padding) 0;
  transition: var(--transition);
  background: white;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 11000;
  box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}

header.scrolled {
  --header-padding: 0.6rem;
}

header .container.header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.desktop-only { display: inline-block; }
.mobile-only { display: none; }

@media (max-width: 1024px) {
  .desktop-only { display: none !important; }
  .mobile-only { display: block !important; }
}

.logo {
  display: flex;
  align-items: center;
  transition: var(--transition);
  z-index: 1001;
}

.logo img {
  height: 80px; /* Optimized for the new wide logo */
  width: auto;
}

header.scrolled .logo img {
  height: 60px;
}

nav ul {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

/* Desktop nav links hiding is handled by positioning the mobile-nav offscreen */

header nav a {
  font-weight: 700;
  color: var(--color-dark);
  transition: var(--transition);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

header nav a:hover {
  color: var(--color-accent);
}

.hero-logo-container {
  background: white;
  padding: 1.5rem 2.5rem;
  border-radius: 12px;
  display: inline-block;
  margin-bottom: 3rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.1);
}

.hero-logo-container img {
  max-width: 280px;
  display: block;
}

.nav-btn {
  background-color: var(--color-accent) !important;
  color: var(--color-white) !important;
  padding: 0.7rem 1.5rem;
  border-radius: 4px;
}

.nav-btn:hover {
  background-color: var(--color-accent-hover) !important;
}

/* Footer */
footer {
  background-color: #050B14;
  color: #94a3b8;
  padding: 4rem 0 2rem;
}

footer .logo {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  margin-bottom: 2rem;
  width: fit-content;
}

footer .logo img {
  height: 40px;
  width: auto;
}

footer h4 {
  color: var(--color-white);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

footer ul li {
  margin-bottom: 0.8rem;
}

footer a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 3rem;
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
}

/* Service Box PMM Style */
.service-box {
  position: relative;
  height: 400px;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  color: white;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  background: #1e293b; /* Dark placeholder while images load */
}

.service-box:hover {
  transform: translateY(-5px);
}

.service-box::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  pointer-events: none;
  transition: all 0.5s ease;
}

.service-box:hover::after {
  border-color: rgba(255,255,255,0.3);
  box-shadow: inset 0 0 20px rgba(255,255,255,0.1);
}

.service-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}

.service-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 100%);
  transition: all 0.5s ease;
  z-index: 2;
}

.service-box:hover .service-bg {
  transform: scale(1.1);
}

.service-box:hover .service-overlay {
  background: linear-gradient(to top, rgba(227, 24, 55, 0.9) 0%, rgba(15, 23, 42, 0.7) 100%);
  opacity: 1;
}

.service-default {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 100%;
  padding: 2rem;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 3;
}

/* Removed unprofessional emojis */
.service-icon {
  display: none;
}

.service-icon-svg {
  margin-bottom: 1.5rem;
  color: var(--color-white);
  transition: all 0.5s ease;
  display: flex;
  justify-content: center;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3));
}

.service-box:hover .service-icon-svg {
  transform: scale(1.1) translateY(-5px);
  color: var(--color-white);
}

.service-default h3 {
  color: white;
  font-size: 1.8rem;
  font-weight: 800;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.service-hover {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, 30px);
  text-align: center;
  width: 100%;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 4;
}

.service-box:hover .service-default {
  opacity: 0;
  transform: translate(-50%, -100px);
}

.service-box:hover .service-hover {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%);
}

.service-hover h3 {
  color: white;
  font-size: 1.8rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.service-hover p {
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 2rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.service-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-white);
  color: var(--color-accent);
  padding: 0.8rem 1.8rem;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.service-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 25px rgba(0,0,0,0.25);
  background: var(--color-dark);
  color: white;
}

/* Page inner styles */
body.page-inner {
  padding-top: 80px; 
}

body.page-inner header {
  background: var(--color-white);
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  padding: 1rem 0;
}

/* Page Header Fallback & Content */
.page-header {
  background-color: var(--color-dark); /* Fallback */
  background-position: center;
  background-size: cover;
  color: var(--color-white);
  padding: 8rem 0 4rem; /* Reduced padding */
  text-align: center;
  position: relative;
  min-height: auto !important; /* Prevent massive gaps */
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(7, 15, 30, 0.7); /* Consistent overlay */
  z-index: 1;
}

.page-header .container {
  position: relative;
  z-index: 2;
}

.page-header h1 {
  color: var(--color-white);
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.page-header p {
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 800px;
  margin: 0 auto;
}

/* --- Animations & Reveal --- */
.reveal-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-up.active {
  opacity: 1;
  transform: translateY(0);
}
.reveal-fade {
  opacity: 0;
  transition: all 1s ease-out;
}
.reveal-fade.active {
  opacity: 1;
}
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }

/* Simple Responsive */
@media (max-width: 1024px) {
  nav ul {
    gap: 1rem;
  }
}
/* Mobile Menu Toggle Button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 10001;
}

.hamburger {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--color-dark);
  position: relative;
  transition: var(--transition);
}

.hamburger::before, .hamburger::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: inherit;
  transition: var(--transition);
  left: 0;
}

.hamburger::before { top: -8px; }
.hamburger::after { bottom: -8px; }

/* Mobile Menu Open State */
body.menu-open { overflow: hidden; }
.menu-open .hamburger { background-color: transparent !important; }
.menu-open .hamburger::before { top: 0; transform: rotate(45deg); background-color: var(--color-dark); }
.menu-open .hamburger::after { bottom: 0; transform: rotate(-45deg); background-color: var(--color-dark); }

/* Menu Overlay */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 15, 30, 0.85); /* Solid dark for better contrast */
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

body.menu-open .menu-overlay {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 1024px) {
  .menu-toggle {
    display: block;
  }
  
  nav, #mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: #ffffff !important;
    box-shadow: -10px 0 30px rgba(0,0,0,0.2);
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10000;
    padding: 6rem 2rem 2rem;
    display: block !important;
  }

  nav.active, #mobile-nav.active {
    right: 0 !important;
  }

  nav ul {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
  }

  nav a {
    color: var(--color-dark) !important;
    font-size: 1.1rem;
    padding: 0.5rem 0;
    width: 100%;
    border-bottom: 1px solid rgba(0,0,0,0.05);
  }

  .nav-btn {
    width: 100%;
    text-align: center;
    margin-top: 2rem;
    padding: 1.2rem !important;
    font-size: 1rem !important;
  }

  .service-box { height: 320px !important; }
  .service-default h3 { font-size: 1.4rem !important; }
  .service-hover p { font-size: 0.85rem !important; margin-bottom: 1rem !important; }
  .service-btn { padding: 0.6rem 1.2rem !important; font-size: 0.8rem !important; }

  .page-header p { font-size: 1.1rem !important; }

  /* Footer & CTA Mobile Fixes */
  .cta-btns { flex-direction: column; gap: 1rem !important; align-items: center; }
  .footer-grid { grid-template-columns: 1fr !important; text-align: center; gap: 3rem !important; }
  .footer-grid div { display: flex; flex-direction: column; align-items: center; width: 100%; }
  .footer-grid ul { text-align: center; padding: 0; width: 100%; }
  .footer-bottom { 
    flex-direction: column !important; 
    text-align: center; 
    gap: 1.5rem !important; 
    align-items: center; 
    padding-bottom: 2rem;
  }
  .footer-bottom .social-links { justify-content: center; width: 100%; margin-top: 1rem; }
}

/* Tablet Footer (768px to 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 4rem !important; }
}

/* Perfection Polish */
html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

::selection {
  background: var(--color-accent);
  color: white;
}

/* --- Floating Buttons & Advanced Animations --- */
.floating-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 9999;
}

.floating-btn {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  border: none;
  text-decoration: none;
  font-size: 1.5rem;
  pointer-events: auto;
}

@media (max-width: 768px) {
  .floating-container { bottom: 1.2rem; right: 1.2rem; }
  .floating-btn { width: 52px; height: 52px; font-size: 1.3rem; }
  .ai-chat-window { width: 90%; right: 5%; bottom: 5rem; height: 75vh; }
}

.floating-btn:hover {
  transform: scale(1.1) translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

.btn-whatsapp {
  background: #25D366;
  color: white;
}

.btn-instagram {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  color: white;
}

.btn-ai {
  background: var(--color-accent);
  color: white;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

.float-anim {
  animation: float 4s ease-in-out infinite;
}

/* --- AI Chat Bot UI --- */
.ai-chat-window {
  position: fixed;
  bottom: 7rem;
  right: 2.5rem;
  width: 380px;
  height: 580px;
  background: white;
  border-radius: 24px;
  box-shadow: var(--shadow-premium);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(30px) scale(0.9);
  transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.ai-chat-window.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.ai-chat-header {
  background: var(--color-dark);
  color: white;
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ai-chat-header h3 {
  color: white;
  font-size: 1.1rem;
  margin: 0;
}

.ai-chat-close {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0.7;
  transition: var(--transition);
}

.ai-chat-close:hover {
  opacity: 1;
}

.ai-chat-body {
  flex-grow: 1;
  padding: 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: #f8fafc;
}

.chat-message {
  padding: 0.8rem 1.2rem;
  border-radius: 15px;
  max-width: 85%;
  font-size: 0.9rem;
  line-height: 1.4;
  white-space: pre-wrap;
}

.chat-message.bot {
  background: white;
  color: var(--color-dark);
  align-self: flex-start;
  border-bottom-left-radius: 2px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.chat-message.user {
  background: var(--color-accent);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}

/* Professional Utilities */
.text-gradient {
  background: linear-gradient(135deg, var(--color-accent) 0%, #ff4d6d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.card {
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,0.05);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-accent);
}

.ai-chat-footer {
  padding: 1rem;
  background: white;
  border-top: 1px solid #e2e8f0;
  display: flex;
  gap: 0.5rem;
}

.ai-chat-input {
  flex-grow: 1;
  border: 1px solid #e2e8f0;
  padding: 0.8rem 1rem;
  border-radius: 30px;
  outline: none;
  font-family: inherit;
  font-size: 0.9rem;
}

.ai-chat-send {
  background: var(--color-accent);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.ai-chat-send:hover {
  background: var(--color-accent-hover);
  transform: scale(1.1);
}

@media (max-width: 480px) {
  .ai-chat-window {
    width: calc(100% - 2rem);
    right: 1rem;
    left: 1rem;
    height: 400px;
  }
}
/* --- Scroll Indicator --- */
.scroll-indicator {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: white;
  z-index: 10;
  opacity: 0.8;
}

.scroll-indicator span {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 600;
}

.mouse {
  width: 26px;
  height: 42px;
  border: 2px solid white;
  border-radius: 15px;
  position: relative;
}

.mouse::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  background: white;
  border-radius: 2px;
  transform: translateX(-50%);
  animation: mouse-scroll 2s infinite;
}

@keyframes mouse-scroll {
  0% { transform: translate(-50%, 0); opacity: 1; }
  100% { transform: translate(-50%, 15px); opacity: 0; }
}

/* Logo Slider Styles */
.logo-slider {
  overflow: hidden;
  padding: 40px 0;
  white-space: nowrap;
  position: relative;
  width: 100%;
}

.logo-slider::before,
.logo-slider::after {
  content: "";
  height: 100px;
  position: absolute;
  width: 200px;
  z-index: 2;
  top: 0;
}

.logo-slider::before {
  left: 0;
  background: linear-gradient(to right, white 0%, rgba(255, 255, 255, 0) 100%);
}

.logo-slider::after {
  right: 0;
  background: linear-gradient(to left, white 0%, rgba(255, 255, 255, 0) 100%);
}

.logo-track {
  display: flex;
  width: calc(250px * 10);
  animation: logo-scroll 40s linear infinite;
}

/* ==========================================================================
   CRITICAL UI FIXES (MOBILE & VISIBILITY)
   ========================================================================== */

/* 1. Force Visibility of Hidden Elements (Fixes white space/invisible cards) */
.reveal-up, 
.reveal-fade, 
.service-block, 
.project-card, 
.card,
[class*="reveal-"] {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
  transition: none !important;
}

/* 2. Kill Blur (Fixes blurry mobile menu) */
.menu-overlay, 
#mobile-nav,
header,
.ai-chat-window,
.page-header {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* 3. Mobile Nav Drawer Sharpness */
@media (max-width: 1024px) {
  #mobile-nav {
    background: #ffffff !important;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1) !important;
  }
  #mobile-nav ul li a {
    color: #0f172a !important;
    text-shadow: none !important;
  }
}
