/* ==========================================================================
   TOPSPEED ELECTRIC SOLUTIONS - Unified CSS Design System
   ========================================================================== */

/* 1. Imports & Variables */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@400;500;600;700;800&display=swap');

:root {
  /* Color Palette */
  --color-primary-dark: #0A2540;       /* Deep Navy */
  --color-primary-light: #1A3E66;      /* Lighter Corporate Navy */
  --color-accent-blue: #0073EC;        /* Electric Blue */
  --color-accent-teal: #00D4B2;        /* High-energy Teal */
  --color-text-dark: #1E293B;          /* Slate Dark */
  --color-text-muted: #64748B;         /* Slate Muted */
  --color-bg-light: #F8FAFC;           /* Ice Gray */
  --color-bg-alt: #F1F5F9;             /* Light Gray */
  --color-white: #FFFFFF;
  --color-danger: #EF4444;             /* For error notices */
  --color-success: #10B981;            /* For success notifications */

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary-light) 100%);
  --gradient-accent: linear-gradient(135deg, var(--color-accent-blue) 0%, var(--color-accent-teal) 100%);
  --gradient-dark: linear-gradient(180deg, #0A2540 0%, #061527 100%);

  /* Shadow Library */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 15px -3px rgba(10, 37, 64, 0.08), 0 4px 6px -2px rgba(10, 37, 64, 0.04);
  --shadow-lg: 0 20px 25px -5px rgba(10, 37, 64, 0.1), 0 10px 10px -5px rgba(10, 37, 64, 0.04);
  --shadow-glow: 0 0 20px rgba(0, 212, 178, 0.35);
  --shadow-glow-blue: 0 0 20px rgba(0, 115, 236, 0.35);

  /* Font Families */
  --font-headings: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Transitions */
  --transition-fast: all 0.2s ease-in-out;
  --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 2. Resets & Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text-dark);
  background-color: var(--color-bg-light);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

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

/* 3. Utility Classes */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 6rem 0;
}

.section-alt {
  background-color: var(--color-bg-alt);
  padding: 6rem 0;
}

.section-dark {
  background: var(--gradient-dark);
  color: var(--color-white);
  padding: 6rem 0;
}
.section-dark h2 {
  color: var(--color-white);
}

.section-title-wrapper {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2.25rem;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--gradient-accent);
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto;
}
.section-dark .section-subtitle {
  color: #94A3B8;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition-normal);
  border: none;
}

.btn-primary {
  background: var(--gradient-accent);
  color: var(--color-white);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-primary-dark);
  border: 2px solid var(--color-primary-dark);
}

.btn-secondary:hover {
  background-color: var(--color-primary-dark);
  color: var(--color-white);
}

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

.btn-outline-white:hover {
  background-color: var(--color-white);
  color: var(--color-primary-dark);
  transform: translateY(-2px);
}

/* Glassmorphism utility */
.glass-panel {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
}

/* Accent element (lightning symbol/accent decoration) */
.macron-t::first-letter {
  position: relative;
}
.macron-t::first-letter::before {
  content: "̄";
  position: absolute;
  top: -0.15em;
  left: 0;
  width: 100%;
  text-align: center;
}

/* ==========================================================================
   4. Header & Navigation (Sticky & Translucent)
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(241, 245, 249, 0.8);
  transition: var(--transition-normal);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-md);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-img {
  height: 48px;
  width: auto;
  border-radius: 4px;
}

.logo-text-wrapper {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-family: var(--font-headings);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-primary-dark);
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.logo-subtitle {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-accent-blue);
  line-height: 1;
  margin-top: 2px;
}

.nav-menu {
  display: flex;
  align-items: center;
}

.nav-menu ul {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-item a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-primary-dark);
  position: relative;
  padding: 0.5rem 0;
}

.nav-item a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-accent);
  transition: var(--transition-normal);
}

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

.nav-item.active a {
  color: var(--color-accent-blue);
}

/* Dropdown Menu Common Styles */
.nav-item {
  position: relative;
}

/* On desktop, hide dropdowns by default and show on hover */
@media (min-width: 769px) {
  .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: var(--color-primary-dark);
    min-width: 220px;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    padding: 0.75rem 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    list-style: none;
  }
  
  .nav-item.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }

  .dropdown-menu li {
    width: 100%;
    padding: 0;
    margin: 0;
  }

  .dropdown-menu li a {
    display: block;
    padding: 0.6rem 1.25rem;
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    transition: var(--transition-fast) !important;
    text-align: left;
    width: 100%;
  }
  
  .dropdown-menu li a::after {
    display: none !important; /* Remove line animation */
  }

  .dropdown-menu li a:hover {
    color: var(--color-accent-teal) !important;
    background-color: rgba(255, 255, 255, 0.05);
  }
  
  /* Chevron indicator styling */
  .toggle-dropdown-icon {
    font-size: 0.75rem;
    margin-left: 0.25rem;
    transition: transform 0.2s ease;
  }
  
  .nav-item.has-dropdown:hover .toggle-dropdown-icon {
    transform: rotate(180deg);
  }
}


.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.75rem;
  color: var(--color-primary-dark);
  cursor: pointer;
  z-index: 1010;
}

/* ==========================================================================
   5. Hero Banner Section
   ========================================================================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  background-color: var(--color-primary-dark);
  display: flex;
  align-items: center;
  color: var(--color-white);
  padding-top: 80px; /* Offset for header */
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(10, 37, 64, 0.9) 0%, rgba(10, 37, 64, 0.5) 100%);
  z-index: 2;
}

.hero .container {
  position: relative;
  z-index: 3;
}

.hero-content {
  max-width: 650px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 212, 178, 0.15);
  color: var(--color-accent-teal);
  padding: 0.5rem 1rem;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(0, 212, 178, 0.3);
}

.hero-badge i {
  font-size: 0.9rem;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.hero-title span {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.15rem;
  color: #CBD5E1;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Floating animation for decorative shapes in background */
.hero-glow-shape {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 115, 236, 0.2) 0%, rgba(0, 0, 0, 0) 70%);
  bottom: -100px;
  right: -50px;
  z-index: 2;
  border-radius: 50%;
  animation: float-slow 15s infinite alternate;
}

@keyframes float-slow {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-40px) scale(1.1); }
}

/* ==========================================================================
   6. Core Layouts & Component Grids
   ========================================================================== */

/* Company Intro Grid */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.intro-image-wrapper {
  position: relative;
}

.intro-img {
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.intro-badge-overlay {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--gradient-primary);
  color: var(--color-white);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  border-bottom: 4px solid var(--color-accent-teal);
}

.intro-badge-number {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--color-accent-teal);
  margin-bottom: 0.25rem;
}

.intro-badge-text {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.intro-content .intro-lead {
  font-size: 1.25rem;
  color: var(--color-accent-blue);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.intro-features {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.intro-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.intro-feature-icon {
  background: rgba(0, 115, 236, 0.1);
  color: var(--color-accent-blue);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.85rem;
}

.intro-feature-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-primary-dark);
}

/* Solutions Card Layout */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.card {
  background-color: var(--color-white);
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid #E2E8F0;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 115, 236, 0.15);
}

.card-icon {
  background: linear-gradient(135deg, rgba(0, 115, 236, 0.1) 0%, rgba(0, 212, 178, 0.1) 100%);
  color: var(--color-accent-blue);
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 2rem;
  transition: var(--transition-normal);
}

.card:hover .card-icon {
  background: var(--gradient-accent);
  color: var(--color-white);
  transform: rotateY(180deg);
}

.card-title {
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.card-description {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.card-link {
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-accent-blue);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.card-link i {
  transition: var(--transition-fast);
}

.card-link:hover i {
  transform: translateX(5px);
}

/* Why Choose Us Icons Grid */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.why-card {
  text-align: center;
  padding: 2rem;
  background-color: var(--color-white);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  border-bottom: 3px solid transparent;
  transition: var(--transition-normal);
}

.why-card:hover {
  border-bottom-color: var(--color-accent-teal);
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.why-icon {
  font-size: 2.25rem;
  color: var(--color-accent-blue);
  margin-bottom: 1.25rem;
}

.why-card-title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.why-card-desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* Highlight Featured Products */
.featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

.featured-product-card {
  background-color: var(--color-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid #E2E8F0;
  display: flex;
  flex-direction: column;
}

.featured-product-image {
  position: relative;
  height: 280px;
  background-color: var(--color-bg-alt);
  overflow: hidden;
}

.featured-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

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

.featured-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--color-primary-dark);
  color: var(--color-white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 30px;
  text-transform: uppercase;
}

.featured-product-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.featured-tag {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-accent-blue);
  margin-bottom: 0.5rem;
}

.featured-product-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.featured-product-desc {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.featured-product-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  background-color: var(--color-bg-light);
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
}

.spec-item {
  display: flex;
  flex-direction: column;
}

.spec-label {
  font-weight: 700;
  color: var(--color-primary-dark);
}

.spec-value {
  color: var(--color-text-muted);
}

/* ==========================================================================
   7. Customer Testimonials & CTA Section
   ========================================================================== */
.testimonial-carousel {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
  padding: 1rem;
}

.testimonial-slide {
  text-align: center;
  display: none;
  animation: fade-in 0.5s ease-in-out forwards;
}

.testimonial-slide.active {
  display: block;
}

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

.testimonial-quote {
  font-size: 1.5rem;
  font-weight: 500;
  font-style: italic;
  margin-bottom: 2rem;
  color: var(--color-primary-dark);
  line-height: 1.5;
  position: relative;
}

.testimonial-quote::before, .testimonial-quote::after {
  content: '"';
  font-size: 3rem;
  font-family: var(--font-headings);
  color: rgba(0, 115, 236, 0.15);
  position: absolute;
}
.testimonial-quote::before { top: -25px; left: -10px; }
.testimonial-quote::after { bottom: -45px; right: -10px; }

.testimonial-client {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.client-name {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-primary-dark);
}

.client-position {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.carousel-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-top: 3rem;
}

.carousel-btn {
  background: var(--color-white);
  border: 1px solid #CBD5E1;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.carousel-btn:hover {
  background-color: var(--color-accent-blue);
  color: var(--color-white);
  border-color: var(--color-accent-blue);
}

.carousel-dots {
  display: flex;
  gap: 0.5rem;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #CBD5E1;
  cursor: pointer;
  transition: var(--transition-fast);
}

.carousel-dot.active {
  background-color: var(--color-accent-blue);
  width: 24px;
  border-radius: 5px;
}

/* Call To Action Banner */
.cta-banner {
  background: var(--gradient-primary);
  color: var(--color-white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(0, 212, 178, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
  pointer-events: none;
}

.cta-content {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: 1.5rem;
}

.cta-desc {
  font-size: 1.1rem;
  color: #CBD5E1;
  margin-bottom: 2.5rem;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

/* ==========================================================================
   8. Specific Page Styles: About Us
   ========================================================================== */
.about-banner {
  background: var(--gradient-primary);
  color: var(--color-white);
  padding: 6rem 0 4rem 0;
  text-align: center;
  position: relative;
}

.about-banner h1 {
  color: var(--color-white);
  font-size: 3rem;
  margin-top: 2rem;
}

.about-banner p {
  color: #CBD5E1;
  max-width: 600px;
  margin: 0.5rem auto 0 auto;
  font-size: 1.1rem;
}

.vision-mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.v-m-card {
  background-color: var(--color-white);
  border-radius: 12px;
  padding: 3rem;
  box-shadow: var(--shadow-md);
  position: relative;
  border-top: 4px solid var(--color-accent-blue);
}

.v-m-card.mission-card {
  border-top-color: var(--color-accent-teal);
}

.v-m-icon {
  font-size: 2.5rem;
  color: var(--color-accent-blue);
  margin-bottom: 1.5rem;
}
.mission-card .v-m-icon {
  color: var(--color-accent-teal);
}

.v-m-card h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

/* Core Values Grid */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.value-card {
  background-color: var(--color-white);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.value-card:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-md);
}

.value-number {
  font-family: var(--font-headings);
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(0, 115, 236, 0.15);
  margin-bottom: 0.5rem;
}

.value-card h4 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.value-card p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* Management Team Grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.team-card {
  background-color: var(--color-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: var(--transition-normal);
  border: 1px solid #E2E8F0;
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 115, 236, 0.15);
}

.team-avatar {
  width: 100%;
  height: 250px;
  background-color: var(--color-bg-alt);
  overflow: hidden;
  position: relative;
}

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-normal);
}

.team-card:hover .team-avatar img {
  transform: scale(1.05);
}

.team-info {
  padding: 1.5rem;
}

.team-name {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.team-role {
  font-size: 0.85rem;
  color: var(--color-accent-blue);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ==========================================================================
   9. Specific Page Styles: Our Solutions & Accessories
   ========================================================================== */

/* Specification comparison table */
.spec-table-container {
  overflow-x: auto;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  border: 1px solid #E2E8F0;
  margin-top: 3rem;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  background-color: var(--color-white);
  min-width: 800px;
}

.spec-table th {
  background-color: var(--color-primary-dark);
  color: var(--color-white);
  padding: 1.25rem;
  font-family: var(--font-headings);
  font-weight: 600;
}

.spec-table td {
  padding: 1.25rem;
  border-bottom: 1px solid #E2E8F0;
  font-size: 0.9rem;
}

.spec-table tr:last-child td {
  border-bottom: none;
}

.spec-table tr:nth-child(even) {
  background-color: var(--color-bg-light);
}

.spec-table tr:hover {
  background-color: rgba(0, 115, 236, 0.03);
}

/* Product Cards & Filters on Accessories */
.filters-wrapper {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--color-white);
  border: 1px solid #CBD5E1;
  padding: 0.6rem 1.5rem;
  border-radius: 30px;
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--gradient-accent);
  color: var(--color-white);
  border-color: transparent;
  box-shadow: var(--shadow-sm);
}

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

.product-card {
  background-color: var(--color-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid #E2E8F0;
  display: flex;
  flex-direction: column;
  transition: var(--transition-normal);
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 212, 178, 0.2);
}

.product-image {
  height: 200px;
  background-color: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.product-image img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  transition: var(--transition-normal);
}

.product-card:hover .product-image img {
  transform: scale(1.1);
}

.product-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-category {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--color-text-muted);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.product-name {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  flex-grow: 1;
  color: var(--color-primary-dark);
}

.product-spec-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.7rem;
  background-color: var(--color-bg-alt);
  color: var(--color-primary-dark);
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 1.25rem;
}

.product-action-btn {
  width: 100%;
  background: var(--color-bg-alt);
  color: var(--color-primary-dark);
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 0.85rem;
  border: none;
  padding: 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition-fast);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.product-card:hover .product-action-btn {
  background: var(--gradient-primary);
  color: var(--color-white);
}

/* Lightbox Modal (Global popup for inquiry / images) */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(6, 21, 39, 0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal.active {
  display: flex;
}

.modal-content {
  background-color: var(--color-white);
  border-radius: 12px;
  max-width: 500px;
  width: 100%;
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  animation: zoom-in 0.3s ease;
}

@keyframes zoom-in {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-text-muted);
  cursor: pointer;
}

.modal-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.modal-desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.modal-form .form-group {
  margin-bottom: 1.25rem;
}

.modal-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.modal-form input, .modal-form select, .modal-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.9rem;
}

.modal-form input:focus, .modal-form select:focus, .modal-form textarea:focus {
  outline: none;
  border-color: var(--color-accent-blue);
  box-shadow: 0 0 0 3px rgba(0, 115, 236, 0.15);
}

/* ==========================================================================
   10. Specific Page Styles: Software & Dashboard
   ========================================================================== */
.software-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

.software-hero-img {
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.software-features-list {
  margin-top: 2rem;
}

.software-feature-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.software-feature-dot {
  background: var(--gradient-accent);
  color: var(--color-white);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.7rem;
  margin-top: 0.2rem;
}

.software-feature-row h4 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.software-feature-row p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* Interactive Calculator Styles */
.calculator-container {
  max-width: 750px;
  margin: 0 auto;
  background-color: var(--color-white);
  border-radius: 12px;
  padding: 3rem;
  box-shadow: var(--shadow-md);
  border: 1px solid #E2E8F0;
}

.calc-inputs {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 3rem;
}

.calc-group {
  display: flex;
  flex-direction: column;
}

.calc-label-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-primary-dark);
}

.calc-value {
  color: var(--color-accent-blue);
}

.calc-range {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #E2E8F0;
  outline: none;
}

.calc-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gradient-accent);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.calc-range::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: var(--shadow-glow);
}

.calc-results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  background-color: var(--color-bg-light);
  padding: 2rem;
  border-radius: 8px;
  border: 1px dashed #CBD5E1;
}

.calc-res-item {
  text-align: center;
}

.calc-res-label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.calc-res-num {
  font-size: 2.25rem;
  font-family: var(--font-headings);
  font-weight: 800;
  color: var(--color-accent-teal);
  line-height: 1;
}

/* ==========================================================================
   11. Specific Page Styles: Services
   ========================================================================== */
.timeline {
  position: relative;
  max-width: 1000px;
  margin: 4rem auto 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background-color: #E2E8F0;
  transform: translateX(-50%);
}

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

.timeline-item::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  right: -10px;
  top: 2.5rem;
  background-color: var(--color-white);
  border: 4px solid var(--color-accent-blue);
  border-radius: 50%;
  z-index: 1;
  transition: var(--transition-fast);
}

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

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

.timeline-item:nth-child(even)::after {
  left: -10px;
}

.timeline-content {
  padding: 2rem;
  background-color: var(--color-white);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  border: 1px solid #E2E8F0;
  transition: var(--transition-normal);
}

.timeline-item:hover .timeline-content {
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 115, 236, 0.15);
  transform: translateY(-3px);
}

.timeline-item:hover::after {
  background-color: var(--color-accent-teal);
  border-color: var(--color-accent-teal);
  box-shadow: var(--shadow-glow);
}

.timeline-number {
  font-family: var(--font-headings);
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(0, 115, 236, 0.1);
  line-height: 1;
  position: absolute;
  top: 15px;
  right: 25px;
}

.timeline-item:nth-child(even) .timeline-number {
  left: 25px;
  right: auto;
}

.timeline-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--color-primary-dark);
}

/* ==========================================================================
   12. Specific Page Styles: Photos / Gallery & Lightbox
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  height: 250px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(10, 37, 64, 0) 40%, rgba(10, 37, 64, 0.8) 100%);
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  transition: var(--transition-normal);
  z-index: 2;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-caption {
  color: var(--color-white);
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 1rem;
}

.gallery-category {
  color: var(--color-accent-teal);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

/* Lightbox specific modal styles */
.lightbox-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(6, 21, 39, 0.95);
  backdrop-filter: blur(10px);
  z-index: 3000;
  align-items: center;
  justify-content: center;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-img-wrapper {
  position: relative;
  max-width: 90%;
  max-height: 80vh;
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 4px;
  box-shadow: 0 0 30px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.1);
  display: block;
}

.lightbox-caption-box {
  color: var(--color-white);
  text-align: center;
  margin-top: 1.5rem;
}

.lightbox-title {
  font-family: var(--font-headings);
  font-size: 1.25rem;
  font-weight: 700;
}

.lightbox-category {
  color: var(--color-accent-teal);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-top: 0.25rem;
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: var(--transition-fast);
}

.lightbox-nav-btn:hover {
  background: var(--color-accent-blue);
  box-shadow: var(--shadow-glow-blue);
}

.lightbox-prev {
  left: -80px;
}

.lightbox-next {
  right: -80px;
}

.lightbox-close {
  position: absolute;
  top: -50px;
  right: 0;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--color-white);
  cursor: pointer;
  transition: var(--transition-fast);
}

.lightbox-close:hover {
  color: var(--color-danger);
}

/* ==========================================================================
   13. Specific Page Styles: Contact Us
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
}

.contact-info-column {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.contact-info-icon {
  background: var(--gradient-accent);
  color: var(--color-white);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-info-details h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--color-primary-dark);
}

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

.contact-info-details a:hover {
  color: var(--color-accent-blue);
}

.contact-form-column {
  background-color: var(--color-white);
  border-radius: 12px;
  padding: 3rem;
  box-shadow: var(--shadow-md);
  border: 1px solid #E2E8F0;
}

.form-title {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.form-subtitle {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.contact-form .form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

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

.contact-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 0.5rem;
}

.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background-color: var(--color-bg-light);
  transition: var(--transition-fast);
}

.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none;
  border-color: var(--color-accent-blue);
  background-color: var(--color-white);
  box-shadow: 0 0 0 4px rgba(0, 115, 236, 0.12);
}

.map-container {
  width: 100%;
  height: 450px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid #E2E8F0;
  margin-top: 4rem;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ==========================================================================
   14. Footer Layout & Styles
   ========================================================================== */
.footer {
  background: var(--gradient-dark);
  color: #94A3B8;
  padding: 5rem 0 2rem 0;
  border-top: 4px solid var(--color-accent-blue);
  font-size: 0.9rem;
}

.footer h3, .footer h4 {
  color: var(--color-white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-about {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-logo-title {
  font-family: var(--font-headings);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-white);
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.footer-desc {
  line-height: 1.7;
}

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

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition-fast);
}

.social-icon:hover {
  background-color: var(--color-accent-blue);
  transform: translateY(-3px);
}

.footer-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 35px;
  height: 2px;
  background-color: var(--color-accent-teal);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a:hover {
  color: var(--color-accent-teal);
  padding-left: 5px;
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-contact-row {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.footer-contact-row i {
  color: var(--color-accent-teal);
  margin-top: 0.25rem;
}

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

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a:hover {
  color: var(--color-white);
}

/* ==========================================================================
   15. Interactive Features: WhatsApp Button
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25D366;
  color: var(--color-white);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: var(--transition-normal);
  cursor: pointer;
}

.whatsapp-float::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: #25D366;
  opacity: 0.4;
  z-index: -1;
  animation: pulse-ring 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* Toast Notifications */
.toast-notification {
  position: fixed;
  bottom: 30px;
  left: 30px;
  background-color: var(--color-primary-dark);
  color: var(--color-white);
  padding: 1rem 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--color-success);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 5000;
  transform: translateY(100px);
  opacity: 0;
  transition: var(--transition-normal);
}

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

/* ==========================================================================
   16. Responsive Layout Breakpoints
   ========================================================================== */

/* Medium Devices: Tablets (1024px) */
@media (max-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Small Devices: Mobile Landscape / Tablets (768px) */
@media (max-width: 768px) {
  .section {
    padding: 4rem 0;
  }
  .section-alt {
    padding: 4rem 0;
  }
  .section-dark {
    padding: 4rem 0;
  }

  .mobile-nav-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: var(--color-primary-dark);
    flex-direction: column;
    padding: 2rem 1.5rem;
    gap: 1rem;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-lg);
    z-index: 999;
    overflow-y: auto;
    display: flex;
    align-items: flex-start;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-menu ul {
    flex-direction: column;
    width: 100%;
    gap: 0;
    align-items: flex-start;
    padding: 0;
    margin: 0;
  }

  .nav-menu .nav-item {
    width: 100%;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-menu .nav-item a {
    font-size: 1.15rem;
    color: var(--color-white);
    padding: 1rem 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    font-weight: 600;
  }

  /* Submenus on mobile */
  .nav-menu .dropdown-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: rgba(255, 255, 255, 0.03);
    width: 100%;
    padding-left: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    list-style: none;
  }

  .nav-menu .nav-item.dropdown-active .dropdown-menu {
    max-height: 500px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
  }

  .nav-menu .dropdown-menu li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  }

  .nav-menu .dropdown-menu li:last-child {
    border-bottom: none;
  }

  .nav-menu .dropdown-menu li a {
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    padding: 0.85rem 0.5rem;
    display: block;
  }

  .nav-menu .dropdown-menu li.active a {
    color: var(--color-accent-teal) !important;
  }

  .nav-menu .nav-item.dropdown-active .toggle-dropdown-icon {
    transform: rotate(180deg);
  }

  .toggle-dropdown-icon {
    font-size: 0.85rem;
    transition: transform 0.3s ease;
    color: rgba(255, 255, 255, 0.6);
    padding: 0.5rem;
  }

  /* Highlighting active items */
  .nav-menu .nav-item.active > a {
    color: var(--color-accent-teal) !important;
  }

  /* Make sure link underlines don't draw on mobile */
  .nav-menu .nav-item a::after {
    display: none !important;
  }

  .hero-title {
    font-size: 2.75rem;
  }

  .intro-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .intro-image-wrapper {
    order: 2;
  }

  .featured-grid {
    grid-template-columns: 1fr;
  }

  .vision-mission-grid {
    grid-template-columns: 1fr;
  }

  .software-hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 45px;
    padding-right: 0;
  }

  .timeline-item:nth-child(even) {
    left: 0;
  }

  .timeline-item::after {
    left: 10px;
    right: auto;
  }

  .timeline-item:nth-child(even)::after {
    left: 10px;
  }

  .timeline-item:nth-child(even) .timeline-number {
    right: 25px;
    left: auto;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .calc-results {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .lightbox-prev {
    left: -40px;
  }
  .lightbox-next {
    right: -40px;
  }
}

/* Extra Small Devices: Phones (480px) */
@media (max-width: 480px) {
  .container {
    padding: 0 1.25rem;
  }

  .hero-title {
    font-size: 2.25rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-form-column {
    padding: 1.75rem;
  }

  .contact-form .form-row-2 {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .calculator-container {
    padding: 1.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .lightbox-prev, .lightbox-next {
    display: none;
  }
}

/* ==========================================================================
   12. Investor & Partnership Section Styling
   ========================================================================== */
.investor-section {
  background-color: var(--color-white);
  border-top: 1px solid #E2E8F0;
  border-bottom: 1px solid #E2E8F0;
  padding: 6rem 0;
  position: relative;
}

.investor-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 5rem;
  align-items: flex-start;
}

.investor-bullet-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.5rem 0 2.5rem;
}

.investor-bullet-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.investor-bullet-icon {
  color: var(--color-accent-blue);
  font-size: 1.1rem;
  margin-top: 2px;
}

.investor-quote-box {
  background: var(--gradient-primary);
  color: var(--color-white);
  border-radius: 12px;
  padding: 2.25rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.investor-quote-box::after {
  content: '\f10e';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  bottom: -10px;
  right: 15px;
  font-size: 6rem;
  color: rgba(255, 255, 255, 0.05);
  line-height: 1;
}

.investor-partnerships-card {
  background: var(--color-bg-light);
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.investor-partnerships-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.investor-partnership-item {
  background-color: var(--color-white);
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-primary-dark);
  transition: var(--transition-fast);
}

.investor-partnership-item:hover {
  transform: translateX(5px);
  border-color: var(--color-accent-blue);
  box-shadow: var(--shadow-sm);
}

.investor-tagline {
  font-family: var(--font-headings);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-accent-blue);
  margin-top: 2rem;
  letter-spacing: -0.5px;
  text-shadow: 0 0 1px rgba(0, 115, 236, 0.1);
}

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


/* ==========================================================================
   11. CPO Turnkey Services Spotlight & Process Styling
   ========================================================================== */
.cpo-spotlight-section {
  background: radial-gradient(circle at 80% 20%, rgba(0, 115, 236, 0.12) 0%, transparent 50%), var(--gradient-dark);
  color: var(--color-white);
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid var(--color-accent-blue);
}

.cpo-spotlight-section .section-title {
  color: var(--color-white);
}

.cpo-spotlight-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-top: 3rem;
}

.cpo-spotlight-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 3rem;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
  position: relative;
}

.cpo-spotlight-card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, var(--color-accent-blue), var(--color-accent-teal));
  z-index: -1;
  border-radius: 18px;
  opacity: 0.35;
  filter: blur(4px);
}

.cpo-badge {
  background: var(--gradient-accent);
  color: var(--color-white);
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-glow);
  animation: pulse-glow 2s infinite alternate;
}

@keyframes pulse-glow {
  0% { transform: scale(1); box-shadow: 0 0 10px rgba(0, 212, 178, 0.3); }
  100% { transform: scale(1.05); box-shadow: 0 0 20px rgba(0, 115, 236, 0.6); }
}

.cpo-industries-tag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.cpo-industry-tag {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #CBD5E1;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition-fast);
}

.cpo-industry-tag:hover {
  background: rgba(0, 212, 178, 0.1);
  border-color: var(--color-accent-teal);
  color: var(--color-white);
  transform: translateY(-2px);
}

/* 8-Step Process Layout */
.cpo-process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.cpo-process-card {
  background-color: var(--color-white);
  border-radius: 12px;
  border: 1px solid #E2E8F0;
  padding: 2.25rem 2rem;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  overflow: hidden;
}

.cpo-process-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-accent-blue);
}

.cpo-process-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: var(--gradient-accent);
  transition: var(--transition-normal);
}

.cpo-process-card:hover::after {
  height: 100%;
}

.cpo-step-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 2.5rem;
  font-weight: 800;
  color: #F1F5F9;
  line-height: 1;
  z-index: 1;
  transition: var(--transition-normal);
}

.cpo-process-card:hover .cpo-step-badge {
  color: rgba(0, 115, 236, 0.08);
}

.cpo-process-card h4 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  color: var(--color-primary-dark);
  position: relative;
  z-index: 2;
  font-family: var(--font-headings);
  font-weight: 700;
}

.cpo-process-card p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  position: relative;
  z-index: 2;
}

/* Why Choose Grid */
.cpo-bullets-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}

.cpo-bullet-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
}

@media (max-width: 1024px) {
  .cpo-spotlight-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .cpo-bullets-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   13. FAQ Accordion Styling
   ========================================================================== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background-color: var(--color-white);
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.faq-item.active {
  border-color: var(--color-accent-blue);
  box-shadow: var(--shadow-md);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.5rem;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-headings);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  cursor: pointer;
}

.faq-icon-toggle {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent-blue);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon-toggle {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
}

.faq-item.active .faq-answer {
  max-height: 1000px;
  transition: max-height 0.3s cubic-bezier(1, 0, 1, 0);
}

.faq-answer-inner {
  padding: 0 1.5rem 1.5rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  border-top: 1px solid #F1F5F9;
}

/* ==========================================================================
   14. Blog Card & Reading Modal Styling
   ========================================================================== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.blog-card {
  background-color: var(--color-white);
  border-radius: 12px;
  border: 1px solid #E2E8F0;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition-normal);
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-accent-blue);
}

.blog-card-header {
  height: 200px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.blog-card-header::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle, rgba(0,212,178,0.2) 0%, transparent 80%);
}

.blog-card-header i {
  font-size: 4rem;
  color: rgba(255, 255, 255, 0.15);
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-header i {
  transform: scale(1.15) rotate(5deg);
}

.blog-card-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

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

.blog-card-category {
  color: var(--color-accent-blue);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.blog-card-title {
  font-size: 1.25rem;
  color: var(--color-primary-dark);
  margin-bottom: 1rem;
  line-height: 1.4;
  font-family: var(--font-headings);
  font-weight: 700;
}

.blog-card-excerpt {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex: 1;
}

.blog-card-btn {
  align-self: flex-start;
  color: var(--color-accent-blue);
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: none;
  background: none;
  cursor: pointer;
  transition: var(--transition-fast);
}

.blog-card-btn:hover {
  color: var(--color-accent-teal);
  transform: translateX(3px);
}

/* Reading Modal */
.blog-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(10, 37, 64, 0.6);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 2rem;
}

.blog-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.blog-modal-content {
  background-color: var(--color-white);
  border-radius: 16px;
  width: 100%;
  max-width: 800px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 3rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.blog-modal.active .blog-modal-content {
  transform: translateY(0);
}

.blog-modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--color-bg-light);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  color: var(--color-text-dark);
  font-size: 1.1rem;
}

.blog-modal-close:hover {
  background-color: var(--color-danger);
  color: var(--color-white);
}

.blog-modal-body h4 {
  font-size: 1.2rem;
  color: var(--color-primary-dark);
  margin: 1.5rem 0 0.75rem 0;
  font-family: var(--font-headings);
  font-weight: 700;
}

.blog-modal-body p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.blog-modal-body ul, .blog-modal-body ol {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.blog-modal-body li {
  margin-bottom: 0.5rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* ==========================================================================
   Additional Mobile Overrides (max-width: 480px)
   ========================================================================== */
@media (max-width: 480px) {
  /* Inquiry Modal padding */
  .modal-content {
    padding: 1.5rem !important;
  }
  
  .modal-close {
    top: 10px !important;
    right: 10px !important;
    font-size: 1.25rem !important;
  }

  /* Blog Reading Modal adjustments */
  .blog-modal {
    padding: 0.5rem !important;
  }

  .blog-modal-content {
    padding: 1.5rem 1rem !important;
    max-height: 95vh !important;
    border-radius: 12px !important;
  }

  .blog-modal-close {
    top: 10px !important;
    right: 10px !important;
    width: 30px !important;
    height: 30px !important;
    font-size: 0.95rem !important;
  }

  /* FAQ Accordion question styling on small phones */
  .faq-question {
    font-size: 0.95rem !important;
    padding: 1rem 0.75rem !important;
  }
  
  .faq-icon-toggle {
    font-size: 0.85rem !important;
  }

  .faq-answer-inner {
    padding: 0 0.75rem 1rem !important;
    font-size: 0.85rem !important;
  }
}


