﻿/* VSS Premium Modern Design System v2.0 */
:root {
  /* Core Palette - Modern SaaS Indigo/Violet/Blue */
  --primary: #4f46e5;
  /* Indigo 600 */
  --primary-light: #6366f1;
  /* Indigo 500 */
  --primary-dark: #4338ca;
  /* Indigo 700 */

  --secondary: #7c3aed;
  /* Violet 600 */
  --accent: #0ea5e9;
  /* Sky 500 */

  /* Gradients */
  --grad-primary: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  --grad-hover: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%);
  --grad-glow: linear-gradient(135deg, rgba(79, 70, 229, 0.4), rgba(124, 58, 237, 0.4));
  --grad-surface: linear-gradient(to bottom right, #ffffff, #f8fafc);

  /* Backgrounds */
  --bg-body: #ffffff;
  --bg-subtle: #f8fafc;
  /* Slate 50 */
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;

  /* Typography */
  --text-main: #0f172a;
  /* Slate 900 */
  --text-muted: #64748b;
  /* Slate 500 */
  --text-light: #94a3b8;
  /* Slate 400 */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;

  /* Borders & Shadows */
  --border-color: #e2e8f0;
  /* Slate 200 */
  --border-hover: #cbd5e1;
  /* Slate 300 */

  /* Premium Shadows (Colored/Diffused) */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
  --shadow-xl: 0 25px 50px -12px rgba(79, 70, 229, 0.15);
  /* Indigo tinted shadow */

  /* Animations */
  /* Legacy Compatibility */
  --card-bg: var(--bg-card);
  --text-color: var(--text-main);

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Base Setup */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
  width: 100vw;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  width: 100%;
  -webkit-font-smoothing: antialiased;
  /* Prevent blinking caret globally */
  caret-color: transparent;
  /* Remove mobile tap highlight */
  -webkit-tap-highlight-color: transparent;
}

/* Restore caret for inputs and editable fields */
input,
textarea,
[contenteditable="true"] {
  caret-color: auto;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* =========================================
   HEADER & NAVIGATION
   ========================================= */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  padding: 1rem 0;
  transition: var(--transition);
}

header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-md);
  padding: 0.8rem 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 50px;
  transition: transform 0.3s var(--bounce);
}

.logo:hover img {
  transform: scale(1.05);
}

.nav-menu {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-link {
  font-weight: 500;
  font-size: 1rem;
  color: var(--text-main);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--grad-primary);
  transition: width 0.3s ease;
  border-radius: 2px;
}

.nav-link:hover::after {
  width: 100%;
}

/* CTA Button in Nav - Transformed to Plain Link */
.nav-cta {
  font-weight: 500;
  font-size: 1rem;
  color: var(--text-main);
  position: relative;
  padding: 0.5rem 0;
  background: none;
  box-shadow: none;
  border: none;
  border-radius: 0;
  white-space: nowrap;
}

.nav-cta:hover {
  color: var(--primary);
  background: none;
  transform: none;
  box-shadow: none;
}

.nav-cta::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--grad-primary);
  transition: width 0.3s ease;
  border-radius: 2px;
}

.nav-cta:hover::after {
  width: 100%;
}

/* Tablet / Intermediate Navigation Adjustment */
@media (max-width: 1200px) {
  .nav-menu {
    gap: 1.5rem;
  }

  .nav-link,
  .nav-cta {
    font-size: 0.95rem;
  }
}


/* =========================================
   DROPDOWN MENU - SIMPLE SINGLE COLUMN
   ========================================= */
.dropdown-parent {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(15px);
  min-width: 220px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  padding: 0.75rem 0;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 999;
  border: 1px solid rgba(226, 232, 240, 0.8);
  pointer-events: none;
}

/* Show dropdown on hover */
.dropdown-parent:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* Simple List Layout */
.dropdown-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dropdown-menu li {
  margin: 0;
}

.dropdown-menu a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: var(--text-main);
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.dropdown-menu a:hover {
  background: var(--bg-subtle);
  color: var(--primary);
  border-left-color: var(--primary);
}

/* Hide category headers and nested structure for simple dropdown */
.dropdown-header {
  display: none;
}

.dropdown-group {
  display: contents;
}

.dropdown-group ul {
  display: block;
}

/* Dropdown Arrow Animation */
.dropdown-arrow {
  font-size: 0.8rem;
  margin-left: 4px;
  transition: transform 0.3s ease;
  display: inline-block;
}

.dropdown-parent:hover .dropdown-arrow,
.dropdown-parent.active .dropdown-arrow {
  transform: rotate(180deg);
}

/* Tablet / Small Desktop Optimization */
@media (min-width: 992px) and (max-width: 1200px) {
  .dropdown-menu {
    min-width: 200px;
    padding: 0.5rem 0;
  }
}

/* Mobile Dropdown - Stacked Layout */
@media (max-width: 991px) {

  /* Main dropdown container */
  .dropdown-menu {
    position: static !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0.5rem 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    display: none !important;
    min-width: 100% !important;
    margin: 0 !important;
    border-radius: 0 !important;
    background: #f1f5f9 !important;
    pointer-events: auto !important;
  }

  /* Show dropdown when active */
  .dropdown-parent.active .dropdown-menu {
    display: block !important;
  }

  /* Force dropdown groups to show */
  .dropdown-menu .dropdown-group {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Force all nested ULs to show */
  .dropdown-menu ul,
  .dropdown-menu .dropdown-group ul,
  .dropdown-menu ul ul {
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
  }

  /* Force all LIs to show */
  .dropdown-menu li,
  .dropdown-menu .dropdown-group li,
  .dropdown-menu ul li {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
  }

  .dropdown-menu li:last-child {
    border-bottom: none !important;
  }

  /* Force all links to show with proper styling */
  .dropdown-menu a,
  .dropdown-menu .dropdown-group a,
  .dropdown-menu ul a,
  .dropdown-menu ul ul a {
    display: block !important;
    padding: 1rem 2rem 1rem 3rem !important;
    border-left: none !important;
    font-size: 0.95rem !important;
    color: #334155 !important;
    font-weight: 500 !important;
    background: transparent !important;
    text-decoration: none !important;
    line-height: 1.4 !important;
  }

  /* Hover state */
  .dropdown-menu a:hover,
  .dropdown-menu .dropdown-group a:hover {
    background: rgba(79, 70, 229, 0.12) !important;
    color: #4f46e5 !important;
  }

  /* Hide category headers completely */
  .dropdown-menu .dropdown-header {
    display: none !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    visibility: hidden !important;
  }

  /* Make dropdown arrow clickable */
  .dropdown-arrow {
    pointer-events: auto !important;
  }
}


/* Mobile Toggle */
.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-main);
  padding: 0.5rem;
  border-radius: 8px;
  transition: background 0.2s;
}

.mobile-toggle:hover {
  background: var(--bg-subtle);
  color: var(--primary);
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
  position: relative;
  min-height: 100vh;
  /* Full viewport height */
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 80px;
  /* Offset for fixed header */
  padding-bottom: 50px;
  /* Premium Dark/Gradient Overlay */
  background: radial-gradient(circle at top right, rgba(124, 58, 237, 0.15), transparent 40%),
    radial-gradient(circle at bottom left, rgba(79, 70, 229, 0.15), transparent 40%),
    linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.9)),
    url('IMAGES/hero_home_dark.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  /* Parallax effect */
  overflow: hidden;
}

/* Animated Floating Balls in Background */
.hero::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%236366f1' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  z-index: 1;
  pointer-events: none;
}

/* =========================================
   HOMEPAGE SLIDER (Overrides)
   ========================================= */
#home-hero {
  background: #0f172a;
  /* Fallback dark bg */
}

/* Ensure animated background balls don't interfere */
#home-hero::after {
  z-index: 2;
  /* Move above slider but below overlay if possible, or just below text */
}

.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  /* Fill width edge-to-edge */
  background-position: center center;
  background-repeat: no-repeat;
  background-color: #0f172a;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.slide.active {
  opacity: 1;
}

/* Mobile Hero Slider - Fix Image Display */
@media (max-width: 768px) {
  .slide {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-color: #0f172a;
  }

  .hero {
    min-height: auto !important;
    height: auto !important;
    padding-top: 70px !important;
    padding-bottom: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    display: block !important;
  }

  .hero-slider {
    position: relative !important;
    top: 0 !important;
    height: calc(100vw / 2.36);
    min-height: auto !important;
    background: #0f172a;
  }

  .slide {
    height: 100%;
  }

  /* USP Section - Fix Mobile Layout (2-Column Grid) */
  .usp-strip {
    padding: 2rem 1rem !important;
    margin-top: 0 !important;
  }

  .usp-strip .usp-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 1.5rem 1rem !important;
    width: 100% !important;
    justify-items: center !important;
  }

  .usp-strip .usp-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: none !important;
    gap: 0.5rem !important;
    font-size: 0.9rem !important;
    padding: 0 !important;
  }

  /* 3rd Item Centered in 2nd Row */
  .usp-strip .usp-item:nth-child(3) {
    grid-column: 1 / -1 !important;
    width: 80% !important;
    justify-self: center !important;
  }

  .usp-strip .usp-item i {
    font-size: 1.6rem !important;
    padding: 0 !important;
    margin-bottom: 5px !important;
    background: transparent !important;
    /* Remove bg circle if it crowds, or keep it? */
    /* Desktop has bg circle (line 823). Let's keep appearance consistent but stack it. */
    background: rgba(79, 70, 229, 0.1) !important;
    width: 50px !important;
    height: 50px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
  }
}


.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(124, 58, 237, 0.15), transparent 40%),
    radial-gradient(circle at bottom left, rgba(79, 70, 229, 0.15), transparent 40%),
    linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.9));
  z-index: 1;
  pointer-events: none;
}

/* Ensure content is above slider/overlay */
#home-hero .hero-content {
  z-index: 10;
  position: relative;
}

/* Slider Buttons - Hidden */
.slider-btn {
  display: none !important;
  /* Hide arrow buttons */
}

.prev-btn {
  display: none !important;
}

.next-btn {
  display: none !important;
}

/* Slider Dot Navigation */
/* Slider Dot Navigation */
.slider-dots {
  position: absolute;
  bottom: 60px;
  /* Moved up from 30px */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 20;
}

.slider-dot {
  width: 10px;
  /* Slightly smaller */
  height: 10px;
  /* Slightly smaller */
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  /* Lighter background */
  border: 1px solid rgba(255, 255, 255, 0.5);
  /* Thinner border */
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-dot:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: scale(1.1);
  /* Reduced scale on hover */
}

.slider-dot.active {
  background: rgba(99, 102, 241, 0.8);
  /* Defined primary color with opacity for lighter feel */
  border-color: rgba(99, 102, 241, 0.8);
  width: 24px;
  /* Reduced active width */
  border-radius: 5px;
}

/* Mobile Adjustments for Slider Buttons */
@media (max-width: 768px) {
  .slider-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
    background: rgba(0, 0, 0, 0.3);
    /* improved visibility on mobile */
  }

  .prev-btn {
    left: 10px;
  }

  .next-btn {
    right: 10px;
  }

  /* Slider Dots - Mobile Refinement (Forced) */
  #home-hero .slider-dots {
    bottom: 35px !important;
    /* Clearly lifted from edge */
    gap: 8px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
  }

  #home-hero .slider-dot {
    width: 8px !important;
    height: 8px !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    background: rgba(255, 255, 255, 0.3) !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  #home-hero .slider-dot:hover {
    transform: none !important;
  }

  #home-hero .slider-dot.active {
    width: 20px !important;
    background: rgba(99, 102, 241, 0.9) !important;
    border-color: rgba(99, 102, 241, 0.9) !important;
  }
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-subtitle {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  color: #38bdf8;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 24px;
  animation: fadeInDown 0.8s ease-out;
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  color: #ffffff;
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease-out 0.2s backwards;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
    line-height: 1.2;
    word-wrap: break-word;
    margin-bottom: 2rem;
  }

  .hero-desc {
    font-size: 1rem;
    padding: 0 1rem;
  }

  .hero-buttons {
    flex-direction: column;
    padding: 0 2rem;
  }
}

.hero-title span {
  background: linear-gradient(to right, #6366f1, #a855f7, #ec4899);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.hero-desc {
  font-size: 1.25rem;
  color: #cbd5e1;
  /* Lighter slate for contrast on dark bg */
  max-width: 700px;
  margin: 0 auto 24px;
  line-height: 1.7;
  animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

/* Hero Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 2.5rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  border: none;
}

.btn-primary {
  background: var(--grad-primary);
  color: white;
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(79, 70, 229, 0.5);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
  border-color: #ffffff;
}

/* =========================================
   USP STRIP
   ========================================= */
.usp-strip {
  background: #ffffff;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border-color);
  position: relative;
  z-index: 20;
  margin-top: -30px;
  /* Balanced overlap with hero */
  box-shadow: var(--shadow-sm);
}

.usp-grid {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.usp-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text-main);
  font-weight: 600;
  font-size: 1.05rem;
}

.usp-item i {
  color: var(--primary);
  font-size: 1.5rem;
  background: rgba(79, 70, 229, 0.1);
  padding: 10px;
  border-radius: 50%;
}

/* =========================================
   CLIENTS LOGOS
   ========================================= */
.clients-section {
  padding: 2rem 0;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-color);
}

.clients-grid {
  display: flex;
  gap: 3rem;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
  opacity: 0.6;
  transition: opacity 0.3s;
}

.clients-grid:hover {
  opacity: 1;
}

.clients-grid img {
  height: 35px;
  filter: grayscale(100%);
  transition: all 0.4s ease;
  cursor: pointer;
}

.clients-grid img:hover {
  filter: grayscale(0%);
  transform: scale(1.1);
}

/* =========================================
   SECTIONS: COMMON
   ========================================= */
.section-header {
  text-align: center;
  margin-bottom: 1.5rem;
  /* Reduced from 2.5rem */
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

@media (max-width: 768px) {
  .section-header {
    max-width: 100%;
    padding: 0 1rem;
  }

  .section-title {
    font-size: 1.8rem;
    /* Responsive font size */
  }
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

/* Underline for titles */
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--grad-primary);
  margin: 10px auto 0;
  border-radius: 4px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* =========================================
   SERVICES / CARDS
   ========================================= */
.services,
.why-us-section,
.process-section,
.portfolio-highlights,
.pricing-section,
.testimonials-section,
.contact-section,
.faq-section {
  padding: 50px 0;
  /* Reduced from 60px */
}

/* =========================================
   FAQ SECTION
   ========================================= */
.faq-grid {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-card);
  border-radius: 20px;
  box-shadow: var(--shadow-xl);
  padding: 2rem;
  border: 1px solid var(--border-color);
}

.faq-item {
  border-bottom: 1px solid var(--border-color);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  background: none;
  border: none;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  transition: color 0.3s ease;
}

.faq-question:hover {
  color: var(--primary);
}

.faq-question .icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--primary);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-question .icon {
  transform: rotate(45deg);
  /* Turns + into x */
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
  padding: 0;
  color: var(--text-muted);
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  /* Arbitrary large height */
  padding-bottom: 1.5rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2.5rem;
  position: relative;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 100%;
  /* display: flex; Removed to ensure grid/block works properly with overflow overrides if needed, but keeping for now */
  display: flex;
  flex-direction: column;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--grad-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
  z-index: 5;
  /* Ensure below icon */
  border-radius: 20px 20px 0 0;
  /* Fix corners since overflow will be visible */
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(79, 70, 229, 0.1);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 70px;
  height: 70px;
  background: var(--bg-subtle);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
  color: var(--primary);
  transition: all 0.4s ease;
}

.service-card:hover .service-icon {
  background: var(--grad-primary);
  color: white;
  transform: rotate(-10deg);
  box-shadow: 0 5px 15px rgba(79, 70, 229, 0.4);
}

.service-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.service-desc {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 1rem;
}

/* Features Variation - Horizontal Premium Cards */
.features-section .services-grid {
  grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
  /* Wider columns for horizontal layout */
  gap: 2rem;
}

.features-section .service-card {
  display: grid;
  grid-template-columns: auto 1fr;
  /* Icon | Text */
  grid-template-rows: auto 1fr;
  /* Title | Desc */
  column-gap: 1.5rem;
  row-gap: 0.25rem;
  padding: 2.5rem 2rem;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  /* Softer border */
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  /* Gentle shadow */
  text-align: left;
  align-items: start;
  backdrop-filter: none;
  /* Clean white look */
  overflow: visible !important;
  /* FORCE VISIBILITY - Prevent clipping */
}

/* Hover State */
.features-section .service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(79, 70, 229, 0.2);
  /* Highlight border */
}

/* Icon Positioning & Style */
.features-section .service-icon {
  grid-row: 1 / -1;
  /* Stack Vertical */
  width: 64px;
  height: 64px;
  background: var(--bg-subtle);
  border-radius: 12px;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Normal State: Slightly offset/floating */
  transform: translate(-6px, -6px);
  box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.03);
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  /* Elegant easing */
  position: relative;
  /* Fix layering */
  z-index: 100;
  /* FORCE TOP LAYER */
  opacity: 1 !important;
  /* Ensure always visible */
}

.features-section .service-icon img {
  height: 36px;
  width: auto;
  transition: transform 0.4s ease;
}

/* Hover State: Settle Inside */
/* Hover State: Settle Inside - FIXED: Icon remains visible, subtle effect */
.features-section .service-card:hover .service-icon {
  background: rgba(79, 70, 229, 0.1);
  /* Gentle background change */
  color: var(--primary);
  /* Keep original color intention */
  transform: translateY(-2px);
  /* Subtle lift instead of rotate/slide */
  box-shadow: 0 6px 15px rgba(79, 70, 229, 0.15);
  /* Soft shadow */
  z-index: 100;
  opacity: 1 !important;
}

.features-section .service-card:hover .service-icon img {
  filter: none;
  /* Do NOT hide or whiten the image */
  transform: scale(1.05);
  /* Subtle scale */
}

/* Text Styling */
.features-section .service-title {
  grid-column: 2;
  grid-row: 1;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0;
  align-self: center;
  margin-top: 4px;
  /* Optional alignment fix */
}

.features-section .service-desc {
  grid-column: 2;
  grid-row: 2;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: 0.5rem;
}

/* Responsive: Stack on Mobile */
@media (max-width: 768px) {
  .features-section .services-grid {
    grid-template-columns: 1fr;
  }

  /* Reset Desktop Grid Placements if any remain */
  .features-section .service-card {
    display: block;
    /* Fallback */
  }
}


/* Why Choose Us Variation */
.why-us-section {
  background: var(--bg-subtle);
}

.why-us-section .service-card {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  align-items: flex-start;
  text-align: left;
}

.why-us-section .service-card:hover {
  transform: translateY(-5px);
  box-shadow: none;
}

.why-us-section .service-icon {
  width: 50px;
  height: 50px;
  min-width: 50px;
  font-size: 1.2rem;
  background: white;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  color: var(--secondary);
}

/* =========================================
   WHAT WE DO (TECH STACK)
   ========================================= */
.what-we-do-section {
  background: white;
}

.tech-stack-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Stack Panel - Dashboard Widget Look */
.tech-lane {
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--primary);
  /* Code block feel */
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.tech-lane:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

/* Header with Tech Icon */
.tech-lane-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px dashed var(--border-color);
  /* Separator line like in IDEs */
}

/* Tech Icon - Engineering Grade */
.tech-lane-icon {
  width: 48px;
  height: 48px;
  background: var(--bg-subtle);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--text-main);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.tech-lane:hover .tech-lane-icon {
  background: var(--text-main);
  color: white;
  border-color: transparent;
}

.tech-lane-title {
  font-family: 'Inter', monospace;
  /* Monospace font for dev feel */
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.5px;
}

/* Content Grid for Tags */
.tech-lane-content {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

/* Tech Tag - Code Pill Style */
.tech-tag {
  background: #f1f5f9;
  color: #475569;
  font-family: 'Inter', monospace;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  /* Squarer radius for tech feel */
  border: 1px solid transparent;
  transition: all 0.2s ease;
  cursor: default;
}

.tech-tag::before {
  content: '#';
  /* Hashtag prefix for code vibe */
  color: var(--primary-light);
  margin-right: 2px;
  opacity: 0.7;
}

.tech-tag:hover {
  background: white;
  border-color: var(--primary);
  color: var(--primary-dark);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transform: translateY(-1px);
}

/* Specific Border Colors per Category (Optional Subtle Coding) */
.tech-lane:nth-child(1) {
  border-left-color: #3b82f6;
}

/* Database - Blue */
.tech-lane:nth-child(2) {
  border-left-color: #8b5cf6;
}

/* Microsoft - Violet */
.tech-lane:nth-child(3) {
  border-left-color: #10b981;
}

/* Mobile - Green */
.tech-lane:nth-child(4) {
  border-left-color: #f59e0b;
}

/* Web - Amber */

/* Responsive */
@media (max-width: 768px) {
  .tech-stack-container {
    grid-template-columns: 1fr;
  }
}


/* =========================================
   PROCESS TIMELINE
   ========================================= */
.process-section {
  background: var(--bg-subtle);
}

.timeline-container {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
}

/* Connecting Line */
.timeline-container::before {
  content: '';
  position: absolute;
  top: 40px;
  /* Aligns with icon center approx */
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--border-color), var(--border-color));
  z-index: 0;
}

.timeline-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  flex-wrap: wrap;
  /* Allow wrapping */
  gap: 2rem;
}

@media (max-width: 768px) {
  .timeline-steps {
    flex-direction: column;
  }

  .timeline-container::before {
    width: 3px;
    height: 100%;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
  }

  .process-step {
    margin-bottom: 2rem;
  }
}

.process-step {
  text-align: center;
  position: relative;
  z-index: 1;
  flex: 1;
  padding: 0 1rem;
}

.step-icon {
  width: 80px;
  height: 80px;
  background: white;
  border: 4px solid var(--border-color);
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--text-muted);
  transition: all 0.4s var(--bounce);
  box-shadow: var(--shadow-sm);
}

.process-step:hover .step-icon {
  border-color: var(--primary);
  background: var(--grad-primary);
  color: white;
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(79, 70, 229, 0.4);
}

.step-title {
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.step-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* =========================================
   OUR IMPACT / METRICS (Formerly Portfolio)
   ========================================= */
.portfolio-highlights {
  background: var(--bg-subtle);
  /* Light background for contrast */
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* --- Homepage Card Styles (Legacy) --- */
.portfolio-card {
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.05);
  height: auto;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 3rem 2rem;
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.portfolio-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(79, 70, 229, 0.1);
}

.portfolio-card .portfolio-img {
  display: none;
  /* Hide image on homepage cards per legacy design */
}

/* Interactive Top Border for Home Card */
.portfolio-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--grad-primary);
  opacity: 0;
  transition: opacity 0.3s;
}

.portfolio-card:hover::before {
  opacity: 1;
}

/* Overlay for Home Card */
.portfolio-overlay {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0;
  color: var(--text-main);
}

/* Metric Number for Home Card */
.portfolio-metric {
  font-size: 4.5rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  font-family: 'Inter', sans-serif;
  letter-spacing: -2px;
}

/* --- New Portfolio Project Styles (Detailed) --- */
.portfolio-project {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.portfolio-project:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(79, 70, 229, 0.1);
}

/* Image Wrapper */
.portfolio-image-wrapper {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: #f1f5f9;
}

.portfolio-project .portfolio-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: block;
  /* Ensure visible here */
}

.portfolio-project:hover .portfolio-img {
  transform: scale(1.05);
}

/* Hover Overlay with Button */
.portfolio-overlay-hover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.5);
  /* slightly darker */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(2px);
}

.portfolio-project:hover .portfolio-overlay-hover {
  opacity: 1;
}

/* Mobile Layout Fix for Portfolio Cards */
@media (max-width: 768px) {
  .portfolio-image-wrapper {
    height: 180px;
  }

  .portfolio-content {
    padding: 1rem 1.25rem;
    /* Reduce padding to bring content closer to image */
  }

  .portfolio-title {
    font-size: 1.15rem;
  }
}

.view-btn {
  background: white;
  color: var(--text-main);
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 0.9rem;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
}

.portfolio-project:hover .view-btn {
  transform: translateY(0);
}

/* Content Area */
.portfolio-content {
  padding: 1.5rem 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  background: white;
  text-align: left;
  /* Ensure left aligned */
}

/* Shared Portfolio Title */
.portfolio-title {
  font-size: 1.25rem;
  /* slightly smaller for grid */
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

/* Home Page specific title size override */
.portfolio-card .portfolio-title {
  font-size: 1.5rem;
}

.portfolio-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
  flex-grow: 1;
}

/* Tag / Subtitle - Shared logic but different styles per context */
.portfolio-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

/* Home Page Tag Style (Pill) */
.portfolio-card .portfolio-tag {
  background: #f1f5f9;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 50px;
  margin-top: 10px;
  margin-bottom: 0;
  /* Reset */
  border: 1px solid transparent;
  transition: all 0.3s;
}

.portfolio-card:hover .portfolio-tag {
  background: white;
  border-color: var(--primary);
  color: var(--primary);
}

/* Project Page Tag Style (Text Only) */
.portfolio-project .portfolio-tag {
  color: var(--primary);
  background: transparent;
  padding: 0;
  border: none;
}



/* Footer General */
footer {
  background: #0f172a;
  /* Dark footer */
  color: #cbd5e1;
  padding: 4rem 0 2rem;
  margin-top: auto;
  /* Push to bottom if flexing */
}

/* Footer Logo Fix - Visibility & Sizing - REFINED */
.footer-col img {
  height: 35px;
  /* Slightly smaller for premium feel */
  width: auto;
  margin-bottom: 24px;
  /* Increased breathing space */
  filter: brightness(0) invert(1);
  opacity: 0.85;
  /* Softened white to remove harshness */
  display: block;
  transition: opacity 0.3s ease;
}

.footer-col img:hover {
  opacity: 1;
  /* Subtle interaction */
}



/* =========================================
   TESTIMONIALS
   ========================================= */
.testimonials-section {
  background: white;
  text-align: center;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
}

@media (max-width: 768px) {
  .testimonials-grid {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 1.5rem;
  }

  .testimonial-card {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
  }
}

.testimonial-card {
  background: var(--bg-subtle);
  padding: 2.5rem;
  border-radius: 20px;
  text-align: left;
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  background: white;
  border-color: var(--border-color);
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

.quote-icon {
  font-size: 2.5rem;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.5;
  margin-bottom: 1.5rem;
  display: inline-block;
}

.testimonial-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-main);
  font-style: italic;
  margin-bottom: 2rem;
}

.client-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.client-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
}

.client-details h5 {
  margin: 0;
  font-weight: 700;
  color: var(--text-main);
}

.client-details span {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
}

/* =========================================
   CONTACT
   ========================================= */
.contact-section {
  background: #ffffff;
  position: relative;
  overflow: hidden;
}

/* Decor Shape */
.contact-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: #f8fafc;
  clip-path: polygon(20% 0%, 100% 0, 100% 100%, 0% 100%);
  z-index: 0;
}

.contact-wrapper {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: flex-start;
}

.contact-info-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  background: white;
  padding: 1.5rem;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s;
  border: 1px solid var(--border-color);
}

.contact-info-item:hover {
  transform: translateX(10px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.contact-icon-box {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  background: var(--grad-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  box-shadow: 0 4px 10px rgba(79, 70, 229, 0.3);
}

/* Floating Form Card Override */
.contact-form-card {
  background: #ffffff;
  padding: 3.5rem;
  /* Larger padding for dominance */
  border-radius: 24px;
  /* Stronger Premium Shadow */
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.03);
  border: none;
  position: relative;
  z-index: 10;
  transform: scale(1.02);
  /* Slightly larger than sibling */
}

/* Subtle Gradient Backdrop behind form */
.contact-form-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--grad-primary);
  border-radius: 24px 24px 0 0;
}

/* Form inputs & Typography */
.form-header h3 {
  font-size: 2rem !important;
  /* Force larger size */
  color: var(--text-main) !important;
  margin-bottom: 0.5rem;
  letter-spacing: -0.5px;
}

.form-header p {
  font-size: 1rem;
  margin-bottom: 2.5rem;
}

.form-floating {
  margin-bottom: 1.5rem;
  position: relative;
}

.form-floating .form-input,
.form-floating .form-textarea {
  width: 100%;
  background-color: #ffffff;
  border: 2px solid #e2e8f0;
  /* Stronger contrast border */
  border-radius: 12px;
  padding: 1rem 1rem;
  font-size: 1rem;
  color: var(--text-main);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.form-floating .form-input:focus,
.form-floating .form-textarea:focus {
  background-color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15), 0 4px 12px rgba(79, 70, 229, 0.1);
  transform: translateY(-2px);
}

.form-floating label {
  position: absolute;
  top: 1rem;
  left: 1rem;
  pointer-events: none;
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: all 0.3s ease;
  background: transparent;
  padding: 0 4px;
}

/* Input Focus / Filled State Logic handled visually closer to floating labels if JS was heavier, 
   but for now styling standard placeholders to look cleaner or hiding standard label if using floating technique
*/
.form-floating .form-input::placeholder,
.form-floating .form-textarea::placeholder {
  color: transparent;
  /* Hide default placeholder for floating label effect if desired */
}

/* Floating Label Mechanic (CSS Only) */
.form-floating .form-input:focus~label,
.form-floating .form-input:not(:placeholder-shown)~label,
.form-floating .form-textarea:focus~label,
.form-floating .form-textarea:not(:placeholder-shown)~label {
  top: -10px;
  left: 12px;
  background: white;
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 600;
}

/* Send Message Button */
.contact-form-card .btn-primary {
  width: 100%;
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
  letter-spacing: 0.5px;
  font-weight: 700;
  text-transform: uppercase;
  background: var(--grad-primary);
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
  box-shadow: 0 10px 20px -5px rgba(79, 70, 229, 0.4);
  margin-top: 1rem;
}

.contact-form-card .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px -5px rgba(79, 70, 229, 0.5);
}

/* =========================================
   FOOTER
   ========================================= */
/* =========================================
   FOOTER
   ========================================= */
footer {
  background: radial-gradient(circle at top right, #1e293b 0%, #0f172a 100%);
  color: #94a3b8;
  padding: 60px 0 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Brand Column Enhancements */
.footer-col img {
  height: 40px;
  width: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  /* Soften logo edges */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  filter: brightness(0) invert(1);
}

.footer-col p {
  line-height: 1.7;
  margin-top: 1rem;
  color: #cbd5e1 !important;
  /* Force readability over inline styles */
  font-size: 0.95rem !important;
  max-width: 280px;
}

/* Headings */
.footer-col h4 {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
  position: relative;
  display: inline-block;
}

/* Heading Accent Line */
.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 24px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

/* Links List */
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-links li {
  display: block;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
}

/* Link Hover Effect - Slide & color */
.footer-links a:hover {
  color: #ffffff;
  transform: translateX(5px);
}

.footer-links a i {
  color: var(--primary);
  width: 20px;
  /* Fixed width for alignment */
  transition: color 0.3s ease;
}

.footer-links a:hover i {
  color: var(--accent);
}

/* Copyright Section */
.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: #64748b;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Responsive Footer */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
  }

  .footer-col {
    align-items: center;
  }

  .footer-col p {
    margin: 1rem auto 0;
  }

  .footer-col h4::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-links a {
    justify-content: center;
  }

  .footer-links a:hover {
    transform: translateX(0) scale(1.05);
  }
}

/* =========================================
   UNIQUE SUB-MODULE PAGE STYLES
   ========================================= */

/* 1. Mobile Apps: Feature-Focused App Cards */
.page-mobile .services-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
}

.page-mobile .service-card {
  padding: 3rem 2rem;
  border-radius: 32px;
  /* Super rounded, phone-like */
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.04);
  background: linear-gradient(to bottom, #ffffff, #f8fafc);
  transition: all 0.4s ease;
  position: relative;
  overflow: visible;
  /* Allowing icon pop */
}

.page-mobile .service-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 20px 40px -10px rgba(79, 70, 229, 0.15);
  border-color: rgba(79, 70, 229, 0.2);
}

.page-mobile .service-icon {
  width: 80px;
  height: 80px;
  margin: -60px auto 2rem;
  /* Pull icon up */
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  /* Float effect */
  font-size: 2rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.page-mobile .service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
  background: var(--grad-primary);
  color: white;
  border-color: transparent;
}

/* 2. Digital Marketing: KPI / Results Dashboard Strips */
.page-marketing .services-grid {
  grid-template-columns: 1fr;
  /* Full width stacks */
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.page-marketing .service-card {
  display: flex;
  flex-direction: row;
  /* Horizontal */
  align-items: center;
  padding: 2rem 2.5rem;
  border-radius: 12px;
  /* Squared dashboard look */
  border: 1px solid var(--border-color);
  background: white;
  border-left: 5px solid var(--accent);
  /* Data accent */
  gap: 2rem;
}

.page-marketing .service-card:hover {
  transform: translateX(10px);
  /* Slide right */
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.page-marketing .service-icon {
  margin-bottom: 0;
  width: 60px;
  height: 60px;
  background: var(--bg-subtle);
  border-radius: 50%;
  /* Circle data points */
  color: var(--text-main);
  flex-shrink: 0;
}

.page-marketing .service-card:hover .service-icon {
  background: var(--accent);
  color: white;
  transform: none;
}

.page-marketing .service-title {
  margin-bottom: 0.25rem;
  font-size: 1.25rem;
}

.page-marketing .service-desc {
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* 3. Web Design: Architectural Split Layout */
/* 3. Web Design: Architectural Split Layout */
.page-web .services-grid {
  grid-template-columns: repeat(2, 1fr);
  /* Forced 2x2 Grid for 4 items */
  gap: 2px;
  /* Tight grid like blueprints */
  background: var(--border-color);
  /* Grid lines */
  border: 1px solid var(--border-color);
  max-width: 1100px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
}

.page-web .service-card {
  background: white;
  border-radius: 0;
  /* Align perfectly */
  border: none;
  box-shadow: none;
  padding: 3rem;
  align-items: flex-start;
  text-align: left;
  height: 100%;
}

.page-web .service-card:hover {
  transform: none;
  background: #fdfdfd;
  z-index: 1;
  /* Bring above borders */
  box-shadow: inset 0 0 0 2px var(--primary);
  /* Inner focus border */
}

.page-web .service-icon {
  background: transparent;
  width: auto;
  height: auto;
  font-size: 2.5rem;
  color: var(--text-light);
  /* Draftsman gray */
  margin-bottom: 1.5rem;
  padding: 0;
}

.page-web .service-card:hover .service-icon {
  color: var(--primary);
  background: transparent;
  transform: scale(1.1);
  box-shadow: none;
}

.page-web .service-title {
  font-family: 'Inter', monospace;
  /* Tech/Arch vibe */
  letter-spacing: -0.5px;
}

/* 4. AI Services: Futuristic Minimal Panels */
.page-ai .services-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media(max-width: 0px) {
  .page-ai .services-grid {
    grid-template-columns: 1fr;
  }
}

.page-ai .service-card {
  background: #0f172a;
  /* Dark Tech Mode */
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  border-radius: 4px;
  /* Sharp tech corners */
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: none;
}

.page-ai .service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.page-ai .service-card:hover::after {
  transform: translateX(100%);
}

.page-ai .service-title {
  color: #ffffff;
  font-weight: 300;
  font-size: 1.5rem;
  letter-spacing: 1px;
}

.page-ai .service-desc {
  color: #94a3b8;
  font-weight: 300;
}

.page-ai .service-icon {
  background: rgba(255, 255, 255, 0.05);
  color: var(--accent);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 2rem;
}

.page-ai .service-card:hover {
  transform: none;
  background: #1e293b;
  box-shadow: 0 0 30px rgba(14, 165, 233, 0.1);
}

.page-ai .service-card:hover .service-icon {
  background: var(--accent);
  color: black;
  box-shadow: 0 0 15px var(--accent);
  transform: none;
}

/* Mobile Responsive Adjustments for Unique Layouts */
@media (max-width: 768px) {
  .page-marketing .service-card {
    flex-direction: column;
    text-align: center;
  }

  .page-mobile .service-icon {
    margin: 0 auto 1.5rem;
  }

  .page-web .services-grid {
    gap: 1rem;
    background: transparent;
    border: none;
    grid-template-columns: 1fr;
  }

  .page-web .service-card {
    border-radius: 12px;
    border: 1px solid var(--border-color);
  }
}

/* =========================================
   PREMIUM DROPDOWN MENU
   ========================================= */

.dropdown-parent {
  position: relative;
}

.dropdown-parent .nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dropdown-arrow {
  font-size: 0.75rem;
  transition: transform 0.3s ease;
  opacity: 0.7;
}

/* Rotate arrow on hover */
.dropdown-parent:hover .dropdown-arrow {
  transform: rotate(180deg);
}

/* Dropdown Container */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  /* Center relative to parent */
  transform: translateX(-50%) translateY(10px);
  width: 220px;
  /* Compact width */
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 12px;
  /* Subtle rounded corners */
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.1), 0 4px 10px -2px rgba(0, 0, 0, 0.05);
  /* Soft, natural shadow */
  padding: 0.6rem;
  /* Balanced padding */
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* Show Dropdown on Hover */
.dropdown-parent:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(15px);
  /* Slide down effect */
}

/* Invisible Bridge */
.dropdown-parent::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 20px;
  /* Covers the gap */
}

/* Dropdown Items */
.dropdown-menu li {
  width: 100%;
  margin: 0;
}

.dropdown-menu a {
  display: block;
  padding: 0.65rem 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  /* Consistent font size */
  font-weight: 500;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
  line-height: 1.4;
}

.dropdown-menu a:hover {
  background: var(--bg-subtle);
  color: var(--primary);
  transform: translateX(3px);
  /* Subtle movement */
}

/* Remove nav link underline for dropdown items */
.dropdown-menu a::after {
  display: none;
}

/* Mobile Dropdown Fix */
@media (max-width: 768px) {
  .dropdown-parent .nav-link {
    justify-content: space-between;
    width: 100%;
  }

  .dropdown-menu {
    position: static;
    width: 100%;
    transform: none;
    box-shadow: none;
    border: none;
    background: var(--bg-subtle);
    border-radius: 8px;
    padding: 0.5rem;
    margin-top: 0.5rem;
    display: none;
    /* Hidden by default in mobile */
    opacity: 1;
    visibility: visible;
  }

  /* JavaScript toggles .active class on parent for mobile */
  .dropdown-parent.active .dropdown-menu {
    display: flex;
    animation: fadeInDown 0.3s ease;
  }
}


/* =========================================
   CONTACT PAGE REDESIGN
   ========================================= */

/* Contact Info Section */
.contact-info-section {
  padding: 50px 0 30px;
  background: var(--bg-body);
}

.contact-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

@media (max-width: 992px) {
  .contact-cards-grid {
    grid-template-columns: 1fr;
  }
}

.contact-card-item {
  background: white;
  padding: 2rem 1.5rem;
  border-radius: 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.contact-card-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(79, 70, 229, 0.1);
}

.contact-card-icon {
  width: 64px;
  height: 64px;
  background: var(--bg-subtle);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
}

.contact-card-item:hover .contact-card-icon {
  background: var(--grad-primary);
  color: white;
  transform: scale(1.1);
  box-shadow: 0 10px 20px rgba(79, 70, 229, 0.2);
}

.contact-card-item h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

.contact-card-item p,
.contact-card-item p a {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.6;
  text-decoration: none;
  transition: color 0.2s;
}

.contact-card-item p a:hover {
  color: var(--primary);
}

/* Contact Message Section */
.contact-message-section {
  padding: 30px 0 60px;
  background: var(--bg-body);
}

.contact-message-section .section-title {
  text-align: center;
  margin-bottom: 0.5rem;
}

.contact-message-section .section-desc {
  text-align: center;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 3rem;
}

.contact-form-wrapper {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  padding: 2.5rem;
  border-radius: 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
  /* Premium shadow */
  border: 1px solid rgba(0, 0, 0, 0.02);
}

@media (max-width: 768px) {
  .contact-form-wrapper {
    padding: 2rem;
  }
}

/* Contact Form Styles */
.main-contact-form {
  width: 100%;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.form-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: 0.95rem;
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: var(--bg-body);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  transition: all 0.2s ease;
  outline: none;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--primary);
  background-color: white;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.btn {
  padding: 0.875rem 2.5rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-sans);
}

.btn-primary {
  background: var(--grad-primary);
  color: white;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.4);
}



/* Desktop: Fix dropdown arrow position for select elements */
select.form-input,
.form-floating select,
.form-floating select.form-input {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%23333333' d='M8 11L3 6h10z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 0.75rem center !important;
  background-size: 16px !important;
}


/* Mobile Form Styles - Keep existing mobile layout */
@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  /* Fix dropdown arrow position for select elements in mobile */
  select.form-input,
  .form-floating select,
  .form-floating select.form-input {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    padding-right: 2.5rem !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%23333333' d='M8 11L3 6h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.75rem center !important;
    background-size: 16px !important;
    background-color: var(--bg-body) !important;
  }
}


/* DESKTOP ONLY: Fixed Height Hero (Like Home Page) */
@media (min-width: 992px) {

  /* Lock the Hero Section Height */
  /* 
     UNIFIED DESKTOP HERO SECTION (Standardized to Match Home Page)
     Applies strict 100vh height and cover scaling to all internal pages.
  */
  .submodule-hero,
  .submodule-hero-auto {
    width: 100% !important;
    /* Full available width */
    max-width: 100% !important;
    /* Override mobile max-width */
    min-height: 100vh !important;
    /* Match Home Page Height Exactly */
    height: auto !important;
    margin: 0 !important;
    /* Reset all margins */
    margin-left: 0 !important;
    /* Override mobile full-bleed */
    margin-right: 0 !important;
    /* Override mobile full-bleed */
    padding-top: 80px !important;
    padding-bottom: 60px !important;
    overflow: visible !important;
    background: #0f172a;
    display: flex !important;
    align-items: center;
    justify-content: center;
    position: relative;
    left: 0 !important;
    /* Override mobile full-bleed */
    right: 0 !important;
    /* Override mobile full-bleed */
  }

  /* Wrapper fills the hero container */
  .submodule-hero .sub-hero-image-wrapper,
  .submodule-hero-auto .sub-hero-image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100% !important;
    height: 100% !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 0;
  }

  /* Image fits perfectly with COVER (Fills space, may crop edges) */
  .submodule-hero .sub-hero-image,
  .submodule-hero-auto .sub-hero-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    /* Fills the entire space */
    object-position: center center !important;
    /* Balanced focus */
    opacity: 1 !important;
    display: block !important;
  }

  /* Specialized alignment for specific images if needed to keep titles visible */
  .page-services .submodule-hero .sub-hero-image,
  .page-services .submodule-hero-auto .sub-hero-image {
    object-position: center 35% !important;
  }

  /* Show hero content (title, text) above image */
  .submodule-hero .hero-content,
  .submodule-hero-auto .hero-content {
    display: block !important;
    position: relative !important;
    z-index: 10 !important;
    text-align: center !important;
    color: white !important;
    max-width: 900px !important;
    padding: 0 2rem !important;
  }
}

/* MOBILE: Submodule Hero Sections */
@media (max-width: 991px) {

  .submodule-hero,
  .submodule-hero-auto {
    width: 100% !important;
    height: auto !important;
    min-height: auto !important;
    padding: 0 !important;
    margin: 70px 0 0 0 !important;
    position: relative;
    overflow: hidden;
    background: transparent !important;
    display: block !important;
  }

  .submodule-hero .sub-hero-image-wrapper,
  .submodule-hero-auto .sub-hero-image-wrapper {
    width: 100% !important;
    height: auto !important;
    position: relative !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0 !important;
  }

  .submodule-hero .sub-hero-image,
  .submodule-hero-auto .sub-hero-image {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 2.36 / 1 !important;
    /* Exactly match the Home Page Slide Ratio */
    object-fit: cover !important;
    object-position: center center !important;
    display: block !important;
  }
}


/* Mobile: Stack vertically */
@media (max-width: 600px) {
  .page-mobile .services-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================
   SERVICES PAGE STRUCTURED LIST
   ========================================= */
.services-structure-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  padding: 2rem;
  background: #f8fafc;
  /* Subtle background to frame it */
  border-radius: 20px;
  border: 1px solid var(--border-color);
}

.service-group-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.group-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  /* Blue/Indigo color like in image */
  border-bottom: 2px solid rgba(79, 70, 229, 0.1);
  padding-bottom: 0.5rem;
  margin-bottom: 0.5rem;
}

.group-list li {
  margin-bottom: 1rem;
}

.group-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.1rem;
  color: var(--text-main);
  font-weight: 500;
  transition: all 0.2s ease;
  padding: 8px 12px;
  border-radius: 8px;
}

.group-list a:hover {
  color: var(--primary);
  background: rgba(79, 70, 229, 0.05);
  transform: translateX(5px);
}

.group-list i {
  width: 24px;
  text-align: center;
  color: var(--text-muted);
}

/* =========================================
   MEGA DROPDOWN S TYLES
   ========================================= */
.dropdown-menu.wide-dropdown {
  width: 650px;
  /* Wider dropdown */
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  visibility: hidden;
  position: absolute;
  top: 100%;
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  z-index: 1001;
  /* Above everything */
}

.dropdown-parent:hover .dropdown-menu.wide-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Ensure mobile menu doesn't break with wide dropdown */
@media (max-width: 1024px) {
  .dropdown-menu.wide-dropdown {
    width: 100%;
    position: static;
    transform: none;
    display: none;
    /* Relies on JS toggle or simple stacking */
    grid-template-columns: 1fr;
    box-shadow: none;
    border: none;
    padding: 0 0 0 1rem;
    background: transparent;
  }

  .dropdown-parent.active .dropdown-menu.wide-dropdown {
    display: block;
    opacity: 1;
    visibility: visible;
  }
}

.dropdown-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.dropdown-header {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding-bottom: 4px;
  display: block;
}

.dropdown-group ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.dropdown-group li {
  list-style: none;
}

.dropdown-group a {
  color: var(--text-main);
  font-size: 0.95rem;
  transition: color 0.2s;
  display: block;
  padding: 2px 0;
}

.dropdown-group a:hover {
  color: var(--primary);
  transform: translateX(3px);
  /* Subtle hint */
  display: inline-block;
}

/* Spacing Cleanup */
.content-section {
  padding: 60px 0 !important;
}

/* Client Logo Placeholder Styles */
.client-logo-placeholder {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-muted);
  padding: 10px 20px;
  border: 1px dashed var(--border-color);
  border-radius: 8px;
  opacity: 0.7;
  transition: all 0.3s ease;
  cursor: default;
}

.client-logo-placeholder:hover {
  opacity: 1;
  color: var(--primary);
  border-color: var(--primary);
}

/* =========================================
   SCROLL ANIMATIONS
   ========================================= */

/* Fade Up Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile Navigation */
@media (max-width: 992px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    /* Hidden by default */
    width: 85%;
    /* Slide-out drawer width */
    max-width: 400px;
    height: 100vh;
    background: white;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 6rem 2rem 2rem;
    /* Top padding for header clearance */
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    gap: 0;
    /* Reset gap */
    overflow-y: auto;
  }

  .nav-menu.active {
    right: 0;
    /* Slide in */
  }

  .nav-menu li {
    width: 100%;
    border-bottom: 1px solid var(--bg-subtle);
  }

  .nav-link {
    display: block;
    padding: 0.75rem 0 !important;
    /* Reduced from 1rem */
    font-size: 0.95rem !important;
    /* Reduced from 1.1rem */
    color: var(--text-main);
  }

  .nav-cta {
    margin-top: 1rem !important;
    /* Reduced from 1.5rem */
    display: block;
    text-align: center;
    width: 100%;
    padding: 0.75rem 1.5rem !important;
    /* Reduced padding */
    font-size: 0.9rem !important;
    /* Reduced text size */
  }

  /* DROPDOWN FIX FOR MOBILE */
  .dropdown-menu,
  .dropdown-menu.wide-dropdown {
    position: relative !important;
    width: 100% !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: none;
    box-shadow: none !important;
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0.5rem 0 !important;
    /* Reduced from 1rem */
  }

  .dropdown-parent.active .dropdown-menu {
    display: grid;
    grid-template-columns: repeat(2, 1fr) !important;
    /* 2-column grid */
    gap: 0.5rem !important;
    /* Reduced from 1rem */
    padding-bottom: 1rem !important;
    /* Reduced from 2rem */
  }

  .dropdown-menu a {
    padding: 0.5rem 0.25rem !important;
    /* Reduced from 0.8rem 0 */
    font-size: 0.8rem !important;
    /* Reduced text size */
    line-height: 1.3 !important;
  }

  /* Service category headers in 2-column layout */
  .dropdown-menu .service-category {
    grid-column: 1 / -1 !important;
    /* Span both columns for headers */
    font-size: 0.7rem !important;
    /* Smaller category headers */
    font-weight: 600 !important;
    color: var(--primary) !important;
    margin-top: 0.5rem !important;
    margin-bottom: 0.25rem !important;
    padding: 0 !important;
  }

  /* First category header - no top margin */
  .dropdown-menu .service-category:first-child {
    margin-top: 0 !important;
  }

  /* BACKDROP for active menu */
  .nav-menu.active::before {
    content: '';
    position: fixed;
    top: 0;
    left: -100vw;
    /* Covers rest of screen */
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
    backdrop-filter: blur(2px);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Initial State for Elements to Animate */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Visible State (triggered by IntersectionObserver) */
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .fade-up {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* =========================================
   MOBILE RESPONSIVE - UNIFORM SECTION HEIGHTS
   ========================================= */

/* =========================================
   MOBILE RESPONSIVE - UNIFORM SECTION HEIGHTS
   ========================================= */

/* Mobile First: Tablets and Below (768px) */
@media (max-width: 768px) {

  /* 1. LAYOUT & OVERFLOW FIXES */
  html,
  body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
  }

  .container {
    width: 100%;
    padding: 0 1.25rem;
    overflow-x: hidden;
  }

  /* Grid Resets to Single Column (excluding content grids that need 2 columns) */
  .tech-stack-container,
  .contact-wrapper,
  .testimonials-grid,
  .faq-grid {
    grid-template-columns: 1fr !important;
    display: grid;
    width: 100%;
    gap: 2rem;
    margin: 0;
  }

  /* Flex Resets */
  .pricing-table {
    display: flex;
    flex-direction: column;
  }

  /* 2. HEADER SECTION FIXES (Stacked Layout for Full Visibility) */
  .hero {
    display: flex;
    flex-direction: column;
    padding-top: 75px !important;
    /* Space for fixed header */
    padding-bottom: 0;
    min-height: auto;
    height: auto;
    background: #ffffff !important;
    /* Match header background - no dark space */
  }

  /* Slider becomes a relative banner block */
  .hero-slider {
    position: relative !important;
    width: 100%;
    aspect-ratio: 16 / 9 !important;
    /* Match image aspect ratio */
    margin-top: 0 !important;
    /* No margin - image starts at top */
    margin-bottom: 0 !important;
    /* No space below */
    order: 1;
    overflow: hidden !important;
    background: transparent !important;
  }

  /* Image fits perfectly showing full content without cropping */
  .hero-slider .slide {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-size: contain !important;
    /* Show full image without cropping */
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-color: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* Remove padding-bottom to eliminate extra space */
  .hero-slider .slide::after {
    content: none !important;
  }

  /* Dot navigation on mobile */
  .slider-dots {
    bottom: 15px !important;
    /* Closer to bottom on mobile */
    gap: 8px !important;
    /* Tighter spacing */
  }

  .slider-dot {
    width: 10px !important;
    height: 10px !important;
  }

  .slider-dot.active {
    width: 24px !important;
  }

  /* Content sits below the image */
  .hero-content {
    order: 2;
    position: relative !important;
    width: 100%;
    padding: 2rem 1.5rem 3rem !important;
    /* Reduced padding */
    background: #0f172a;
    /* Match body/section bg */
    text-align: center;
    top: auto;
    left: auto;
    transform: none;
    margin: 0 auto;

  }

  .hero-title {
    font-size: 2.5rem;
    line-height: 1.2;
  }

  .hero-desc {
    font-size: 1rem;
    margin-bottom: 30px;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }

  .btn {
    width: 100%;
    justify-content: center;
    padding: 0.9rem 2rem;
    font-size: 1rem;
  }

  /* ==== UNIFORM SECTION HEIGHTS ==== */
  /* All major content sections maintain consistent viewport-based heights */

  .usp-strip {
    min-height: 20vh;
    height: auto;
    padding: 2rem 0;
    display: flex;
    align-items: center;
    margin-top: 0;
  }

  .usp-grid {
    flex-direction: column;
    gap: 1.5rem;
  }

  .usp-item {
    width: 100%;
    justify-content: center;
    text-align: center;
    font-size: 0.95rem;
  }


  /* Contact Form Fix */

  /* Contact Form Fix (Force Flex Column) */
  .contact-wrapper {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 3rem !important;
  }

  .contact-form-card {
    transform: none !important;
    padding: 2rem 1rem !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    border-radius: 12px;
    box-sizing: border-box !important;
    /* Critical for padding containment */
    overflow: hidden;
  }



  .contact-form-card form {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Force inputs to fit within container */
  .form-input,
  .form-textarea {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0.8rem !important;
    /* Safe padding */
  }

  .form-floating {
    width: 100% !important;
    max-width: 100% !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
  }

  /* 4. FOOTER FIXES */
  footer {
    padding: 2rem 0 1.5rem 0 !important;
    /* Reduced padding */
    text-align: left;
  }

  .footer-col {
    align-items: flex-start;
    margin-bottom: 0;
  }

  /* Restore multi-column footer layout (2x2 Grid) */
  .footer-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.5rem 1rem !important;
    /* Reduced gap */
  }

  /* Make the Brand/Logo column span full width for cleaner text reading */
  .footer-col:first-child {
    grid-column: 1 / -1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 1rem !important;
    /* Reduced padding */
    margin-bottom: 1rem !important;
    /* Reduced margin */
    width: 100%;
  }

  /* Brand column text */
  .footer-col:first-child p {
    font-size: 0.8rem !important;
    /* Reduced text */
    line-height: 1.4 !important;
    margin-top: 0.5rem !important;
    opacity: 0.85;
  }

  .footer-col h4 {
    margin-bottom: 0.75rem !important;
    /* Reduced margin */
    font-size: 0.9rem !important;
    /* Reduced heading */
    font-weight: 600;
  }

  .footer-links {
    gap: 0.4rem !important;
    /* Tighter link spacing */
    display: flex;
    flex-direction: column;
  }

  .footer-links li {
    margin: 0;
  }

  .footer-links a {
    font-size: 0.8rem !important;
    /* Reduced link size */
    padding: 0.25rem 0 !important;
    display: inline-block;
  }

  /* Fix Footer Logo Sizing */
  .footer-col img {
    height: 28px !important;
    /* Slightly smaller logo */
    width: auto;
  }

  /* Copyright section */
  .copyright {
    margin-top: 1.5rem !important;
    /* Reduced margin */
    padding-top: 1rem !important;
    font-size: 0.75rem !important;
    /* Reduced text */
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  /* General Image Scaling */
  img {
    max-width: 100%;
    height: auto;
    padding: 2.5rem 0;
    display: flex;
    align-items: center;
  }



  /* 5. DEVELOPMENT LIFECYCLE FIX */
  .timeline-steps {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem !important;
  }

  .process-step {
    padding: 1.5rem;
  }

  .step-icon {
    width: 60px;
    height: 60px;
    font-size: 1.3rem;
  }

  .step-title {
    font-size: 1.1rem;
  }

  /* ==== UNIVERSAL MOBILE GRID SYSTEM - APPLIES TO ALL PAGES ==== */
  /* This rule catches ANY grid-based layout on ANY page automatically */

  /* Universal grid containers - catches all variations */
  [class*="-grid"],
  [class*="-cards"],
  [class*="grid-"],
  [class*="cards-"],
  .services-grid,
  .portfolio-grid,
  .testimonials-grid,
  .pricing-table,
  .contact-cards-grid,
  .features-section .services-grid,
  .why-us-section .services-grid,
  .services .services-grid,
  .tech-stack-container,
  .timeline-steps {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    /* UNIVERSAL 2-column compact grid */
    gap: 1rem !important;
    width: 100%;
    max-width: 100%;
    overflow: visible !important;
    padding: 0 !important;
    flex-direction: unset !important;
    flex-wrap: unset !important;
  }

  /* Exception: Testimonials slider - ONE at a time, NO OVERFLOW */
  .testimonials-section {
    position: relative !important;
    overflow: hidden !important;
    padding: 60px 0 !important;
  }

  .testimonials-grid {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    overflow-x: hidden !important;
    overflow-y: visible !important;
    gap: 2rem !important;
    padding: 0 !important;
    width: 100% !important;
    scrollbar-width: none !important;
  }

  .testimonials-grid::-webkit-scrollbar {
    display: none !important;
  }

  .testimonials-grid .testimonial-card {
    flex: 0 0 auto !important;
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 2.5rem 1.5rem !important;
  }

  /* Testimonial text adjustments */
  .testimonial-card p {
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
    margin-bottom: 1rem !important;
  }

  .testimonial-info h4 {
    font-size: 1rem !important;
  }

  /* Universal card styling - catches ALL card variations */
  [class*="-card"],
  [class*="card-"],
  [class*="-item"],
  [class*="item-"],
  .service-card,
  .portfolio-card,
  .testimonial-card,
  .pricing-card,
  .contact-card-item,
  .contact-info-item,
  .process-step,
  .tech-lane {
    /* Scale down EVERYTHING proportionally */
    padding: 1.2rem 0.8rem !important;
    min-height: auto !important;
    height: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    scroll-snap-align: none !important;
    margin: 0 !important;
  }

  /* Universal icon scaling - catches ALL icon variations */
  [class*="-icon"],
  [class*="icon-"],
  .service-icon,
  .step-icon,
  .contact-icon-box,
  .contact-card-icon,
  .tech-lane-icon {
    width: 40px !important;
    height: 40px !important;
    font-size: 1.1rem !important;
    margin-bottom: 0.8rem !important;
  }

  /* Universal typography - catches ALL title variations */
  [class*="-title"],
  [class*="title-"],
  .service-title,
  .portfolio-title,
  .testimonial-card h5,
  .step-title,
  .tech-lane-title,
  .contact-card-item h3 {
    font-size: 0.95rem !important;
    margin-bottom: 0.4rem !important;
    line-height: 1.3 !important;
  }

  /* Universal descriptions - catches ALL description/text variations */
  [class*="-desc"],
  [class*="desc-"],
  [class*="-text"],
  .service-desc,
  .testimonial-text,
  .step-desc,
  .contact-card-item p {
    font-size: 0.8rem !important;
    line-height: 1.4 !important;
    margin-bottom: 0 !important;
  }

  /* Portfolio metrics - compact but impactful */
  .portfolio-metric {
    font-size: 2rem !important;
    /* Scaled down from 4.5rem */
    margin-bottom: 0.5rem !important;
    line-height: 1 !important;
    letter-spacing: -1px !important;
  }

  .portfolio-title {
    font-size: 1rem !important;
    margin-bottom: 0.3rem !important;
  }

  .portfolio-tag {
    font-size: 0.7rem !important;
    padding: 4px 10px !important;
    margin-top: 0.5rem !important;
  }

  /* Remove portfolio wrapper effects */
  .portfolio-highlights {
    overflow: visible !important;
    position: relative;
  }

  .portfolio-highlights::after {
    display: none !important;
    /* Remove scroll indicator */
  }

  /* Old duplicate testimonials styles removed - using slider above */



  /* ==== CONTACT SECTION - SINGLE ROW LAYOUT ==== */
  /* ==== CONTACT SECTION - 3 ITEMS IN ONE ROW ==== */
  .contact-wrapper>div:first-child {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    overflow-x: visible !important;
    gap: 0.5rem !important;
    padding: 0.5rem 0 !important;
  }

  .contact-info-item {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    width: 33% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    margin: 0 !important;
    padding: 1rem 0.3rem !important;
    background: white !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05) !important;
  }

  .contact-icon-box {
    margin-bottom: 0.6rem !important;
    margin-right: 0 !important;
    width: 32px !important;
    height: 32px !important;
    font-size: 0.9rem !important;
  }

  .contact-label {
    font-size: 0.75rem !important;
    margin-bottom: 0.3rem !important;
  }

  .contact-value,
  .contact-value a {
    font-size: 0.65rem !important;
    word-break: break-all !important;
    line-height: 1.2 !important;
  }

  /* Header styles consolidated below at line 3812 */



  /* Process timeline - compact horizontal flow */
  .timeline-steps {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.2rem !important;
  }

  .timeline-container::before {
    display: none !important;
    /* Remove connecting line on mobile */
  }

  .process-step {
    padding: 1rem 0.8rem !important;
  }

  /* Old conflicting styles removed - using universal grid system */

  /* Universal section styling - ensures all sections visible */
  section,
  [class*="-section"] {
    overflow: visible !important;
    /* Never hide content */
    min-height: auto !important;
    padding: 50px 0 !important;
  }

  /* Allow process and contact sections to be taller if needed */
  .process-section,
  .contact-section,
  .faq-section {
    min-height: auto !important;
    max-height: none !important;
    padding: 50px 0 !important;
  }

  /* Section header - more compact */
  .section-header {
    margin-bottom: 1.5rem !important;
    /* Reduced from 2.5rem */
  }

  .section-title {
    font-size: 1.6rem !important;
    /* Scaled down */
    line-height: 1.2 !important;
    margin-bottom: 0.6rem !important;
  }

  .section-header p {
    font-size: 0.85rem !important;
    margin-bottom: 0 !important;
  }

  /* Container adjustments for compact layout */
  .container {
    padding: 0 1.2rem !important;
  }

  /* ==== FOOTER - PROFESSIONAL MOBILE LAYOUT ==== */
  footer {
    padding: 30px 0 15px !important;
  }

  .footer-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.5rem !important;
  }

  /* First column (logo/about) - spans full width */
  .footer-grid .footer-col:first-child {
    grid-column: 1 / span 2 !important;
    text-align: center !important;
    padding-bottom: 0.8rem !important;
    margin-bottom: 0.5rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  }

  /* Compact about text */
  .footer-grid .footer-col:first-child p {
    font-size: 0.8rem !important;
    max-width: 90% !important;
    margin: 0.5rem auto !important;
  }

  .footer-grid .footer-col:first-child img {
    height: 35px !important;
    width: auto !important;
  }

  /* Other columns (Company, Services, Connect) */
  .footer-grid .footer-col:not(:first-child) {
    text-align: left !important;
  }

  .footer-col h4 {
    font-size: 0.9rem !important;
    margin-bottom: 0.8rem !important;
    color: var(--primary-color) !important;
  }

  .footer-col ul li {
    margin-bottom: 0.4rem !important;
  }

  .footer-col a {
    font-size: 0.85rem !important;
  }

  .copyright {
    margin-top: 2rem !important;
    padding-top: 1.5rem !important;
    text-align: center !important;
    font-size: 0.85rem !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  }

  /* ==== CONTACT SECTION ==== */
  .contact-section::before {
    display: none;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .contact-form-card {
    padding: 2.5rem 2rem;
    transform: none;
  }

  .contact-info-item {
    padding: 1.2rem;
  }

  /* ==== FAQ SECTION ==== */
  .faq-grid {
    padding: 1.5rem;
  }

  .faq-question {
    font-size: 1rem;
    padding: 1.2rem 0;
  }

  .faq-answer {
    font-size: 0.95rem;
  }

  /* ==== HEADER/NAVIGATION ==== */
  header {
    padding: 1rem 0 !important;
  }

  /* Target specific container for header to avoid conflicts */
  header .container,
  .nav-container {
    display: block !important;
    /* Switch to block to support absolute positioning context */
    position: relative !important;
    width: 100% !important;
    height: 50px !important;
    /* Explicit height for content */
    min-height: 50px !important;
  }

  /* Logo Visibility & Sizing - Absolute Left */
  header .logo,
  .logo {
    position: absolute !important;
    left: 1.5rem !important;
    /* Match container padding */
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 1005 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: auto !important;
    height: auto !important;
    background: transparent !important;
  }

  header .logo img,
  .logo img {
    height: 40px !important;
    width: auto !important;
    display: block !important;
    padding: 0 !important;
    /* Override global img padding */
    margin: 0 !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  /* Mobile Toggle - Absolute Right */
  header .mobile-toggle,
  .mobile-toggle {
    position: absolute !important;
    right: 1.5rem !important;
    /* Match container padding */
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 1005 !important;
    display: block !important;
    margin: 0 !important;
  }

  /* Ensure Nav wrapper doesn't interfere with Flex layout */
  header nav {
    position: absolute;
    width: 0;
    height: 0;
    overflow: visible;
    padding: 0;
    margin: 0;
    visibility: visible;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    gap: 0;
    padding: 2rem 0;
    transform: translateX(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s;
    z-index: 999;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  }

  .nav-menu.active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-menu li {
    width: 100%;
    border-bottom: 1px solid var(--border-color);
  }

  .nav-link {
    display: block;
    padding: 1rem 3rem !important;
    /* Increased padding */
    width: 100%;
    font-size: 1.1rem;
    box-sizing: border-box !important;
  }

  .nav-link::after {
    display: none;
  }

  .nav-cta {
    margin: 0;
    display: block;
    text-align: left;
    padding: 1rem 3rem !important;
    /* Increased padding */
    width: 100%;
    box-sizing: border-box !important;
  }

  /* ==== CONTAINER ==== */
  .container {
    padding: 0 1.5rem;
  }

  /* ==== FOOTER ==== */
  footer {
    min-height: auto;
    padding: 40px 0 20px;
  }
}

/* Small Mobile Devices (480px and below) */
@media (max-width: 480px) {

  .hero-title {
    font-size: 2rem;
  }

  .hero-desc {
    font-size: 0.9rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .service-card {
    padding: 1.5rem 1rem;
  }

  .service-icon {
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
  }

  .service-title {
    font-size: 1.1rem;
  }

  .service-desc {
    font-size: 0.9rem;
  }

  .btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
  }

  /* =================================================================
   ABOUT PAGE HERO IMAGE POSITIONING
   Shifts image DOWN to reveal built-in title at top
   ================================================================= */

  /* Desktop: Move image down to show title */
  @media (min-width: 992px) {
    .about-hero .sub-hero-image {
      transform: translateY(80px) !important;
      object-position: center center !important;
    }

    .about-hero .sub-hero-image-wrapper {
      overflow: hidden !important;
    }
  }

  /* Landscape Mobile Devices */
  @media (max-width: 768px) and (orientation: landscape) {

    .hero,
    #home-hero {
      min-height: 100vh;
      height: auto;
      padding-top: 100px;
      padding-bottom: 60px;
    }

    .services,
    .why-us-section,
    .what-we-do-section,
    .process-section,
    .portfolio-highlights,
    .testimonials-section,
    .contact-section,
    .faq-section {
      min-height: auto;
      height: auto;
    }
  }

  /* Ensure smooth scrolling behavior */
  @media (max-width: 768px) {
    html {
      scroll-behavior: smooth;
      scroll-padding-top: 70px;
    }

    body {
      overflow-x: hidden;
    }

    /* Prevent horizontal overflow on all sections */
    section {
      overflow-x: hidden;
      width: 100%;
      max-width: 100vw;
    }

    /* Images and media responsive */
    img,
    video,
    iframe {
      max-width: 100%;
      height: auto;
    }
  }

  /* =================================================================
   FINAL MOBILE OVERRIDES - GRID SYSTEMS & COMPACTNESS
   Enforced for grid sections below 768px
   ================================================================= */
  @media (max-width: 768px) {

    /* 1. Trusted by World's Best Companies (2x2 Grid) */
    .clients-grid {
      display: grid !important;
      grid-template-columns: repeat(2, 1fr) !important;
      gap: 0.75rem !important;
      justify-content: center;
    }

    /* 2. Welcome (Features) & 4. Why Choose Us (2x2 Grid) */
    .services-grid,
    .features-section .services-grid,
    .why-us-section .services-grid,
    .page-ai .services-grid,
    .page-marketing .services-grid {
      display: grid !important;
      grid-template-columns: repeat(2, 1fr) !important;
      gap: 0.75rem !important;
      flex-direction: unset !important;
    }

    /* 3. Tech Stack / What We Do (2x2 Grid) */
    .tech-stack-container {
      display: grid !important;
      grid-template-columns: repeat(2, 1fr) !important;
      gap: 0.75rem !important;
      flex-direction: unset !important;
    }

    /* 4. Development Lifecycle (2 col grid) */
    .timeline-steps {
      display: grid !important;
      grid-template-columns: repeat(2, 1fr) !important;
      gap: 0.75rem !important;
      padding-top: 1rem;
      flex-direction: unset !important;
    }

    /* Fix the timeline line to be invisible */
    .timeline-container::before {
      display: none !important;
    }

    /* 5. Our Impact / Portfolio (2x2 Grid) */
    .portfolio-grid {
      display: grid !important;
      grid-template-columns: repeat(2, 1fr) !important;
      gap: 0.75rem !important;
      flex-direction: unset !important;
    }

    /* 6. FAQ Grid (2x2 Grid) */
    .faq-grid {
      display: grid !important;
      grid-template-columns: repeat(2, 1fr) !important;
      gap: 0.75rem !important;
      padding: 0.5rem !important;
    }

    /* 7. Contact Us Wrapper (Keep as Flex Col) */
    .contact-wrapper {
      display: flex !important;
      flex-direction: column !important;
      gap: 2rem !important;
    }

    /* 8. Footer Grid (2x2 Grid) */
    .footer-grid {
      display: grid !important;
      grid-template-columns: repeat(2, 1fr) !important;
      gap: 1.5rem 1rem !important;
      text-align: left;
    }

    .footer-col {
      align-items: flex-start !important;
      width: 100% !important;
    }

    .footer-col h4::after {
      left: 0 !important;
      transform: none !important;
    }

    /* 9. Hero USP Strip (2 on top, 1 centered below) */
    /* 9. Hero USP Strip (2 on top, 1 centered below) */
    .usp-grid {
      display: grid !important;
      grid-template-columns: repeat(2, 1fr) !important;
      gap: 0.5rem !important;
      justify-items: center;
      padding: 0.5rem 0 !important;
      width: 100% !important;
    }

    .usp-item:nth-child(3) {
      grid-column: 1 / -1 !important;
      width: auto !important;
      justify-self: center !important;
      max-width: 100% !important;
    }

    /* Compact USP Item Styling */
    .usp-item {
      display: flex !important;
      flex-direction: column !important;
      align-items: center !important;
      text-align: center !important;
      gap: 0.2rem !important;
      padding: 0.25rem 0.25rem !important;
      width: 100% !important;
    }

    .usp-item i {
      font-size: 1.25rem !important;
      /* Smaller icon */
      margin-bottom: 0.1rem !important;
      padding: 6px !important;
      /* Smaller bg circle */
      width: 36px !important;
      height: 36px !important;
    }

    .usp-item span {
      font-size: 0.75rem !important;
      /* Smaller text */
      line-height: 1.2 !important;
      font-weight: 500 !important;
    }

    /* Reduce section padding */
    .usp-strip {
      padding: 1rem 0 1.25rem 0 !important;
      margin-top: -15px !important;
      /* Pull up closer */
    }

    /* General Card Width Fixes */
    .service-card,
    .portfolio-card,
    .tech-lane,
    .contact-info-panel,
    .contact-form-card {
      width: 100% !important;
      max-width: 100% !important;
      margin: 0 !important;
      width: 100%;
      margin-bottom: 0;
      padding: 1.25rem 0.75rem;
      background: white;
      border-radius: 12px;
      border: 1px solid var(--border-color);
      box-shadow: var(--shadow-sm);
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
    }

    .step-icon {
      width: 50px;
      height: 50px;
      font-size: 1.1rem;
      margin-bottom: 0.75rem;
    }

    .step-title {
      font-size: 0.9rem;
    }

    .step-desc {
      font-size: 0.75rem;
    }

    /* 6. CLIENTS GRID FIX (2x2 Layout) */
    /* 6. CLIENTS GRID FIX (2x2 Layout - Compact) */
    .clients-grid {
      display: grid !important;
      grid-template-columns: repeat(2, 1fr) !important;
      gap: 0.5rem !important;
      /* Minimal gap */
      justify-content: center;
      margin-top: 0.5rem !important;
    }

    .client-logo-placeholder {
      width: 100% !important;
      text-align: center;
      padding: 0.5rem !important;
      font-size: 0.75rem !important;
      /* Smaller text */
      display: flex;
      align-items: center;
      justify-content: center;
      min-height: 48px !important;
      /* Smaller height */
      margin: 0 !important;
      line-height: 1.2 !important;
      font-weight: 500 !important;
      border-radius: 8px !important;
    }

    /* Reduce section heading and spacing */
    .clients-section .section-header h2,
    .clients-section .section-title {
      font-size: 1.15rem !important;
      /* Compact header */
      margin-bottom: 0.5rem !important;
      line-height: 1.3 !important;
    }

    .clients-section .section-header p {
      font-size: 0.75rem !important;
      margin-bottom: 0.75rem !important;
      margin-top: 0 !important;
    }

    .clients-section {
      padding: 1.5rem 0 !important;
      /* Less vertical space */
    }

    /* 7. SERVICES GRID FIX (2x2 Layout for Features Section) */
    .features-section .services-grid {
      grid-template-columns: repeat(2, 1fr) !important;
      gap: 1rem !important;
    }

    .features-section .service-card {
      padding: 1.5rem 1rem !important;
      display: flex !important;
      flex-direction: column !important;
      align-items: center !important;
      text-align: center !important;
      height: 100% !important;
    }

    .features-section .service-icon {
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      margin-bottom: 1rem !important;
      width: 60px !important;
      height: 60px !important;
      background: #f8fafc !important;
      /* Ensure background is visible */
      border-radius: 12px !important;
      overflow: visible !important;
      /* Fix clipping */
    }

    .features-section .service-icon img {
      width: 30px !important;
      height: 30px !important;
      display: block !important;
      max-width: 100% !important;
      object-fit: contain !important;
      margin: 0 !important;
      /* Reset margin */
      opacity: 1 !important;
      /* Force opacity */
      visibility: visible !important;
      /* Force visibility */
    }

    /* 8. GLOBAL TYPOGRAPHY SCALE DOWN */
    html {
      font-size: 14.5px;
      /* Scales down all rem-based sizes */
    }

    h1,
    .hero-title,
    .section-title {
      font-size: 1.75rem !important;
      line-height: 1.3;
    }

    h2,
    .section-header h2 {
      font-size: 1.45rem !important;
    }

    h3,
    .service-title,
    .tech-lane-title {
      font-size: 1.2rem !important;
    }

    .hero-desc,
    .section-header p {
      font-size: 1rem !important;
    }

    /* 9. GRID LAYOUT UPDATES (Why Us, Tech, FAQ) */
    /* Why Choose Us - 2 Columns */
    .why-us-section .services-grid {
      grid-template-columns: repeat(2, 1fr) !important;
      gap: 1rem !important;
    }

    .why-us-section .service-card {
      padding: 1.25rem 0.5rem !important;
      /* Compact padding */
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
    }

    /* What We Do - 2 Columns */
    .tech-stack-container {
      grid-template-columns: repeat(2, 1fr) !important;
      gap: 0.75rem !important;
      /* Reduced gap */
    }

    .tech-lane {
      padding: 0.75rem 0.5rem !important;
      /* Reduced padding */
      min-height: auto !important;
      /* Remove fixed height */
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      text-align: center;
      border-radius: 10px;
      /* Slightly smaller radius */
    }

    .tech-lane-header {
      flex-direction: column;
      gap: 0.3rem !important;
      /* Reduced gap */
      margin-bottom: 0.4rem !important;
      /* Reduced margin */
    }

    .tech-lane-icon {
      width: 32px !important;
      /* Reduced icon size */
      height: 32px !important;
      font-size: 1rem !important;
      /* Smaller icon font */
      margin-bottom: 0 !important;
    }

    .tech-lane-title {
      font-size: 0.85rem !important;
      /* Reduced title size */
      margin-bottom: 0.3rem !important;
      line-height: 1.2 !important;
    }

    .tech-lane-content {
      gap: 0.4rem !important;
      /* Reduced gap between tags */
    }

    .tech-tag {
      font-size: 0.7rem !important;
      /* Reduced tag size */
      padding: 0.3rem 0.5rem !important;
      /* Reduced padding */
      border-radius: 4px !important;
      /* Smaller radius */
    }

    /* FAQ - 2 Columns */
    .faq-grid {
      grid-template-columns: repeat(2, 1fr) !important;
      gap: 1rem !important;
      padding: 1rem !important;
      /* Container padding */
    }

    .faq-item {
      padding: 1rem 0.5rem !important;
      display: flex;
      flex-direction: column;
      justify-content: center;
      text-align: center;
      /* Center text for small grid items */
    }

    .faq-question {
      font-size: 0.8rem !important;
      /* Smaller text for 2-col layout */
      padding: 0 !important;
      text-align: center;
    }

    .faq-answer {
      text-align: center;
      font-size: 0.8rem;
    }

    /* 10. CONTACT CARDS (Mobile: Location Top, Email/Call Split) */
    .contact-cards-grid {
      grid-template-columns: repeat(2, 1fr) !important;
      gap: 1rem !important;
    }

    .contact-cards-grid .contact-card-item:nth-child(1) {
      grid-column: span 2 !important;
    }

    .contact-card-item {
      padding: 1.5rem 1rem !important;
      /* More breathing room */
      min-height: auto;
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
      align-items: center;
      text-align: center;
    }

    .contact-card-item i {
      font-size: 1.5rem !important;
      margin-bottom: 0.75rem;
    }

    .contact-card-item h3 {
      font-size: 1rem !important;
      margin-bottom: 0.5rem;
    }

    .contact-card-item p,
    .contact-card-item a {
      font-size: 0.9rem !important;
      word-break: break-word;
      line-height: 1.4;
    }





    /* 12. TESTIMONIALS HORIZONTAL SWIPE CAROUSEL */
    .testimonials-section .section-header {
      margin-bottom: 1.5rem;
      position: relative;
      z-index: 1;
    }

    .testimonials-grid {
      display: flex !important;
      flex-direction: row !important;
      flex-wrap: nowrap !important;
      overflow-x: auto !important;
      overflow-y: hidden !important;
      scroll-snap-type: x mandatory !important;
      -webkit-overflow-scrolling: touch !important;
      scroll-behavior: smooth !important;
      gap: 1rem !important;
      padding: 0.5rem 0 1.5rem 0 !important;
      margin: 0 -1.25rem !important;
      /* Extend to screen edges */
      padding-left: 1.25rem !important;
      padding-right: 1.25rem !important;
    }

    /* Hide scrollbar but keep functionality */
    .testimonials-grid::-webkit-scrollbar {
      display: none;
    }

    .testimonials-grid {
      -ms-overflow-style: none;
      scrollbar-width: none;
    }

    .testimonial-card {
      flex: 0 0 85% !important;
      /* Each card takes 85% of viewport width */
      min-width: 85% !important;
      max-width: 85% !important;
      scroll-snap-align: center !important;
      scroll-snap-stop: always !important;
      margin: 0 !important;
      padding: 1.5rem 1rem !important;
      box-sizing: border-box !important;
    }

    /* Add visual indicator for swipe */
    .testimonials-section::after {
      content: '← Swipe →';
      display: block;
      text-align: center;
      font-size: 0.75rem;
      color: var(--text-muted);
      opacity: 0.6;
      margin-top: 0.5rem;
      font-style: italic;
    }



    /* 14. OUR IMPACT LAYOUT (2 items first row, 1 centered second row) */
    .portfolio-grid {
      display: grid !important;
      grid-template-columns: repeat(2, 1fr) !important;
      gap: 1rem !important;
    }

    .portfolio-card:nth-child(3) {
      grid-column: 1 / -1 !important;
      /* Span both columns */
      justify-self: center !important;
      max-width: 50% !important;
      /* Match width of items above */
    }

    /* Reduce card size and content for mobile */
    .portfolio-card {
      height: 180px !important;
      /* Reduced from default */
      min-height: 180px !important;
      border-radius: 12px !important;
      overflow: hidden !important;
    }

    .portfolio-img {
      width: 100% !important;
      height: 100% !important;
      object-fit: cover !important;
    }

    .portfolio-overlay {
      padding: 1rem 0.5rem !important;
      /* Reduced padding */
    }

    .portfolio-metric {
      font-size: 2rem !important;
      /* Reduced from larger size */
      margin-bottom: 0.25rem !important;
    }

    .portfolio-title {
      font-size: 0.85rem !important;
      /* Reduced heading size */
      margin-bottom: 0.25rem !important;
      line-height: 1.2 !important;
    }

    .portfolio-tag {
      font-size: 0.7rem !important;
      /* Reduced tag size */
    }

    /* 15. COMPACT SECTIONS (Features, Why Us, Testimonials) */

    /* General section padding reduction */
    .features-section,
    .why-us-section,
    .testimonials-section {
      padding: 2.5rem 0 !important;
      /* Reduced from default 60px */
    }

    /* Section headers - reduce spacing */
    .features-section .section-header,
    .why-us-section .section-header,
    .testimonials-section .section-header {
      margin-bottom: 1.25rem !important;
      /* Reduced spacing */
    }

    .features-section .section-title,
    .why-us-section .section-title,
    .testimonials-section .section-title {
      font-size: 1.35rem !important;
      /* Slightly smaller */
      margin-bottom: 0.5rem !important;
    }

    /* Welcome/Features Section Cards */
    .features-section .services-grid {
      gap: 0.75rem !important;
      /* Tighter gap */
    }

    .features-section .service-card {
      padding: 1rem 0.75rem !important;
      /* Reduced padding */
      min-height: auto !important;
    }

    .features-section .service-icon {
      margin-bottom: 0.5rem !important;
    }

    .features-section .service-icon img {
      height: 40px !important;
      /* Reduced icon size */
    }

    .features-section .service-title {
      font-size: 0.95rem !important;
      /* Reduced title */
      margin-bottom: 0.4rem !important;
    }

    .features-section .service-desc {
      font-size: 0.8rem !important;
      /* Reduced description */
      line-height: 1.4 !important;
    }

    /* Why Choose Us Section */
    .why-us-section .services-grid {
      gap: 0.75rem !important;
      /* Tighter gap */
    }

    .why-us-section .service-card {
      padding: 1rem 0.5rem !important;
      /* Reduced padding */
      min-height: auto !important;
    }

    .why-us-section .service-icon {
      font-size: 1.5rem !important;
      /* Reduced icon */
      margin-bottom: 0.5rem !important;
      width: 45px !important;
      height: 45px !important;
    }

    .why-us-section .service-title {
      font-size: 0.9rem !important;
      /* Reduced title */
      margin-bottom: 0.3rem !important;
    }

    .why-us-section .service-desc {
      font-size: 0.75rem !important;
      /* Reduced description */
      line-height: 1.3 !important;
    }

    /* Testimonials Section */
    .testimonial-card {
      padding: 1.25rem 1rem !important;
      /* Reduced padding */
      min-height: auto !important;
    }

    .quote-icon {
      font-size: 1.5rem !important;
      /* Reduced quote icon */
      margin-bottom: 0.5rem !important;
    }

    .testimonial-text {
      font-size: 0.85rem !important;
      /* Reduced text */
      line-height: 1.4 !important;
      margin-bottom: 0.75rem !important;
    }

    .client-info {
      margin-top: 0.75rem !important;
    }

    .client-avatar {
      width: 35px !important;
      /* Reduced avatar */
      height: 35px !important;
    }

    .client-details h5 {
      font-size: 0.85rem !important;
      /* Reduced name */
      margin-bottom: 0.15rem !important;
    }

    .client-details span {
      font-size: 0.7rem !important;
      /* Reduced role */
    }

    /* ========================================
     GLOBAL CONTENT SECTION OPTIMIZATIONS
     ======================================== */

    /* Section Headings - Reduced Sizes */
    section h2,
    .section-title,
    .section-header h2 {
      font-size: 1.5rem !important;
      /* Reduced from ~2rem+ */
      margin-bottom: 0.75rem !important;
      line-height: 1.2 !important;
    }

    section h3 {
      font-size: 1.2rem !important;
      /* Reduced subheadings */
      margin-bottom: 0.5rem !important;
    }

    section h4 {
      font-size: 1rem !important;
      margin-bottom: 0.4rem !important;
    }

    .section-subtitle,
    .section-header p {
      font-size: 0.85rem !important;
      /* Reduced descriptions */
      margin-bottom: 1.5rem !important;
      line-height: 1.4 !important;
    }

    /* Section Padding - More Compact */
    section {
      padding: 2.5rem 0 !important;
      /* Reduced from 4-5rem */
    }

    /* Card Grids - 2 Column Layout */
    /* Card Grids - 2 Column Layout (Explicitly enforcing 2-columns) */
    .services-grid,
    .features-grid,
    .benefits-grid,
    .solutions-grid,
    .tech-grid,
    .process-grid,
    .portfolio-grid,
    .projects-grid,
    .blog-grid,
    .contact-cards-grid,
    .services-structure-grid,
    .metrics-grid,
    .stats-grid {
      display: grid !important;
      grid-template-columns: repeat(2, 1fr) !important;
      gap: 0.75rem !important;
      /* Reduced gap */
    }

    /* Specific Override for About Us Inline Styles */
    .services div[style*="display: grid"] {
      grid-template-columns: repeat(2, 1fr) !important;
      gap: 0.75rem !important;
    }

    /* Card Styling - Ultra Compact */
    .service-card,
    .feature-card,
    .benefit-card,
    .solution-card,
    .tech-card,
    .process-card,
    .card,
    .service-group-col,
    /* Logic for Services page columns */
    .contact-card-item {
      padding: 0.75rem 0.5rem !important;
      /* Minimal padding */
      margin-bottom: 0 !important;
      min-height: 0 !important;
      /* Allow shrinking */
    }

    /* Specific handling for Services Page structure */
    .services-structure-grid .service-group-col {
      padding: 0 !important;
      /* Remove wrapper padding */
      border: none !important;
      background: transparent !important;
      box-shadow: none !important;
    }

    /* The list items inside service groups */
    .services-structure-grid .group-list li a {
      padding: 0.4rem 0.5rem !important;
      font-size: 0.75rem !important;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .services-structure-grid .group-title {
      font-size: 0.85rem !important;
      margin-bottom: 0.5rem !important;
    }

    /* Card Icons - Smaller */
    .service-icon,
    .feature-icon,
    .card-icon,
    .contact-card-icon,
    .icon-wrapper {
      width: 32px !important;
      /* Smaller icon container */
      height: 32px !important;
      font-size: 1rem !important;
      margin-bottom: 0.35rem !important;
      display: flex;
      justify-content: center;
      align-items: center;
    }

    .service-icon img,
    .feature-icon img {
      width: 24px !important;
      /* Smaller images */
      height: 24px !important;
    }

    /* Card Titles - Compact */
    .service-card h3,
    .feature-card h3,
    .card h3,
    .card-title,
    .contact-card-item h3 {
      font-size: 0.8rem !important;
      /* Tighter font */
      margin-bottom: 0.25rem !important;
      line-height: 1.2 !important;
      font-weight: 600 !important;
    }

    /* Card Descriptions - Compact */
    .service-card p,
    .feature-card p,
    .card p,
    .card-description,
    .contact-card-item p {
      font-size: 0.7rem !important;
      /* Small, readable text */
      line-height: 1.3 !important;
      margin-bottom: 0.25rem !important;
      display: -webkit-box;
      -webkit-line-clamp: 4;
      /* Limit lines to prevent tall cards */
      -webkit-box-orient: vertical;
      overflow: hidden;
      line-clamp: 4;
      /* Standard property */
    }

    /* About Us Section */
    .about-content {
      padding: 1.5rem 0 !important;
    }

    .about-content p {
      font-size: 0.85rem !important;
      line-height: 1.5 !important;
      margin-bottom: 0.75rem !important;
    }

    /* Portfolio/Projects Grid */
    .portfolio-grid,
    .projects-grid {
      grid-template-columns: repeat(2, 1fr) !important;
      gap: 0.75rem !important;
    }

    .portfolio-card,
    .project-card {
      padding: 0 !important;
    }

    .portfolio-card img,
    .project-card img {
      height: 120px !important;
      /* Reduced image height */
      object-fit: cover;
    }

    .portfolio-info,
    .project-info {
      padding: 0.75rem !important;
    }

    .portfolio-title,
    .project-title {
      font-size: 0.85rem !important;
      margin-bottom: 0.3rem !important;
    }

    .portfolio-description,
    .project-description {
      font-size: 0.7rem !important;
      line-height: 1.3 !important;
    }

    /* Blog Grid */


    /* CTA Sections */
    .cta-section {
      padding: 2rem 1rem !important;
    }

    .cta-section h2 {
      font-size: 1.3rem !important;
    }

    .cta-section p {
      font-size: 0.85rem !important;
    }

    /* Buttons - Compact */
    .btn,
    .button {
      padding: 0.65rem 1.25rem !important;
      font-size: 0.85rem !important;
    }

    .btn-primary,
    .btn-secondary {
      padding: 0.65rem 1.25rem !important;
      font-size: 0.85rem !important;
    }

    /* Lists - Compact */
    ul li,
    ol li {
      font-size: 0.85rem !important;
      margin-bottom: 0.4rem !important;
      line-height: 1.4 !important;
    }

    /* Stats/Metrics */
    .stats-grid,
    .metrics-grid {
      grid-template-columns: repeat(2, 1fr) !important;
      gap: 0.75rem !important;
    }

    .stat-card,
    .metric-card {
      padding: 1rem 0.75rem !important;
    }

    .stat-number,
    .metric-number {
      font-size: 1.5rem !important;
      /* Reduced from 2-3rem */
    }

    .stat-label,
    .metric-label {
      font-size: 0.75rem !important;
    }

    /* OVERRIDES FOR ABOUT US INLINE STYLES */
    .services div[style*="display: grid"]>div {
      padding: 0.75rem !important;
      /* Override 30px inline */
      border-radius: 8px !important;
    }

    .services div[style*="display: grid"]>div>div:first-child {
      font-size: 1.2rem !important;
      /* Override icon size */
      margin-bottom: 0.5rem !important;
    }

    .services div[style*="display: grid"]>div>h3 {
      font-size: 0.9rem !important;
      /* Override heading size */
      margin-bottom: 0.25rem !important;
      line-height: 1.2 !important;
    }

    .services div[style*="display: grid"]>div>p {
      font-size: 0.75rem !important;
      line-height: 1.3 !important;
      margin-bottom: 0 !important;
    }

    /* FOOTER ALIGNMENT FIXES */
    .footer-grid {
      display: grid !important;
      grid-template-columns: repeat(2, 1fr) !important;
      gap: 2rem 1rem !important;
      text-align: left !important;
      padding-bottom: 0.5rem !important;
      /* Reduced padding */
    }

    .footer-col:first-child {
      grid-column: 1 / -1 !important;
      text-align: center !important;
      margin-bottom: 0.25rem !important;
      /* Reduced margin */
      border-bottom: none !important;
      /* Remove border to save space */
      padding-bottom: 0.5rem !important;
      /* Reduced padding */
      display: flex !important;
      /* Enable flex for centering */
      flex-direction: column !important;
      align-items: center !important;
    }

    /* Force Mobile Footer Logo Visibility */
    .footer-col:first-child img {
      display: block !important;
      max-width: 140px !important;
      /* Good mobile size */
      height: auto !important;
      margin: 0 auto 0.5rem auto !important;
      /* Center and spacer */
      opacity: 1 !important;
      visibility: visible !important;
      filter: brightness(0) invert(1) !important;
      /* Ensure white text contrast if needed, or keep original */
      /* Note: If the logo is dark (like the header one), it needs to be visible on dark footer */
      /* Assuming footer is dark: filter: brightness(0) invert(1) makes it white. */
      /* If the logo is already suitable for dark bg, remove filter. */
      /* Let's start without filter first, or check desktop behavior. */
      /* Desktop footer is likely dark. Check if logo is visible there. */
      /* If the desktop logo is visible, we should trust the image unless opacity was 0. */
    }

    .footer-col:first-child p {
      max-width: 100%;
      margin: 0 auto;
      font-size: 0.8rem !important;
      /* Slightly smaller text */
      color: #94a3b8 !important;
      text-align: center !important;
      line-height: 1.3 !important;
    }

    .footer-col h4 {
      font-size: 0.9rem !important;
      margin-bottom: 0.75rem !important;
      color: #fff;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

    .footer-links {
      padding: 0 !important;
      margin: 0 !important;
      list-style: none !important;
    }

    .footer-links li {
      margin-bottom: 0.5rem !important;
      display: block !important;
    }

    .footer-links a {
      font-size: 0.8rem !important;
      color: #cbd5e1 !important;
      display: block !important;
      line-height: 1.4 !important;
    }
  }

  /* =================================================================
   CRITICAL MOBILE FIX FOR SERVICE ICONS (High Specificity Override)
   ================================================================= */
  @media (max-width: 768px) {
    .features-section .service-card {
      overflow: visible !important;
      position: relative !important;
      z-index: 1 !important;
      height: auto !important;
    }

    .features-section .service-icon {
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      width: 60px !important;
      height: 60px !important;
      min-width: 60px !important;
      min-height: 60px !important;
      background: #f8fafc !important;
      border-radius: 12px !important;
      overflow: visible !important;
      opacity: 1 !important;
      visibility: visible !important;
      z-index: 5 !important;
      margin: 0 auto 1rem auto !important;
      position: relative !important;
    }

    .features-section .service-icon img {
      display: block !important;
      width: 28px !important;
      height: 28px !important;
      min-width: 28px !important;
      min-height: 28px !important;
      max-width: none !important;
      max-height: none !important;
      object-fit: contain !important;
      opacity: 1 !important;
      visibility: visible !important;
      position: relative !important;
      z-index: 10 !important;
      margin: 0 !important;
      padding: 0 !important;
      transform: none !important;
    }
  }






  @media (max-width: 768px) {

    /* 3. Style Mobile Logo Image */
    footer .footer-col img {
      display: inline-block !important;
      width: 130px !important;
      /* Slightly smaller for better fit */
      height: auto !important;
      margin: 0 auto !important;
      opacity: 1 !important;
      visibility: visible !important;
      filter: brightness(0) invert(1) !important;
      border: none !important;
      padding: 0 !important;
      background: transparent !important;
    }

    /* 4. Footer Column Layout */
    footer .footer-col:first-child {
      display: flex !important;
      flex-direction: column !important;
      align-items: center !important;
      justify-content: flex-start !important;
      padding-bottom: 0.25rem !important;
      /* Tighter padding */
      padding-top: 0 !important;
      /* Ensure no top padding */
      margin-top: 0 !important;
      height: auto !important;
      min-height: auto !important;
      gap: 0.5rem !important;
      /* Control spacing between logo and text */
    }

    /* 5. Footer Text Adjustment */
    footer .footer-col:first-child p {
      text-align: center !important;
      margin: 0 auto !important;
      max-width: 90% !important;
      display: block !important;
    }
  }

  /* =================================================================
   SUB-MODULE HERO IMAGES (New Implementation)
   ================================================================= */
  .submodule-hero {
    background: transparent !important;
    padding: 0 !important;
    min-height: auto !important;
    height: auto !important;
    display: block !important;
    overflow: hidden;
    margin-top: 70px;
    /* Default for desktop header */
  }

  .submodule-hero .hero-content {
    display: none !important;
    /* Hide old text content if any remains */
  }

  /* Container for the image to ensure it behaves well */
  .sub-hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    line-height: 0;
    /* Remove line-height gap */
    text-align: center;
  }

  .sub-hero-image {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    object-fit: cover;
    /* Clean scaling as default */
  }

  /* DESKTOP ONLY: Fixed Height Hero (Like Home Page) */
  @media (min-width: 992px) {

    /* Lock the Hero Section Height */
    /* 
     UNIFIED DESKTOP HERO SECTION (Standardized to Match Home Page)
     Applies strict 100vh height and cover scaling to all internal pages.
  */
    .submodule-hero,
    .submodule-hero-auto {
      width: 100% !important;
      /* Full available width */
      min-height: 100vh !important;
      /* Match Home Page Height Exactly */
      height: auto !important;
      margin: 0 !important;
      padding-top: 60px !important;
      padding-bottom: 40px !important;
      overflow: hidden;
      background: #0f172a;
      display: flex !important;
      align-items: center;
      justify-content: center;
      position: relative;
      left: 0;
      right: 0;
    }

    /* Wrapper fills the hero container */
    .submodule-hero .sub-hero-image-wrapper,
    .submodule-hero-auto .sub-hero-image-wrapper {
      display: flex;
      justify-content: center;
      align-items: center;
      width: 100% !important;
      height: 100% !important;
      position: absolute !important;
      top: 0 !important;
      left: 0 !important;
      margin: 0 !important;
      padding: 0 !important;
      z-index: 0;
    }

    /* Image fits perfectly with COVER (No Distortion, Matches Home Page) */
    .submodule-hero .sub-hero-image,
    .submodule-hero-auto .sub-hero-image {
      width: 100% !important;
      height: 100% !important;
      object-fit: cover !important;
      /* Clean, professional scaling */
      object-position: center center !important;
      /* Balanced focus */
      opacity: 1 !important;
      display: block !important;
    }
  }

  /* =================================================================
   MOBILE HERO SECTION - CRITICAL FIX
   This section MUST override all other hero styles on mobile
   ================================================================= */
  /* Redundant block removed */


  /* =================================================================
   BLOG DETAIL VIEW (Single Scrollable View)
   ================================================================= */
  .blog-detail-container {
    padding: 1.5rem 0;
    animation: fadeIn 0.4s ease-out;
    opacity: 1;
    transition: opacity 0.3s ease;
    min-height: 500px;
  }

  .blog-content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  }

  .back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(255, 255, 255, 0.05);
    /* Subtle background */
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }

  .back-btn:hover {
    background-color: var(--primary);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    text-decoration: none;
  }

  .detail-category {
    display: block;
    color: var(--accent);
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    letter-spacing: 1px;
  }

  .detail-title {
    font-size: 2.5rem;
    color: var(--text-main);
    margin-bottom: 2rem;
    line-height: 1.2;
  }

  .detail-body {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.8;
  }

  .detail-body p {
    margin-bottom: 1.5rem;
  }

  .detail-body h3 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
    font-size: 1.5rem;
  }

  .intro-text {
    font-size: 1.25rem;
    color: var(--text-main);
    font-weight: 500;
    border-left: 4px solid var(--primary);
    padding-left: 1rem;
    margin-bottom: 2rem;
    font-style: italic;
  }

  @keyframes fadeIn {
    from {
      opacity: 0;
    }

    to {
      opacity: 1;
    }
  }

  /* Mobile Adjustments */
  @media (max-width: 768px) {
    .blog-content-wrapper {
      padding: 1.5rem;
    }

    .detail-title {
      font-size: 1.8rem;
    }

    .intro-text {
      font-size: 1.1rem;
    }
  }

  /* =================================================================
   STRICT MOBILE HERO FIX (Max-Width: 767px Only)
   Overrides all desktop settings to ensure clean mobile display.
   CRITICAL: This must eliminate ALL dark spaces
   ================================================================= */
  /* Redundant block removed */

  /* =================================================================
   STRICT CONTACT LAYOUT FIX (ROW-BASED ISOLATION)
   ================================================================= */
  @media (max-width: 991px) {
    .contact-info-panel-fixed {
      display: flex !important;
      flex-direction: column !important;
      width: 100% !important;
      gap: 0 !important;
      overflow: visible !important;
    }

    .contact-row {
      display: flex !important;
      width: 100% !important;
      overflow: visible !important;
    }

    .row-bottom {
      gap: 1rem !important;
    }

    /* Force side-by-side for the bottom cards */
    #home-email-card,
    #home-phone-card {
      flex: 1 !important;
      width: 48% !important;
      /* Safety for gap */
      display: flex !important;
      flex-direction: column !important;
      align-items: center !important;
      text-align: center !important;
      visibility: visible !important;
      opacity: 1 !important;
    }

    /* Ensure the location card stays wide */
    #home-loc-card {
      width: 100% !important;
      display: flex !important;
      visibility: visible !important;
      opacity: 1 !important;
    }
  }

  /* Sync with global animation script if needed, but ensure visibility */
  .contact-info-item.visible {
    opacity: 1 !important;
    transform: none !important;
  }

  /* =================================================================
   ABOUT PAGE HERO IMAGE POSITIONING
   Shifts image DOWN to reveal built-in title at top
   ================================================================= */

  /* Desktop/Tablet/Mobile: Center image normally */
  .about-hero .sub-hero-image {
    transform: none !important;
    object-position: center center !important;
  }

  .about-hero .sub-hero-image-wrapper {
    overflow: hidden !important;
  }

  /* Standardized Hero Scaling for All Submodules on Mobile (Consistent 16/9 Ratio) */
  @media (max-width: 768px) {

    .submodule-hero .sub-hero-image,
    .submodule-hero-auto .sub-hero-image {
      /* Use the same professional 16/9 crop across ALL submodules for consistency */
      width: 100% !important;
      height: auto !important;
      aspect-ratio: 2.36 / 1 !important;
      /* Precisely matching the Home Page Slide Ratio */
      object-fit: cover !important;
      object-position: center center !important;
      min-height: auto !important;
      max-height: none !important;
      padding: 0 !important;
      display: block !important;
    }

    /* Mobile specific adjustment for Services page to keep top-right text visible */
    .page-services .submodule-hero .sub-hero-image,
    .page-services .submodule-hero-auto .sub-hero-image {
      object-position: center 35% !important;
    }

    /* Fix for Services Page Grid Overflow on Mobile */
    .services-structure-grid {
      display: flex !important;
      flex-direction: column !important;
      grid-template-columns: 1fr !important;
      gap: 1.5rem !important;
      padding: 1.5rem !important;
      width: 100% !important;
      max-width: 100% !important;
      box-sizing: border-box !important;
    }

    /* Wrap content properly */
    .services-structure-grid .service-group-col {
      width: 100% !important;
      max-width: 100% !important;
      padding: 0 !important;
    }

    /* Ensure text wraps nicely */
    .services-structure-grid .group-list li a {
      white-space: normal !important;
      word-wrap: break-word !important;
      overflow-wrap: break-word !important;
      display: flex !important;
      align-items: center !important;
      /* Center vertically */
      width: 100% !important;
      padding: 0.8rem 0 !important;
      /* Increase touch target & spacing */
      font-size: 0.95rem !important;
      /* Readable size */
    }

    /* Ensure icons don't shrink */
    .services-structure-grid .group-list li a i {
      flex-shrink: 0 !important;
      margin-right: 0.8rem !important;
      width: 20px;
      /* Fixed width for alignment */
      text-align: center;
    }
  }

  /* Blog Navigation */
  .blog-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 0.8rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }

  .nav-btn:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
  }

  .nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: var(--text-muted);
    color: var(--text-muted);
  }

  /* End Blog Navigation */
}

/* =========================================
   ENHANCED GLOBAL NAVIGATION BUTTONS
   (Fix for Desktop/Mobile Visibility)
   ========================================= */

/* Ensure buttons are displayed and styled globally */
.back-btn,
.nav-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
  padding: 0.8rem 1.5rem !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  text-decoration: none !important;

  /* Reset default button appearance */
  appearance: none !important;
  -webkit-appearance: none !important;
  line-height: 1.5 !important;
}

/* "Back to Blogs" - Professional Outline Style */
.back-btn {
  background: white !important;
  border: 2px solid var(--primary) !important;
  color: var(--primary) !important;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05) !important;
}

.back-btn:hover {
  background: var(--primary) !important;
  color: white !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 12px rgba(79, 70, 229, 0.2) !important;
}

/* "Previous" and "Next" - Strong Gradient Style */
.nav-btn {
  background: var(--grad-primary) !important;
  border: none !important;
  color: white !important;
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3) !important;
}

.nav-btn:hover {
  background: var(--grad-hover) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.4) !important;
}



/* Container Spacing for Navigation */
.blog-navigation {
  margin-top: 3rem !important;
  padding-top: 2rem !important;
  border-top: 1px solid var(--border-color) !important;
  display: flex !important;
  justify-content: space-between !important;
  width: 100% !important;
}