/* ==========================================================================
   QS Technology Official Website Stylesheet
   Domain: https://qs-technology.pages.dev
   Design Language: High-End Clean Tech Corporate & 3D Interactive Aesthetics
   ========================================================================== */

:root {
  /* High-End Clean Tech Corporate Palette */
  --primary-50: #eff6ff;
  --primary-100: #dbeafe;
  --primary-500: #2563eb;
  --primary-600: #1d4ed8;
  --primary-700: #1e40af;
  --primary-900: #1e3a8a;

  --accent-cyan: #06b6d4;
  --accent-cyan-light: #67e8f9;
  --accent-purple: #7c3aed;
  --accent-purple-light: #a78bfa;

  --navy-dark: #0f172a;
  --navy-card: #1e293b;
  --navy-border: #334155;

  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --bg-section-alt: #f0f7ff;

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-light: #64748b;

  --border-light: #e2e8f0;
  --border-subtle: #f1f5f9;

  /* Gradients */
  --grad-primary: linear-gradient(135deg, #1d4ed8 0%, #06b6d4 100%);
  --grad-accent: linear-gradient(135deg, #7c3aed 0%, #2563eb 100%);
  --grad-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  --grad-hero: linear-gradient(180deg, #f8fafc 0%, #e0f2fe 65%, #ffffff 100%);
  --grad-card-hover: linear-gradient(145deg, #ffffff 0%, #f0f7ff 100%);

  /* Shadows */
  --shadow-sm: 0 2px 6px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 6px 18px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 14px 32px rgba(15, 23, 42, 0.12);
  --shadow-xl: 0 24px 50px rgba(15, 23, 42, 0.16);
  --shadow-glow: 0 0 25px rgba(6, 182, 212, 0.35);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Typography & Spacing */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --header-height: 110px;
  --max-width: 1240px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 18px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  color: var(--text-main);
  background-color: var(--bg-white);
  line-height: 1.65;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

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

ul,
ol {
  list-style: none;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Section Wrapper */
.section {
  padding: 96px 0;
  position: relative;
}

.section-dark {
  background: var(--navy-dark);
  color: #ffffff;
}

.section-light {
  background-color: var(--bg-section-alt);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

/* Typography Helpers */
.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 60px auto;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 18px;
}

.badge-primary {
  background-color: var(--primary-100);
  color: var(--primary-700);
  border: 1px solid rgba(37, 99, 235, 0.25);
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.1);
}

.badge-cyan {
  background-color: rgba(6, 182, 212, 0.12);
  color: #0284c7;
  border: 1px solid rgba(6, 182, 212, 0.3);
  box-shadow: 0 2px 10px rgba(6, 182, 212, 0.1);
}

.section-title {
  font-size: 2.65rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--navy-dark);
  margin-bottom: 16px;
}

.section-dark .section-title {
  color: #ffffff;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  font-weight: 400;
  line-height: 1.7;
}

.section-dark .section-subtitle {
  color: #cbd5e1;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad-primary);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(29, 78, 216, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(29, 78, 216, 0.45);
  filter: brightness(1.05);
}

.btn-secondary {
  background-color: #ffffff;
  color: var(--primary-600);
  border: 1.5px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--primary-500);
  background-color: var(--primary-50);
  transform: translateY(-2px);
}

.btn-outline-dark {
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.btn-outline-dark:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
}

/* 1. Header / Navigation */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  transition: var(--transition);
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
}

.site-header.scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  border-bottom-color: var(--border-light);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-logo-img {
  height: 92px;
  width: auto;
  max-width: 360px;
  object-fit: contain;
  display: block;
  transition: var(--transition);
  filter: drop-shadow(0 2px 8px rgba(37, 99, 235, 0.15));
}

.brand-logo-img:hover {
  transform: scale(1.03);
}

.brand-logo-img-footer {
  height: 130px;
  width: auto;
  max-width: 420px;
  object-fit: contain;
  background: #ffffff;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  display: block;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  transition: var(--transition);
}

.brand-logo-img-footer:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(6, 182, 212, 0.45);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: nowrap;
}

.nav-link {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--navy-dark);
  transition: var(--transition);
  position: relative;
  padding: 6px 0;
  white-space: nowrap;
}

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

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--grad-primary);
  border-radius: 3px;
}

.header-cta {
  flex-shrink: 0;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  width: 100%;
  height: 2.5px;
  background-color: var(--navy-dark);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Drawer */
.mobile-nav-drawer {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100%;
  height: calc(100vh - var(--header-height));
  background-color: #ffffff;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-xl);
  overflow-y: auto;
  border-bottom: 1px solid var(--border-light);
}

.mobile-nav-drawer.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.mobile-nav-link {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy-dark);
  padding: 14px 0;
  border-bottom: 1px solid var(--border-subtle);
}

/* 2. Hero Section */
.hero-section {
  padding-top: calc(var(--header-height) + 60px);
  padding-bottom: 96px;
  background: var(--grad-hero);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-content {
  max-width: 600px;
}

.hero-title {
  font-size: 3.125rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--navy-dark);
  margin-bottom: 20px;
}

.hero-title .gradient-text {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.hero-trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}

.trust-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.trust-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background-color: var(--primary-50);
  color: var(--primary-600);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--primary-100);
}

.trust-text h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy-dark);
}

.trust-text p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Hero Visual / Dashboard Graphic */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.visual-card-wrapper {
  position: relative;
  width: 100%;
  max-width: 540px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.18), 0 0 30px rgba(6, 182, 212, 0.15);
}

.floating-badge {
  position: absolute;
  background: #ffffff;
  color: var(--navy-dark);
  padding: 12px 18px;
  border-radius: var(--radius-lg);
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.12), 0 5px 15px rgba(37, 99, 235, 0.1);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 0.85rem;
  z-index: 10;
  animation: float 4s ease-in-out infinite alternate;
}

.floating-badge.badge-top {
  top: -20px;
  left: -20px;
}

.floating-badge.badge-bottom {
  bottom: -20px;
  right: -20px;
  animation-delay: 2s;
}

@keyframes float {
  0% {
    transform: translateY(0);
  }

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

/* 3. About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-capabilities {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 20px;
  margin-top: 24px;
  margin-bottom: 32px;
}

.capability-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy-dark);
}

.capability-item svg {
  color: var(--primary-600);
  flex-shrink: 0;
}

.core-values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.core-value-card,
.value-card {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.core-value-card:hover,
.value-card:hover {
  border-color: var(--primary-500);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.value-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--primary-50);
  color: var(--primary-600);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border: 1px solid var(--primary-100);
}

.value-card h4,
.core-value-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--navy-dark);
}

.value-card p,
.core-value-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* 4. Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 32px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--grad-primary);
  opacity: 0;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(37, 99, 235, 0.3);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background-color: var(--primary-50);
  color: var(--primary-600);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: var(--transition);
  border: 1px solid var(--primary-100);
}

.service-card:hover .service-icon-wrapper {
  background: var(--grad-primary);
  color: #ffffff;
  box-shadow: var(--shadow-glow);
}

.service-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 12px;
}

.service-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  flex-grow: 1;
}

.tech-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.tech-tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background-color: var(--primary-50);
  color: var(--primary-700);
  border: 1px solid var(--primary-100);
}

.btn-learn-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-600);
  transition: var(--transition);
}

.btn-learn-more:hover {
  color: var(--primary-700);
  gap: 12px;
}

/* 5. Technologies Section */
.tech-tabs-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.tech-tab-btn {
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  background-color: #ffffff;
  color: var(--text-muted);
  border: 1.5px solid var(--border-light);
  transition: var(--transition);
}

.tech-tab-btn:hover,
.tech-tab-btn.active {
  background: var(--grad-primary);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.tech-card {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.tech-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-500);
  box-shadow: var(--shadow-md);
}

.tech-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--primary-50);
  color: var(--primary-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
  border: 1px solid var(--primary-100);
}

.tech-info h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 4px;
}

.tech-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.1);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  margin-bottom: 6px;
}

.tech-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* 6. Development Process */
.process-timeline {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
}

.timeline-wrapper {
  position: relative;
}

.timeline-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(180deg, #1d4ed8 0%, #06b6d4 100%);
  transform: translateX(-50%);
}

.timeline-item {
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  gap: 24px;
  margin-bottom: 48px;
  align-items: center;
}

.timeline-item:nth-child(even) .timeline-content {
  grid-column: 3;
  text-align: left;
}

.timeline-item:nth-child(even) .timeline-empty {
  grid-column: 1;
}

.timeline-item:nth-child(odd) .timeline-content {
  grid-column: 1;
  text-align: right;
}

.timeline-node {
  grid-column: 2;
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  background: var(--grad-primary);
  color: #ffffff;
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.35);
  z-index: 2;
  margin: 0 auto;
}

.timeline-content {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.timeline-content:hover {
  border-color: var(--primary-500);
}

.step-subtitle {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-600);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.step-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 12px;
}

.step-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* 7. Projects / Portfolio */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.project-card {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-500);
}

.project-visual {
  height: 220px;
  background: var(--grad-dark);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  overflow: hidden;
}

.project-visual::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.15) 0%, rgba(15, 23, 42, 0.75) 100%);
  z-index: 1;
}

.project-visual-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 2;
}

.project-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 10px;
}

.project-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  flex-grow: 1;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.project-tech span {
  font-size: 0.75rem;
  background-color: var(--bg-light);
  color: var(--navy-dark);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  border: 1px solid var(--border-light);
}

/* 8. Why Choose Us */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.why-card {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.why-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-500);
}

.why-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--primary-50);
  color: var(--primary-600);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border: 1px solid var(--primary-100);
}

.why-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 10px;
}

.why-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* 9. Industries We Serve */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.industry-card {
  background-color: var(--navy-card);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  transition: var(--transition);
}

.industry-card:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-4px);
  background-color: #152244;
}

.industry-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  background: rgba(6, 182, 212, 0.12);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
}

.industry-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.industry-card p {
  font-size: 0.8rem;
  color: #cbd5e1;
}

/* 10. Statistics / Trust Section */
.stats-banner {
  background: var(--grad-dark);
  border-radius: var(--radius-xl);
  padding: 48px 32px;
  border: 1px solid var(--navy-border);
  box-shadow: var(--shadow-xl);
  margin: 40px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item {
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background-color: var(--navy-border);
}

.stat-number {
  font-size: 3.25rem;
  font-weight: 900;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.stat-desc {
  font-size: 0.8rem;
  color: #cbd5e1;
}

/* 11. Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.testimonial-card {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-500);
}

.stars {
  display: flex;
  gap: 4px;
  color: #f59e0b;
  margin-bottom: 16px;
}

.quote-text {
  font-size: 1rem;
  color: var(--text-main);
  font-style: italic;
  margin-bottom: 24px;
  flex-grow: 1;
  line-height: 1.6;
}

.client-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.client-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--grad-primary);
  color: #ffffff;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.client-details h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy-dark);
}

.client-details p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* 12. FAQ Section */
.faq-container {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.faq-item:hover {
  border-color: var(--primary-500);
}

.faq-question {
  width: 100%;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy-dark);
  background: transparent;
  gap: 16px;
}

.faq-toggle-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background-color: var(--bg-light);
  color: var(--primary-600);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}

.faq-item.open .faq-toggle-icon {
  transform: rotate(180deg);
  background: var(--grad-primary);
  color: #ffffff;
}

.faq-answer {
  padding: 0 24px 24px 24px;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  display: none;
}

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

/* 13. Blog Section */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.blog-card {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-500);
}

.blog-visual {
  height: 160px;
  background: var(--grad-dark);
  background-size: cover;
  background-position: center;
  padding: 16px;
  display: flex;
  align-items: flex-end;
  position: relative;
}

.blog-visual::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.15) 0%, rgba(15, 23, 42, 0.7) 100%);
  z-index: 1;
}

.blog-category-badge {
  background: rgba(6, 182, 212, 0.9);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  z-index: 2;
}

.blog-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.blog-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 10px;
  line-height: 1.35;
}

.blog-excerpt {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 14. Contact Section */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info-side {
  padding-right: 20px;
}

.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
}

.contact-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--primary-50);
  color: var(--primary-600);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--primary-100);
}

.contact-details h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy-dark);
}

.contact-details p,
.contact-details a {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.contact-form-card {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-xl);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy-dark);
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  outline: none;
  font-size: 0.95rem;
  transition: var(--transition);
  background-color: #ffffff;
  color: var(--navy-dark);
}

.form-input:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

textarea.form-input {
  min-height: 120px;
  resize: vertical;
}

/* 15. Footer */
.site-footer {
  background-color: var(--navy-dark);
  color: #cbd5e1;
  padding-top: 80px;
  padding-bottom: 32px;
  border-top: 1px solid var(--navy-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-brand p {
  font-size: 0.95rem;
  color: #94a3b8;
  line-height: 1.65;
  margin-top: 20px;
  margin-bottom: 24px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.social-btn:hover {
  background: var(--grad-primary);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(6, 182, 212, 0.35);
}

.footer-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 0.92rem;
  color: #cbd5e1;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent-cyan);
  padding-left: 4px;
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
  color: #94a3b8;
  flex-wrap: wrap;
  gap: 16px;
}

.legal-links {
  display: flex;
  gap: 24px;
}

.legal-links button {
  color: #94a3b8;
  font-size: 0.9rem;
  transition: var(--transition);
}

.legal-links button:hover {
  color: var(--accent-cyan);
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-overlay[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background-color: #ffffff;
  border-radius: var(--radius-xl);
  max-width: 720px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 40px;
  position: relative;
  box-shadow: var(--shadow-xl);
  color: var(--navy-dark);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background-color: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy-dark);
  font-weight: bold;
  transition: var(--transition);
}

.modal-close-btn:hover {
  background-color: var(--primary-500);
  color: #ffffff;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toast {
  background-color: var(--navy-dark);
  color: #ffffff;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  border-left: 4px solid var(--accent-cyan);
  animation: slideInRight 0.3s forwards;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

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

/* Responsive Media Queries */
@media (max-width: 1080px) {

  .nav-links,
  .header-cta {
    display: none !important;
  }

  .hamburger {
    display: flex !important;
  }

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

  .hero-content {
    margin: 0 auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-trust-grid {
    text-align: left;
  }

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

  .services-grid,
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-grid,
  .industries-grid,
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .stat-item:nth-child(2)::after {
    display: none;
  }

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

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .services-grid,
  .projects-grid,
  .testimonials-grid,
  .tech-grid,
  .contact-container {
    grid-template-columns: 1fr;
  }

  .core-values-grid,
  .why-grid,
  .industries-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }

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

  .form-group.full-width {
    grid-column: span 1;
  }

  .contact-form-card {
    padding: 24px 20px;
  }

  .timeline-wrapper::before {
    left: 20px;
  }

  .timeline-item {
    grid-template-columns: 40px 1fr;
    gap: 16px;
  }

  .timeline-item:nth-child(even) .timeline-content,
  .timeline-item:nth-child(odd) .timeline-content {
    grid-column: 2;
    text-align: left;
  }

  .timeline-node {
    grid-column: 1;
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }

  .timeline-empty {
    display: none;
  }

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

  .stat-item::after {
    display: none !important;
  }

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

@media (max-width: 480px) {
  .brand-logo-img {
    height: 72px;
    max-width: 280px;
  }

  .brand-logo-img-footer {
    height: 105px;
    max-width: 320px;
  }

  .hero-title {
    font-size: 1.85rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .hero-trust-grid {
    grid-template-columns: 1fr;
  }

  .container {
    padding: 0 16px;
  }

  .section {
    padding: 56px 0;
  }
}

/* Accessibility prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   3D Visual Effects & Interactive Perspective Engine
   ========================================================================== */

/* 3D Card Perspective & Depth */
.tilt-3d,
.service-card,
.project-card,
.why-card,
.industry-card,
.blog-card,
.visual-card-wrapper,
.stat-item,
.testimonial-card,
.core-value-card {
  perspective: 1000px;
  transform-style: preserve-3d;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease, border-color 0.4s ease;
  will-change: transform;
}

/* 3D Depth Elevation on Hover */
.service-card:hover,
.project-card:hover,
.why-card:hover,
.industry-card:hover,
.blog-card:hover,
.stat-item:hover,
.testimonial-card:hover,
.core-value-card:hover {
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.16), 0 10px 20px rgba(6, 182, 212, 0.12);
  border-color: var(--primary-500);
}

/* 3D Gloss Sheen Overlay on Cards */
.service-card::after,
.project-card::after,
.why-card::after,
.blog-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg,
      transparent 0%,
      rgba(255, 255, 255, 0.15) 45%,
      rgba(255, 255, 255, 0.4) 50%,
      rgba(255, 255, 255, 0.15) 55%,
      transparent 100%);
  transform: rotate(30deg) translateY(-100%);
  transition: transform 0.8s ease-in-out;
  pointer-events: none;
  z-index: 5;
}

.service-card:hover::after,
.project-card:hover::after,
.why-card:hover::after,
.blog-card:hover::after {
  transform: rotate(30deg) translateY(100%);
}

/* 3D Inner Icon Elevation */
.service-card:hover .service-icon-wrapper,
.why-card:hover .why-icon,
.industry-card:hover .industry-icon,
.trust-card:hover .trust-icon {
  transform: translateZ(25px) scale(1.1);
}

/* 3D Interactive Hero Graphic Styling */
.visual-card-wrapper {
  background: #ffffff;
  border: 1px solid var(--border-light);
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.18), 0 0 30px rgba(6, 182, 212, 0.15);
  transform-style: preserve-3d;
}

.visual-card-wrapper img {
  transform: translateZ(15px);
  border-radius: var(--radius-lg);
  transition: transform 0.4s ease;
}

.visual-card-wrapper:hover img {
  transform: translateZ(30px) scale(1.02);
}

/* 3D Floating Badges */
.floating-badge {
  transform: translateZ(40px);
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.12), 0 5px 15px rgba(37, 99, 235, 0.1);
  border: 1px solid var(--border-light);
}

/* 3D Ambient Glowing Background Spheres */
.bg-glow-orb-1,
.bg-glow-orb-2 {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  z-index: -1;
  pointer-events: none;
  animation: floatOrb 10s ease-in-out infinite alternate;
}

.bg-glow-orb-1 {
  top: 10%;
  right: 5%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.25) 0%, rgba(37, 99, 235, 0.08) 70%, transparent 100%);
}

.bg-glow-orb-2 {
  bottom: 15%;
  left: 5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.2) 0%, rgba(56, 189, 248, 0.08) 70%, transparent 100%);
  animation-delay: 5s;
}

@keyframes floatOrb {
  0% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-30px) scale(1.1);
  }

  100% {
    transform: translateY(0) scale(1);
  }
}

/* 3D Button Push & Glow Effect */
.btn-primary {
  box-shadow: 0 6px 20px rgba(29, 78, 216, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 28px rgba(29, 78, 216, 0.45);
}

.btn-primary:active {
  transform: translateY(1px) scale(0.99);
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.3);
}

/* 3D Section Backgrounds & 3D Interactive Card Overrides */

/* Services & Projects Background Themes */
#services {
  background: radial-gradient(circle at 10% 20%, rgba(224, 242, 254, 0.4) 0%, rgba(254, 244, 255, 0.4) 90%), #ffffff;
  position: relative;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

#projects {
  background: radial-gradient(circle at 90% 80%, rgba(236, 254, 255, 0.5) 0%, rgba(240, 249, 255, 0.5) 100%), #ffffff;
  position: relative;
  border-bottom: 1px solid var(--border-light);
}

/* Base Card 3D Design */
.service-card,
.project-card,
.why-card,
.testimonial-card,
.blog-card,
.faq-item,
.timeline-content {
  position: relative;
  transform-style: preserve-3d;
  perspective: 1000px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05), 
              0 1px 1px 0 rgba(255, 255, 255, 0.3) inset;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 3D hover effects */
.service-card:hover,
.project-card:hover,
.why-card:hover,
.testimonial-card:hover,
.blog-card:hover {
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow: 0 25px 50px -12px rgba(37, 99, 235, 0.15), 
              0 0 0 1px rgba(37, 99, 235, 0.1) inset,
              0 12px 24px -10px rgba(0, 0, 0, 0.08);
}

/* Inner pop-out layers */
.service-icon-wrapper,
.project-visual,
.why-icon,
.client-avatar,
.faq-toggle-icon,
.blog-visual {
  transform: translateZ(30px);
  transform-style: preserve-3d;
}

.service-title,
.project-title,
.why-card h4,
.client-details,
.faq-question span,
.blog-title {
  transform: translateZ(15px);
}