/* ==========================================================================
   روئین پد — Premium Industrial NDT Website
   CSS Architecture: Variables → Reset → Base → Layout → Components → Sections → Utils
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Variables
   -------------------------------------------------------------------------- */
:root {
  --color-primary: #0B2545;
  --color-secondary: #134074;
  --color-accent: #F28C28;
  --color-accent-hover: #E07B1A;
  --color-bg: #F5F7FA;
  --color-bg-alt: #EEF2F6;
  --color-text: #1A1A1A;
  --color-text-muted: #5A6570;
  --color-text-light: #8A95A0;
  --color-success: #1E7D32;
  --color-border: #DCE3EA;
  --color-white: #FFFFFF;
  --color-overlay: rgba(11, 37, 69, 0.82);

  --font-family: "Vazirmatn", system-ui, -apple-system, sans-serif;

  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5rem;
  --fs-2xl: 1.875rem;
  --fs-3xl: 2.25rem;
  --fs-4xl: 2.75rem;
  --fs-5xl: clamp(2.25rem, 4vw, 3.5rem);

  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-extrabold: 800;

  --lh-tight: 1.3;
  --lh-normal: 1.7;
  --lh-relaxed: 1.85;

  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  --shadow-sm: 0 1px 3px rgba(11, 37, 69, 0.06);
  --shadow-md: 0 4px 16px rgba(11, 37, 69, 0.08);
  --shadow-lg: 0 12px 40px rgba(11, 37, 69, 0.12);
  --shadow-xl: 0 24px 64px rgba(11, 37, 69, 0.16);

  --header-height: 80px;
  --container-max: 1200px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  --z-header: 1000;
  --z-modal: 2000;
  --z-back-top: 900;
}

/* --------------------------------------------------------------------------
   2. Reset & Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  font-size: var(--fs-base);
  font-weight: var(--fw-regular);
  line-height: var(--lh-normal);
  color: var(--color-text);
  background-color: var(--color-bg);
  direction: rtl;
  text-align: right;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

ul, ol {
  list-style: none;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: none;
  background: none;
  outline: none;
}

button {
  cursor: pointer;
}

h1, h2, h3, h4, h5, h6 {
  line-height: var(--lh-tight);
  font-weight: var(--fw-bold);
  color: var(--color-primary);
}

p {
  color: var(--color-text-muted);
}

strong {
  font-weight: var(--fw-semibold);
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -100%;
  right: var(--space-md);
  z-index: 9999;
  padding: var(--space-sm) var(--space-md);
  background: var(--color-accent);
  color: var(--color-white);
  border-radius: var(--radius-sm);
  font-weight: var(--fw-semibold);
}

.skip-link:focus {
  top: var(--space-md);
}

/* --------------------------------------------------------------------------
   3. Layout
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-lg);
}

.section {
  padding-block: var(--space-5xl);
  position: relative;
}

.section__header {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: var(--space-3xl);
}

.section__eyebrow {
  display: inline-block;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-accent);
  letter-spacing: 0.04em;
  margin-bottom: var(--space-sm);
  position: relative;
  padding-bottom: var(--space-sm);
}

.section__eyebrow::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 50%;
  transform: translateX(50%);
  width: 32px;
  height: 2px;
  background: var(--color-accent);
}

.section__title {
  font-size: var(--fs-3xl);
  font-weight: var(--fw-extrabold);
  margin-bottom: var(--space-md);
  color: var(--color-primary);
}

.section__desc {
  font-size: var(--fs-md);
  line-height: var(--lh-relaxed);
  color: var(--color-text-muted);
}

.section__header--light .section__title {
  color: var(--color-white);
}

.section__header--light .section__desc {
  color: rgba(255, 255, 255, 0.7);
}

.section__header--light .section__eyebrow {
  color: var(--color-accent);
}

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.5rem;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
  border: 2px solid transparent;
  line-height: 1.4;
  position: relative;
  overflow: hidden;
}

.btn--lg {
  padding: 0.95rem 2rem;
  font-size: var(--fs-base);
}

.btn--block {
  width: 100%;
}

.btn--accent {
  background: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
}

.btn--accent:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(242, 140, 40, 0.35);
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.btn--primary:hover {
  background: var(--color-secondary);
  border-color: var(--color-secondary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.45);
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--color-white);
}

/* --------------------------------------------------------------------------
   5. Header
   -------------------------------------------------------------------------- */
.header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: var(--z-header);
  height: var(--header-height);
  background: rgba(11, 37, 69, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background var(--transition), box-shadow var(--transition), height var(--transition);
}

.header--scrolled {
  background: rgba(11, 37, 69, 0.88);
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.2);
  height: 68px;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: var(--space-lg);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  color: var(--color-white);
}

.logo__mark {
  width: 40px;
  height: 40px;
  color: var(--color-secondary);
  display: flex;
}

.logo__mark svg {
  width: 100%;
  height: 100%;
}

.logo__text {
  display: flex;
  flex-direction: column;
}

.logo__name {
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  line-height: 1.2;
  color: var(--color-white);
}

.logo__tagline {
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.55);
  font-weight: var(--fw-regular);
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav__link {
  display: block;
  padding: 0.5rem 0.85rem;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: rgba(255, 255, 255, 0.75);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  position: relative;
}

.nav__link::after {
  content: "";
  position: absolute;
  bottom: 4px;
  right: 0.85rem;
  left: 0.85rem;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition);
}

.nav__link:hover,
.nav__link.active {
  color: var(--color-white);
}

.nav__link.active::after {
  transform: scaleX(1);
}

.header__cta {
  flex-shrink: 0;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  z-index: calc(var(--z-header) + 1);
}

.menu-toggle__bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-white);
  border-radius: 1px;
  transition: transform var(--transition), opacity var(--transition);
  transform-origin: center;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(-45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(45deg);
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  padding-bottom: var(--space-4xl);
  overflow: hidden;
  background: var(--color-primary);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(11, 37, 69, 0.3) 0%, transparent 50%),
    url("../images/images2.jpg") center / cover no-repeat;
  z-index: 0;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(160deg, rgba(11, 37, 69, 0.92) 0%, rgba(19, 64, 116, 0.78) 45%, rgba(11, 37, 69, 0.88) 100%);
}

.hero__grid {
  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;
  animation: gridPulse 8s ease-in-out infinite;
}

.hero__scanline {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(242, 140, 40, 0.4), transparent);
  animation: scanline 6s linear infinite;
  opacity: 0.6;
}

@keyframes gridPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

@keyframes scanline {
  0% { top: 0; opacity: 0; }
  10% { opacity: 0.6; }
  90% { opacity: 0.6; }
  100% { top: 100%; opacity: 0; }
}

.hero__content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-3xl);
  align-items: center;
  padding-block: var(--space-3xl);
}

.hero__eyebrow {
  display: inline-block;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--color-accent);
  margin-bottom: var(--space-lg);
  padding: 0.4rem 1rem;
  border: 1px solid rgba(242, 140, 40, 0.35);
  border-radius: var(--radius-sm);
  background: rgba(242, 140, 40, 0.08);
}

.hero__title {
  font-size: var(--fs-5xl);
  font-weight: var(--fw-extrabold);
  color: var(--color-white);
  margin-bottom: var(--space-lg);
  line-height: 1.35;
}

.hero__desc {
  font-size: var(--fs-md);
  color: rgba(255, 255, 255, 0.72);
  max-width: 560px;
  margin-bottom: var(--space-2xl);
  line-height: var(--lh-relaxed);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.hero__stats-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  min-width: 260px;
  box-shadow: var(--shadow-xl);
}

.stats-card__header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stats-card__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 8px rgba(242, 140, 40, 0.6);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.stats-card__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.stats-card__list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stats-card__list strong {
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  color: var(--color-white);
  font-variant-numeric: tabular-nums;
}

.stats-card__list span {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.55);
}

.hero__scroll {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  color: rgba(255, 255, 255, 0.4);
  font-size: var(--fs-xs);
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.4), transparent);
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50% { transform: scaleY(0.6); opacity: 0.4; }
}

/* --------------------------------------------------------------------------
   7. Statistics
   -------------------------------------------------------------------------- */
.stats {
  background: var(--color-white);
  padding-block: var(--space-3xl);
  border-bottom: 1px solid var(--color-border);
  margin-top: -1px;
  position: relative;
  z-index: 2;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
}

.stats__item {
  text-align: center;
  padding: var(--space-lg);
  position: relative;
}

.stats__item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: var(--color-border);
}

.stats__icon {
  width: 40px;
  height: 40px;
  margin-inline: auto;
  margin-bottom: var(--space-md);
  color: var(--color-secondary);
}

.stats__icon svg {
  width: 100%;
  height: 100%;
}

.stats__number {
  display: block;
  font-size: var(--fs-3xl);
  font-weight: var(--fw-extrabold);
  color: var(--color-primary);
  margin-bottom: var(--space-xs);
  font-variant-numeric: tabular-nums;
}

.stats__label {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  font-weight: var(--fw-medium);
}

/* --------------------------------------------------------------------------
   8. Services
   -------------------------------------------------------------------------- */
.services {
  background: var(--color-bg);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.service-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 3px;
  height: 0;
  background: var(--color-accent);
  transition: height var(--transition);
}

.service-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.service-card:hover::before {
  height: 100%;
}

.service-card__icon {
  width: 48px;
  height: 48px;
  color: var(--color-secondary);
  margin-bottom: var(--space-lg);
  transition: color var(--transition);
}

.service-card__icon svg {
  width: 100%;
  height: 100%;
}

.service-card:hover .service-card__icon {
  color: var(--color-accent);
}

.service-card__title {
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  margin-bottom: var(--space-sm);
  color: var(--color-primary);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.service-card__title span {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--color-text-muted);
}

.service-card__desc {
  font-size: var(--fs-sm);
  line-height: var(--lh-relaxed);
  color: var(--color-text-muted);
}

.service-card--featured {
  background: linear-gradient(145deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  border-color: transparent;
}

.service-card--featured .service-card__icon,
.service-card--featured .service-card__title,
.service-card--featured .service-card__desc {
  color: var(--color-white);
}

.service-card--featured .service-card__title span {
  color: rgba(255, 255, 255, 0.65);
}

.service-card--featured .service-card__desc {
  color: rgba(255, 255, 255, 0.7);
}

.service-card--featured::before {
  background: var(--color-accent);
}

.service-card--featured:hover {
  box-shadow: 0 12px 40px rgba(11, 37, 69, 0.3);
}

/* --------------------------------------------------------------------------
   9. Industries
   -------------------------------------------------------------------------- */
.industries {
  background: var(--color-primary);
  position: relative;
  overflow: hidden;
}

.industries::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}

.industries__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-lg);
  position: relative;
}

.industry-card {
  flex: 0 0 calc((100% - 3 * var(--space-lg)) / 4);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  text-align: center;
  transition: all var(--transition);
  cursor: default;
  box-sizing: border-box;
}

.industry-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(242, 140, 40, 0.4);
  transform: translateY(-3px);
}

.industry-card__icon {
  width: 56px;
  height: 56px;
  margin-inline: auto;
  margin-bottom: var(--space-lg);
  color: var(--color-accent);
  transition: transform var(--transition);
}

.industry-card:hover .industry-card__icon {
  transform: scale(1.08);
}

.industry-card__icon svg {
  width: 100%;
  height: 100%;
}

.industry-card__title {
  font-size: var(--fs-md);
  font-weight: var(--fw-bold);
  color: var(--color-white);
  margin-bottom: var(--space-sm);
}

.industry-card__desc {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.55);
  line-height: var(--lh-normal);
}


/* --------------------------------------------------------------------------
   10. Why Choose Us
   -------------------------------------------------------------------------- */
.why {
  background: var(--color-white);
}

.why__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.why-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  position: relative;
  transition: all var(--transition);
  overflow: hidden;
}

.why-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.why-card__number {
  position: absolute;
  top: var(--space-lg);
  left: var(--space-lg);
  font-size: var(--fs-3xl);
  font-weight: var(--fw-extrabold);
  color: var(--color-border);
  line-height: 1;
  transition: color var(--transition);
}

.why-card:hover .why-card__number {
  color: rgba(242, 140, 40, 0.25);
}

.why-card__icon {
  width: 48px;
  height: 48px;
  color: var(--color-secondary);
  margin-bottom: var(--space-lg);
}

.why-card__icon svg {
  width: 100%;
  height: 100%;
}

.why-card__title {
  font-size: var(--fs-xl);
  margin-bottom: var(--space-md);
}

.why-card__desc {
  font-size: var(--fs-base);
  line-height: var(--lh-relaxed);
}

/* --------------------------------------------------------------------------
   11. Projects
   -------------------------------------------------------------------------- */
.projects {
  background: var(--color-bg);
}

.projects__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-lg);
}

.project-card {
  grid-column: span 2;
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: all var(--transition);
}

.project-card:nth-child(1),
.project-card:nth-child(2) {
  grid-column: span 3;
}

.project-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.project-card:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.project-card__image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--color-primary);
}

.project-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.project-card:hover .project-card__image img {
  transform: scale(1.06);
}

.project-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 37, 69, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}

.project-card:hover .project-card__overlay {
  opacity: 1;
}

.project-card__view {
  padding: 0.6rem 1.4rem;
  background: var(--color-accent);
  color: var(--color-white);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  border-radius: var(--radius-sm);
  transform: translateY(8px);
  transition: transform var(--transition);
}

.project-card:hover .project-card__view {
  transform: translateY(0);
}

.project-card__info {
  padding: var(--space-lg);
}

.project-card__tag {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  color: var(--color-accent);
  margin-bottom: var(--space-xs);
}

.project-card__title {
  font-size: var(--fs-md);
  font-weight: var(--fw-bold);
}

/* --------------------------------------------------------------------------
   12. Training
   -------------------------------------------------------------------------- */
.training {
  background: var(--color-white);
}

.training__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}

.training__content .section__title {
  text-align: right;
  margin-bottom: var(--space-lg);
}

.training__content .section__eyebrow {
  text-align: right;
}

.training__content .section__eyebrow::after {
  right: 0;
  transform: none;
}

.training__intro {
  font-size: var(--fs-md);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--space-2xl);
}

.training__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.training__list li {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

.training__list-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-secondary);
}

.training__list-icon svg {
  width: 22px;
  height: 22px;
}

.training__list strong {
  display: block;
  font-size: var(--fs-base);
  color: var(--color-primary);
  margin-bottom: 2px;
}

.training__list span {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
}

.training__panel {
  background: linear-gradient(160deg, var(--color-primary), var(--color-secondary));
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}

.training__panel::before {
  content: "";
  position: absolute;
  top: -40%;
  left: -20%;
  width: 60%;
  height: 80%;
  background: radial-gradient(circle, rgba(242, 140, 40, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.training__panel-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--fs-sm);
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.training__panel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-success);
  box-shadow: 0 0 8px rgba(30, 125, 50, 0.5);
}

.training__courses {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  position: relative;
}

.training__course {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--fs-sm);
  transition: background var(--transition);
}

.training__course:hover {
  background: rgba(255, 255, 255, 0.1);
}

.training__course-code {
  font-weight: var(--fw-bold);
  font-size: var(--fs-xs);
  color: var(--color-accent);
  background: rgba(242, 140, 40, 0.15);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  letter-spacing: 0.04em;
  font-family: ui-monospace, monospace;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   13. Certifications
   -------------------------------------------------------------------------- */
.certifications {
  background: var(--color-bg-alt);
  position: relative;
}

.certifications::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border), transparent);
}

.certifications__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-lg);
}

.cert-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-xl) var(--space-md);
  text-align: center;
  transition: all var(--transition);
}

.cert-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-secondary);
  transform: translateY(-3px);
}

.cert-card__badge {
  width: 64px;
  height: 64px;
  margin-inline: auto;
  margin-bottom: var(--space-md);
  color: var(--color-secondary);
  transition: color var(--transition);
}

.cert-card:hover .cert-card__badge {
  color: var(--color-accent);
}

.cert-card__badge svg {
  width: 100%;
  height: 100%;
}

.cert-card__title {
  font-size: var(--fs-base);
  font-weight: var(--fw-bold);
  margin-bottom: var(--space-xs);
  letter-spacing: 0.02em;
}

.cert-card__desc {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   14. Clients
   -------------------------------------------------------------------------- */
.clients {
  background: var(--color-white);
}

.clients__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.client-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  padding: var(--space-xl) var(--space-lg);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-light);
  transition: all var(--transition);
  min-height: 120px;
  text-align: center;
  filter: grayscale(100%);
  opacity: 0.7;
}

.client-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
  color: var(--color-primary);
  border-color: var(--color-secondary);
  box-shadow: var(--shadow-sm);
}

.client-logo svg {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.client-logo__name {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-normal);
  color: inherit;
}

/* --------------------------------------------------------------------------
   15. Contact
   -------------------------------------------------------------------------- */
.contact {
  background: var(--color-bg);
}

.contact__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

.contact__info-card {
  background: var(--color-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  color: var(--color-white);
  height: 100%;
}

.contact__info-title {
  font-size: var(--fs-xl);
  color: var(--color-white);
  margin-bottom: var(--space-2xl);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.contact__details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
  margin-bottom: 0;
}

.contact__details li {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

.contact__detail-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  color: var(--color-accent);
}

.contact__detail-icon svg {
  width: 20px;
  height: 20px;
}

.contact__details strong {
  display: block;
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.5);
  font-weight: var(--fw-medium);
  margin-bottom: 2px;
}

.contact__details a,
.contact__details span {
  font-size: var(--fs-base);
  color: var(--color-white);
}

.contact__details a:hover {
  color: var(--color-accent);
}

.contact__map {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact__map-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-3xl) var(--space-lg);
  background:
    linear-gradient(135deg, rgba(19, 64, 116, 0.6), rgba(11, 37, 69, 0.8)),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 19px,
      rgba(255, 255, 255, 0.03) 19px,
      rgba(255, 255, 255, 0.03) 20px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 19px,
      rgba(255, 255, 255, 0.03) 19px,
      rgba(255, 255, 255, 0.03) 20px
    );
  color: rgba(255, 255, 255, 0.5);
  font-size: var(--fs-sm);
  min-height: 160px;
}

.contact__map-placeholder svg {
  width: 32px;
  height: 32px;
  color: var(--color-accent);
  opacity: 0.7;
}

.contact__form-wrap {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.form-group label span {
  color: var(--color-accent);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
  color: var(--color-text);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-text-light);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(19, 64, 116, 0.1);
  background: var(--color-white);
}

.form-group input.invalid,
.form-group textarea.invalid {
  border-color: #c0392b;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-error {
  display: block;
  font-size: var(--fs-xs);
  color: #c0392b;
  margin-top: var(--space-xs);
  min-height: 1.2em;
}

.form-success {
  margin-top: var(--space-lg);
  padding: var(--space-md);
  background: rgba(30, 125, 50, 0.08);
  border: 1px solid rgba(30, 125, 50, 0.25);
  border-radius: var(--radius-sm);
  color: var(--color-success);
  font-size: var(--fs-sm);
  text-align: center;
}

/* --------------------------------------------------------------------------
   16. Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--color-primary);
  color: rgba(255, 255, 255, 0.7);
  padding-top: var(--space-4xl);
  padding-bottom: var(--space-xl);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-3xl);
  padding-bottom: var(--space-3xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.logo--footer .logo__name {
  color: var(--color-white);
}

.footer__about {
  margin-top: var(--space-lg);
  font-size: var(--fs-sm);
  line-height: var(--lh-relaxed);
  color: rgba(255, 255, 255, 0.55);
  max-width: 320px;
}

.footer__social {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.footer__social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: rgba(255, 255, 255, 0.6);
  transition: all var(--transition);
}

.footer__social-link:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-white);
}

.footer__social-link svg {
  width: 18px;
  height: 18px;
}

.footer__heading {
  font-size: var(--fs-base);
  font-weight: var(--fw-bold);
  color: var(--color-white);
  margin-bottom: var(--space-lg);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer__links a {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.55);
  transition: color var(--transition), padding-right var(--transition);
}

.footer__links a:hover {
  color: var(--color-accent);
  padding-right: 4px;
}

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.55);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.4);
}

/* --------------------------------------------------------------------------
   17. Modal
   -------------------------------------------------------------------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

.modal[hidden] {
  display: none;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
  display: flex;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 37, 69, 0.85);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.modal__dialog {
  position: relative;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  transform: translateY(20px) scale(0.98);
  transition: transform var(--transition);
}

.modal.is-open .modal__dialog {
  transform: translateY(0) scale(1);
}

.modal__close {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  z-index: 2;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(11, 37, 69, 0.7);
  color: var(--color-white);
  border-radius: 50%;
  transition: background var(--transition);
}

.modal__close:hover {
  background: var(--color-accent);
}

.modal__close svg {
  width: 20px;
  height: 20px;
}

.modal__image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--color-primary);
}

.modal__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal__body {
  padding: var(--space-2xl);
}

.modal__tag {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

.modal__title {
  font-size: var(--fs-2xl);
  margin-bottom: var(--space-md);
}

.modal__desc {
  font-size: var(--fs-base);
  line-height: var(--lh-relaxed);
}

/* --------------------------------------------------------------------------
   18. Back to Top
   -------------------------------------------------------------------------- */
.back-to-top {
  position: fixed;
  bottom: var(--space-xl);
  left: var(--space-xl);
  z-index: var(--z-back-top);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all var(--transition);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--color-accent);
}

.back-to-top svg {
  width: 22px;
  height: 22px;
}

/* --------------------------------------------------------------------------
   19. Scroll Reveal
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--delay {
  transition-delay: 0.15s;
}

.reveal--delay-1 {
  transition-delay: 0.1s;
}

.reveal--delay-2 {
  transition-delay: 0.2s;
}

.reveal--delay-3 {
  transition-delay: 0.3s;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero__grid,
  .hero__scanline,
  .stats-card__dot,
  .hero__scroll-line {
    animation: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* --------------------------------------------------------------------------
   20. Responsive
   -------------------------------------------------------------------------- */

/* Large Desktop */
@media (min-width: 1400px) {
  :root {
    --container-max: 1280px;
  }
}

/* Tablet Landscape / Small Desktop */
@media (max-width: 1100px) {
  .services__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .industry-card {
    flex-basis: calc((100% - 2 * var(--space-lg)) / 3);
  }

  .certifications__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
  }

  .nav__link {
    padding: 0.5rem 0.6rem;
    font-size: var(--fs-xs);
  }
}

/* Tablet */
@media (max-width: 900px) {
  :root {
    --header-height: 70px;
    --space-5xl: 5rem;
  }

  .header__cta {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 85vw);
    height: 100vh;
    height: 100dvh;
    background: var(--color-primary);
    padding: calc(var(--header-height) + var(--space-xl)) var(--space-xl) var(--space-xl);
    transform: translateX(100%);
    transition: transform var(--transition);
    box-shadow: var(--shadow-xl);
    overflow-y: auto;
    z-index: var(--z-header);
  }

  .nav.is-open {
    transform: translateX(0);
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-xs);
  }

  .nav__link {
    padding: var(--space-md);
    font-size: var(--fs-base);
    border-radius: var(--radius-md);
  }

  .nav__link::after {
    display: none;
  }

  .nav__link.active,
  .nav__link:hover {
    background: rgba(255, 255, 255, 0.08);
  }

  body.nav-open {
    overflow: hidden;
  }

  body.nav-open::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: calc(var(--z-header) - 1);
  }

  .hero__content {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .hero__stats-card {
    max-width: 400px;
  }

  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats__item:nth-child(2)::after {
    display: none;
  }

  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .industry-card {
    flex-basis: calc((100% - var(--space-lg)) / 2);
  }

  .why__grid {
    grid-template-columns: 1fr;
  }

  .projects__grid {
    grid-template-columns: 1fr 1fr;
  }

  .project-card,
  .project-card:nth-child(1),
  .project-card:nth-child(2) {
    grid-column: span 1;
  }

  .training__layout {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .contact__layout {
    grid-template-columns: 1fr;
  }

  .clients__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 600px) {
  :root {
    --space-5xl: 4rem;
    --space-4xl: 3rem;
    --fs-3xl: 1.75rem;
  }

  .container {
    padding-inline: var(--space-md);
  }

  .section__header {
    margin-bottom: var(--space-2xl);
  }

  .hero {
    min-height: auto;
    padding-bottom: var(--space-3xl);
  }

  .hero__title {
    font-size: clamp(1.6rem, 7vw, 2.25rem);
  }

  .hero__desc {
    font-size: var(--fs-base);
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .hero__stats-card {
    min-width: 0;
    width: 100%;
  }

  .hero__scroll {
    display: none;
  }

  .stats__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
  }

  .stats__item {
    padding: var(--space-md);
  }

  .stats__item::after {
    display: none !important;
  }

  .stats__number {
    font-size: var(--fs-2xl);
  }

  .services__grid {
    grid-template-columns: 1fr;
  }

  .industry-card {
    flex-basis: 100%;
  }

  .projects__grid {
    grid-template-columns: 1fr;
  }

  .certifications__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .clients__grid {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .back-to-top {
    bottom: var(--space-md);
    left: var(--space-md);
    width: 44px;
    height: 44px;
  }

  .logo__tagline {
    display: none;
  }

  .contact__form-wrap,
  .contact__info-card {
    padding: var(--space-xl);
  }

  .contact__details {
    grid-template-columns: 1fr;
  }

  .why-card {
    padding: var(--space-xl);
  }

  .modal__body {
    padding: var(--space-lg);
  }
}

/* Very Small */
@media (max-width: 380px) {
  .certifications__grid {
    grid-template-columns: 1fr;
  }

  .stats-card__list strong {
    font-size: var(--fs-xl);
  }
}
