/* ============================================================
   Duan Link - Main Stylesheet
   Songyuan Duanlian Network Technology Co., Ltd.
   Computer Systems Design & Integrated Systems
   ============================================================ */

/* --- CSS Variables --- */
:root {
  --primary: #1e3a8a;
  --primary-dark: #152c6b;
  --primary-light: #2d4faa;
  --accent: #e11d48;
  --accent-dark: #c0183d;
  --accent-light: #ef4d6e;
  --bg: #ffffff;
  --surface: #f8fafc;
  --surface-alt: #f1f5f9;
  --headings: #0f172a;
  --body: #334155;
  --body-light: #64748b;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.1);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--body);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

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

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  color: var(--headings);
  font-weight: 700;
  line-height: 1.25;
}

p {
  color: var(--body);
}

.section {
  padding: 100px 0;
}

.section-alt {
  background-color: var(--surface);
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background-color: #fef2f2;
  padding: 8px 20px;
  border-radius: 50px;
  margin-bottom: 20px;
}

.section-title {
  font-size: 40px;
  font-weight: 800;
  color: var(--headings);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 18px;
  color: var(--body-light);
  max-width: 640px;
  margin: 0 auto;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 36px;
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  letter-spacing: -0.01em;
  text-align: center;
}

.btn-primary {
  background-color: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.btn-primary:hover {
  background-color: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background-color: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-outline:hover {
  background-color: var(--white);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-cta {
  background-color: var(--white);
  color: var(--primary);
  border-color: var(--white);
  font-size: 18px;
  padding: 18px 42px;
}

.btn-cta:hover {
  background-color: var(--surface);
  border-color: var(--surface);
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.btn-full {
  width: 100%;
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: transparent;
  transition: all 0.3s ease;
  padding: 20px 0;
}

.navbar.navbar-scrolled {
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  padding: 12px 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
}

.logo-text {
  font-size: 26px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
  transition: color 0.3s ease;
}

.navbar-scrolled .logo-text {
  color: var(--primary);
}

.logo-accent {
  color: var(--accent);
}

.navbar-scrolled .logo-accent {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: #e2e8f0;
  transition: color 0.2s ease;
  position: relative;
}

.navbar-scrolled .nav-link {
  color: var(--body);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: width 0.25s ease;
}

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

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

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

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.mobile-toggle span {
  display: block;
  width: 26px;
  height: 2.5px;
  background-color: var(--white);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.navbar-scrolled .mobile-toggle span {
  background-color: var(--primary);
}

.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-color: var(--primary);
  background-image:
    radial-gradient(ellipse at 20% 50%, #1e3a8a 0%, #0f1d4a 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 200%;
  background:
    radial-gradient(circle at 30% 40%, rgba(225, 29, 72, 0.12) 0%, transparent 60%),
    radial-gradient(circle at 70% 60%, rgba(30, 58, 138, 0.3) 0%, transparent 50%);
  pointer-events: none;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(30, 58, 138, 0.6) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
  padding: 120px 0;
}

.hero-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background-color: rgba(225, 29, 72, 0.12);
  border: 1px solid rgba(225, 29, 72, 0.25);
  padding: 10px 22px;
  border-radius: 50px;
  margin-bottom: 28px;
}

.hero-title {
  font-size: 64px;
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 19px;
  color: #cbd5e1;
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 620px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

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

.about-content p {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 20px;
  color: var(--body);
}

.about-content p:last-child {
  margin-bottom: 0;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.stat-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
}

.stat-card.revealed {
  opacity: 1;
  transform: translateY(0);
}

.stat-card:nth-child(1) { transition-delay: 0.05s; }
.stat-card:nth-child(2) { transition-delay: 0.15s; }
.stat-card:nth-child(3) { transition-delay: 0.25s; }
.stat-card:nth-child(4) { transition-delay: 0.35s; }

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

.stat-number {
  display: block;
  font-size: 42px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--body-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.service-card {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
}

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

.service-card:nth-child(1) { transition-delay: 0.05s; }
.service-card:nth-child(2) { transition-delay: 0.12s; }
.service-card:nth-child(3) { transition-delay: 0.19s; }
.service-card:nth-child(4) { transition-delay: 0.26s; }
.service-card:nth-child(5) { transition-delay: 0.33s; }
.service-card:nth-child(6) { transition-delay: 0.40s; }

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

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

.service-card.revealed:hover {
  transform: translateY(-6px);
}

.service-icon {
  width: 56px;
  height: 56px;
  color: var(--primary);
  margin-bottom: 24px;
  background-color: #eef2ff;
  border-radius: 12px;
  padding: 12px;
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--headings);
  margin-bottom: 12px;
  line-height: 1.3;
}

.service-desc {
  font-size: 15px;
  color: var(--body-light);
  line-height: 1.7;
}

/* --- Industries Section --- */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.industry-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 16px;
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
  cursor: default;
  opacity: 0;
  transform: translateY(16px);
}

.industry-item.revealed {
  opacity: 1;
  transform: translateY(0);
}

.industry-item:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.industry-item.revealed:hover {
  transform: translateY(-4px);
}

.industry-icon {
  width: 44px;
  height: 44px;
  color: var(--primary);
  margin-bottom: 14px;
}

.industry-icon svg {
  width: 100%;
  height: 100%;
}

.industry-item span {
  font-size: 14px;
  font-weight: 600;
  color: var(--headings);
  line-height: 1.3;
}

/* --- Process Section --- */
.process-timeline {
  max-width: 860px;
  margin: 0 auto;
  position: relative;
}

.process-timeline::before {
  content: '';
  position: absolute;
  left: 39px;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--border);
}

.process-step {
  display: flex;
  gap: 36px;
  margin-bottom: 48px;
  position: relative;
  opacity: 0;
  transform: translateX(-20px);
}

.process-step.revealed {
  opacity: 1;
  transform: translateX(0);
}

.process-step:nth-child(1) { transition-delay: 0.05s; }
.process-step:nth-child(2) { transition-delay: 0.15s; }
.process-step:nth-child(3) { transition-delay: 0.25s; }
.process-step:nth-child(4) { transition-delay: 0.35s; }

.process-step:last-child {
  margin-bottom: 0;
}

.process-number {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 900;
  color: var(--white);
  background-color: var(--primary);
  border-radius: 50%;
  z-index: 1;
  box-shadow: var(--shadow-md);
}

.process-content {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  flex: 1;
}

.process-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--headings);
  margin-bottom: 12px;
}

.process-content > p {
  font-size: 16px;
  color: var(--body);
  line-height: 1.7;
  margin-bottom: 16px;
}

.process-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
}

.process-list li {
  font-size: 14px;
  color: var(--body-light);
  padding-left: 20px;
  position: relative;
  line-height: 1.6;
}

.process-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent);
}

/* --- Capabilities Section --- */
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.capability-item {
  padding: 18px 20px;
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  text-align: center;
  transition: all 0.25s ease;
  cursor: default;
  opacity: 0;
  transform: scale(0.95);
}

.capability-item.revealed {
  opacity: 1;
  transform: scale(1);
}

.capability-item:hover {
  background-color: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

/* --- Why Us Section --- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.why-card {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
}

.why-card.revealed {
  opacity: 1;
  transform: translateY(0);
}

.why-card:nth-child(1) { transition-delay: 0.05s; }
.why-card:nth-child(2) { transition-delay: 0.12s; }
.why-card:nth-child(3) { transition-delay: 0.19s; }
.why-card:nth-child(4) { transition-delay: 0.26s; }
.why-card:nth-child(5) { transition-delay: 0.33s; }
.why-card:nth-child(6) { transition-delay: 0.40s; }

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

.why-card.revealed:hover {
  transform: translateY(-6px);
}

.why-icon-wrap {
  width: 52px;
  height: 52px;
  color: var(--accent);
  margin-bottom: 22px;
  background-color: #fef2f2;
  border-radius: 50%;
  padding: 12px;
}

.why-icon-wrap svg {
  width: 100%;
  height: 100%;
}

.why-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--headings);
  margin-bottom: 10px;
}

.why-card p {
  font-size: 15px;
  color: var(--body-light);
  line-height: 1.7;
}

/* --- Contact Section --- */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-info-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 24px;
  background-color: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: border-color 0.25s ease;
}

.contact-info-item:hover {
  border-color: var(--primary);
}

.contact-info-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--primary);
  margin-top: 2px;
}

.contact-info-icon svg {
  width: 100%;
  height: 100%;
}

.contact-info-item h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--headings);
  margin-bottom: 4px;
}

.contact-info-item p {
  font-size: 15px;
  color: var(--body-light);
  line-height: 1.5;
}

.contact-form {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.form-group {
  margin-bottom: 22px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--headings);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  font-family: 'Inter', sans-serif;
  color: var(--body);
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all 0.25s ease;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
  background-color: var(--white);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #94a3b8;
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23334155' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

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

/* Form Messages */
.form-message {
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  margin-top: 16px;
  text-align: center;
}

.form-message-success {
  background-color: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.form-message-error {
  background-color: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* --- CTA Banner --- */
.cta-banner {
  background-color: var(--primary);
  background-image:
    radial-gradient(ellipse at 30% 50%, #2d4faa 0%, var(--primary) 60%);
  padding: 88px 0;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}

.cta-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta-title {
  font-size: 40px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.cta-text {
  font-size: 18px;
  color: #cbd5e1;
  max-width: 640px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

/* --- Footer --- */
.footer {
  background-color: var(--headings);
  padding: 72px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid #1e293b;
}

.footer-logo {
  font-size: 26px;
  font-weight: 800;
  color: var(--white);
  display: inline-block;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.footer-logo-accent {
  color: var(--accent);
}

.footer-desc {
  font-size: 15px;
  color: #94a3b8;
  line-height: 1.7;
  max-width: 340px;
}

.footer-heading {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}

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

.footer-links a {
  font-size: 15px;
  color: #94a3b8;
  transition: color 0.2s ease;
}

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

.footer-bottom {
  padding: 28px 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 14px;
  color: #64748b;
}

/* --- Legal Pages --- */
.legal-page {
  padding: 140px 0 80px;
  min-height: 100vh;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h1 {
  font-size: 42px;
  font-weight: 800;
  color: var(--headings);
  margin-bottom: 8px;
}

.legal-date {
  font-size: 15px;
  color: var(--body-light);
  margin-bottom: 36px;
  font-style: italic;
}

.legal-content h2 {
  font-size: 26px;
  font-weight: 700;
  color: var(--primary);
  margin: 44px 0 16px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.legal-content h2:first-of-type {
  border-top: none;
  padding-top: 0;
}

.legal-content h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--headings);
  margin: 28px 0 12px;
}

.legal-content p {
  font-size: 16px;
  color: var(--body);
  line-height: 1.8;
  margin-bottom: 16px;
}

.legal-content ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 20px;
}

.legal-content ul li {
  font-size: 16px;
  color: var(--body);
  line-height: 1.8;
  margin-bottom: 8px;
}

.legal-content ul ul {
  list-style: circle;
  margin-top: 4px;
  margin-bottom: 4px;
}

.legal-content strong {
  color: var(--headings);
  font-weight: 600;
}

/* --- Responsive --- */
@media (max-width: 1200px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .capabilities-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

  .about-stats {
    grid-template-columns: repeat(4, 1fr);
  }

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

  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

  .hero-title {
    font-size: 48px;
  }

  .section-title {
    font-size: 34px;
  }

  .cta-title {
    font-size: 32px;
  }
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    flex-direction: column;
    background-color: var(--white);
    padding: 100px 32px 40px;
    gap: 24px;
    transition: right 0.3s ease;
    box-shadow: var(--shadow-xl);
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links .nav-link {
    color: var(--headings) !important;
    font-size: 17px;
  }

  .hero {
    min-height: auto;
    padding: 80px 0;
  }

  .hero-content {
    padding: 100px 0 60px;
  }

  .hero-title {
    font-size: 38px;
  }

  .hero-subtitle {
    font-size: 17px;
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .section {
    padding: 64px 0;
  }

  .section-title {
    font-size: 28px;
  }

  .section-subtitle {
    font-size: 16px;
  }

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

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

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

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

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

  .process-timeline::before {
    left: 27px;
  }

  .process-step {
    gap: 20px;
  }

  .process-number {
    width: 56px;
    height: 56px;
    font-size: 22px;
  }

  .process-content {
    padding: 24px 20px;
  }

  .process-list {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 28px 20px;
  }

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

  .cta-title {
    font-size: 26px;
  }

  .cta-text {
    font-size: 16px;
  }

  .legal-content h1 {
    font-size: 32px;
  }

  .legal-content h2 {
    font-size: 22px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero-title {
    font-size: 30px;
  }

  .hero-badge {
    font-size: 11px;
    padding: 8px 16px;
  }

  .section-title {
    font-size: 24px;
  }

  .industries-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .capabilities-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .capability-item {
    font-size: 13px;
    padding: 14px 12px;
  }

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

  .btn {
    padding: 14px 24px;
    font-size: 15px;
  }
}
