/* 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;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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 */
.nav-cta {
  background: var(--grad-primary);
  color: white !important;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
  background: var(--grad-hover);
}

/* 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: 85vh;
  /* Taller hero */
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 100px;
  /* Offset for fixed header */
  padding-bottom: 80px;
  /* 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;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.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 */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
  font-size: 1.2rem;
}

.slider-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-50%) scale(1.1);
}

.prev-btn {
  left: 30px;
}

.next-btn {
  right: 30px;
}

/* 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;
  }
}

.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);
}

.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 40px;
  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: 2rem 0;
  border-bottom: 1px solid var(--border-color);
  position: relative;
  z-index: 20;
  margin-top: -30px;
  /* Slight 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: 3rem 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: 2.5rem;
  /* Reduced from 4rem */
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.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: 60px 0;
  /* Reduced from 100px */
}

/* =========================================
   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;
  }

  .features-section .service-card {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    text-align: center;
    justify-items: center;
    padding: 2rem;
  }

  .features-section .service-icon {
    grid-row: auto;
    margin-bottom: 1rem;
  }

  .features-section .service-title {
    grid-column: auto;
    grid-row: auto;
  }

  .features-section .service-desc {
    grid-column: auto;
    grid-row: auto;
  }
}


/* 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;
}

.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(300px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.portfolio-card {
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-sm);
  /* Subtle initial shadow */
  border: 1px solid rgba(0, 0, 0, 0.05);
  /* Clean border */
  height: auto;
  min-height: 280px;
  /* Consistent height */
  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);
}

/* Hide the old heavy image */
.portfolio-img {
  display: none;
}

/* Content Wrapper */
.portfolio-overlay {
  position: relative;
  /* Reset from absolute */
  top: auto;
  left: auto;
  width: 100%;
  height: auto;
  background: transparent;
  /* Remove dark gradient */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0;
  color: var(--text-main);
  /* Switch text to dark */
  opacity: 1;
  transform: none;
  /* Reset generic hover transforms if any */
}

/* Metric Number - The Hero */
.portfolio-metric {
  font-size: 4.5rem;
  /* Large impact */
  font-weight: 800;
  line-height: 1;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  /* Primary Gradient */
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  font-family: 'Inter', sans-serif;
  letter-spacing: -2px;
}

/* Title */
.portfolio-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

/* Tag / Subtitle */
.portfolio-tag {
  display: inline-block;
  background: #f1f5f9;
  /* Light gray pill */
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 50px;
  margin-top: 10px;
  backdrop-filter: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid transparent;
}

.portfolio-card:hover .portfolio-tag {
  background: white;
  border-color: var(--primary);
  color: var(--primary);
}

/* Interactive Top Border */
.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;
}

/* =========================================
   PRICING
   ========================================= */
.pricing-section {
  background: var(--bg-subtle);
}

.pricing-table {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: stretch;
  /* Match heights */
}

.pricing-card {
  flex: 1;
  min-width: 300px;
  max-width: 380px;
  background: #ffffff;
  border-radius: 20px;
  padding: 3rem 2rem;
  border: 1px solid var(--border-color);
  text-align: center;
  transition: all 0.4s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.pricing-card:hover,
.pricing-card.recommended {
  border-color: var(--primary);
  box-shadow: var(--shadow-xl);
  transform: translateY(-10px);
}

.pricing-card.recommended {
  background: white;
  border-width: 2px;
}

.popular-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--grad-primary);
  color: white;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  box-shadow: var(--shadow-md);
}

/* 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 */
}

.plan-name {
  color: var(--text-muted);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.plan-price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 2rem;
}

.plan-features {
  text-align: left;
  margin-bottom: auto;
  /* Pushes button to bottom */
  padding-bottom: 2rem;
}

.plan-features li {
  margin-bottom: 1rem;
  color: var(--text-muted);
  display: flex;
  gap: 10px;
}

.plan-features i {
  color: var(--primary);
  margin-top: 4px;
}

.packet-btn {
  display: block;
  width: 100%;
  padding: 1rem;
  border-radius: 12px;
  font-weight: 600;
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-main);
  transition: all 0.3s;
  cursor: pointer;
}

.packet-btn:hover,
.recommended .packet-btn {
  background: var(--grad-primary);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

/* =========================================
   TESTIMONIALS
   ========================================= */
.testimonials-section {
  background: white;
  text-align: center;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.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: #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: #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: 1.1rem;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  font-weight: 700;
  text-transform: uppercase;
  background: var(--grad-primary);
  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: 768px) {
  .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: 80px 0 40px;
  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: 3rem 2rem;
  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: 40px 0 100px;
  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: 4rem;
  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;
  }
}

.main-contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 600px) {
  .main-contact-form .form-row {
    grid-template-columns: 1fr;
  }
}

.main-contact-form .form-group {
  margin-bottom: 2rem;
}

.main-contact-form .form-label {
  display: block;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.main-contact-form .form-input,
.main-contact-form .form-textarea {
  width: 100%;
  padding: 0.9rem 1.1rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  color: var(--text-main);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.main-contact-form .form-input:focus,
.main-contact-form .form-textarea:focus {
  background: white;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
  outline: none;
}

.main-contact-form .form-actions {
  text-align: center;
  margin-top: 1rem;
}

.main-contact-form .btn {
  width: 100%;
  max-width: 300px;
  /* Prevent over-stretch */
  padding: 1rem 2rem;
  font-size: 1.1rem;
  box-shadow: 0 4px 6px rgba(79, 70, 229, 0.2);
}

.main-contact-form .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(79, 70, 229, 0.3);
}

.demo-note {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-style: italic;
}


/* =========================================
   PAGE OVERRIDES: Mobile App Development
   ========================================= */
/* Option 1: 4 cards in a single row for large screens */
.page-mobile .services-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  /* Balanced spacing */
}

/* Option 2: 2x2 Grid for smaller desktops & tablets (Balanced fallback) */
@media (max-width: 1100px) {
  .page-mobile .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 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);
}

/* =========================================
   MOBILE RESPONSIVENESS FIXES (User Requested)
   ========================================= */
@media (max-width: 992px) {

  /* ACTIVATE MOBILE MENU (Tablet & Mobile) */
  .mobile-toggle {
    display: block;
    /* Show hamburger */
    z-index: 1100;
    /* Above menu */
  }

  .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: 1rem 0;
    font-size: 1.1rem;
    color: var(--text-main);
  }

  .nav-cta {
    margin-top: 1.5rem;
    display: block;
    text-align: center;
    width: 100%;
  }

  /* DROPDOWN FIX FOR MOBILE */
  .dropdown-menu,
  .dropdown-menu.wide-dropdown {
    position: relative !important;
    /* Force into flow */
    width: 100% !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    /* Remove centering shift */
    opacity: 1 !important;
    visibility: visible !important;
    display: none;
    /* Controlled by parent active state */
    box-shadow: none !important;
    border: none !important;
    background: transparent !important;
    /* Blend with drawer */
    padding: 0 !important;
    margin: 1rem 0 !important;
  }

  .dropdown-parent.active .dropdown-menu {
    display: grid;
    grid-template-columns: 1fr !important;
    /* Force vertical stacking for mobile */
    gap: 1rem;
    /* Spacing between groups */
    padding-bottom: 2rem;
    /* Scrolling space */
  }

  .dropdown-menu a {
    padding: 0.8rem 0;
  }

  /* 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);
  }
}

@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 */
  .services-grid,
  .tech-stack-container,
  .contact-wrapper,
  .portfolio-grid,
  .testimonials-grid,
  .faq-grid,
  .contact-cards-grid {
    grid-template-columns: 1fr !important;
    display: grid;
    width: 100%;
    gap: 2rem;
    margin: 0;
  }

  /* Flex Resets */
  .pricing-table,
  .usp-grid {
    display: flex;
    flex-direction: column;
  }

  /* 2. HEADER SECTION FIXES (Stacked Layout for Full Visibility) */
  .hero {
    display: flex;
    flex-direction: column;
    padding-top: 75px;
    /* Clear fixed navbar */
    padding-bottom: 0;
    min-height: auto;
    height: auto;
    background: #0f172a;
    /* Dark theme background for text area */
  }

  /* Slider becomes a relative banner block */
  .hero-slider {
    position: relative !important;
    width: 100%;
    height: 65vw !important;
    /* Force landscape aspect ratio (approx 16:10) */
    min-height: 240px;
    order: 1;
  }

  /* Image fits perfectly in the landscape banner using exact fit */
  .hero-slider .slide {
    background-size: 100% 100% !important;
    /* Force full visibility (Left/Right/Top/Bottom) - No cropping */
    background-position: center center !important;
    background-repeat: no-repeat !important;
    width: 100%;
    height: 100%;
  }

  /* Content sits below the image */
  .hero-content {
    order: 2;
    position: relative !important;
    width: 100%;
    padding: 2.5rem 1.5rem 4rem;
    background: #0f172a;
    /* Match body/section bg */
    text-align: center;
    top: auto;
    left: auto;
    transform: none;
    margin: 0 auto;
  }

  .hero-title {
    font-size: 1.8rem !important;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: white;
  }

  .hero-desc {
    font-size: 1rem;
    padding: 0;
    margin-bottom: 2rem;
    color: #94a3b8;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
    gap: 1rem;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  /* Position slider arrows within the image banner */
  .slider-btn {
    top: 50% !important;
    /* Center in the image banner */
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: none;
    /* Remove blur */
    border: none;
  }

  .prev-btn {
    left: 10px !important;
  }

  .next-btn {
    right: 10px !important;
  }

  /* 3. CARD & SECTION STYLING */
  .service-card,
  .tech-lane,
  .portfolio-card,
  .contact-card-item {
    padding: 2rem 1.5rem;
    /* Better padding for mobile */
    min-height: auto;
  }

  .usp-item {
    padding: 1rem;
    background: var(--bg-subtle);
    border-radius: 12px;
    width: 100%;
    justify-content: flex-start;
  }

  /* 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: 3rem 0;
    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: 2.5rem 1.5rem !important;
    /* Balanced spacing */
  }

  /* 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.05);
    /* Subtle separator */
    padding-bottom: 1.5rem;
    margin-bottom: 0.5rem;
    width: 100%;
  }

  .footer-col h4 {
    margin-bottom: 1rem;
    font-size: 1rem;
    /* Slightly smaller heading */
  }

  .footer-links {
    gap: 0.6rem;
    /* Tighter link spacing */
  }

  /* Fix Footer Logo Sizing */
  .footer-col img {
    height: 30px;
    width: auto;
  }

  /* General Image Scaling */
  img {
    max-width: 100%;
    height: auto;
  }

  /* 5. DEVELOPMENT LIFECYCLE FIX */
  .timeline-steps {
    flex-direction: column;
    gap: 2rem;
  }

  .timeline-container::before {
    display: none;
    /* Hide horizontal line */
  }

  .process-step {
    width: 100%;
    margin-bottom: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
  }

  .step-icon {
    width: 60px;
    height: 60px;
    font-size: 1.2rem;
    margin-bottom: 1rem;
  }
}