/* ==========================================================================
   SOFQUARE DIGITAL (OPC) PRIVATE LIMITED - MASTER STYLESHEET
   Flawless High-Contrast Dark & Light Modes | Premium Eye-Catching UI
   ========================================================================== */

/* --- RESET & BASE STYLES --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  position: relative;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

[data-theme="light"] body {
  background-color: #f8fafc;
  color: #0f172a;
}

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

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  background: none;
  outline: none;
}

button {
  cursor: pointer;
}

ul, ol {
  list-style: none;
}

/* --- UTILITY & CONTAINER CLASSES --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section {
  padding: 5.5rem 0;
  position: relative;
}

.section-sm {
  padding: 3.5rem 0;
}

.section-header {
  text-align: center;
  max-width: 840px;
  margin: 0 auto 3.5rem;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.1rem;
  background: rgba(0, 210, 255, 0.14);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-full);
  color: var(--accent-primary);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

[data-theme="light"] .section-tag {
  background: rgba(2, 132, 199, 0.12);
  color: #0284c7;
  border-color: rgba(2, 132, 199, 0.3);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

[data-theme="light"] .section-title {
  color: #0f172a;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.15rem;
  line-height: 1.65;
}

[data-theme="light"] .section-subtitle {
  color: #334155;
  font-weight: 500;
}

.text-gradient {
  background: var(--accent-gradient-glow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-gradient-emerald {
  background: linear-gradient(135deg, #10b981 0%, #00d2ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.95rem;
  transition: all var(--transition-normal);
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #ffffff !important;
  box-shadow: 0 4px 20px rgba(0, 210, 255, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 210, 255, 0.6);
  color: #ffffff !important;
}

.btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-primary) !important;
  border: 1px solid var(--border-subtle);
}

[data-theme="light"] .btn-secondary {
  background: #ffffff;
  color: #0f172a !important;
  border: 1.5px solid #cbd5e1;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-focus);
  transform: translateY(-2px);
}

[data-theme="light"] .btn-secondary:hover {
  background: #f1f5f9;
  border-color: #0284c7;
}

.btn-emerald {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
}

.btn-emerald:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.6);
}

.btn-sm {
  padding: 0.55rem 1.25rem;
  font-size: 0.88rem;
}

.btn-lg {
  padding: 1.05rem 2.25rem;
  font-size: 1.05rem;
}

/* --- ANNOUNCEMENT BANNER --- */
.announcement-banner {
  background: linear-gradient(90deg, #0a1128 0%, #001f3f 50%, #0a1128 100%);
  border-bottom: 1px solid rgba(0, 210, 255, 0.35);
  color: #ffffff !important;
  padding: 0.65rem 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: center;
  position: relative;
  z-index: 101;
  letter-spacing: 0.01em;
}

.announcement-banner strong {
  color: #ffffff;
}

.announcement-banner a {
  color: var(--accent-primary);
  font-weight: 800;
  margin-left: 0.5rem;
  text-decoration: underline;
  transition: color var(--transition-fast);
}

.announcement-banner a:hover {
  color: #ffffff;
}

/* --- HIGH-CONTRAST NAVBAR --- */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100vw;
  height: var(--header-height);
  background: rgba(10, 14, 23, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  z-index: 1000;
  transition: all var(--transition-normal);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

[data-theme="light"] .site-header {
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: 100%;
  gap: 0.5rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.4rem;
  letter-spacing: -0.025em;
  color: #ffffff !important;
  white-space: nowrap;
  flex-shrink: 0;
}

[data-theme="light"] .brand-logo {
  color: #0f172a !important;
}

.brand-logo-icon {
  width: 42px;
  height: 42px;
  background: var(--accent-gradient);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 900;
  box-shadow: 0 0 20px rgba(0, 210, 255, 0.5);
  font-size: 1.35rem;
  flex-shrink: 0;
}

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

.nav-link {
  color: #f1f5f9;
  font-weight: 700;
  font-size: 0.96rem;
  padding: 0.5rem 0.35rem;
  position: relative;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

[data-theme="light"] .nav-link {
  color: #0f172a;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-primary);
}

[data-theme="light"] .nav-link:hover, [data-theme="light"] .nav-link.active {
  color: #0284c7;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-primary);
  transition: width var(--transition-fast);
}

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

/* --- SERVICES MEGA-DROPDOWN MENU --- */
.nav-dropdown {
  position: relative;
  display: inline-block;
}

.nav-dropdown-toggle {
  background: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-dropdown-chevron {
  font-size: 0.72rem;
  transition: transform var(--transition-fast);
}

.nav-dropdown.open .nav-dropdown-chevron,
.nav-dropdown:hover .nav-dropdown-chevron {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: -120px;
  width: 620px;
  background: #0d121c;
  border: 1px solid rgba(0, 210, 255, 0.3);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65);
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  z-index: 200;
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
}

[data-theme="light"] .nav-dropdown-menu {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.15);
}

.nav-dropdown.open .nav-dropdown-menu,
.nav-dropdown:hover .nav-dropdown-menu {
  display: grid;
  animation: dropdownFadeIn 0.2s ease-out forwards;
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nav-dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.nav-dropdown-item:hover {
  background: rgba(0, 210, 255, 0.1);
  transform: translateX(3px);
}

[data-theme="light"] .nav-dropdown-item:hover {
  background: #f1f5f9;
}

.nav-dropdown-icon {
  font-size: 1.25rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.nav-dropdown-title {
  font-weight: 700;
  font-size: 0.92rem;
  color: #ffffff;
  margin-bottom: 0.15rem;
}

[data-theme="light"] .nav-dropdown-title {
  color: #0f172a;
}

.nav-dropdown-desc {
  font-size: 0.8rem;
  color: #94a3b8;
  line-height: 1.4;
}

[data-theme="light"] .nav-dropdown-desc {
  color: #475569;
}

.nav-dropdown-footer {
  grid-column: span 2;
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.75rem;
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-dropdown-footer a {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-primary);
}

/* --- THEME TOGGLE & ACTIONS --- */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.theme-toggle-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

[data-theme="light"] .theme-toggle-btn {
  background: #f1f5f9;
  border: 1.5px solid #cbd5e1;
  color: #0f172a;
}

.theme-toggle-btn:hover {
  border-color: var(--border-focus);
  color: var(--accent-primary);
  transform: rotate(15deg);
}

.mobile-toggle-btn {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
}

[data-theme="light"] .mobile-toggle-btn {
  background: #f1f5f9;
  border: 1.5px solid #cbd5e1;
  color: #0f172a;
}

/* --- MOBILE DRAWER --- */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 88%;
  max-width: 380px;
  height: 100vh;
  background: #0d121c;
  border-left: 1px solid var(--border-subtle);
  padding: 2rem 1.5rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  overflow-y: auto;
  transition: right var(--transition-smooth);
}

[data-theme="light"] .mobile-drawer {
  background: #ffffff;
  border-left: 1px solid #cbd5e1;
}

.mobile-drawer.open {
  right: 0;
}

.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  z-index: 999;
  display: none;
}

.mobile-drawer-overlay.open {
  display: block;
}

.mobile-nav-link {
  font-size: 1.05rem;
  font-weight: 700;
  color: #f8fafc;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

[data-theme="light"] .mobile-nav-link {
  color: #0f172a;
  border-bottom-color: #e2e8f0;
}

.mobile-nav-link:hover {
  color: var(--accent-primary);
}

/* --- HERO SECTION --- */
.hero-section {
  position: relative;
  padding: 5.5rem 0 4.5rem;
  overflow: hidden;
}

.hero-glow-bg {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 210, 255, 0.22) 0%, rgba(58, 123, 213, 0.1) 45%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

[data-theme="light"] .hero-glow-bg {
  background: radial-gradient(circle, rgba(2, 132, 199, 0.15) 0%, rgba(37, 99, 235, 0.06) 50%, transparent 70%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  text-align: left;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 1.25rem;
  background: rgba(0, 210, 255, 0.14);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-full);
  color: var(--accent-primary);
  font-size: 0.9rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}

[data-theme="light"] .hero-badge {
  background: rgba(2, 132, 199, 0.12);
  color: #0284c7;
  border-color: rgba(2, 132, 199, 0.3);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.12;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

[data-theme="light"] .hero-title {
  color: #0f172a;
}

.typewriter-text {
  background: var(--accent-gradient-glow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  min-height: 1.15em;
  border-right: 3px solid var(--accent-primary);
  padding-right: 4px;
  animation: blinkCursor 0.75s step-end infinite;
}

@keyframes blinkCursor {
  from, to { border-color: transparent; }
  50% { border-color: var(--accent-primary); }
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2.25rem;
}

[data-theme="light"] .hero-subtitle {
  color: #334155;
  font-weight: 500;
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

/* --- TRUST & TELEMETRY BAR --- */
.trust-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.75rem;
}

[data-theme="light"] .trust-bar {
  border-top-color: #cbd5e1;
}

.trust-stat strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--accent-primary);
  line-height: 1.1;
}

[data-theme="light"] .trust-stat strong {
  color: #0284c7;
}

.trust-stat span {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

[data-theme="light"] .trust-stat span {
  color: #475569;
}

/* --- HERO MOCKUP & LIVE TELEMETRY --- */
.hero-mockup-container {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-accent);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  background: var(--bg-card);
}

[data-theme="light"] .hero-mockup-container {
  border: 1.5px solid #cbd5e1;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
}

.hero-mockup-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-smooth);
}

.hero-mockup-badge {
  position: absolute;
  background: rgba(10, 14, 23, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
  padding: 0.75rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: var(--shadow-md);
  z-index: 2;
}

[data-theme="light"] .hero-mockup-badge {
  background: rgba(255, 255, 255, 0.92);
  border: 1.5px solid #cbd5e1;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.1);
}

[data-theme="light"] .hero-mockup-badge div div:first-child {
  color: #0f172a !important;
}

[data-theme="light"] .hero-mockup-badge div div:last-child {
  color: #475569 !important;
}

.badge-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
  flex-shrink: 0;
}

/* --- CARDS & GRIDS (UNIVERSAL HIGH CONTRAST) --- */
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: all var(--transition-normal);
}

[data-theme="light"] .stat-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
  color: #0f172a;
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-focus);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

[data-theme="light"] .stat-card:hover {
  border-color: #0284c7;
  box-shadow: 0 12px 35px rgba(2, 132, 199, 0.12);
}

/* --- SERVICES CARDS & GRID --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2.25rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}

[data-theme="light"] .service-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  box-shadow: 0 6px 25px rgba(15, 23, 42, 0.06);
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-focus);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

[data-theme="light"] .service-card:hover {
  border-color: #0284c7;
  box-shadow: 0 16px 40px rgba(2, 132, 199, 0.14);
}

.service-card-img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}

.service-card-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.service-card-tag {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

[data-theme="light"] .service-card-tag {
  color: #0284c7;
}

.service-card-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

[data-theme="light"] .service-card-title {
  color: #0f172a;
}

.service-card-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 1.25rem;
  flex: 1;
}

[data-theme="light"] .service-card-desc {
  color: #334155;
}

.service-card-footer {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

[data-theme="light"] .service-card-footer {
  border-top-color: #e2e8f0;
}

.service-card-link {
  color: var(--accent-primary);
  font-weight: 800;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

[data-theme="light"] .service-card-link {
  color: #0284c7;
}

/* --- PORTFOLIO & CASE STUDIES --- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 2.25rem;
}

.portfolio-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-normal);
}

[data-theme="light"] .portfolio-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  box-shadow: 0 6px 25px rgba(15, 23, 42, 0.06);
}

.portfolio-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-focus);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

[data-theme="light"] .portfolio-card:hover {
  border-color: #0284c7;
  box-shadow: 0 16px 40px rgba(2, 132, 199, 0.14);
}

.portfolio-thumb {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.portfolio-body {
  padding: 1.75rem;
}

.portfolio-metric {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--accent-emerald);
  margin-bottom: 0.6rem;
}

.portfolio-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 900;
  margin-bottom: 0.6rem;
  color: var(--text-primary);
}

[data-theme="light"] .portfolio-title {
  color: #0f172a;
}

.portfolio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}

/* --- UNIVERSAL PILLS & TAGS (FIXED FOR 100% READABILITY IN BOTH MODES) --- */
.portfolio-tag {
  font-size: 0.82rem;
  padding: 0.3rem 0.75rem;
  background: #161f30;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  color: #f1f5f9 !important;
  font-weight: 600;
  display: inline-block;
  transition: all var(--transition-fast);
}

[data-theme="light"] .portfolio-tag {
  background: #e2e8f0;
  border: 1.5px solid #cbd5e1;
  color: #0f172a !important;
  font-weight: 700;
}

.portfolio-tag:hover {
  background: var(--accent-primary) !important;
  color: #ffffff !important;
  border-color: var(--accent-primary) !important;
  transform: translateY(-1px);
}

/* --- STATE & CITY CARDS (FIXED CONTRAST) --- */
.state-city-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

[data-theme="light"] .state-city-card {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.05);
}

[data-theme="light"] .state-city-card h3 {
  color: #0284c7 !important;
}

/* --- CALCULATOR & ESTIMATOR BUTTONS (FIXED CONTRAST) --- */
.calc-option-btn {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: #0d121c;
  color: #f8fafc !important;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
  transition: all var(--transition-fast);
  cursor: pointer;
}

[data-theme="light"] .calc-option-btn {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  color: #0f172a !important;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.calc-option-btn:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary) !important;
}

.calc-option-btn.selected {
  background: var(--accent-primary) !important;
  color: #ffffff !important;
  border-color: var(--accent-primary) !important;
  box-shadow: 0 4px 16px rgba(0, 210, 255, 0.4);
}

[data-theme="light"] .calc-option-btn.selected {
  background: #0284c7 !important;
  color: #ffffff !important;
  border-color: #0284c7 !important;
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.35);
}

/* --- SCOPE CALCULATOR CONTAINER --- */
.scope-calculator-card {
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  max-width: 960px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

[data-theme="light"] .scope-calculator-card {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  box-shadow: 0 10px 35px rgba(15, 23, 42, 0.08);
}

.calc-step {
  margin-bottom: 2rem;
}

.calc-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

[data-theme="light"] .calc-label {
  color: #0f172a;
}

.calc-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.85rem;
}

.calc-summary-card {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

[data-theme="light"] .calc-summary-card {
  background: #f8fafc;
  border: 1.5px solid #0284c7;
  box-shadow: 0 4px 20px rgba(2, 132, 199, 0.1);
  color: #0f172a;
}

/* --- AI SIMULATOR (GEO / AEO) --- */
.ai-response-box {
  background: rgba(0, 210, 255, 0.06);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  position: relative;
}

[data-theme="light"] .ai-response-box {
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  color: #0f172a;
}

.ai-citation-tag {
  display: inline-block;
  background: rgba(0, 210, 255, 0.2);
  color: var(--accent-primary);
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-xs);
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 0.85rem;
}

[data-theme="light"] .ai-citation-tag {
  background: #dcfce7;
  color: #166534;
}

/* --- TESTIMONIALS --- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

/* --- FAQS ACCORDION --- */
.faqs-accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-fast);
}

[data-theme="light"] .faq-item {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
}

.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
  text-align: left;
}

[data-theme="light"] .faq-question {
  color: #0f172a;
}

.faq-answer {
  padding: 0 1.5rem 1.25rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  display: none;
}

[data-theme="light"] .faq-answer {
  color: #334155;
}

.faq-item.open .faq-answer {
  display: block;
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
  color: var(--accent-primary);
}

/* --- FORMS & CONTACT --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.5fr;
  gap: 3rem;
}

.contact-info-card, .contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
}

[data-theme="light"] .contact-info-card, [data-theme="light"] .contact-form-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  box-shadow: 0 6px 30px rgba(15, 23, 42, 0.06);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--accent-primary);
  flex-shrink: 0;
}

[data-theme="light"] .contact-icon {
  background: #f1f5f9;
  color: #0284c7;
}

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

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
}

[data-theme="light"] .form-label {
  color: #0f172a;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

[data-theme="light"] .form-control {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  color: #0f172a;
}

.form-control:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(0, 210, 255, 0.2);
}

[data-theme="light"] .form-control:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.2);
}

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

/* --- FOOTER --- */
.site-footer {
  background: #070a10;
  border-top: 1px solid var(--border-subtle);
  padding: 5rem 0 2.5rem;
  color: var(--text-secondary);
}

[data-theme="light"] .site-footer {
  background: #0f172a;
  color: #94a3b8;
}

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

.footer-col-title {
  font-family: var(--font-heading);
  font-weight: 800;
  color: #ffffff;
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
}

.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.92rem;
}

.footer-links-list a:hover {
  color: var(--accent-primary);
  transform: translateX(2px);
}

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

/* --- RESPONSIVE BREAKPOINTS (ZERO HORIZONTAL OVERFLOW) --- */
@media (max-width: 1024px) {
  .nav-menu {
    display: none !important;
  }
  .mobile-toggle-btn {
    display: flex;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
  }
  .hero-content {
    text-align: center;
  }
  .hero-cta-group {
    justify-content: center;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }
  .site-header {
    height: 64px;
  }
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .brand-logo {
    font-size: 1.15rem;
    gap: 0.45rem;
  }
  .brand-logo-icon {
    width: 34px;
    height: 34px;
    font-size: 1.05rem;
  }
  /* Hide bulky Request Proposal button in top header on mobile - it is prominently inside the mobile drawer */
  .nav-actions .btn-sm {
    display: none !important;
  }
  .nav-actions {
    gap: 0.4rem;
  }
  .theme-toggle-btn {
    width: 36px;
    height: 36px;
  }
  .mobile-toggle-btn {
    display: flex;
    width: 36px;
    height: 36px;
  }
  .hero-section {
    padding: 3.5rem 0 2.5rem;
  }
  .hero-title {
    font-size: 2.1rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
  .hero-glow-bg {
    width: 100%;
    max-width: 100vw;
  }
  .hero-mockup-img {
    height: 240px;
  }
  .hero-mockup-badge {
    padding: 0.5rem 0.75rem;
    max-width: 85%;
  }
  .trust-bar {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  .trust-stat strong {
    font-size: 1.4rem;
  }
  .section {
    padding: 3.5rem 0;
  }
  .section-title {
    font-size: 2rem;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .services-grid, .portfolio-grid {
    grid-template-columns: 1fr;
  }
  .search-filter-grid {
    grid-template-columns: 1fr !important;
  }
  .calc-options-grid {
    grid-template-columns: 1fr;
  }
  .calc-summary-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .brand-logo span {
    font-size: 1.05rem;
  }
  .hero-title {
    font-size: 1.85rem;
  }
  .section-title {
    font-size: 1.75rem;
  }
}

/* ==========================================================================
   15TH AUGUST INDEPENDENCE DAY FULL-PAGE ANIMATED TRANSFORMATION PRELOADER
   ========================================================================== */
.independence-preloader {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: 100vw;
  height: 100%;
  max-height: 100vh;
  background: #060911;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
  overflow-x: hidden;
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.7s;
}

.independence-preloader.fade-out {
  opacity: 0;
  transform: scale(1.04);
  visibility: hidden;
  pointer-events: none;
}

/* Animated Ambient Glows */
.preloader-bg-glow-saffron {
  position: absolute;
  top: -150px;
  left: 10%;
  width: 500px;
  max-width: 100vw;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 153, 51, 0.25) 0%, rgba(255, 153, 51, 0.05) 50%, transparent 70%);
  filter: blur(90px);
  pointer-events: none;
  animation: floatAura 6s ease-in-out infinite alternate;
}

.preloader-bg-glow-green {
  position: absolute;
  bottom: -150px;
  right: 10%;
  width: 500px;
  max-width: 100vw;
  height: 500px;
  background: radial-gradient(circle, rgba(19, 136, 8, 0.25) 0%, rgba(19, 136, 8, 0.05) 50%, transparent 70%);
  filter: blur(90px);
  pointer-events: none;
  animation: floatAura 6s ease-in-out infinite alternate-reverse;
}

.preloader-bg-glow-cyan {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  max-width: 100vw;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 210, 255, 0.18) 0%, rgba(0, 210, 255, 0.04) 50%, transparent 70%);
  filter: blur(100px);
  pointer-events: none;
}

@keyframes floatAura {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(40px) scale(1.15); }
}

.preloader-tricolor-topbar {
  height: 6px;
  width: 100%;
  background: linear-gradient(90deg, #FF9933 0%, #FF9933 33.3%, #FFFFFF 33.3%, #FFFFFF 66.6%, #138808 66.6%, #138808 100%);
  position: relative;
  z-index: 10;
  box-shadow: 0 0 20px rgba(255, 153, 51, 0.5);
}

.preloader-main-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1rem;
  position: relative;
  z-index: 5;
  width: 100%;
}

.preloader-stage-container {
  max-width: 920px;
  width: 100%;
  text-align: center;
  margin: 0 auto;
}

/* Badge with Pulse Animation */
.preloader-hero-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.45rem 1.1rem;
  background: linear-gradient(90deg, rgba(255, 153, 51, 0.18) 0%, rgba(255, 255, 255, 0.12) 50%, rgba(19, 136, 8, 0.18) 100%);
  border: 1.5px solid rgba(255, 153, 51, 0.5);
  border-radius: var(--radius-full);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 25px rgba(255, 153, 51, 0.25);
  animation: badgePulse 2s infinite alternate;
  max-width: 95%;
  line-height: 1.4;
}

@keyframes badgePulse {
  0% { box-shadow: 0 0 15px rgba(255, 153, 51, 0.2); transform: scale(1); }
  100% { box-shadow: 0 0 35px rgba(0, 210, 255, 0.4); transform: scale(1.02); }
}

/* Main Title with Radiant Gradient */
.preloader-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
}

.preloader-hero-desc {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: #cbd5e1;
  line-height: 1.7;
  max-width: 780px;
  margin: 0 auto 2.25rem;
}

/* Circular Animated Countdown Gauge */
.preloader-gauge-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.preloader-gauge-ring {
  position: relative;
  width: 120px;
  height: 120px;
}

.preloader-gauge-ring svg {
  transform: rotate(-90deg);
  width: 120px;
  height: 120px;
}

.preloader-gauge-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 8;
}

.preloader-gauge-circle {
  fill: none;
  stroke: url(#preloaderGradient);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 314;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.1s linear;
}

.preloader-gauge-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 900;
  font-size: 2rem;
  color: #00d2ff;
  line-height: 1;
}

.preloader-gauge-text span {
  font-size: 0.75rem;
  color: #94a3b8;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

/* 3-Pillar Transformation Feature Cards */
.preloader-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  max-width: 860px;
  margin: 0 auto 2.5rem;
}

.preloader-pillar-card {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(0, 210, 255, 0.25);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all var(--transition-normal);
}

.preloader-pillar-card:hover {
  transform: translateY(-4px);
  border-color: #00d2ff;
  box-shadow: 0 10px 25px rgba(0, 210, 255, 0.2);
}

.preloader-pillar-icon {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.preloader-pillar-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.35rem;
}

.preloader-pillar-desc {
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.45;
}

/* Bottom Actions & Progress Bar */
.preloader-bottom-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.preloader-full-progress-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.preloader-full-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #FF9933 0%, #00d2ff 50%, #138808 100%);
  box-shadow: 0 0 16px rgba(0, 210, 255, 0.8);
  transition: width 0.1s linear;
}

@media (max-width: 768px) {
  .preloader-pillars-grid {
    grid-template-columns: 1fr;
  }
  .preloader-hero-title {
    font-size: 2rem;
  }
  .preloader-hero-desc {
    font-size: 0.95rem;
  }
}

