/* C.B.S. Tech & Home Solutions Ltd. - Premium Web Design System (Dark Cinematic Redesign) */

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

/* ==========================================================================
   CSS CUSTOM VARIABLES
   ========================================================================== */
:root {
  /* Color Palette - Custom Brand Identity (#110c6e and #de400e) */
  --primary-navy: #110c6e;
  --primary-navy-light: #18119c;
  --primary-navy-dark: #080633;
  --primary-navy-rgb: 17, 12, 110;
  
  --secondary-red: #de400e; /* Custom Brand Orange-Red */
  --secondary-red-hover: #bc340a; /* Darker Crimson/Orange */
  --secondary-red-rgb: 222, 64, 14;
  
  --accent-white: #FFFFFF;
  --bg-light: #110c6e;  /* Custom Dark Blue Cards */
  --bg-dark: #080633;   /* Deep Midnight Blue-Black Canvas */
  --bg-card-dark: #110c6e;
  
  --text-light: #F8FAFC; /* Light Slate/White for readability */
  --text-light-muted: #b0b5db; /* Cool Lavender Slate Grey */
  --text-dark: #F8FAFC;
  --text-dark-muted: #b0b5db;
  
  /* Glassmorphism Styles Redefined as Dark Cinematic Plates */
  --glass-bg: rgba(17, 12, 110, 0.75);
  --glass-bg-dark: rgba(8, 6, 51, 0.85);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-light: rgba(255, 255, 255, 0.15);
  --glass-blur: 12px;
  --glass-shadow: 0 15px 35px rgba(0, 0, 0, 0.55);
  
  /* Fonts */
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Dimensions & Spacing */
  --header-height: 80px;
  --border-radius-sm: 6px;
  --border-radius-md: 12px;
  --border-radius-lg: 18px;
  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   GLOBAL RESET & INITIAL SETUP
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-light);
  overflow-x: hidden;
  line-height: 1.7;
  letter-spacing: -0.01em;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-light);
}
::-webkit-scrollbar-thumb {
  background: var(--glass-border-light);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-red);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

button, input, select, textarea {
  font-family: inherit;
  outline: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--accent-white);
}

.text-gradient {
  background: linear-gradient(135deg, var(--accent-white) 40%, var(--secondary-red) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-red {
  color: var(--secondary-red);
}

/* ==========================================================================
   LAYOUT CONTAINERS & SHAPES
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 100px 0;
  background-color: var(--bg-dark);
  position: relative;
  overflow: hidden;
}

.fullscreen-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
}

/* ==========================================================================
   NAVIGATION HEADER
   ========================================================================== */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  transition: var(--transition-smooth);
  background: rgba(10, 10, 14, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.main-header.scrolled {
  background: rgba(10, 10, 14, 0.95);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  height: 70px;
}

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

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon-container {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.logo-icon {
  width: 40px;
  height: 40px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--secondary-red);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: var(--accent-white);
  line-height: 1.25;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.logo-subtext {
  display: block;
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 1.2px;
  color: var(--text-light-muted);
  text-transform: uppercase;
  margin-top: 2px;
}

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

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-light-muted);
  position: relative;
  padding: 6px 0;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.nav-link:hover, .nav-link.active {
  color: var(--secondary-red);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary-red);
  transition: var(--transition-fast);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

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

.github-link {
  color: var(--text-light-muted);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
}

.github-link:hover {
  color: var(--secondary-red);
  transform: translateY(-2px);
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--accent-white);
}

/* ==========================================================================
   BUTTONS & UI CONTROLS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: var(--border-radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background-color: var(--secondary-red);
  color: #050507;
  border: 1px solid var(--secondary-red);
  box-shadow: 0 4px 12px rgba(222, 64, 14, 0.25);
}

.btn-primary:hover {
  background-color: var(--accent-white);
  border-color: var(--accent-white);
  color: #050507;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255, 255, 255, 0.3);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.03);
  color: var(--accent-white);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: none;
}

.btn-secondary:hover {
  background-color: var(--secondary-red);
  border-color: var(--secondary-red);
  color: #050507;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(222, 64, 14, 0.35);
}

.btn-group {
  display: flex;
  gap: 1rem;
}

/* ==========================================================================
   GLASSMORPHISM CARDS & INTERFACES (PLASTER PLATES)
   ========================================================================== */
.glass-card {
  background: var(--bg-light);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  padding: 2.5rem;
  transition: var(--transition-smooth);
}

.glass-card:hover {
  border-color: var(--secondary-red);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

#hero {
  background: var(--bg-dark);
  position: relative;
  z-index: 1;
}

#water-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: auto;
}

.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.2s cubic-bezier(0.25, 1, 0.5, 1), visibility 1.2s;
  display: flex;
  align-items: center;
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 3;
}

.slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: -1;
  transition: transform 6s cubic-bezier(0.1, 0.8, 0.3, 1);
  transform: scale(1.08);
}

.slide-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(10, 10, 14, 0.4) 0%, rgba(10, 10, 14, 0.85) 100%);
  z-index: 1;
}

.hero-slide.active .slide-bg {
  transform: scale(1.01);
}

.slide-container {
  position: relative;
  z-index: 5;
  width: 100%;
}

.hero-content {
  max-width: 850px;
  text-shadow: none !important;
  opacity: 0;
  transform: translateY(35px);
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 1.2s;
}

.hero-slide.active .hero-content {
  opacity: 1;
  transform: translateY(0);
}

.hero-tagline {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--secondary-red);
  text-transform: uppercase;
  letter-spacing: 4px;
  margin-bottom: 1.5rem;
  display: inline-block;
}

.hero-title {
  font-size: 4rem;
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--accent-white);
}

.subpage-title {
  font-size: 3.6rem;
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
  color: var(--accent-white);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-light-muted);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 680px;
}

/* Dots Navigation */
.slider-dots {
  position: absolute;
  bottom: 110px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 15;
}

.slider-dot {
  width: 28px;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.slider-dot.active {
  background-color: var(--secondary-red);
  width: 45px;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-light-muted);
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  z-index: 10;
}

.scroll-mouse {
  width: 24px;
  height: 40px;
  border: 2px solid var(--text-light-muted);
  border-radius: 12px;
  position: relative;
}

.scroll-wheel {
  width: 4px;
  height: 8px;
  background-color: var(--secondary-red);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
}

#subpage-hero {
  min-height: 40vh;
  background: var(--bg-dark);
  display: flex;
  align-items: center;
  position: relative;
  justify-content: center;
  padding-top: 100px;
  border-bottom: 1px solid var(--glass-border);
}

/* Service Pages Sub-navigation Tabs */
.services-sub-nav {
  display: flex;
  gap: 1rem;
  margin-bottom: 3.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 600px) {
  .services-sub-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  .services-sub-nav .btn {
    width: 100%;
    text-align: center;
  }
}

/* ==========================================================================
   2. ABOUT SECTION
   ========================================================================== */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4.5rem auto;
}

.section-tagline {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--secondary-red);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 0.75rem;
  display: block;
}

.section-title {
  font-size: 2.8rem;
  font-family: var(--font-heading);
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
  color: var(--accent-white);
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--text-light-muted);
  font-weight: 300;
  line-height: 1.7;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4.5rem;
  align-items: center;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4.5rem;
  align-items: stretch;
}

.about-text h3 {
  font-size: 2rem;
  margin-bottom: 1.25rem;
  font-weight: 500;
  color: var(--accent-white);
}

.about-text p {
  color: var(--text-light-muted);
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  line-height: 1.75;
}

.about-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.blog-post-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.blog-sidebar {
  border-left: 1px solid var(--glass-border);
  padding-left: 3rem;
}

.metric-card {
  padding: 1.5rem;
  border-radius: var(--border-radius-sm);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-top: 3px solid var(--secondary-red);
  box-shadow: var(--glass-shadow);
}

.metric-num {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--accent-white);
  line-height: 1;
  margin-bottom: 5px;
}

.metric-label {
  font-size: 0.85rem;
  color: var(--text-light-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Core Values Section */
.core-values {
  margin-top: 5rem;
}

.values-title {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 2.5rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-light-muted);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
}

.value-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-sm);
  box-shadow: var(--glass-shadow);
  transition: var(--transition-smooth);
}

.value-card:hover {
  transform: translateY(-5px);
  border-color: var(--secondary-red);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.45);
}

.value-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1.25rem auto;
  color: var(--secondary-red);
}

.value-icon svg {
  width: 100%;
  height: 100%;
}

.value-name {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--accent-white);
}

.value-desc {
  font-size: 0.85rem;
  color: var(--text-light-muted);
  line-height: 1.5;
}

#services {
  background: var(--bg-light);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.service-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-light);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  padding: 2rem;
  transition: var(--transition-smooth);
}

.service-card:hover {
  border-color: var(--secondary-red);
}

.service-card-image {
  height: 220px;
  width: 100%;
  overflow: hidden;
  border-radius: 2px;
  margin-bottom: 1.5rem;
  position: relative;
}

.service-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover .service-card-image img {
  transform: scale(1.08);
}

.service-card-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent, rgba(10, 10, 14, 0.5));
}

.service-card h3 {
  font-size: 1.6rem;
  font-family: var(--font-heading);
  font-weight: 500;
  margin-bottom: 1rem;
  color: var(--accent-white);
}

.service-card p {
  color: var(--text-light-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
  line-height: 1.65;
}

.service-features-list {
  list-style: none;
  margin-bottom: 2rem;
}

.service-features-list li {
  font-size: 0.85rem;
  color: var(--text-light-muted);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.service-features-list li::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--secondary-red);
}

.service-learn-more {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-light-muted);
  transition: var(--transition-fast);
}

.service-learn-more svg {
  width: 16px;
  height: 16px;
  transition: var(--transition-fast);
  stroke: currentColor;
}

.service-card:hover .service-learn-more {
  color: var(--secondary-red);
}

.service-card:hover .service-learn-more svg {
  transform: translateX(4px);
}

/* ==========================================================================
   4. JOURNEY TIMELINE
   ========================================================================== */
.timeline-container {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 0;
}

/* Timeline central line */
.timeline-container::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary-navy-light), var(--secondary-red), var(--primary-navy-light));
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 2rem 3rem;
  box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
  text-align: left;
}

/* Timeline node */
.timeline-node {
  position: absolute;
  top: 2.5rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg-dark);
  border: 4px solid var(--secondary-red);
  box-shadow: 0 4px 10px rgba(212, 93, 52, 0.2);
  z-index: 10;
  transition: var(--transition-smooth);
}

.timeline-item:nth-child(odd) .timeline-node {
  right: -9px;
}

.timeline-item:nth-child(even) .timeline-node {
  left: -9px;
}

.timeline-item:hover .timeline-node {
  background: var(--secondary-red);
  transform: scale(1.3);
}

.timeline-year {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--secondary-red);
  margin-bottom: 0.5rem;
  display: block;
}

.timeline-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 1.75rem;
  border-radius: var(--border-radius-md);
  box-shadow: var(--glass-shadow);
  transition: var(--transition-smooth);
}

.timeline-item:hover .timeline-card {
  border-color: var(--secondary-red);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.timeline-card h4 {
  font-size: 1.3rem;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--accent-white);
  margin-bottom: 0.5rem;
}

.timeline-card p {
  color: var(--text-light-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* ==========================================================================
   5. CLIENT GALAXY (PORTFOLIO)
   ========================================================================== */
#galaxy {
  background: var(--bg-dark);
}

.galaxy-container {
  height: 600px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--glass-border);
  background: var(--bg-light);
  box-shadow: var(--glass-shadow);
  overflow: hidden;
}

.galaxy-center {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--secondary-red);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  box-shadow: 0 4px 20px rgba(222, 64, 14, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
  padding: 10px;
}

.galaxy-center-text {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #FFFFFF;
}

/* Orbital Rings */
.orbital-ring {
  position: absolute;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  pointer-events: none;
}

.ring-1 { width: 260px; height: 260px; }
.ring-2 { width: 440px; height: 440px; }
.ring-3 { width: 620px; height: 620px; }

/* Floating Galaxy Node */
.galaxy-node {
  position: absolute;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--glass-bg-dark);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  padding: 10px;
  text-align: center;
}

.galaxy-node:hover {
  transform: scale(1.15);
  border-color: var(--secondary-red);
  box-shadow: 0 10px 30px rgba(222, 64, 14, 0.3);
  background: var(--primary-navy);
}

.galaxy-node-text {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-light-muted);
  line-height: 1.2;
  transition: var(--transition-fast);
}

.galaxy-node:hover .galaxy-node-text {
  color: #FFFFFF;
}

.galaxy-instruction {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.8rem;
  color: var(--text-light-muted);
  letter-spacing: 1px;
  background: var(--bg-light);
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid var(--glass-border);
}

/* ==========================================================================
   6. CLIENT TRUST & LOGO WALL
   ========================================================================== */
#clients {
  background: var(--bg-dark);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

.logo-wall-wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
  margin-top: 1rem;
}

.logo-wall-wrapper::before, .logo-wall-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  width: 150px;
  height: 100%;
  z-index: 5;
  pointer-events: none;
}

.logo-wall-wrapper::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-dark), transparent);
}

.logo-wall-wrapper::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-dark), transparent);
}

.logo-wall-track {
  display: flex;
  align-items: center;
  gap: 5rem;
  width: max-content;
  animation: logoScroll 25s linear infinite;
}

.logo-wall-item {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: 1px;
  transition: var(--transition-fast);
  cursor: pointer;
  white-space: nowrap;
}

.logo-wall-item:hover {
  color: var(--secondary-red);
}

/* Case Study Preview Grid */
.case-study-previews {
  margin-top: 5rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.case-study-card {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  background: var(--bg-light);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.case-study-card:hover {
  transform: translateY(-4px);
  border-color: var(--secondary-red);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.case-study-img {
  position: relative;
  overflow: hidden;
  height: 100%;
}

.case-study-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.case-study-card:hover .case-study-img img {
  transform: scale(1.08);
}

.case-study-info {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.case-study-client {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--secondary-red);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

.case-study-title {
  font-size: 1.4rem;
  font-family: var(--font-heading);
  font-weight: 500;
  margin-bottom: 0.75rem;
  color: var(--accent-white);
}

.case-study-summary {
  font-size: 0.9rem;
  color: var(--text-light-muted);
  margin-bottom: 1.25rem;
}

.case-study-link {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--secondary-red);
  display: flex;
  align-items: center;
  gap: 8px;
}

.case-study-link svg {
  width: 14px;
  height: 14px;
}

/* ==========================================================================
   7. LIVE BLOG / KNOWLEDGE CENTER
   ========================================================================== */
.blog-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 1.5rem;
}

.blog-search-box {
  position: relative;
  max-width: 400px;
  width: 100%;
}

.blog-search-box input {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  color: var(--text-dark);
  padding: 12px 20px 12px 45px;
  border-radius: var(--border-radius-sm);
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.blog-search-box input:focus {
  border-color: var(--secondary-red);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
}

.blog-search-box svg {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--text-light-muted);
}

.blog-categories {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.blog-cat-btn {
  padding: 8px 18px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-light-muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  transition: var(--transition-fast);
  cursor: pointer;
}

.blog-cat-btn:hover, .blog-cat-btn.active {
  color: #050507;
  background: var(--secondary-red);
  border-color: var(--secondary-red);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.blog-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background-color: var(--bg-light);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  padding: 1.5rem;
  transition: var(--transition-smooth);
}

.blog-card:hover {
  border-color: var(--secondary-red);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.blog-card-img {
  height: 220px;
  width: 100%;
  overflow: hidden;
  border-radius: 2px;
  margin-bottom: 1.25rem;
}

.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-card:hover .blog-card-img img {
  transform: scale(1.08);
}

.blog-card-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--text-light-muted);
  margin-bottom: 0.75rem;
}

.blog-card h3 {
  font-size: 1.4rem;
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.35;
  margin-bottom: 0.75rem;
  color: var(--accent-white);
}

.blog-card p {
  font-size: 0.9rem;
  color: var(--text-light-muted);
  margin-bottom: 1.5rem;
  line-grow: 1;
}

.blog-card-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 600;
  border-top: 1px solid var(--glass-border);
  padding-top: 1rem;
}

.blog-read-more {
  color: var(--secondary-red);
  display: flex;
  align-items: center;
  gap: 6px;
}
.contact-icon-wrapper {
  width: 50px;
  height: 50px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary-red);
  flex-shrink: 0;
  box-shadow: var(--glass-shadow);
}

.contact-icon-wrapper svg {
  width: 20px;
  height: 20px;
}

.contact-text-detail h5 {
  font-size: 1.15rem;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--accent-white);
  margin-bottom: 4px;
}

.contact-text-detail p, .contact-text-detail a {
  font-size: 0.95rem;
  color: var(--text-light-muted);
}

/* Custom Interactive Vector Map Placeholder */
.map-canvas-container {
  height: 250px;
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-sm);
  background: var(--bg-light);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--glass-shadow);
}

.vector-map-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0.15;
  background-image: radial-gradient(var(--text-light-muted) 1px, transparent 1px);
  background-size: 10px 10px;
}

.map-radar-pin {
  width: 14px;
  height: 14px;
  background-color: var(--secondary-red);
  border-radius: 50%;
  position: relative;
  z-index: 10;
  box-shadow: 0 0 10px rgba(212, 93, 52, 0.5);
}

.map-radar-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  border: 2px solid var(--secondary-red);
  border-radius: 50%;
  animation: radarPulse 2s infinite ease-out;
  pointer-events: none;
}

.map-label {
  position: absolute;
  top: 50%;
  left: calc(50% + 20px);
  transform: translateY(-50%);
  background: var(--primary-navy);
  border: 1px solid var(--glass-border);
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #FFFFFF;
  box-shadow: var(--glass-shadow);
  pointer-events: none;
  white-space: nowrap;
}

/* Contact Form & Consultation Portal */
.contact-form-pane h3 {
  font-size: 2rem;
  font-family: var(--font-heading);
  font-weight: 500;
  margin-bottom: 1.5rem;
  color: var(--accent-white);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-light-muted);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  color: var(--text-dark);
  padding: 14px 18px;
  border-radius: var(--border-radius-sm);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
  box-shadow: none;
}

.form-control:focus {
  border-color: var(--secondary-red);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 15px rgba(222, 64, 14, 0.15);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

/* ==========================================================================
   AI CONCIERGE ASSISTANT
   ========================================================================== */
.ai-concierge-trigger {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary-navy-light);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  cursor: pointer;
  z-index: 999;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
  transition: var(--transition-smooth);
}

.ai-concierge-trigger:hover {
  transform: scale(1.08) rotate(5deg);
  background-color: var(--secondary-red);
  box-shadow: 0 12px 35px rgba(222, 64, 14, 0.35);
}

.ai-concierge-trigger:hover .ai-trigger-icon {
  color: #050507;
}

.ai-trigger-icon {
  width: 26px;
  height: 26px;
  color: #FFFFFF;
  transition: var(--transition-fast);
}

.ai-trigger-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid var(--secondary-red);
  animation: radarPulse 2s infinite ease-out;
  pointer-events: none;
}

/* Chat Pane Panel */
.ai-concierge-pane {
  position: fixed;
  bottom: 105px;
  right: 30px;
  width: 400px;
  height: 600px;
  background: var(--glass-bg-dark);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-md);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  z-index: 998;
  transform: translateY(30px) scale(0.95);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.ai-concierge-pane.active {
  transform: translateY(0) scale(1);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.ai-pane-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ai-header-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ai-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--secondary-red);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-weight: 700;
}

.ai-profile-info h4 {
  font-size: 0.95rem;
  color: var(--accent-white);
}

.ai-profile-status {
  font-size: 0.7rem;
  color: #10B981;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ai-profile-status::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #10B981;
  animation: pulseDot 2s infinite;
}

.ai-close-btn {
  color: var(--text-light-muted);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
}

.ai-close-btn:hover {
  color: var(--secondary-red);
}

/* Chat History Area */
.ai-chat-body {
  flex-grow: 1;
  padding: 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.chat-bubble {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: var(--border-radius-sm);
  font-size: 0.9rem;
  line-height: 1.45;
  animation: bubbleFadeIn 0.3s ease-out forwards;
}

.bubble-bot {
  background: var(--bg-light);
  color: var(--text-light);
  border-top-left-radius: 2px;
  align-self: flex-start;
  border: 1px solid var(--glass-border);
}

.bubble-user {
  background: var(--secondary-red);
  color: #FFFFFF;
  border-top-right-radius: 2px;
  align-self: flex-end;
}

/* Chat Prompt Chips */
.ai-suggested-prompts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 5px;
}

.prompt-chip {
  padding: 10px 14px;
  border-radius: var(--border-radius-sm);
  background: var(--primary-navy-light);
  border: 1px solid var(--glass-border);
  color: var(--text-light-muted);
  font-size: 0.8rem;
  text-align: left;
  transition: var(--transition-fast);
  cursor: pointer;
  box-shadow: var(--glass-shadow);
}

.prompt-chip:hover {
  border-color: var(--secondary-red);
  color: #050507;
  background: var(--secondary-red);
}

/* typing animation */
.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 12px 18px;
  align-self: flex-start;
}

.typing-dot {
  width: 6px;
  height: 6px;
  background-color: var(--text-light-muted);
  border-radius: 50%;
  animation: typingBounce 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

/* Chat Input Bar */
.ai-pane-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--glass-border);
}

.chat-input-form {
  display: flex;
  gap: 10px;
}

.chat-input {
  flex-grow: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  color: var(--text-dark);
  padding: 10px 16px;
  border-radius: var(--border-radius-sm);
  font-size: 0.85rem;
  transition: var(--transition-smooth);
  box-shadow: none;
}

.chat-input:focus {
  border-color: var(--secondary-red);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 15px rgba(222, 64, 14, 0.15);
}

.chat-send-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--border-radius-sm);
  background: var(--secondary-red);
  color: #050507;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.chat-send-btn:hover {
  background: var(--secondary-red-hover);
}

.chat-send-btn svg {
  width: 16px;
  height: 16px;
}

/* Lead Summary Download Styles */
.lead-summary-card {
  border: 1px solid var(--secondary-red);
  background: rgba(212, 93, 52, 0.05);
  border-radius: var(--border-radius-sm);
  padding: 12px;
  margin-top: 8px;
}

.lead-summary-card h5 {
  font-size: 0.85rem;
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--accent-white);
  margin-bottom: 6px;
}

.lead-summary-card p {
  font-size: 0.75rem;
  color: var(--text-light-muted);
  margin-bottom: 4px;
}

.lead-action-btn {
  display: inline-block;
  padding: 6px 12px;
  background: var(--secondary-red);
  color: #FFFFFF;
  border-radius: 4px;
  font-size: 0.7rem;
  margin-top: 8px;
  font-weight: 600;
  text-align: center;
}

/* ==========================================================================
   MODAL DIALOG POPUPS (SERVICES, GALAXY CLIENTS, BLOG DETAIL)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(249, 246, 240, 0.85);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content-wrapper {
  width: 90%;
  max-width: 800px;
  max-height: 85vh;
  background: var(--glass-bg-dark);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-md);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.5);
  overflow-y: auto;
  position: relative;
  transform: translateY(30px) scale(0.95);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-content-wrapper {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-navy-light);
  border: 1px solid var(--glass-border);
  color: var(--accent-white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: var(--transition-fast);
}

.modal-close-btn:hover {
  background: var(--secondary-red);
  border-color: var(--secondary-red);
  color: #050507;
}

.modal-close-btn svg {
  width: 16px;
  height: 16px;
}

.modal-body {
  padding: 3rem;
}

/* Specific Modal Internal Styles */
.modal-image-hero {
  height: 300px;
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  margin-bottom: 2rem;
}

.modal-image-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: var(--secondary-red);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.modal-title {
  font-size: 2.2rem;
  font-family: var(--font-heading);
  font-weight: 500;
  margin-bottom: 1.5rem;
  color: var(--accent-white);
}

.modal-desc {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-light-muted);
  margin-bottom: 2rem;
}

.modal-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  border-top: 1px solid var(--glass-border);
  padding-top: 2rem;
}

.modal-detail-block h5 {
  font-size: 1.15rem;
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--accent-white);
  margin-bottom: 0.75rem;
}

.modal-detail-block ul {
  list-style: none;
}

.modal-detail-block ul li {
  font-size: 0.9rem;
  color: var(--text-light-muted);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-detail-block ul li::before {
  content: '✓';
  color: var(--secondary-red);
  font-weight: bold;
}

/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */
.main-footer {
  background: var(--primary-navy-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 80px 0 30px 0;
  font-size: 0.9rem;
  color: #E2E8F0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand h4 {
  font-size: 1.3rem;
  font-family: var(--font-heading);
  color: #FFFFFF;
  margin-bottom: 1rem;
}

.footer-brand p {
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.footer-col h5 {
  font-size: 1rem;
  font-family: var(--font-heading);
  color: #FFFFFF;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 8px;
}

.footer-col h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--secondary-red);
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: #E2E8F0;
}

.footer-col ul li a:hover {
  color: var(--secondary-red);
  padding-left: 4px;
}

.footer-contact-info span, .footer-contact-info a {
  color: #E2E8F0 !important;
}

.footer-contact-info li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.footer-contact-info svg {
  width: 16px;
  height: 16px;
  color: var(--secondary-red);
  flex-shrink: 0;
  margin-top: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.social-icon {
  width: 36px;
  height: 36px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.social-icon:hover {
  background: var(--secondary-red);
  border-color: var(--secondary-red);
  color: var(--accent-white);
  transform: translateY(-2px);
}

.social-icon svg {
  width: 16px;
  height: 16px;
}

/* ==========================================================================
   SCROLL REVEAL ANIMATIONS
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.reveal-active {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delay classes */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }

/* ==========================================================================
   KEYFRAME ANIMATIONS
   ========================================================================== */
@keyframes scrollWheel {
  0% { opacity: 0; transform: translate(-50%, 0); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, 15px); }
}

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

@keyframes radarPulse {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
  100% { transform: translate(-50%, -50%) scale(3.5); opacity: 0; }
}

@keyframes pulseDot {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@keyframes bubbleFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes typingBounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

@keyframes logoScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1200px) {
  .main-nav {
    gap: 1.2rem;
  }
  .logo-text {
    font-size: 0.85rem;
  }
}

@media (max-width: 1024px) {
  :root {
    --header-height: 70px;
  }
  
  .logo-link {
    gap: 8px;
  }
  
  .logo-icon-container {
    width: 32px;
    height: 32px;
  }
  
  .logo-text {
    font-size: 0.78rem;
    line-height: 1.2;
  }
  
  .logo-subtext {
    font-size: 0.48rem;
    letter-spacing: 0.8px;
    margin-top: 1px;
  }

  /* Mobile Menu Drawer (collapses at 1024px to prevent tablet header wrap) */
  .mobile-nav-toggle {
    display: block;
    z-index: 1001;
  }
  
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--primary-navy-dark);
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    padding: 3rem;
    transition: var(--transition-smooth);
    z-index: 1000;
  }
  
  .main-nav.active {
    right: 0;
  }

  .about-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .services-grid, .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
  
  .values-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .about-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .blog-post-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .blog-sidebar {
    border-left: none;
    border-top: 1px solid var(--glass-border);
    padding-left: 0;
    padding-top: 3rem;
  }
}

@media (max-width: 768px) {
  section {
    padding: 70px 0;
  }
  
  .hero-title {
    font-size: 2.6rem;
  }
  
  .subpage-title {
    font-size: 2.4rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  /* Timeline simplified to single column */
  .timeline-container::before {
    left: 20px;
  }
  
  .timeline-item {
    width: 100%;
    padding: 1rem 0 1rem 40px;
    text-align: left !important;
  }
  
  .timeline-item:nth-child(even) {
    left: 0;
  }
  
  .timeline-item:nth-child(odd) .timeline-node,
  .timeline-item:nth-child(even) .timeline-node {
    left: 11px;
  }
  
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .services-grid, .blog-grid, .case-study-previews, .about-metrics {
    grid-template-columns: 1fr;
  }
  
  .case-study-card {
    grid-template-columns: 1fr;
  }
  
  /* Responsive Galaxy Orbit Radii (tablet bounds) */
  .galaxy-container {
    height: 500px;
  }
  
  .ring-1 { width: 130px; height: 130px; }
  .ring-2 { width: 260px; height: 260px; }
  .ring-3 { width: 390px; height: 390px; }
  
  .galaxy-node {
    width: 65px;
    height: 65px;
    padding: 5px;
  }
  
  .galaxy-node-text {
    font-size: 0.62rem;
  }
  
  .ai-concierge-pane {
    width: calc(100% - 40px);
    right: 20px;
    left: 20px;
    bottom: 95px;
    height: 480px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.1rem;
  }
  
  .subpage-title {
    font-size: 1.8rem;
  }
  
  .btn-group {
    flex-direction: column;
    width: 100%;
  }
  
  .btn {
    width: 100%;
  }
  
  .values-grid {
    grid-template-columns: 1fr;
  }
  
  .modal-body {
    padding: 1.5rem;
  }
  
  .modal-detail-grid {
    grid-template-columns: 1fr;
  }

  /* Responsive Galaxy Orbit Radii (mobile bounds) */
  .galaxy-container {
    height: 380px;
  }
  
  .ring-1 { width: 90px; height: 90px; }
  .ring-2 { width: 180px; height: 180px; }
  .ring-3 { width: 270px; height: 270px; }
  
  .galaxy-node {
    width: 55px;
    height: 55px;
    padding: 3px;
  }
  
  .galaxy-node-text {
    font-size: 0.58rem;
  }

  .ai-concierge-pane {
    height: 400px;
    bottom: 80px;
  }
}

/* ==========================================================================
   DYNAMIC CURSOR RIPPLE & TILT EFFECTS
   ========================================================================== */
.cursor-ripple {
  position: fixed;
  width: 12px;
  height: 12px;
  border: 1.5px solid rgba(211, 47, 47, 0.5);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(1);
  opacity: 0.8;
  animation: cursorRippleAnim 0.8s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
  z-index: 99999;
}

@keyframes cursorRippleAnim {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.8;
  }
  100% {
    transform: translate(-50%, -50%) scale(5);
    opacity: 0;
  }
}
.service-card, .glass-card {
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.15s cubic-bezier(0.25, 0.8, 0.25, 1), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

/* Replicated Custom SVG Logo Styles */
.logo-link:hover .logo-svg path, .logo-link:hover .logo-svg rect {
  fill: var(--secondary-red);
}
.logo-link:hover .logo-text {
  color: var(--secondary-red);
}
.logo-text {
  transition: var(--transition-fast);
}
.logo-subtext {
  color: var(--secondary-red) !important;
  font-weight: 600 !important;
}
.footer-brand .logo-text {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--accent-white);
  line-height: 1.15;
}
.footer-brand .logo-subtext {
  font-size: 0.6rem;
  letter-spacing: 1.5px;
  margin-top: 2px;
}

/* ==========================================================================
   AI KNOWLEDGE CENTER & INTELLIGENCE SYSTEM STYLES
   ========================================================================== */

/* Dual Tab System */
.knowledge-tabs {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 1rem;
}

.knowledge-tab-btn {
  background: none;
  border: none;
  color: var(--text-light-muted);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  padding: 0.5rem 1.5rem;
  cursor: pointer;
  position: relative;
  transition: var(--transition-smooth);
}

.knowledge-tab-btn:hover {
  color: var(--accent-white);
}

.knowledge-tab-btn.active {
  color: var(--secondary-red);
}

.knowledge-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1rem;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--secondary-red);
  border-radius: 2px;
}

/* Tab Content Visibility */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: bubbleFadeIn 0.5s ease-out;
}

/* AI Engine Grid */
.ai-engine-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  margin-top: 2rem;
}

@media (max-width: 1024px) {
  .ai-engine-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Terminal Log Panel */
.terminal-log-pane {
  background: #060517;
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-sm);
  padding: 1.2rem;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.8rem;
  color: #a0aec0;
  height: 250px;
  overflow-y: auto;
  margin-bottom: 2rem;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.8);
}

.terminal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.5rem;
  margin-bottom: 0.8rem;
  color: var(--secondary-red);
  font-weight: bold;
  font-size: 0.85rem;
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.terminal-dot-item {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.dot-red { background: #fc5753; }
.dot-yellow { background: #fdbc40; }
.dot-green { background: #33c748; }

.terminal-log-row {
  margin-bottom: 6px;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-all;
}

.terminal-log-row.info { color: #4299e1; }
.terminal-log-row.success { color: #48bb78; }
.terminal-log-row.warning { color: #ed8936; }
.terminal-log-row.scan { color: #cbd5e0; }

/* Source Verification Pipeline */
.pipeline-section-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 1rem;
  color: var(--accent-white);
  border-left: 3px solid var(--secondary-red);
  padding-left: 10px;
}

.pipeline-cards-container {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.pipeline-card {
  border-left: 4px solid var(--glass-border);
  transition: var(--transition-smooth);
  position: relative;
}

.pipeline-card.verified {
  border-left-color: #38a169;
  background: rgba(56, 161, 105, 0.03);
}

.pipeline-card.rejected {
  border-left-color: #e53e3e;
  background: rgba(229, 62, 62, 0.03);
  opacity: 0.8;
}

.pipeline-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--glass-shadow-hover);
}

.pipeline-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.8rem;
}

.pipeline-source-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pipeline-source-url {
  font-size: 0.75rem;
  color: var(--text-light-muted);
}

.pipeline-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent-white);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.pipeline-details {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: center;
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Credibility Gauge */
.credibility-gauge-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.gauge-svg-container {
  position: relative;
  width: 60px;
  height: 60px;
}

.gauge-circle-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.05);
  stroke-width: 4px;
}

.gauge-circle-value {
  fill: none;
  stroke-width: 4px;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  transition: stroke-dasharray 1s ease-out;
}

.gauge-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: bold;
  font-size: 0.85rem;
  color: var(--accent-white);
}

.pipeline-check-grid {
  font-size: 0.8rem;
  color: var(--text-light-muted);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 12px;
}

.pipeline-check-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pipeline-check-item.passed svg { color: #38a169; }
.pipeline-check-item.failed svg { color: #e53e3e; }

/* Status Badges */
.badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-verified {
  background: rgba(56, 161, 105, 0.15);
  color: #48bb78;
  border: 1px solid rgba(56, 161, 105, 0.3);
}

.badge-rejected {
  background: rgba(229, 62, 62, 0.15);
  color: #f56565;
  border: 1px solid rgba(229, 62, 62, 0.3);
}

.badge-evaluating {
  background: rgba(237, 137, 54, 0.15);
  color: #ed8936;
  border: 1px solid rgba(237, 137, 54, 0.3);
}

/* AI Draft Generator Panel */
.draft-generator-panel {
  background: var(--glass-bg-dark);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-md);
  padding: 2rem;
  box-shadow: var(--glass-shadow);
  position: sticky;
  top: 100px;
}

.draft-empty-state {
  text-align: center;
  padding: 4rem 1.5rem;
  color: var(--text-light-muted);
}

.draft-empty-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.5rem auto;
  color: rgba(255, 255, 255, 0.1);
}

.draft-workspace {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.draft-panel-header {
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 1rem;
}

.draft-metadata-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.draft-metadata-item label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-light-muted);
  text-transform: uppercase;
  margin-bottom: 4px;
  font-weight: bold;
}

.draft-metadata-item select, .draft-metadata-item input {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-sm);
  color: var(--accent-white);
  padding: 8px 12px;
  font-size: 0.85rem;
  font-family: inherit;
}

.draft-content-scroller {
  max-height: 400px;
  overflow-y: auto;
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-sm);
  background: rgba(0, 0, 0, 0.2);
  padding: 1.2rem;
}

.draft-section-block {
  margin-bottom: 1.5rem;
}

.draft-section-block h4 {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: var(--secondary-red);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 4px;
}

.draft-section-block p, .draft-section-block ul {
  font-size: 0.9rem;
  color: var(--text-light-muted);
  line-height: 1.6;
}

.draft-section-block ul {
  padding-left: 1.2rem;
  margin-top: 0.5rem;
}

.draft-section-block li {
  margin-bottom: 4px;
}

.draft-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

/* Simulated typing cursor */
.typing-cursor {
  display: inline-block;
  width: 2px;
  height: 14px;
  background-color: var(--secondary-red);
  margin-left: 4px;
  animation: blinkCursor 0.8s infinite;
  vertical-align: middle;
}

@keyframes blinkCursor {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

/* Category Filter Active Indicator overrides */
.blog-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 2rem;
  justify-content: center;
}

.blog-cat-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  color: var(--text-light-muted);
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
}

.blog-cat-btn:hover, .blog-cat-btn.active {
  background: var(--secondary-red);
  border-color: var(--secondary-red);
  color: #050507;
  transform: translateY(-2px);
}

/* ==========================================================================
   LIGHT SECTION SYSTEM OVERRIDES
   ========================================================================== */
.section-light {
  background-color: #ffffff !important; /* Pure White */
  color: #334155 !important;
}

.section-light h1,
.section-light h2,
.section-light h3,
.section-light h4,
.section-light h5,
.section-light h6 {
  color: #080633 !important; /* Dark Navy headings */
}

.section-light p,
.section-light li,
.section-light span,
.section-light label,
.section-light div:not(.btn):not(.value-icon) {
  color: #475569 !important; /* Dark Slate body text */
}

.section-light strong,
.section-light b {
  color: #080633 !important;
}

.section-light .section-tagline {
  color: var(--secondary-red) !important;
}

.section-light .section-subtitle {
  color: #64748b !important;
}

/* Gradients in light section */
.section-light .text-gradient {
  background: linear-gradient(135deg, #080633 40%, var(--secondary-red) 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

/* Cards (Glass card to light/white card conversion) */
.section-light .glass-card {
  background: rgba(255, 255, 255, 0.95) !important;
  border: 1px solid rgba(17, 12, 110, 0.1) !important;
  box-shadow: 0 15px 35px rgba(17, 12, 110, 0.05) !important;
  color: #334155 !important;
}

.section-light .glass-card h3,
.section-light .glass-card h4,
.section-light .glass-card h5,
.section-light .glass-card h6 {
  color: #080633 !important;
}

.section-light .glass-card p,
.section-light .glass-card li,
.section-light .glass-card span {
  color: #475569 !important;
}

/* Service Quick Facts / Showcase Cards list bullets */
.section-light ul li span {
  color: #475569 !important;
}

/* Buttons in light section */
.section-light .btn-secondary {
  border: 1px solid #110c6e !important;
  color: #110c6e !important;
  background: transparent !important;
}

.section-light .btn-secondary:hover {
  background: #110c6e !important;
  color: #ffffff !important;
}

/* Metric Cards */
.section-light .metric-card {
  background: rgba(255, 255, 255, 0.95) !important;
  border: 1px solid rgba(17, 12, 110, 0.1) !important;
  border-top: 3px solid var(--secondary-red) !important;
  box-shadow: 0 15px 35px rgba(17, 12, 110, 0.05) !important;
}

.section-light .metric-num {
  background: linear-gradient(135deg, #110c6e 40%, var(--secondary-red) 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

.section-light .metric-label {
  color: #64748b !important;
}

/* Timeline adjustments */
.section-light .timeline-container::before {
  background: rgba(17, 12, 110, 0.15) !important;
}

.section-light .timeline-node {
  background: #ffffff !important;
  border: 4px solid var(--secondary-red) !important;
}

.section-light .timeline-card {
  background: rgba(255, 255, 255, 0.95) !important;
  border: 1px solid rgba(17, 12, 110, 0.1) !important;
  box-shadow: 0 15px 35px rgba(17, 12, 110, 0.05) !important;
}

.section-light .timeline-card h4 {
  color: #080633 !important;
}

.section-light .timeline-card p {
  color: #475569 !important;
}

.section-light .timeline-year {
  color: var(--secondary-red) !important;
}

/* Contact Details */
.section-light .contact-details-item h5 {
  color: #080633 !important;
}

.section-light .contact-details-item p,
.section-light .contact-details-item a {
  color: #475569 !important;
}

.section-light .contact-icon-wrapper {
  background: rgba(17, 12, 110, 0.08) !important;
  color: #110c6e !important;
}

/* Forms in light section */
.section-light .form-control {
  background: #ffffff !important;
  border: 1px solid rgba(17, 12, 110, 0.2) !important;
  color: #080633 !important;
}

.section-light .form-control::placeholder {
  color: #94a3b8 !important;
}

.section-light .form-control:focus {
  border-color: var(--secondary-red) !important;
  box-shadow: 0 0 0 3px rgba(222, 64, 14, 0.1) !important;
}

/* Blog index & sidebar overrides */
.section-light .blog-card {
  background-color: #ffffff !important;
  border: 1px solid rgba(17, 12, 110, 0.1) !important;
  box-shadow: 0 10px 30px rgba(17, 12, 110, 0.04) !important;
}

.section-light .blog-card:hover {
  border-color: var(--secondary-red) !important;
  box-shadow: 0 15px 35px rgba(17, 12, 110, 0.08) !important;
}

.section-light .blog-card h3 {
  color: #080633 !important;
}

.section-light .blog-card p,
.section-light .blog-card-meta {
  color: #475569 !important;
}

.section-light .blog-card-footer {
  border-top: 1px solid rgba(17, 12, 110, 0.1) !important;
  color: #475569 !important;
}

.section-light #blog-search {
  background: #ffffff !important;
  border: 1px solid rgba(17, 12, 110, 0.2) !important;
  color: #080633 !important;
}

.section-light .blog-search-box svg {
  fill: #110c6e !important;
}

.section-light .filter-btn {
  background: rgba(17, 12, 110, 0.05) !important;
  color: #110c6e !important;
  border: 1px solid rgba(17, 12, 110, 0.1) !important;
}

.section-light .filter-btn.active,
.section-light .filter-btn:hover {
  background: var(--secondary-red) !important;
  color: #ffffff !important;
  border-color: var(--secondary-red) !important;
}

.section-light .blog-cat-btn {
  background: rgba(17, 12, 110, 0.05) !important;
  color: #110c6e !important;
  border: 1px solid rgba(17, 12, 110, 0.1) !important;
}

.section-light .blog-cat-btn:hover,
.section-light .blog-cat-btn.active {
  background: var(--secondary-red) !important;
  color: #ffffff !important;
  border-color: var(--secondary-red) !important;
}

/* Sidebar items in blog-post.html */
.sidebar-item-title {
  color: var(--accent-white);
  transition: var(--transition-fast);
}

.sidebar-item-title:hover {
  color: var(--secondary-red);
}

.section-light .sidebar-item-title {
  color: #080633 !important;
}

.section-light .sidebar-item-title:hover {
  color: var(--secondary-red) !important;
}

.section-light .blog-sidebar {
  border-left: 1px solid rgba(17, 12, 110, 0.1) !important;
}



