/* =========================================================
   1. THEME VARIABLES
========================================================= */
:root {
  /* =========================================
     PREMIUM DARK THEME (Default)
     ========================================= */
  /* Backgrounds - Deep Slate/Navy base for richness */
  --bg-start: #0B1120;
  /* Darker start for depth */
  --bg-mid: #151e32;
  /* Slightly lighter navy */
  --bg-end: #0B1120;

  /* Surfaces - Enhanced for better visibility */
  --panel: rgba(30, 41, 59, 0.85);
  /* More opaque glassy panel */
  --panel-solid: #1e293b;
  --border: rgba(148, 163, 184, 0.2);

  /* Text */
  --text: #e2e8f0;
  /* slate-200 */
  --muted: #94a3b8;
  /* slate-400 */
  --heading: #f8fafc;
  /* slate-50 */

  /* Brand / Primary - Sophisticated Tech Blue */
  --primary: #0ea5e9;
  /* sky-500 */
  --primary-rgb: 14, 165, 233;
  --primary-700: #0369a1;

  /* Accent - Indigo/Violet for subtle glow */
  --accent: #6366f1;
  /* indigo-500 */
  --accent-rgb: 99, 102, 241;

  /* Secondary - Warm Amber for trust/highlight */
  --secondary: #f59e0b;
  /* amber-500 */

  /* Utils */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 25px rgba(14, 165, 233, 0.15);

  --radius-md: 12px;
  --radius-lg: 20px;
}

/* Light Theme Overrides - Clean Corporate */
.light-theme {
  /* Backgrounds - Off-white/warm gray, not stark white */
  --bg-start: #f8fafc;
  --bg-mid: #ffffff;
  --bg-end: #f1f5f9;

  --panel: rgba(255, 255, 255, 0.95);
  --panel-solid: #ffffff;
  --border: rgba(51, 65, 85, 0.15);

  /* Text */
  --text: #475569;
  /* slate-600 */
  --muted: #64748b;
  /* slate-500 */
  --heading: #0f172a;
  /* slate-900 */

  /* Brand Adjustments for Contrast */
  --primary: #0284c7;
  /* sky-600 */
  --primary-rgb: 2, 132, 199;
  --primary-700: #075985;

  --accent: #4f46e5;
  /* indigo-600 */
  --accent-rgb: 79, 70, 229;

  --secondary: #d97706;
  /* amber-600 */

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 20px -3px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 20px rgba(2, 132, 199, 0.1);
}

/* =========================================================
   2. GLOBAL RESET & BASE STYLES
========================================================= */
* {
  box-sizing: border-box;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: linear-gradient(180deg,
      var(--bg-start),
      var(--bg-mid) 60%,
      var(--bg-end));
  color: var(--text);
  line-height: 1.6;
}

/* =========================================================
   3. LAYOUT UTILITIES
========================================================= */
.container {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 64px 0;
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  transition: background-image 0.5s ease-in-out;
}

.section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(11, 17, 32, 0.85) 0%,
      rgba(11, 17, 32, 0.80) 100%);
  z-index: 0;
  transition: background 0.5s ease-in-out;
}

.section .container {
  position: relative;
  z-index: 1;
}

.section-alt {
  padding: 64px 0;
  background:
    linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.02)),
    var(--bg-mid);
}

.section-lead {
  max-width: 720px;
  margin-bottom: 32px;
  font-size: 1.1rem;
  color: var(--muted);
}

.highlight {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  font-weight: 700;
}

.services-header,
.testimonials-header,
.clients-header {
  text-align: center;
  margin-bottom: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.services-header h2,
.testimonials-header h2,
.about-content h2,
.contact-info-panel h2,
.contact-header h2 {
  font-size: 3rem;
  line-height: 1.1;
  margin-top: 16px;
}

@media (max-width: 768px) {

  .services-header h2,
  .testimonials-header h2,
  .about-content h2,
  .contact-info-panel h2,
  .contact-header h2 {
    font-size: 2.2rem;
  }
}

/* =========================================================
   4. HEADER & NAVIGATION
========================================================= */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  padding: 12px 24px;

  /* Enhanced visibility background */
  background: rgba(11, 17, 32, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);

  border-bottom: 1px solid rgba(14, 165, 233, 0.3);

  display: flex;
  justify-content: center;
}

@media (max-width: 600px) {
  .site-header {
    padding: 8px 12px;
  }
}


.header-wrap {
  width: 100%;
  max-width: 1080px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

.logo:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.logo img {
  height: 40px;
  filter: brightness(1.2) contrast(1.1);
}

@media (max-width: 768px) {
  .logo {
    padding: 4px 8px;
  }

  .logo img {
    height: 32px;
  }
}


.nav {
  display: flex;
}

.nav ul {
  display: flex;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav ul li a {
  padding: 8px 16px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.nav ul li a:hover {
  color: var(--accent);
}

.nav ul li a:focus,
.nav ul li a:active {
  border-bottom: 2px solid var(--accent);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  font-size: 24px;
  color: var(--text);
  background: none;
  border: none;
  cursor: pointer;
}

/* Theme Toggle Button */
.theme-toggle-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: 20px;
  transition: all 0.3s ease;
}

.theme-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.light-theme .theme-toggle-btn:hover {
  background: rgba(0, 0, 0, 0.05);
}

/* =========================================================
   5. BUTTONS
========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  border: none;
  font-weight: 700;
  text-decoration: none;
  color: #001722;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 8px 20px rgba(0, 194, 255, 0.25);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(0, 194, 255, 0.4);
}

.btn:active {
  transform: translateY(1px) scale(0.98);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-small {
  padding: 8px 12px;
}

/* =========================================================
   6. HERO SECTION
========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding-top: 100px;
  /* Spacer for fixed header */
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 2;
}

.hero-grid {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  /* Reduced gap to prevent vertical overflow */
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  color: #fff;
}

.hero-copy {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Hero heading (main title) */
/* Hero heading (main title) */
.hero h1 {
  margin-bottom: 12px;
  font-size: 52px;
  /* adjusted for two-column fit */
  line-height: 1.1;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  /* gradient for h1 */
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;

  opacity: 0;
  transform: translateY(30px);
  animation: sophisticatedReveal 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards 0.4s;
}

.hero h5 .highlight {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Hero subheading */
.hero h5 {
  margin-bottom: 8px;
  font-size: 30px;
  line-height: 1.4;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: var(--accent);
  /* gradient visible */

  opacity: 0;
  transform: translateY(20px);
  animation: sophisticatedReveal 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards 0.8s;
}


/* FadeUp animation */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes sophisticatedReveal {
  0% {
    opacity: 0;
    transform: translateY(40px);
    clip-path: inset(0 0 100% 0);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
    clip-path: inset(0 0 0 0);
  }
}

.hero-gradient-overlay {
  position: absolute;
  inset: 0;
  /* Shifted highlight focus toward the right side */
  background:
    radial-gradient(circle at 85% 30%, rgba(var(--primary-rgb), 0.35) 0%, transparent 45%),
    radial-gradient(circle at 75% 70%, rgba(var(--accent-rgb), 0.25) 0%, transparent 40%),
    radial-gradient(circle at 30% 50%, rgba(11, 17, 32, 0.4) 0%, rgba(11, 17, 32, 0.6) 100%),
    linear-gradient(to right, rgba(11, 17, 32, 0.6) 0%, transparent 50%);
  z-index: 2;
  pointer-events: none;
  animation: overlayPulse 10s ease-in-out infinite alternate;
}

@keyframes overlayPulse {
  0% {
    opacity: 0.8;
    transform: scale(1);
  }

  100% {
    opacity: 1;
    transform: scale(1.05);
  }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(var(--primary-rgb), 0.1);
  border: 1px solid rgba(var(--primary-rgb), 0.2);
  border-radius: 999px;
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0;
  transform: translateY(10px);
  animation: sophisticatedReveal 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards 0.2s;
}

.hero-actions {
  margin: 12px 0;
  /* Reduced margins */
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease forwards 1s;
}

.btn-tertiary {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
}

.btn-tertiary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.btn i {
  margin-right: 8px;
  font-size: 0.9em;
}

.hero-social-proof {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 1.2s;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.trust-badge i {
  color: var(--primary);
}



.meta-item i {
  margin-right: 6px;
  color: var(--primary);
}

/* Consolidated horizontal stats badges */
.hero-floating-stats {
  margin-top: 16px;
  /* Reduced from 32px */
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  width: 100%;
}

.stat-badge {
  position: relative;
  background: rgba(var(--bg-mid), 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  padding: 12px 20px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 170px;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease forwards 1.2s, float 4s ease-in-out infinite;
}

/* Individual badge overrides removed as they are now flex items */
.stat-badge-1,
.stat-badge-2,
.stat-badge-3 {
  position: relative;
  left: auto;
  right: auto;
  top: auto;
  transform: none;
}

.hero-meta {
  margin-top: 24px;
  /* Reduced from 40px */
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  font-size: 0.95rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease forwards 1.4s;

}

@media (max-width: 1200px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
    max-width: 800px;
    padding: 120px 24px 60px;
  }

  .hero-social-proof {
    justify-content: center;
  }

  .hero-copy,
  .hero-actions,
  .hero-meta {
    justify-content: center;
    text-align: center;
  }

  .hero-floating-stats {
    align-items: center;
    position: static;
    transform: none;
    margin-top: 40px;
  }
}

.stat-badge {
  background: rgba(var(--bg-mid), 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  padding: 16px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 160px;
  transition: all 0.3s ease;

  /* Entrance Animation (Default Left) */
  opacity: 0;
  transform: translateX(-50px);
  animation: slideInLeft 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards,
    float 4s ease-in-out infinite;
}

@keyframes slideInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.stat-badge-1 {
  animation-delay: 1.6s, 0s;
}

.stat-badge-2 {
  animation-delay: 1.8s, 1.5s;
}

.stat-badge-3 {
  animation-delay: 2s, 3s;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.stat-badge:hover {
  transform: translateY(-5px) scale(1.05);
  border-color: var(--primary);
  background: rgba(var(--primary-rgb), 0.1);
}

.stat-badge-icon {
  width: 40px;
  height: 40px;
  background: rgba(var(--primary-rgb), 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.2rem;
}

.stat-badge-content {
  display: flex;
  flex-direction: column;
}

.stat-badge-number {
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
}

.stat-badge-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
  z-index: 10;
}

.scroll-indicator-icon {
  animation: bounce 2s infinite;
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-10px);
  }

  60% {
    transform: translateY(-5px);
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 38px;
  }

  .hero h5 {
    font-size: 20px;
  }

  .hero-meta {
    flex-direction: column;
    gap: 10px;
  }

  .meta-sep {
    display: none;
  }
}

.hero-actions {
  margin: 16px 0 0;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.hero-meta .meta-item {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.meta-sep {
  margin: 0 8px;
  color: #ccc;
}

/* =========================================================
   7. TWO COLUMN LAYOUT
========================================================= */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}

h1,
h2,
h3 {
  letter-spacing: -0.03em;
}

.col h2 {
  margin-bottom: 12px;
  font-size: 28px;
}

.col p {
  font-size: 0.95rem;
  color: var(--muted);
}

/* =========================================================
   8. CARDS & SERVICES
========================================================= */
/* =====================================================
   SERVICES SECTION – CLEAN PREMIUM
===================================================== */
/* =====================================================
   SERVICES SECTION – PREMIUM GRID
   ===================================================== */
#services {
  padding: 100px 0;
  background: var(--bg-mid);
  position: relative;
  overflow: hidden;
}

/* Subtle background accent */
#services::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.1) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

#services h2 {
  text-align: center;
  font-size: 2.8rem;
  margin-bottom: 16px;
  color: var(--heading);
  position: relative;
  z-index: 1;
}

#services .section-lead {
  text-align: center;
  margin: 0 auto 64px;
  position: relative;
  z-index: 1;
  font-size: 1.1rem;
  color: var(--muted);
}

/* =====================================================
   GRID LAYOUT
   ===================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  position: relative;
  z-index: 2;
  margin-top: 40px;
}

/* =====================================================
   SERVICE CARD – INTERACTIVE & MODERN
   ===================================================== */
.service-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  cursor: pointer;
}

/* Hover Effects */
.service-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(var(--accent-rgb), 0.1);
  background: linear-gradient(145deg, var(--panel), rgba(255, 255, 255, 0.03));
}

/* Icon Container */
.service-icon {
  width: 64px;
  height: 64px;
  background: rgba(var(--accent-rgb), 0.1);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 28px;
  color: var(--accent);
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  background: var(--primary);
  color: #fff;
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 10px 20px rgba(0, 194, 255, 0.3);
}

/* Typography */
.service-card h3 {
  font-size: 1.5rem;
  color: var(--heading);
  margin-bottom: 12px;
  font-weight: 700;
}

.service-card p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
}

/* Link / Action */
.service-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.2s ease;
}

.service-card:hover .service-link {
  gap: 12px;
  text-decoration: underline;
}

/* =====================================================
   ANIMATIONS – STAGGERED REVEAL
   ===================================================== */
.service-card {
  opacity: 0;
  transform: translateY(30px);
}

.service-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered Delays (up to 9 items) */
.service-card:nth-child(1) {
  transition-delay: 0.1s;
}

.service-card:nth-child(2) {
  transition-delay: 0.2s;
}

.service-card:nth-child(3) {
  transition-delay: 0.3s;
}

.service-card:nth-child(4) {
  transition-delay: 0.4s;
}

.service-card:nth-child(5) {
  transition-delay: 0.5s;
}

.service-card:nth-child(6) {
  transition-delay: 0.6s;
}

.service-card:nth-child(7) {
  transition-delay: 0.7s;
}

.service-card:nth-child(8) {
  transition-delay: 0.8s;
}

.service-card:nth-child(9) {
  transition-delay: 0.9s;
}

/* =====================================================
   MODERN UNIFORM GRID – PROFESSIONAL & CONSISTENT
===================================================== */
/* =====================================================
   MODERN BENTO GRID – RANDOM & APPEALING
===================================================== */

/* Services Section Background */
.services-section {
  position: relative;
  background-image: url('assets/img/cloud.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.services-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(11, 17, 32, 0.92) 0%,
      rgba(11, 17, 32, 0.88) 100%);
  z-index: 0;
}

.services-section .container {
  position: relative;
  z-index: 1;
}

.modern-service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 220px;
  /* Reduced specific height */
  gap: 16px;
  /* Tighter gap */
  max-width: 1000px;
  /* Reduced max width */
  margin: 0 auto;
  position: relative;
  z-index: 2;
  padding: 0 20px;
  grid-auto-flow: dense;
}

/* =====================================================
   SERVICE CARD – VARIABLE SIZES
===================================================== */
.modern-service-card {
  position: relative;
  width: 100%;
  height: 100%;
  /* Fill assigned grid cell(s) */
  border-radius: 24px;
  overflow: hidden;
  background: var(--bg-mid);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  text-decoration: none;
  display: block;

  /* Initial State for Entrance Animation */
  opacity: 0;
  transform: translateY(20px);
  transition:
    transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    box-shadow 0.4s ease,
    opacity 0.6s ease-out;
}

/* Utility Classes for "Random" Sizes */
.card-wide {
  grid-column: span 2;
}

.card-tall {
  grid-row: span 2;
}

/* Hover Effect: Lift & Shadow */
.modern-service-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  z-index: 10;
}

/* Revealed State */
.modern-service-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =====================================================
   IMAGE STYLING
===================================================== */
.modern-service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: block;
}

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

/* =====================================================
   OVERLAY
===================================================== */
.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      rgba(15, 23, 42, 0.9) 0%,
      rgba(15, 23, 42, 0.4) 50%,
      transparent 100%);
  transition: background 0.4s ease;
  z-index: 1;
}

.modern-service-card:hover .card-overlay {
  background: linear-gradient(to top,
      rgba(15, 23, 42, 0.95) 0%,
      rgba(15, 23, 42, 0.5) 60%,
      transparent 100%);
}

/* =====================================================
   TEXT CONTENT
===================================================== */
.card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 24px;
  z-index: 2;
}

.card-content h3 {
  color: #ffffff;
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  transform: translateY(0);
  transition: transform 0.4s ease, color 0.3s ease;
}

.modern-service-card:hover .card-content h3 {
  transform: translateY(-4px);
  color: var(--primary);
}

/* =====================================================
   RESPONSIVE ADJUSTMENTS
===================================================== */
@media (max-width: 900px) {
  .modern-service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .modern-service-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 280px;
  }

  /* Reset spans on mobile for vertical flow */
  .card-wide,
  .card-tall {
    grid-column: span 1;
    grid-row: span 1;
  }

  .card-content h3 {
    font-size: 1.25rem;
  }
}

/* =====================================================
   STAGGERED ANIMATION DELAYS
===================================================== */
.modern-service-card:nth-child(1) {
  transition-delay: 0.1s;
}

.modern-service-card:nth-child(2) {
  transition-delay: 0.15s;
}

.modern-service-card:nth-child(3) {
  transition-delay: 0.2s;
}

.modern-service-card:nth-child(4) {
  transition-delay: 0.25s;
}

.modern-service-card:nth-child(5) {
  transition-delay: 0.3s;
}

.modern-service-card:nth-child(6) {
  transition-delay: 0.35s;
}

.modern-service-card:nth-child(7) {
  transition-delay: 0.4s;
}

.modern-service-card:nth-child(8) {
  transition-delay: 0.45s;
}

.modern-service-card:nth-child(9) {
  transition-delay: 0.5s;
}

/* (The rest of the old masonry styles below are now unused) */
.masonry-unused-wrapper {
  display: none;
}

/* Just a safety wrapper opener if I could wrap it */

@media (max-width: 1200px) {
  .masonry-grid {
    column-count: 3;
  }
}

@media (max-width: 900px) {
  .masonry-grid {
    column-count: 2;
  }
}

@media (max-width: 520px) {
  .masonry-grid {
    column-count: 1;
  }
}

/* =====================================================
   SERVICE CARD – CLEAN & MODERN
===================================================== */
.masonry-item {
  position: relative;
  display: inline-block;
  width: 100%;
  margin-bottom: 26px;
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(6px);
  break-inside: avoid;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.masonry-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.55);
}

/* =====================================================
   IMAGE – REFINED
===================================================== */
.masonry-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.45s ease;
}

.masonry-item:hover img {
  transform: scale(1.05);
}

/* =====================================================
   TITLE OVERLAY – CLEAN & READABLE
===================================================== */
.masonry-item::after {
  content: attr(data-title);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 18px 20px;
  font-size: 1.05rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.3px;
  background: linear-gradient(to top,
      rgba(0, 0, 0, 0.85),
      rgba(0, 0, 0, 0.2) 55%,
      rgba(0, 0, 0, 0.05));
  opacity: 0.95;
  /* visible by default */
}

/* Subtle accent line */
.masonry-item::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: linear-gradient(90deg, #4da3ff, #6be3ff);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.masonry-item:hover::before {
  opacity: 1;
}

/* =====================================================
   MOBILE – SLIGHTLY BIGGER TEXT
===================================================== */
@media (max-width: 768px) {
  .masonry-item::after {
    font-size: 1.1rem;
  }
}


/* =====================================================
   ENTRANCE ANIMATION – FADE UP
===================================================== */
.masonry-item {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.3s ease-out,
    transform 0.3s ease-out;
  will-change: opacity, transform;
}

.masonry-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delay */
.masonry-item:nth-child(1) {
  transition-delay: 0.05s;
}

.masonry-item:nth-child(2) {
  transition-delay: 0.10s;
}

.masonry-item:nth-child(3) {
  transition-delay: 0.15s;
}

.masonry-item:nth-child(4) {
  transition-delay: 0.20s;
}

.masonry-item:nth-child(5) {
  transition-delay: 0.25s;
}

.masonry-item:nth-child(6) {
  transition-delay: 0.30s;
}

.masonry-item:nth-child(7) {
  transition-delay: 0.35s;
}

.masonry-item:nth-child(8) {
  transition-delay: 0.40s;
}

.masonry-item:nth-child(9) {
  transition-delay: 0.45s;
}





/* =========================================================
   9. VALUES
========================================================= */
.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-weight: 600;
  color: var(--muted);
}

.value-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* =========================================================
   10. CONTACT FORM
========================================================= */
/* Contact Form Container */
/* Contact Section */
.contact-section {
  padding: 64px 0;
  background: var(--bg-mid);
  border-top: 1px solid var(--border);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Left Panel: Info */
.contact-info-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-info-panel h2 {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 16px;
}

.info-lead {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 24px;
  line-height: 1.6;
}

.contact-details {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 1rem;
  color: var(--text);
}

.contact-details i {
  margin-right: 10px;
  color: var(--accent);
}

/* Right Panel: Form */
.contact-form-panel {
  background: var(--panel);
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.contact-header {
  text-align: center;
  margin-bottom: 32px;
}

.contact-header h2 {
  font-size: 2rem;
  color: var(--text);
  margin-bottom: 12px;
}

.section-lead {
  font-size: 1rem;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Form Fields */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.form-field {
  display: flex;
  flex-direction: column;
}

.form-field label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 6px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-end);
  color: var(--text);
  font-size: 1rem;
  box-sizing: border-box;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--muted);
  opacity: 0.8;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 194, 255, 0.25);
}

/* Submit Button */
.contact-actions {
  margin-top: 20px;
}

.contact-actions .btn {
  width: 100%;
  background: var(--primary);
  color: #fff;
  padding: 12px 24px;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.contact-actions .btn:hover {
  background: var(--primary-700);
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contact-info-panel,
  .contact-form-panel {
    text-align: center;
  }

  .contact-details {
    align-items: center;
  }
}

/* =========================================================
   11. FOOTER
========================================================= */
/* Footer base */
.site-footer {
  padding: 20px 0;

  /* Glassmorphism background - matching project theme */
  background: var(--panel);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.95rem;
}



/* Grid layout */
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  /* left | center | right */
  align-items: center;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Logo */
.footer-left .logo img {
  height: 40px;
  width: auto;
  display: block;
}

/* Center copyright */
.footer-center {
  text-align: center;
}

.foot-note {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Social icons */
.footer-right {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.footer-right a {
  color: var(--muted);
  font-size: 20px;
  transition: color 0.3s ease;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 16px;
  }

  .footer-right {
    justify-content: center;
  }
}


/* =========================================================
   12. RESPONSIVE BREAKPOINTS
========================================================= */
@media (max-width: 900px) {

  .two-col,
  .cards-3,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 36px;
  }
}

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

  .nav {
    display: flex;
    flex-direction: row;
    position: static;
    width: auto;
    background: transparent;
    backdrop-filter: none;
    border: none;
    padding: 0;
    box-shadow: none;
  }

  .nav ul {
    flex-direction: row;
    gap: 8px;
    width: auto;
    align-items: center;
  }

  .nav ul li a {
    padding: 4px 8px;
    font-size: 0.8rem;
  }

  .menu-toggle {
    display: none;
  }
}

@media (max-width: 600px) {
  .logo img {
    height: 28px;
  }

  .nav ul {
    gap: 4px;
  }

  .nav ul li a {
    padding: 4px 4px;
    font-size: 0.75rem;
  }

  .theme-toggle-btn {
    margin-left: 10px;
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }
}


/* #about {
  background-image: url("C:/Users/phema/OneDrive/Desktop/New folder/assets/img/About.png");
  background-size: cover;
  background-position: center;
  position: relative;
} */

/* =========================================================
   ABOUT SECTION – FULL PAGE WITH READABLE TEXT
========================================================= */

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

  background-image: url("C:/Users/phema/OneDrive/Desktop/New folder/assets/img/About.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

/* Dark overlay for text readability */
.about-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
      rgba(5, 10, 18, 0.88) 0%,
      rgba(5, 10, 18, 0.75) 45%,
      rgba(5, 10, 18, 0.55) 100%);
  z-index: 1;
}

/* Content above overlay */
.about-section .container {
  position: relative;
  z-index: 2;
}

/* Headings & text */
.about-section h2 {
  color: #ffffff;
  font-size: 2.2rem;
  margin-bottom: 14px;
}

.about-section p {
  color: rgba(255, 255, 255, 0.85);
}

.about-section .section-lead {
  color: rgba(255, 255, 255, 0.92);
}

/* Pills */
.about-section .pill {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* Cards */
.about-section .card {
  background: rgba(20, 26, 34, 0.85);
  backdrop-filter: blur(8px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
}

.about-section .card h3 {
  color: #ffffff;
}

.about-section .card p {
  color: rgba(255, 255, 255, 0.8);
}

/* =========================================================
   MOBILE OPTIMIZATION
========================================================= */
@media (max-width: 900px) {
  .about-section {
    min-height: auto;
    padding: 100px 0 80px;
  }

  .about-section::before {
    background: rgba(5, 10, 18, 0.88);
  }
}


/* =========================================================
   VALUES SECTION – LOOPING ANIMATION
========================================================= */

/* =========================================================
   11. NEW ABOUT SECTION STYLE (Clean & Corporate)
========================================================= */
.about-section {
  position: relative;
  background-image: url('assets/img/dir-hero.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.about-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
      rgba(11, 17, 32, 0.95) 0%,
      rgba(11, 17, 32, 0.85) 50%,
      rgba(14, 165, 233, 0.1) 100%);
  z-index: 0;
}

.about-section .container {
  position: relative;
  z-index: 1;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 64px;
}

.about-content h2 {
  font-size: 3rem;
  line-height: 1.1;
  margin-bottom: 24px;
  color: var(--heading);
}

.about-content h2 span {
  color: var(--primary);
}

.lead-text {
  font-size: 1.25rem;
  color: var(--text);
  margin-bottom: 24px;
  font-weight: 500;
  line-height: 1.6;
}

.about-stats {
  display: flex;
  gap: 32px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.stat-icon-small {
  width: 44px;
  height: 44px;
  background: rgba(var(--primary-rgb), 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.2rem;
}

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--heading);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.about-actions {
  margin-top: 40px;
}

/* Visual Side */
.about-visual {
  position: relative;
}

.about-img-container {
  position: relative;
  z-index: 2;
}

.about-img-main {
  width: 100%;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  display: block;
  transition: all 0.4s ease;
}

.about-experience-badge {
  position: absolute;
  bottom: -30px;
  right: -30px;
  background: var(--primary);
  padding: 24px;
  border-radius: 20px;
  color: #fff;
  display: flex;
  flex-direction: column;
  box-shadow: 0 15px 35px rgba(var(--primary-rgb), 0.3);
  z-index: 3;
}

.exp-number {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
}

.exp-text {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.9;
}

.about-decoration {
  position: absolute;
  top: -40px;
  left: -40px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(var(--primary-rgb), 0.1) 0%, transparent 70%);
  z-index: 1;
}

/* Values Grid Upgrade */
.values-grid-static {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 64px;
}

.value-card-static {
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 48px 32px;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.value-icon {
  width: 64px;
  height: 64px;
  background: rgba(var(--primary-rgb), 0.1);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.8rem;
  margin-bottom: 24px;
  transition: all 0.3s ease;
}

.value-card-static h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: var(--heading);
}

.value-card-static p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.value-card-bg-icon {
  position: absolute;
  bottom: -20px;
  right: -10px;
  font-size: 8rem;
  color: rgba(var(--primary-rgb), 0.03);
  pointer-events: none;
  transition: all 0.4s ease;
}

.value-card-static:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
  background: rgba(var(--primary-rgb), 0.03);
}

.value-card-static:hover .value-icon {
  background: var(--primary);
  color: #fff;
  transform: scale(1.1);
}

.value-card-static:hover .value-card-bg-icon {
  transform: scale(1.2) rotate(-5deg);
  color: rgba(var(--primary-rgb), 0.06);
}

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

  .about-experience-badge {
    right: 20px;
    bottom: -20px;
  }
}

/* =========================================================
   MOBILE ADJUSTMENTS
========================================================= */
@media (max-width: 768px) {
  .values-header h2 {
    font-size: 2rem;
  }

  .value-card {
    width: 280px;
  }

  .values-track {
    animation-duration: 55s;
  }
}

/* =========================================================
   12. TESTIMONIALS / CLIENTS SECTION (New)
========================================================= */
.testimonials-section {
  padding: 80px 0;
  background: var(--bg-mid);
  position: relative;
  overflow: hidden;
}

.testimonials-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 56px;
}

.testimonials-header h2 {
  font-size: 2.2rem;
  margin-bottom: 16px;
  color: var(--heading);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.testimonial-card {
  background: var(--panel-solid);
  border: 1px solid var(--border);
  padding: 32px;
  border-radius: 20px;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  border-color: var(--primary);
}

.testimonial-text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 24px;
  font-style: italic;
  position: relative;
  z-index: 2;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: auto;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
}

.author-info h4 {
  margin: 0;
  font-size: 1rem;
  color: var(--heading);
  font-weight: 700;
}

.author-info span {
  font-size: 0.85rem;
  color: var(--muted);
}

/* Quote Icon Decoration */
.testimonial-card::after {
  content: "\f10d";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 2rem;
  color: var(--border);
  opacity: 0.4;
}

/* =========================================================
   13. FORM STYLING ENHANCEMENT
========================================================= */
.contact-form {
  background: var(--panel);
  padding: 40px;
  border-radius: 20px;
  border: 1px solid var(--border);
}

.form-grid {
  display: grid;
  gap: 20px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
}

.contact-actions {
  margin-top: 24px;
}


/* =========================================================
   15. RESPONSIVE BREAKPOINTS
========================================================= */
@media (max-width: 900px) {

  .two-col,
  .cards-3,
  .footer-grid,
  .contact-wrapper,
  .service-layout {
    grid-template-columns: 1fr;
  }

  .service-sidebar {
    position: relative;
    top: 0;
    margin-bottom: 32px;
  }

  .contact-info-panel {
    text-align: center;
    align-items: center;
  }

  .contact-wrapper {
    gap: 40px;
  }

  .hero h1 {
    font-size: 36px;
  }
}

/* =========================================================
   16. SERVICE SUBPAGES STYLES
========================================================= */

/* Small Hero for Subpages */
.hero-small {
  position: relative;
  height: 50vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  margin-bottom: 60px;
}

.hero-small::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(11, 17, 32, 0.3),
      rgba(11, 17, 32, 0.95));
  z-index: 1;
}

.hero-small-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 20px;
}

.hero-small h1 {
  font-size: 3.5rem;
  color: var(--heading);
  margin-bottom: 16px;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.hero-small p {
  font-size: 1.2rem;
  color: var(--text);
  opacity: 0.9;
}

/* Service Layout (Sidebar + Content) */
.service-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 48px;
  margin-bottom: 80px;
  align-items: start;
}

/* Sidebar Navigation */
.service-sidebar {
  position: sticky;
  top: 100px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.sidebar-title {
  padding: 20px 24px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--heading);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.service-nav-item {
  display: block;
  padding: 16px 24px;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: all 0.2s ease;
  cursor: pointer;
  font-size: 0.95rem;
}

.service-nav-item:last-child {
  border-bottom: none;
}

.service-nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--primary);
  padding-left: 28px;
}

.service-nav-item.active {
  background: linear-gradient(90deg, rgba(var(--primary-rgb), 0.1), transparent);
  color: var(--primary);
  border-left: 3px solid var(--primary);
  font-weight: 600;
}

/* Service Content Area */
.service-details {
  background: var(--panel-solid);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  min-height: 500px;
}

.content-panel {
  display: none;
  animation: fadeIn 0.5s ease-out;
}

.content-panel.active {
  display: block;
}

.content-panel h3 {
  font-size: 1.8rem;
  color: var(--heading);
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
}

.block-row {
  display: grid;
  gap: 24px;
  margin-bottom: 32px;
}

.content-block {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}

.content-block h4 {
  color: var(--primary);
  font-size: 1.1rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.content-block p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 900px) {
  .service-layout {
    grid-template-columns: 1fr;
  }

  .service-sidebar {
    position: static;
    margin-bottom: 32px;
  }

  .hero-small h1 {
    font-size: 2.5rem;
  }
}

/* =========================================================
   SECTION BACKGROUND IMAGES WITH SMOOTH TRANSITIONS
========================================================= */

/* About Section Background */
.about-section {
  background-image: url('assets/img/dir-hero.jpg');
}

.about-section::before {
  background: linear-gradient(to bottom,
      rgba(11, 17, 32, 0.88) 0%,
      rgba(11, 17, 32, 0.85) 100%);
}

/* Light theme override */
.light-theme .about-section::before {
  background: linear-gradient(to bottom,
      rgba(248, 250, 252, 0.92) 0%,
      rgba(248, 250, 252, 0.88) 100%);
}

/* Values Section Background */
.values-section {
  background-image: url('assets/img/cyber-hero.jpg');
}

.values-section::before {
  background: linear-gradient(to bottom,
      rgba(11, 17, 32, 0.90) 0%,
      rgba(11, 17, 32, 0.87) 100%);
}

.light-theme .values-section::before {
  background: linear-gradient(to bottom,
      rgba(248, 250, 252, 0.93) 0%,
      rgba(248, 250, 252, 0.90) 100%);
}

/* Testimonials Section Background */
.testimonials-section {
  background-image: url('assets/img/cta-banner-bg.jpg');
  position: relative;
}

.testimonials-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(11, 17, 32, 0.92) 0%,
      rgba(11, 17, 32, 0.88) 100%);
  z-index: 0;
}

.testimonials-section .container {
  position: relative;
  z-index: 1;
}

.light-theme .testimonials-section::before {
  background: linear-gradient(to bottom,
      rgba(248, 250, 252, 0.94) 0%,
      rgba(248, 250, 252, 0.91) 100%);
}

/* Stats Section Background */
.stats-section {
  background-image: url('assets/img/cyber-hero.jpg');
  position: relative;
  padding: 80px 0;
}

.stats-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
      rgba(14, 165, 233, 0.15) 0%,
      rgba(99, 102, 241, 0.15) 100%),
    linear-gradient(to bottom,
      rgba(11, 17, 32, 0.90) 0%,
      rgba(11, 17, 32, 0.85) 100%);
  z-index: 0;
}

.stats-section .container {
  position: relative;
  z-index: 1;
}

.light-theme .stats-section::before {
  background: linear-gradient(135deg,
      rgba(2, 132, 199, 0.10) 0%,
      rgba(79, 70, 229, 0.10) 100%),
    linear-gradient(to bottom,
      rgba(248, 250, 252, 0.92) 0%,
      rgba(248, 250, 252, 0.88) 100%);
}

/* Clients Section Background */
.clients-section {
  background-image: url('assets/img/dt-hero.jpg');
  position: relative;
  padding: 64px 0;
}

.clients-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(11, 17, 32, 0.93) 0%,
      rgba(11, 17, 32, 0.90) 100%);
  z-index: 0;
}

.clients-section .container {
  position: relative;
  z-index: 1;
}

.light-theme .clients-section::before {
  background: linear-gradient(to bottom,
      rgba(248, 250, 252, 0.95) 0%,
      rgba(248, 250, 252, 0.92) 100%);
}

/* CTA Banner Background */
.cta-banner {
  background-image: url('assets/img/DT.webp');
  position: relative;
  padding: 100px 0;
}

.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
      rgba(14, 165, 233, 0.25) 0%,
      rgba(99, 102, 241, 0.25) 100%),
    linear-gradient(to bottom,
      rgba(11, 17, 32, 0.88) 0%,
      rgba(11, 17, 32, 0.82) 100%);
  z-index: 0;
}

.cta-banner .container {
  position: relative;
  z-index: 1;
}

.light-theme .cta-banner::before {
  background: linear-gradient(135deg,
      rgba(2, 132, 199, 0.15) 0%,
      rgba(79, 70, 229, 0.15) 100%),
    linear-gradient(to bottom,
      rgba(248, 250, 252, 0.90) 0%,
      rgba(248, 250, 252, 0.85) 100%);
}

/* Contact Section Background */
.contact-section {
  background-image: url('assets/img/it-solutions-main.jpg');
  position: relative;
}

.contact-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(11, 17, 32, 0.92) 0%,
      rgba(11, 17, 32, 0.88) 100%);
  z-index: 0;
}

.contact-section .container {
  position: relative;
  z-index: 1;
}

.light-theme .contact-section::before {
  background: linear-gradient(to bottom,
      rgba(248, 250, 252, 0.94) 0%,
      rgba(248, 250, 252, 0.90) 100%);
}

/* Smooth scroll behavior for parallax effect */
@media (prefers-reduced-motion: no-preference) {

  .section,
  .about-section,
  .values-section,
  .testimonials-section,
  .stats-section,
  .clients-section,
  .cta-banner,
  .contact-section {
    background-attachment: fixed;
  }
}

/* Mobile: disable parallax for performance */
@media (max-width: 768px) {

  .section,
  .about-section,
  .values-section,
  .testimonials-section,
  .stats-section,
  .clients-section,
  .cta-banner,
  .contact-section {
    background-attachment: scroll;
  }
}

/* =========================================================
   17. CONSOLIDATED MOBILE RESPONSIVENESS
========================================================= */

@media (max-width: 900px) {
  .nav {
    display: flex;
    flex-direction: row;
    position: static;
    width: auto;
    background: transparent;
    backdrop-filter: none;
    border: none;
    padding: 0;
    box-shadow: none;
  }

  .nav ul {
    flex-direction: row;
    gap: 8px;
    width: auto;
    align-items: center;
  }

  .nav ul li a {
    padding: 4px 8px;
    font-size: 0.85rem;
  }

  .menu-toggle {
    display: none;
  }
}

/* Global Section Padding & Typography */
@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }

  .section-lead {
    font-size: 1rem;
    margin-bottom: 40px;
  }

  .hero h1 {
    font-size: 2.5rem !important;
  }

  .hero h5 {
    font-size: 1.2rem !important;
  }

  .hero-meta {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-grid {
    padding-top: 80px !important;
  }

  .about-img-container {
    padding-right: 0;
  }

  .about-experience-badge {
    position: static;
    margin-top: 20px;
    width: 100%;
    text-align: center;
    right: 0;
    bottom: 0;
  }

  .about-stats {
    justify-content: center;
    text-align: center;
    flex-direction: column;
    gap: 20px;
  }

  .stat-item {
    width: 100%;
    justify-content: center;
  }

  .values-grid-static {
    grid-template-columns: 1fr;
  }

  .modern-service-grid {
    grid-template-columns: 1fr !important;
    grid-auto-rows: auto !important;
    gap: 24px;
  }

  .modern-service-card {
    height: 320px;
  }

  .card-wide,
  .card-tall {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
  }

  .footer-right {
    justify-content: center;
  }
}

/* Animation performance optimization for mobile */
@media (max-width: 768px) {
  * {
    transition-duration: 0.15s !important;
  }

  .scroll-indicator {
    display: none;
  }

  .stat-badge {
    animation: float 4s ease-in-out infinite;
    /* Keep float, disable slide-in if needed */
    width: 100%;
    max-width: 280px;
  }

  .service-details {
    padding: 24px;
    min-height: auto;
  }
}


@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* =========================================================
   23. PAGE PRELOADER (PREMIUM LOAD EFFECT)
   ========================================================= */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-start);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100000;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

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

.loader-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(var(--primary-rgb), 0.1);
  border-top: 3px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
  box-shadow: 0 0 15px rgba(var(--primary-rgb), 0.3);
}

.loader-text {
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
  opacity: 0.8;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Page Entry Animation */
body.loaded .site-header,
body.loaded .hero,
body.loaded .section,
body.loaded footer {
  animation: pageEntry 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes pageEntry {
  from {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

#preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

/* Skip preloader for returning session users */
.no-preloader #preloader {
  display: none !important;
}

.no-preloader .site-header,
.no-preloader .hero,
.no-preloader .section,
.no-preloader footer {
  animation: none !important;
  opacity: 1 !important;
  filter: none !important;
  transform: none !important;
}