/* ========================================
   RF Communications Website - Global Styles
   Main Stylesheet
   ======================================== */

/* ===== GLOBAL RESET & BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  overflow-y: auto;
}

body {
  font-family: 'Poppins', 'Times New Roman', sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: 80px; /* Space for footer */
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-heading);
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.75rem;
}

h4 {
  font-size: 1.5rem;
}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--tertiary-color);
}

/* ===== CONTAINER & LAYOUT ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: var(--text-heading);
}

.section-title p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--tertiary-color), var(--secondary-color));
  margin: 20px auto 0;
  border-radius: 2px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 12px 30px;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
}

.btn-primary {
  background-color: var(--btn-primary-bg);
  color: var(--btn-primary-text);
}

.btn-primary:hover {
  background-color: var(--btn-primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: var(--btn-secondary-bg);
  color: var(--btn-secondary-text);
}

.btn-secondary:hover {
  background-color: var(--btn-secondary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-tertiary {
  background-color: var(--tertiary-color);
  color: #fff;
}

.btn-tertiary:hover {
  background-color: var(--tertiary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline-primary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  color: var(--btn-primary-text);
}

.btn-outline-secondary {
  background-color: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
}

.btn-outline-secondary:hover {
  background-color: var(--secondary-color);
  color: var(--btn-secondary-text);
}

.btn-lg {
  padding: 15px 40px;
  font-size: 1.1rem;
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.9rem;
}

/* ===== CARDS ===== */
.card {
  background-color: var(--bg-card);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--tertiary-color);
}

.card-img-top {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.card-body {
  padding: 20px;
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--text-heading);
}

.card-text {
  color: var(--text-secondary);
  margin-bottom: 15px;
}

/* ===== TOP BANNER SECTION ===== */
.top-banner {
    background-color: var(--bg-card);
    border-bottom: 3px solid var(--primary-color);
    padding: 20px 0;
    box-shadow: var(--shadow-sm);
}

.banner-logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.banner-logo img {
    max-height: 120px;
    width: auto;
}

.banner-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: right;
}

.company-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 5px;
    font-family: 'Poppins', sans-serif;
}

.company-tagline {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 3px;
    font-weight: 500;
}

.company-info {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    font-weight: 400;
}


/* ===== NAVIGATION ===== */
.navbar {
  background-color: var(--nav-bg);
  box-shadow: var(--nav-shadow);
  padding: 5px;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
  width: 100%;
}

.navbar.scrolled {
  padding: 10px 0;
  box-shadow: var(--shadow-md);
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-heading);
  display: flex;
  align-items: center;
  gap: 5px;
}

.navbar-brand img {
  height: 40px;
  width: auto;
}

.navbar-nav {
  display: flex;
  list-style: none;
  gap: 20px;
  align-items: center;
}

.navbar-collapse {
  justify-content: center;
}

.nav-link {
  color: var(--nav-text);
  padding: 4px 8px;
  margin: 3px;
  font-weight: 500;
  font-size: 15px;
  position: relative;
  transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--nav-hover);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary-color);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* ==== Theme Toggle ==== */
.theme-toggle-container {
  display: flex;
  align-items: center;
  margin-left: 15px;
}

/* Theme Toggle Button */
.theme-toggle-btn {
  position: relative;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.15);
  background-color: rgba(255, 255, 255, 0.95);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.theme-toggle-btn:hover {
  background-color: var(--primary-light);
  border-color: var(--primary-color);
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(144, 238, 144, 0.3);
}

.theme-toggle-btn:active {
  transform: scale(0.95);
}

/* Theme Icons (SVG) */
.theme-icon {
  width: 22px;
  height: 22px;
  position: absolute;
  transition: all 0.4s ease;
}

/* Sun icon - visible in light mode */
.sun-icon {
  color: #ff7600;
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

/* Moon icon - hidden in light mode */
.moon-icon {
  color: #1a1a1a;
  opacity: 0;
  transform: rotate(180deg) scale(0);
}

/* Dark theme styles */
[data-theme="dark"] .theme-toggle-btn {
  background-color: rgba(42, 42, 42, 0.95);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .theme-toggle-btn:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(144, 238, 144, 0.2);
}

[data-theme="dark"] .sun-icon {
  opacity: 0;
  transform: rotate(-180deg) scale(0);
}

[data-theme="dark"] .moon-icon {
  color: #90ee90;
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

/* Theme transition animation */
body.theme-transitioning,
body.theme-transitioning * {
  transition: background-color 0.3s ease, 
              color 0.3s ease, 
              border-color 0.3s ease !important;
}


/* ========================================
   HERO SECTION - CLEAN CODE
   Circle Layout with 5 Elements
   Replace entire hero.css with this
   ======================================== */

/* ===== HERO SECTION ===== */
.hero-section {
  position: relative;
  min-height: calc(100vh - 180px);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 140px 0 100px;
  background-color: var(--bg-primary);
}

/* ===== ANIMATED BACKGROUND ===== */
.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-gradient {
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 150%;
  background: radial-gradient(circle, rgba(0, 197, 252, 0.08) 0%, transparent 70%);
  animation: gradientFloat 20s ease-in-out infinite;
}

[data-theme="dark"] .hero-gradient {
  background: radial-gradient(circle, rgba(144, 238, 144, 0.06) 0%, transparent 70%);
}


/* ===== FLOATING SHAPES ===== */
.floating-shapes {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.shape {
  position: absolute;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  opacity: 0.06;
  border-radius: 50%;
  animation: float 15s ease-in-out infinite;
}

[data-theme="dark"] .shape {
  opacity: 0.03;
}

.shape-1 { width: 120px; height: 120px; top: 15%; left: 8%; animation-delay: 0s; }
.shape-2 { width: 180px; height: 180px; top: 65%; left: 3%; animation-delay: 2s; }
.shape-3 { width: 90px; height: 90px; top: 25%; right: 12%; animation-delay: 4s; }
.shape-4 { width: 140px; height: 140px; bottom: 15%; right: 8%; animation-delay: 1s; }
.shape-5 { width: 70px; height: 70px; top: 75%; right: 35%; animation-delay: 3s; }


/* ===== CONTAINER ===== */
.hero-container {
  position: relative;
  z-index: 1;
  max-width: 1400px;
}

/* ===== LEFT CONTENT ===== */
.hero-content {
  padding-right: 30px;
  z-index: 2;
}

.hero-text {
  animation: fadeInUp 0.8s ease-out;
}


.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, rgba(144, 238, 144, 0.15), rgba(255, 118, 0, 0.15));
  border: 2px solid var(--primary-color);
  padding: 10px 24px;
  border-radius: 50px;
  margin-bottom: 30px;
}

.badge-icon {
  font-size: 1.3rem;
  animation: rotate 3s linear infinite;
  line-height: 1;
}

.badge-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1;
}

.hero-title {
  font-size: 3.8rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 28px;
  color: var(--text-heading);
  font-family: 'Poppins', sans-serif;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.hero-description {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 550px;
}

/* ===== BUTTONS ===== */
.hero-buttons {
  display: flex;
  gap: 20px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.btn-hero-primary,
.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 38px;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
}

.btn-hero-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: #1a1a1a;
  box-shadow: 0 8px 24px rgba(144, 238, 144, 0.25);
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(144, 238, 144, 0.35);
  color: #1a1a1a;
}

.btn-hero-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border-color);
}

.btn-hero-secondary:hover {
  background-color: var(--bg-secondary);
  border-color: var(--primary-color);
  transform: translateY(-2px);
  color: var(--text-primary);
}

.btn-icon { transition: transform 0.3s ease; }
.btn-hero-primary:hover .btn-icon { transform: translateX(4px); }

/* ===== STATS ===== */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 40px;
  padding-top: 30px;
  flex-wrap: wrap;
  z-index: 5;
}

.stat-item { text-align: left; min-width: 120px; }
.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary-color);
  line-height: 1;
  margin-bottom: 8px;
  font-family: 'Poppins', sans-serif;
}
.stat-label {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 500;
}
.stat-divider {
  width: 2px;
  height: 60px;
  background-color: var(--border-color);
}

/* ===== RIGHT VISUAL - CIRCLE LAYOUT ===== */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  z-index: 1;
}

.hero-visual-wrapper {
  position: relative;
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
}

/* ===== CENTER VIDEO CARD ===== */
.hero-video-card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 65%;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  transition: all 0.4s ease;
  background: var(--bg-card);
  z-index: 2;
}

.hero-video-card:hover {
  transform: translate(-50%, -50%) translateY(-8px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
}

.card-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(144, 238, 144, 0.2), rgba(255, 118, 0, 0.2));
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 1;
  border-radius: 24px;
}

.hero-video-card:hover .card-glow { opacity: 0.3; }

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 24px;
}

/* ===== 5 FLOATING ELEMENTS - CIRCLE POSITIONS ===== */
.floating-element {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12);
  animation: floatElement 3s ease-in-out infinite;
  backdrop-filter: blur(12px);
  min-width: 180px;
  max-width: 400px;
  transition: all 0.3s ease;
  z-index: 3;
}

[data-theme="dark"] .floating-element {
  background: rgba(42, 42, 42, 0.95);
  border-color: rgba(144, 238, 144, 0.2);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.3);
}

.floating-element:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
  animation-play-state: paused;
}

/* Circle positions - 5 elements evenly distributed */
.floating-element-1 {
  top: -5%;
  left: 40%;
  transform: translateX(-50%);
  animation-delay: 0s;
}

.floating-element-2 {
  top: 15%;
  right: -20%;
  animation-delay: 0.6s;
}

.floating-element-3 {
  bottom: 13%;
  right: -10%;
  animation-delay: 1.2s;
}

.floating-element-4 {
  bottom: 3%;
  left: -7%;
  transform: translateX(-50%);
  animation-delay: 1.8s;
}

.floating-element-5 {
  top: 12.5%;
  left: 0%;
  animation-delay: 2.4s;
}

/* Adjust transforms for elements with translateX */
.floating-element-1:hover,
.floating-element-4:hover {
  transform: translateX(-50%) translateY(-8px) scale(1.05);
}

.element-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
  line-height: 1;
}

.element-content {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.element-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-heading);
  line-height: 1.2;
  white-space: nowrap;
}

.element-subtitle {
  font-size: 0.75rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

/* ===== SCROLL INDICATOR ===== */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex !important;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  animation: bounce 2s ease-in-out infinite;
  cursor: pointer;
  z-index: 100;
  opacity: 1;
  visibility: visible;
}

.scroll-text {
  font-size: 0.9rem;
  color: var(--text-tertiary);
  font-weight: 500;
  letter-spacing: 0.5px;
}

.scroll-arrow svg {
  color: var(--primary-color);
  fill: none;
  width: 24px;
  height: 24px;
}

/* ===== TECHNOLOGIES SECTION ===== */
.technologies-section {
    padding: 100px 0;
    background-color: var(--bg-secondary);
    position: relative;
}

/* Section Title */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 15px;
    font-family: 'Poppins', sans-serif;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Technologies Grid */
.technologies-grid {
    display: flex;
    flex-wrap: wrap;
}

.technologies-grid > [class*="col-"] {
    display: flex;
}

/* Technology Card - Equal Height & Width */
.tech-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    min-height: 280px; /* Ensures minimum height */
}

.tech-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-color);
}

/* Icon */
.tech-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1;
    transition: transform 0.3s ease;
}

.tech-card:hover .tech-icon {
    transform: scale(1.15) rotate(5deg);
}

/* Title */
.tech-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 15px;
    font-family: 'Poppins', sans-serif;
    line-height: 1.3;
    min-height: 52px; /* Ensures equal title height */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Description */
.tech-description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
    flex-grow: 1; /* Takes remaining space */
}

/* Dark Mode Adjustments */
[data-theme="dark"] .tech-card {
    background: var(--bg-card);
    border-color: var(--border-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .tech-card:hover {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-color);
}

/* ========== Services ========= */
.services-section {
  padding: 100px 0;
  background-color: var(--bg-secondary);
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 15px;
}

.section-title p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.services-grid {
  display: flex;
  flex-wrap: wrap;
}

/* Service Card - Equal Height */
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 35px 30px;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
  border-color: var(--primary-color);
}

.service-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, rgba(144, 238, 144, 0.15), rgba(255, 118, 0, 0.15));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  font-size: 2rem;
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  transform: scale(1.1) rotate(5deg);
}

.service-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 15px;
  line-height: 1.3;
}

.service-description {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 25px;
  flex-grow: 1;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-top: auto;
}

.service-link svg {
  transition: transform 0.3s ease;
}

.service-link:hover {
  color: var(--secondary-color);
  gap: 12px;
}

.service-link:hover svg {
  transform: translateX(4px);
}


/* ==== Footer Design ==== */
/* Footer Styles */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 0;
    margin: 0;
    z-index: 100;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.footer-bottom {
    padding: 8px 20px;
    margin: 0;
    border-top: none;
}

/* Flexbox container for inline layout */
.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* Copyright text on left */
.footer-copyright {
    flex-shrink: 0;
}

.footer-copyright span {
    font-size: 0.7rem;
    color: var(--footer-text);
    font-weight: 400;
    white-space: nowrap;
}

/* Footer Navigation Links on right */
.nav-footer {
    display: flex;
    gap: 5px;
    margin: 0;
    flex-shrink: 0;
}

.nav-footer .nav-link {
    color: var(--footer-text);
    font-size: 0.7rem;
    padding: 5px 12px;
    transition: all 0.3s ease;
    font-weight: 500;
    white-space: nowrap;
}

.nav-footer .nav-link:hover {
    color: var(--tertiary-color);
    transform: translateY(-2px);
}

/* Dark Mode Footer Adjustments */
[data-theme="dark"] .footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .footer-bottom span,
[data-theme="dark"] .nav-footer .nav-link {
    color: var(--footer-text);
}

[data-theme="dark"] .nav-footer .nav-link:hover {
    color: var(--primary-light);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  margin-top: 0px;
  padding-top: 0px;
  text-align: center;
  font-size: 0.9rem;
}

.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

.social-icon {
  width: 40px;
  height: 40px;
  background-color: var(--bg-tertiary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.social-icon:hover {
  background-color: var(--primary-color);
  color: var(--btn-primary-text);
  transform: translateY(-3px);
}

/* ===== FORMS ===== */
.form-control {
  width: 100%;
  padding: 12px 15px;
  font-size: 1rem;
  border: 1px solid var(--input-border);
  border-radius: 5px;
  background-color: var(--input-bg);
  color: var(--input-text);
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
}

.form-control:focus {
  outline: none;
  border-color: var(--input-focus);
  box-shadow: 0 0 0 3px rgba(144, 238, 144, 0.1);
}

.form-control::placeholder {
  color: var(--input-placeholder);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-primary);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

/* ===== IMAGES ===== */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===== UTILITIES ===== */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mt-4 { margin-top: 40px; }
.mt-5 { margin-top: 50px; }

.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mb-4 { margin-bottom: 40px; }
.mb-5 { margin-bottom: 50px; }

.pt-1 { padding-top: 10px; }
.pt-2 { padding-top: 20px; }
.pt-3 { padding-top: 30px; }
.pt-4 { padding-top: 40px; }
.pt-5 { padding-top: 50px; }

.pb-1 { padding-bottom: 10px; }
.pb-2 { padding-bottom: 20px; }
.pb-3 { padding-bottom: 30px; }
.pb-4 { padding-bottom: 40px; }
.pb-5 { padding-bottom: 50px; }

.d-flex {
  display: flex;
}

.align-items-center {
  align-items: center;
}

.justify-content-center {
  justify-content: center;
}

.justify-content-between {
  justify-content: space-between;
}

.flex-wrap {
  flex-wrap: wrap;
}

.gap-1 { gap: 10px; }
.gap-2 { gap: 20px; }
.gap-3 { gap: 30px; }

/* ===== LOADING SPINNER ===== */
.spinner {
  border: 3px solid var(--border-light);
  border-top: 3px solid var(--primary-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

/* ===== OVERLAY ===== */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-overlay);
  z-index: 999;
  display: none;
}

.overlay.active {
  display: block;
}

/* ===== SCROLL TO TOP BUTTON ===== */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: var(--btn-primary-text);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
  font-size: 1.5rem;
  box-shadow: var(--shadow-md);
}

.scroll-top.active {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background-color: var(--primary-dark);
  transform: translateY(-5px);
}

/* ===== RESPONSIVE GRID ===== */
.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.col {
  padding: 0 15px;
  flex: 1;
}

.col-1 { flex: 0 0 8.333%; max-width: 8.333%; }
.col-2 { flex: 0 0 16.666%; max-width: 16.666%; }
.col-3 { flex: 0 0 25%; max-width: 25%; }
.col-4 { flex: 0 0 33.333%; max-width: 33.333%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-8 { flex: 0 0 66.666%; max-width: 66.666%; }
.col-12 { flex: 0 0 100%; max-width: 100%; }

/* ===== ACCESSIBILITY ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ===== FOCUS STYLES ===== */
*:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

button:focus,
a:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}


/* ========================================
   Services Page Specific Styles
   ======================================== */

/* --- Hero Section (Responsive) --- */
.svc-hero-section {
    position: relative;
    padding: 60px 0 50px;
    background: url('/assets/images/banners/services-dark.png') no-repeat center center;
    background-size: cover;
    color: white;
    margin-bottom: 0;
    width: 100%;
    overflow: hidden;
}

.svc-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Updated Gradient with Tertiary Color */
    background: linear-gradient(135deg, rgba(0,0,0,0.85) 0%, rgba(0, 197, 252, 0.15) 100%);
    z-index: 1;
}

.relative { position: relative; }
.z-2 { z-index: 2; }

.svc-hero-subtitle {
    display: block;
    color: var(--secondary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 10px;
    margin-bottom: 10px;
    margin-left: 10px;
    margin-right: 10px;
    font-size: 1.1rem;
}

.svc-hero-title {
    font-size: 3.0rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    background: linear-gradient(to right, #ffffff, var(--tertiary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.svc-hero-desc {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.9);
    max-width: 700px;
    margin: 0 auto;
    padding: 10px 25px;
    line-height: 1.6;
}

/* --- Search & Filter Strip --- */
.svc-search-filter-section {
    background-color: var(--bg-card);
    padding: 30px 0;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 70px; 
    z-index: 90;
}

.svc-search-box {
    position: relative;
}

.svc-search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--tertiary-color);
}

.svc-search-box input {
    padding-left: 45px;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    background-color: var(--input-bg);
    color: var(--text-primary);
}

.svc-search-box input:focus {
    border-color: var(--tertiary-color);
    box-shadow: 0 0 0 3px rgba(0, 197, 252, 0.15);
}

.svc-filter-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.svc-filter-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 8px 24px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 600;
}

.svc-filter-btn:hover {
    border-color: var(--tertiary-color);
    color: var(--tertiary-color);
}

.svc-filter-btn.active {
    background-color: var(--secondary-color);
    color: #fff;
    border-color: var(--secondary-color);
    box-shadow: 0 4px 10px rgba(255, 118, 0, 0.3);
}

/* --- Service Cards Modern --- */
.svc-card-modern {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.svc-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--tertiary-color);
}

.svc-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--tertiary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.svc-card-modern:hover::before {
    opacity: 1;
}

.svc-card-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.svc-card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.svc-card-modern:hover .svc-card-img-wrapper img {
    transform: scale(1.08);
}

.svc-card-icon-float {
    position: absolute;
    bottom: 15px;
    right: 25px;
    width: 54px;
    height: 54px;
    background: var(--tertiary-color);
    color: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 5px 15px rgba(0, 197, 252, 0.4);
    z-index: 2;
    transition: transform 0.3s ease;
}

.svc-card-modern:hover .svc-card-icon-float {
    transform: rotate(10deg) scale(1.1);
}

.svc-card-body {
    padding: 35px 25px 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.svc-card-title {
    margin-bottom: 12px;
    color: var(--text-heading);
    font-weight: 700;
}

.svc-card-text {
    flex-grow: 1;
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.svc-card-modern .btn-outline-primary {
    color: var(--tertiary-color);
    border-color: var(--tertiary-color);
}

.svc-card-modern .btn-outline-primary:hover {
    background-color: var(--tertiary-color);
    color: #fff;
}

/* --- Tech Badge --- */
.svc-bg-light-alt {
    background-color: var(--bg-secondary);
}

.svc-tech-badge {
    display: inline-block;
    padding: 12px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-weight: 600;
    color: var(--text-primary);
    width: 100%;
    transition: all 0.3s ease;
}

.svc-tech-badge:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 118, 0, 0.15);
}

/* --- Case Study Card --- */
.svc-case-study-card {
    background: var(--bg-card);
    border-left: 4px solid var(--tertiary-color);
    box-shadow: var(--shadow-sm);
    padding: 30px;
    height: 100%;
    transition: 0.3s;
    border-radius: 0 12px 12px 0;
}

.svc-case-study-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
}

.svc-read-more {
    font-weight: 600;
    color: var(--tertiary-color);
    text-decoration: none;
    margin-top: 15px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s ease;
}

.svc-read-more:hover {
    gap: 10px;
    color: var(--secondary-color);
}

/* --- FAQ Accordion Custom --- */
.svc-custom-accordion .accordion-item {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    margin-bottom: 15px;
    border-radius: 8px !important;
    overflow: hidden;
}

.svc-custom-accordion .accordion-button {
    background-color: var(--bg-card);
    color: var(--text-heading);
    font-weight: 600;
    box-shadow: none;
    padding: 18px 20px;
}

.svc-custom-accordion .accordion-button:not(.collapsed) {
    background-color: rgba(0, 197, 252, 0.08);
    color: var(--tertiary-dark);
}

/* === DARK MODE FIX FOR FAQ ARROWS === */
[data-theme="dark"] .svc-custom-accordion .accordion-button::after {
    filter: invert(1) grayscale(100%) brightness(200%);
}

.svc-custom-accordion .accordion-body {
    color: var(--text-secondary);
    border-top: 1px solid rgba(0,0,0,0.05);
}

/* --- CTA Strip --- */
.svc-cta-strip {
    background: linear-gradient(135deg, #1a1a1a 0%, #2c3e50 100%);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.svc-cta-strip::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--tertiary-color), var(--secondary-color));
}

/* --- Modal Theme & Visibility Fixes --- */
.svc-service-modal {
    z-index: 1060; 
}

/* Force Modal Content to respect theme variables */
.svc-service-modal .modal-content {
    background-color: var(--bg-card) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-color);
}

.svc-service-modal .modal-header {
    border-bottom: 1px solid var(--border-color);
}

.svc-service-modal .modal-footer {
    border-top: 1px solid var(--border-color);
}

/* Fix Modal Close Button visibility in Dark Mode */
[data-theme="dark"] .svc-service-modal .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* --- Modal Accordion Theme Fixes --- */
/* Target the accordion inside the modal specifically */
.svc-service-modal .accordion-item {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.svc-service-modal .accordion-button {
    background-color: var(--bg-card);
    color: var(--text-heading);
    box-shadow: none; 
}

/* Active state for modal accordion buttons */
.svc-service-modal .accordion-button:not(.collapsed) {
    background-color: rgba(0, 197, 252, 0.1); /* Light Tertiary */
    color: var(--tertiary-dark);
    box-shadow: none;
}

.svc-service-modal .accordion-body {
    color: var(--text-secondary);
}

/* Fix Modal Accordion Arrow in Dark Mode */
[data-theme="dark"] .svc-service-modal .accordion-button::after {
    filter: invert(1) grayscale(100%) brightness(200%);
}



/* ========================================
   Products Page Styles
   ======================================== */

/* --- 1. Hero Section --- */
.prod-hero-section {
    position: relative;
    padding: 80px 0;
    background: url('https://placehold.co/1920x600/0f1c2e/FFF?text=Products+Hero') no-repeat center center;
    background-size: cover;
    color: white;
    margin-bottom: 0;
}

.prod-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.8) 0%, rgba(0, 197, 252, 0.2) 100%);
    z-index: 1;
}

.relative { position: relative; }
.z-2 { z-index: 2; }

.prod-hero-subtitle {
    display: block;
    color: var(--tertiary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.prod-hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.2;
}

.prod-hero-desc {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.85);
    max-width: 600px;
}

/* --- 2. Category Row with Arrows --- */
.category-nav-section {
    padding: 30px 0 0;
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
}

.category-row-wrapper {
    /* Wrapper to hide scrollbar but allow scrolling */
    overflow: hidden;
    margin: 0 40px; /* Space for buttons */
    position: relative;
}

.category-row {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 20px;
    -ms-overflow-style: none;
    scrollbar-width: none;
    scroll-behavior: smooth;
    padding-left: 5px;
    padding-right: 5px;
}
.category-row::-webkit-scrollbar { display: none; }

/* Scroll Buttons */
.cat-nav-btn {
    position: absolute;
    top: 40%; /* Vertically centered relative to card height approx */
    transform: translateY(-50%);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.cat-nav-btn:hover {
    background-color: var(--tertiary-color);
    color: white;
    border-color: var(--tertiary-color);
    box-shadow: var(--shadow-md);
}

.prev-btn { left: 0; }
.next-btn { right: 0; }

/* Card Styling */
.cat-card {
    min-width: 160px;
    height: 100px;
    border-radius: 12px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    flex-shrink: 0;
    touch-action: manipulation; 
}

.cat-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
    transition: filter 0.3s;
}

.cat-card-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: 600;
    text-align: center;
    width: 100%;
    padding: 0 5px;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.7);
    font-size: 0.95rem;
}

.cat-card:hover .cat-card-img { filter: brightness(0.4); }
.cat-card:hover { transform: translateY(-3px); }

/* Active State */
.cat-card.active {
    border-color: var(--tertiary-color);
    box-shadow: 0 0 15px rgba(0, 197, 252, 0.3);
}

.cat-card.active::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid var(--tertiary-color);
    z-index: 10;
}

/* --- 3. Toolbar --- */
.toolbar-section {
    background-color: var(--bg-card);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    z-index: 99;
    top: 0;
    transition: top 0.3s;
}

.search-wrapper { position: relative; }

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary);
}

.search-wrapper input {
    padding-left: 40px;
    border-radius: 50px;
    border-color: var(--border-color);
    background-color: var(--input-bg);
    color: var(--text-primary);
    width: 100%;
}

.search-wrapper input:focus {
    border-color: var(--tertiary-color);
    box-shadow: 0 0 0 3px rgba(0, 197, 252, 0.15);
}

.results-count {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.btn-clear-all {
    background: none;
    border: none;
    color: var(--secondary-color);
    text-decoration: underline;
    font-size: 0.85rem;
    cursor: pointer;
    margin-left: 10px;
}

/* --- 4. Product Grid (Masonry-like layout) --- */
.product-grid {
    display: grid;
    /* Intelligent wrapping: Cards won't get smaller than 280px unless screen is tiny */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.prod-card {
    background-color: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    height: 400px; 
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border: 1px solid var(--border-color);
}

.prod-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--tertiary-color);
}

.prod-card-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.prod-card:hover .prod-card-bg { transform: scale(1.1); }

.prod-card-title-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    z-index: 2;
    transition: opacity 0.3s ease;
}

.prod-card-title-text {
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.prod-card-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 28, 46, 0.92);
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    transform: translateY(10px); 
}

[data-theme="dark"] .prod-card-hover-overlay {
    background: rgba(0, 0, 0, 0.85);
}

.prod-card:hover .prod-card-hover-overlay {
    opacity: 1;
    transform: translateY(0);
}

.prod-card:hover .prod-card-title-overlay { opacity: 0; }

.hover-category {
    color: var(--tertiary-color);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    font-weight: 600;
}

.hover-title {
    color: white;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.hover-desc {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    margin-bottom: 25px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- Pagination --- */
.pagination .page-link {
    background-color: var(--bg-card);
    border-color: var(--border-color);
    color: var(--text-primary);
    cursor: pointer;
    margin: 0 3px;
    border-radius: 5px;
}

.pagination .page-item.active .page-link {
    background-color: var(--tertiary-color);
    border-color: var(--tertiary-color);
    color: white;
}

.pagination .page-link:hover {
    background-color: var(--bg-secondary);
    color: var(--tertiary-color);
}

.pagination .page-item.disabled .page-link {
    color: var(--text-tertiary);
    background-color: var(--bg-secondary);
}

/* --- Modal Styles --- */
.product-modal .modal-content {
    background-color: var(--bg-card);
    border: none;
    border-radius: 12px;
    overflow: hidden;
    color: var(--text-primary);
}

.btn-close-custom {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    background: rgba(0,0,0,0.1);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-heading);
}

.btn-close-custom:hover {
    background: var(--tertiary-color);
    color: white;
}

.modal-img-container {
    height: 100%;
    min-height: 400px;
    background-color: #f0f0f0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.modal-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-header-content .badge {
    font-size: 0.8rem;
    font-weight: 500;
    background-color: var(--tertiary-color) !important;
}

.section-heading {
    font-size: 1.1rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
    margin-bottom: 15px;
    color: var(--text-heading);
}

/* Mini Specs Grid */
.specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.spec-item {
    display: flex;
    flex-direction: column;
}

.spec-label {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
}

.spec-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Tags */
.tag-pill {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
}


/* ========================================
   Contact Page Styles
   ======================================== */

/* --- 1. Contact Hero Section --- */
.contact-hero-section {
    position: relative;
    padding: 100px 0 80px;
    /* Default (Light Mode) Background */
    background: url('/assets/images/banners/contact-light.png') no-repeat center center;
    background-size: cover;
    color: white;
    margin-bottom: 0;
    transition: background-image 0.3s ease-in-out; /* Smooth transition */
}

/* Dark Mode Background Override */
[data-theme="dark"] .contact-hero-section {
    background-image: url('/assets/images/banners/contact-dark.png');
}

.contact-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.1) 0%, rgba(0, 197, 252, 0.3) 100%);
    z-index: 1;
}

.contact-hero-subtitle {
    display: block;
    color: var(--secondary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.contact-hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.2;
}

.contact-hero-desc {
    font-size: 1.15rem;
    color: rgba(2, 2, 2, 0.9);
    max-width: 650px;
}
/* Dark ModeOverride */
[data-theme="dark"] .contact-hero-desc {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 650px;
}

/* --- 2. Layout & Info Cards --- */
.contact-content-section {
    background-color: var(--bg-secondary);
    padding: 60px 0; /* Reduced top/bottom padding slightly for mobile */
}

.info-card {
    background-color: var(--bg-card);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: flex-start;
    gap: 20px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--tertiary-color);
}

.icon-wrapper {
    width: 50px;
    height: 50px;
    background-color: rgba(0, 197, 252, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.info-content h5 {
    margin-bottom: 8px;
    font-size: 1.1rem;
    color: var(--text-heading);
}

.info-content p {
    margin-bottom: 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.hours-list {
    list-style: none;
    padding: 0;
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    gap: 15px;
}

.hours-list li span {
    font-weight: 600;
    color: var(--text-primary);
}

/* Map */
.map-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 4px solid var(--bg-card);
    height: 300px; /* Explicit height for container */
}

.map-container iframe {
    width: 100%;
    height: 100%; /* Fill container */
}

/* --- 3. Form Styling --- */
.form-wrapper {
    background-color: var(--bg-card);
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    border-top: 5px solid var(--primary-color);
}

.form-header h3 {
    color: var(--text-heading);
    font-weight: 700;
}

.input-group-custom {
    position: relative;
}

.input-group-custom .form-select {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}
.input-group-custom .form-control {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.input-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary);
    pointer-events: none;
    opacity: 0.7;
}

/* FIX: Ensure input text color and background adapt to theme */
.form-control, .form-select {
    background-color: var(--input-bg);
    border-color: var(--border-color);
    color: var(--text-primary); /* This ensures text is white in dark mode */
    padding: 12px 15px;
    border-radius: 8px;
    transition: all 0.3s;
}

/* FIX: Placeholder text color for better visibility */
.form-control::placeholder {
    color: var(--text-tertiary);
    opacity: 0.7;
}

/* Ensure autocomplete/autofill doesn't break the dark theme background */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px var(--input-bg) inset !important;
    -webkit-text-fill-color: var(--text-primary) !important;
    transition: background-color 5000s ease-in-out 0s;
}

.form-control:focus, .form-select:focus {
    border-color: var(--tertiary-color);
    box-shadow: 0 0 0 3px rgba(0, 197, 252, 0.15);
    background-color: var(--input-bg); /* Keep background consistent on focus */
    color: var(--text-primary); /* Keep text color consistent on focus */
    z-index: 5;
}

/* Custom Submit Button */
.btn-submit-custom {
    background: linear-gradient(135deg, var(--primary-color), var(--tertiary-color));
    border: none;
    color: #1a1a1a;
    font-weight: 600;
    padding: 14px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-submit-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 197, 252, 0.2);
    color: #1a1a1a;
}

.btn-submit-custom:active {
    transform: translateY(0);
}

/* --- 4. Modal Styling --- */
.modal-icon-wrapper {
    font-size: 4rem;
    line-height: 1;
}

.modal-content {
    border-radius: 16px;
    background-color: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

/* --- 5. Animations --- */
.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* --- 6. RESPONSIVE ADJUSTMENTS --- */

/* Large Devices (Desktops, 992px and up) */
@media (max-width: 1199px) {
    .contact-hero-title { font-size: 2.8rem; }
    .form-wrapper { padding: 35px; }
}

/* Medium Devices (Tablets, 768px - 991px) */
@media (max-width: 991px) {
    .contact-hero-section { padding: 80px 0 60px; }
    .contact-hero-title { font-size: 2.5rem; }
    .form-wrapper { padding: 30px 25px; margin-top: 30px; }
    /* On tablet, form usually comes first or stacks nicely */
    .contact-info-wrapper { margin-top: 40px; }
}

/* Small Devices (Landscape Phones, 576px - 767px) */
@media (max-width: 767px) {
    .contact-hero-section { padding: 60px 0 50px; text-align: center; }
    .contact-hero-desc { margin: 0 auto; font-size: 1rem; }
    .contact-hero-title { font-size: 2.2rem; }
    
    /* Stack Info Cards more compactly */
    .info-card { padding: 20px; flex-direction: row; text-align: left; }
    .info-content h5 { font-size: 1rem; }
    
    /* Adjust Form */
    .form-wrapper { padding: 25px 20px; }
    .form-header h3 { font-size: 1.5rem; }
    
    /* Ensure map doesn't break layout */
    .map-container { height: 250px; margin-top: 30px; }
}

/* Extra Small Devices (Portrait Phones, < 576px) */
@media (max-width: 576px) {
    .contact-hero-title { font-size: 1.8rem; }
    .contact-hero-subtitle { font-size: 0.8rem; letter-spacing: 1px; }
    
    /* Stack icon and text in info cards for very small screens */
    .info-card { flex-direction: column; align-items: flex-start; gap: 15px; }
    .icon-wrapper { width: 40px; height: 40px; font-size: 1.2rem; }
    
    /* Phone Input Group adjustment */
    .input-group-custom .form-select { max-width: 85px !important; padding-right: 25px; text-overflow: ellipsis; }
    
    /* Form padding */
    .form-wrapper { padding: 20px 15px; border-radius: 12px; }
    
    .hours-list li { flex-direction: column; gap: 2px; margin-bottom: 8px; }
}


/* ========================================
   About Page Styles
   ======================================== */

/* --- 1. Hero Section --- */
.about-hero-section {
    position: relative;
    padding: 100px 0;
    /* Clean gradient background */
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-card) 100%);
    overflow: hidden;
}

.about-hero-subtitle {
    display: block;
    color: var(--secondary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.about-hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
    color: var(--text-heading);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--tertiary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-hero-desc {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 550px;
    line-height: 1.6;
}

.hero-img-wrapper {
    position: relative;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
}

.hero-illustration {
    border-radius: 20px;
    width: 100%;
}

/* Floating Badges in Hero */
.floating-badge {
    position: absolute;
    background: var(--bg-card);
    padding: 12px 20px;
    border-radius: 50px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--border-color);
    animation: float 6s ease-in-out infinite;
}

.badge-1 { top: 10%; right: -20px; animation-delay: 0s; }
.badge-2 { bottom: 10%; left: -20px; animation-delay: 1.5s; }

.badge-icon { font-size: 1.5rem; }
.badge-text { font-weight: 600; color: var(--text-heading); font-size: 0.9rem; }

/* --- 2. Founder Story / Company Profile --- */
.bg-light-alt {
    background-color: var(--bg-secondary);
}

.section-heading-lg {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-heading);
}

/* FIX: Ensure lead text is visible in dark mode */
.about-lead-text {
    color: var(--text-secondary);
    font-weight: 400;
}

.founder-story-card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

/* FIX: Profile title color */
.profile-title {
    color: var(--text-heading);
}

/* FIX: Profile Content Text Color for Dark Mode */
.about-content-text {
    color: var(--text-secondary) !important;
}

.about-content-text strong {
    color: var(--text-primary);
}

.signature-text {
    font-family: 'Times New Roman', serif;
    font-style: italic;
    font-size: 1.2rem;
    color: var(--tertiary-color);
}

/* --- 3. Chairman Section --- */
.chairman-card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    margin-bottom: 60px;
}

/* Force row to stretch so image container takes full height */
.chairman-card .row {
    align-items: stretch !important;
}

/* Main Container for the background effect */
.chairman-img-container-main {
    height: 100%;
    min-height: 400px;
    position: relative;
    /* Royal Background: Deep dark gradient with Tertiary accent */
    background: linear-gradient(135deg, #0a1018 0%, var(--tertiary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* Padding creates the "frame" area around the inner container */
    padding: 30px;
}

/* Decorative Pattern Overlay on Main Container */
.chairman-img-container-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
        radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    background-position: 0 0, 15px 15px;
    opacity: 0.3;
    z-index: 1;
}

/* Accent Frame Border */
.chairman-img-container-main::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    z-index: 2;
    pointer-events: none;
}

/* Inner Container for the image itself - Centered and sized */
.chairman-img-container {
    position: relative;
    z-index: 3;
    /* Enlarge slightly as requested, but keep responsive */
    width: 85%; 
    height: auto;
    aspect-ratio: 3/4; 
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6); 
    border-radius: 8px;
    overflow: hidden;
    transform: scale(1.05); /* Slight enlargement effect */
}

.chairman-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: contrast(1.05);
}

.chairman-info {
    padding: 50px;
}

.chairman-name {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--text-heading);
}

.chairman-role {
    color: var(--tertiary-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.chairman-divider {
    border-color: var(--primary-color);
    opacity: 0.5;
    margin: 20px 0;
}

.chairman-bio {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.chairman-quote {
    border-left: 4px solid var(--secondary-color);
    padding-left: 20px;
    font-style: italic;
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-top: 30px;
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: 0 10px 10px 0;
}

/* --- 4. Team Grid --- */
.team-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--tertiary-color);
}

.team-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 300px;
}

.team-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-card:hover .team-img {
    transform: scale(1.05);
}

.team-overlay-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: white;
    color: black;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.team-card:hover .team-overlay-btn {
    opacity: 1;
    transform: translateY(0);
}

.team-body {
    padding: 25px;
    text-align: center;
    flex-grow: 1;
}

.team-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--text-heading);
}

.team-role {
    color: var(--tertiary-color);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
    display: block;
}

.team-bio-short {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* --- 5. Core Values --- */
.core-values-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2c3e50 100%);
    position: relative;
    overflow: hidden;
}

.value-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 30px 20px;
    border-radius: 16px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    height: 100%;
}

.value-card:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-5px);
}

.value-icon {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.value-card h4 {
    color: white;
    margin-bottom: 10px;
}

.value-card p {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    margin: 0;
}

/* --- 6. Awards & Media --- */
.awards-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.award-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s;
}

.award-item:hover {
    border-color: var(--secondary-color);
    box-shadow: var(--shadow-sm);
}

.award-logo {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.award-details h6 { margin: 0; color: var(--text-heading); font-size: 1rem; }

.news-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.news-item {
    display: block;
    padding: 20px;
    background: var(--bg-card);
    border-left: 3px solid var(--border-color);
    text-decoration: none;
    transition: all 0.3s;
}

.news-item:hover {
    border-left-color: var(--tertiary-color);
    background: var(--bg-secondary);
}

.news-date {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
}

.news-title {
    margin: 5px 0 0;
    color: var(--text-heading);
    font-weight: 500;
}

.news-arrow {
    float: right;
    color: var(--primary-color);
    opacity: 0;
    transition: opacity 0.3s;
}

.news-item:hover .news-arrow { opacity: 1; }

/* --- 7. Clients Ticker --- */
.clients-section {
    padding: 60px 0;
    background-color: var(--bg-secondary);
    overflow: hidden;
}

.scroll-container {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.scroll-container::before,
.scroll-container::after {
    content: "";
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.scroll-container::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-secondary), transparent);
}

.scroll-container::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-secondary), transparent);
}

.scroll-track {
    display: flex;
    width: max-content;
    gap: 50px;
    animation: scroll 30s linear infinite;
}

.client-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-tertiary);
    white-space: nowrap;
    opacity: 0.5;
    transition: all 0.3s;
    user-select: none;
}

.client-logo:hover {
    color: var(--tertiary-color);
    opacity: 1;
}

/* --- Modal Styles --- */
/* Ensure Modal Background is Theme Aware */
.team-modal .modal-content {
    overflow: hidden;
    border-radius: 16px;
    border: none;
    background-color: var(--bg-card); /* Theme background */
    color: var(--text-primary);       /* Theme text */
    border: 1px solid var(--border-color);
}

/* Force Modal Text Colors */
.team-modal h3#modalTeamName {
    color: var(--text-heading);
}

.team-modal .text-muted {
    color: var(--text-secondary) !important;
}

/* Modal Image Wrapper with Royal Design (Same as Chairman) */
.modal-team-img-wrapper {
    height: 100%;
    min-height: 450px;
    position: relative;
    /* Royal Background: Deep dark gradient with Tertiary accent */
    background: linear-gradient(135deg, #0a1018 0%, var(--tertiary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 30px;
}

/* Decorative Pattern Overlay on Modal Image Wrapper */
.modal-team-img-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
        radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    background-position: 0 0, 15px 15px;
    opacity: 0.3;
    z-index: 1;
}

/* Accent Frame Border for Modal */
.modal-team-img-wrapper::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    z-index: 2;
    pointer-events: none;
}

/* New Inner Container for Team Modal Image */
.modal-team-img-inner {
    position: relative;
    z-index: 3;
    width: 85%; 
    height: auto;
    aspect-ratio: 3/4; 
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6); 
    border-radius: 8px;
    overflow: hidden;
}

.modal-team-img-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: contrast(1.05);
}

.qual-list {
    padding-left: 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.qual-list li { margin-bottom: 5px; }

.btn-close-custom {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    background: rgba(255,255,255,0.8);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: black;
}

/* Fix for Team Modal Badges (Expertise) - High Contrast & Eye Pleasing */
.team-modal .badge {
    background-color: var(--bg-tertiary) !important;
    color: var(--text-heading) !important;
    border: 1px solid var(--border-color) !important;
    font-weight: 500;
    padding: 8px 16px;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.team-modal .badge:hover {
    background-color: var(--tertiary-color) !important;
    color: #000000 !important; /* Black text on Cyan for best contrast */
    border-color: var(--tertiary-color) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 197, 252, 0.2);
}


/* ========================================
   Showcase Page Styles
   ======================================== */

/* --- 1. Hero Section --- */
.showcase-hero {
    position: relative;
    padding: 120px 0 115px;
    background: url('/assets/images/banners/showcase-light.png') no-repeat center center;
    background-size: cover;
    margin-bottom: 0;
}

.showcase-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient mixing Primary and Tertiary */
    background: linear-gradient(135deg, rgba(180, 180, 180, 0.5) 0%, rgba(0, 197, 252, 0.089) 100%);
    z-index: 1;
}

.showcase-hero-subtitle {
    display: block;
    color: black;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.showcase-hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
}

.showcase-hero-desc {
    font-size: 1.2rem;
    color: rgba(0,0,0,0.75);
    max-width: 700px;
    margin: 0 auto;
}

/* --- 2. Featured Carousel --- */
.bg-light-alt {
    background-color: var(--bg-secondary);
}

.showcase-carousel-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    background: var(--bg-card);
}

.showcase-carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 500px; /* Fixed height for consistency */
}

.carousel-item-custom {
    min-width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.carousel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 6s linear; /* Subtle zoom effect */
}

.carousel-item-custom:hover .carousel-img {
    transform: scale(1.05);
}

.carousel-caption-custom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px;
    background: linear-gradient(to top, rgba(0,0,0,0.95), transparent);
    color: white;
    z-index: 2;
}

.carousel-caption-custom h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.carousel-caption-custom p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
    max-width: 800px;
    margin-bottom: 20px;
}

/* Navigation Buttons */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(5px);
    transition: all 0.3s;
    z-index: 10;
    font-size: 1.2rem;
}

.carousel-nav:hover {
    background: var(--tertiary-color);
    color: #000;
    border-color: var(--tertiary-color);
}

.carousel-nav.prev { left: 20px; }
.carousel-nav.next { right: 20px; }

/* Indicators */
.carousel-indicators-custom {
    position: absolute;
    bottom: 20px;
    right: 30px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.indicator-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: all 0.3s;
}

.indicator-dot.active {
    background: var(--tertiary-color);
    transform: scale(1.2);
}

/* --- 3. Project Grid (Masonry/Uniform) --- */
.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.showcase-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/3; /* Consistent Aspect Ratio */
    background-color: var(--bg-card);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.showcase-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Coming Soon Badge */
.coming-soon-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--tertiary-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 5; /* Ensure it stays above image but below overlay if needed */
    letter-spacing: 0.5px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.1);
}

/* Card Overlay Animation */
.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 16, 24, 0.9); /* Dark overlay */
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.showcase-card:hover .card-img {
    transform: scale(1.1);
}

.showcase-card:hover .card-overlay {
    opacity: 1;
    transform: translateY(0);
}

.card-title {
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.card-summary {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-btn {
    align-self: flex-start;
    padding: 8px 20px;
    background: transparent;
    border: 1px solid var(--tertiary-color);
    color: var(--tertiary-color);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s;
}

.card-btn:hover {
    background: var(--tertiary-color);
    color: #000;
}

/* --- 4. Modal Styles --- */
.showcase-modal .modal-content {
    background-color: var(--bg-card);
    border: none;
    border-radius: 12px;
    overflow: hidden;
    color: var(--text-primary);
}

.btn-close-custom {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0,0,0,0.1);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-heading);
    transition: all 0.2s;
    cursor: pointer;
}

.btn-close-custom:hover {
    background: var(--tertiary-color);
    color: white;
}

.separator-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--tertiary-color));
}

.modal-media-wrapper {
    background-color: #000;
}

/* --- Responsive --- */
@media (max-width: 991px) {
    .hero-title { font-size: 2.8rem; }
    .showcase-carousel { height: 400px; }
    .carousel-caption-custom h3 { font-size: 1.5rem; }
    
    /* Modal Stacking */
    .showcase-modal .modal-content .row { flex-direction: column; }
    .modal-media-wrapper img { max-height: 300px !important; }
}

@media (max-width: 768px) {
    .showcase-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 2.2rem; }
    .showcase-hero { padding: 80px 0; }
    .carousel-nav { display: none; } /* Hide arrows on mobile */
    .carousel-caption-custom { padding: 20px; }
    .carousel-caption-custom p { display: none; } /* Hide desc on small screens */
}