/* ==========================================================================
   NTX DYNAMICS - DESIGN SYSTEM & STYLESHEET
   ========================================================================== */

/* 1. CSS VARIABLES & THEME TOKENS */
:root {
  /* Light Theme Palette (Default matching user image) */
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-header: rgba(248, 250, 252, 0.92);
  --notch-bg: #ffffff;
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  
  --accent-blue: #0284c7;
  --accent-blue-hover: #0369a1;
  --accent-glow: rgba(2, 132, 199, 0.15);
  
  --border-color: #cbd5e1;
  --border-light: #e2e8f0;
  --notch-line-color: rgba(15, 23, 42, 0.4);
  
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 32px rgba(15, 23, 42, 0.12);
  
  --font-main: 'Inter', sans-serif;
  --font-header: 'Space Grotesk', sans-serif;
  --font-logo: 'Michroma', sans-serif;
  
  --header-height: 100px;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

/* Dark Theme Variables */
body.dark-theme {
  --bg-primary: #090d16;
  --bg-secondary: #111827;
  --bg-card: #1e293b;
  --bg-header: rgba(9, 13, 22, 0.92);
  --notch-bg: #111827;
  
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  
  --accent-blue: #38bdf8;
  --accent-blue-hover: #7dd3fc;
  --accent-glow: rgba(56, 189, 248, 0.2);
  
  --border-color: #334155;
  --border-light: #1e293b;
  --notch-line-color: rgba(248, 250, 252, 0.4);
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 32px rgba(0, 0, 0, 0.5);
}

/* 2. BASE & RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
}

/* 3. HEADER NAVIGATION - MATCHING SCREENSHOT EXACTLY */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--bg-header);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  transition: background-color var(--transition-normal);
}

.header-inner {
  max-width: 1300px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  position: relative;
}

.nav-group {
  display: flex;
  align-items: center;
  gap: 2rem;
  z-index: 5;
}

.nav-link {
  font-family: var(--font-header);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  text-transform: uppercase;
  position: relative;
  padding: 0.5rem 0;
  transition: color var(--transition-fast);
}

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

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

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

/* CENTER NOTCHED CONTAINER */
.notch-center-container {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  height: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  z-index: 20;
}

.notch-frame {
  position: relative;
  padding: 6px 36px 10px 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notch-logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-logo {
  height: 96px;
  width: auto;
  display: block;
  transition: opacity var(--transition-fast);
}

.header-logo:hover {
  opacity: 0.9;
}

/* HEADER NOTCH BORDER LINE (45° SLOPES, ROUNDED CORNERS, FADED EDGES) */
.header-notch-line-wrapper {
  position: absolute;
  top: 100%;
  margin-top: -2px;
  left: 0;
  right: 0;
  height: 36px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  pointer-events: none;
  z-index: 15;
  mask-image: linear-gradient(to right, transparent 0%, #000 12%, #000 88%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 12%, #000 88%, transparent 100%);
}

.notch-line-left,
.notch-line-right {
  flex: 1;
  height: 1.5px;
  background-color: var(--notch-line-color);
  margin-top: 1.5px;
  transition: background-color var(--transition-normal);
}

.header-notch-svg {
  width: 360px;
  height: 36px;
  flex-shrink: 0;
  display: block;
}

.header-notch-fill {
  fill: var(--bg-primary);
  transition: fill var(--transition-normal);
}

.header-notch-path {
  stroke: var(--notch-line-color);
  stroke-width: 1.5px;
  fill: none;
  transition: stroke var(--transition-normal);
}

/* THEME TOGGLE & BUTTONS */
.theme-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  background: var(--bg-card);
  transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  transform: scale(1.05);
}

.sun-icon { display: block; }
.moon-icon { display: none; }

body.dark-theme .sun-icon { display: none; }
body.dark-theme .moon-icon { display: block; }

/* LANGUAGE SWITCHER */
.lang-toggle-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 4px 10px;
  cursor: pointer;
  color: var(--text-primary);
  transition: all var(--transition-fast);
  height: 38px;
}

.lang-toggle-btn:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  transform: scale(1.05);
}

.lang-text-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-family: var(--font-header);
  font-size: 9px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.05em;
}

.lang-text-stack span {
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.lang-text-stack span.active {
  color: var(--text-primary);
  font-weight: 900;
}

.lang-toggle-btn:hover .lang-text-stack span.active {
  color: var(--accent-blue);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 32px;
  height: 32px;
  justify-content: center;
  align-items: center;
}

.mobile-menu-btn span {
  width: 24px;
  height: 2px;
  background-color: var(--text-primary);
  transition: all var(--transition-fast);
}

/* MOBILE NAV DRAWER */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1050;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  transform: translateX(100%);
  width: 300px;
  height: 100vh;
  background: var(--bg-card);
  z-index: 1100;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-normal);
  display: flex;
  flex-direction: column;
  visibility: hidden;
}

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

.mobile-nav-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
}

.mobile-logo {
  height: 72px;
}

.mobile-close-btn {
  font-size: 2rem;
  color: var(--text-primary);
  line-height: 1;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-link {
  font-family: var(--font-header);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.mobile-link.active,
.mobile-link:hover {
  color: var(--accent-blue);
}

.mobile-drawer-actions {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: flex-start;
}

.mobile-drawer-actions .lang-toggle-btn,
.mobile-drawer-actions .theme-toggle-btn {
  display: flex;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
}

/* 4. HERO SECTION */
.hero-section {
  position: relative;
  min-height: 90vh;
  padding-top: calc(var(--header-height) + 4rem);
  padding-bottom: 4rem;
  display: flex;
  align-items: center;
  background: radial-gradient(circle at 50% 20%, var(--accent-glow) 0%, transparent 60%);
  overflow: hidden;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--border-light) 1px, transparent 1px),
                    linear-gradient(90deg, var(--border-light) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.4;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000 70%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000 70%, transparent 100%);
  z-index: 1;
}

.hero-container {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-logo);
  font-size: 0.85rem;
  letter-spacing: 0.35em;
  color: var(--accent-blue);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 0.4rem 1.2rem;
  border-radius: 30px;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.hero-title {
  font-family: var(--font-header);
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.accent-text {
  color: var(--accent-blue);
  background: linear-gradient(135deg, var(--accent-blue), #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  margin-bottom: 4rem;
}

/* BUTTON STYLES */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  font-family: var(--font-header);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  border-radius: 6px;
  transition: all var(--transition-fast);
}

.btn-primary {
  background: var(--accent-blue);
  color: #ffffff;
  box-shadow: 0 4px 14px var(--accent-glow);
}

.btn-primary:hover {
  background: var(--accent-blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--accent-glow);
}

.btn-outline {
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  background: var(--bg-card);
}

.btn-outline:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
}

/* METRICS COUNTER BAR */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast);
}

.metric-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-blue);
}

.metric-number {
  font-family: var(--font-header);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--accent-blue);
  margin-bottom: 0.2rem;
}

.metric-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* 5. GENERAL SECTION LAYOUTS */
section {
  padding: 5rem 0;
  position: relative;
}

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

.section-tag {
  font-family: var(--font-header);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent-blue);
  display: block;
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-header);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

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

/* 6. ABOUT SECTION */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 2.2rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.about-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-blue);
  box-shadow: var(--shadow-md);
}

.about-icon {
  width: 56px;
  height: 56px;
  background: var(--accent-glow);
  color: var(--accent-blue);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.about-card h3 {
  font-family: var(--font-header);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.about-card p {
  color: var(--text-secondary);
  font-size: 0.98rem;
}

/* 7. SOLUTIONS SECTION */
.solutions-section {
  background-color: var(--bg-secondary);
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.solution-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-fast);
}

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

.solution-card.full-width {
  grid-column: span 2;
}

.solution-badge {
  font-family: var(--font-header);
  font-size: 2rem;
  font-weight: 700;
  color: var(--border-color);
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  transition: color var(--transition-fast);
}

.solution-card:hover .solution-badge {
  color: var(--accent-blue);
}

.solution-card h3 {
  font-family: var(--font-header);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.solution-card p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.solution-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.solution-list li {
  font-size: 0.95rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.solution-list li::before {
  content: '✓';
  color: var(--accent-blue);
  font-weight: bold;
}

/* 8. PROJECTS SECTION */
.project-filters {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 3rem;
}

.filter-btn {
  font-family: var(--font-header);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  background: var(--bg-card);
  transition: all var(--transition-fast);
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--accent-blue);
  color: #ffffff;
  border-color: var(--accent-blue);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-blue);
}

.project-img-box {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.project-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-logo);
  font-size: 1rem;
  letter-spacing: 0.1em;
  color: #ffffff;
  font-weight: bold;
}

.calib-bg { background: linear-gradient(135deg, #0284c7, #0f172a); }
.auto-bg { background: linear-gradient(135deg, #0d9488, #0f172a); }
.machine-bg { background: linear-gradient(135deg, #f59e0b, #0f172a); }
.energy-bg { background: linear-gradient(135deg, #f59e0b, #e11d48); }

.project-category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-family: var(--font-header);
  font-size: 0.8rem;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
}

.project-content {
  padding: 1.5rem;
}

.project-content h3 {
  font-family: var(--font-header);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.project-content p {
  color: var(--text-secondary);
  font-size: 0.92rem;
}

/* 9. CAREERS SECTION */
.careers-section {
  background-color: var(--bg-secondary);
}

.jobs-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.job-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 1.8rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  transition: all var(--transition-fast);
}

.job-card:hover {
  border-color: var(--accent-blue);
  box-shadow: var(--shadow-sm);
}

.job-info h3 {
  font-family: var(--font-header);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.job-meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* 10. CONTACTS SECTION */
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
}

.contact-info-card,
.contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.contact-info-card h3 {
  font-family: var(--font-header);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.contact-sub {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.info-item {
  display: flex;
  gap: 1.2rem;
  margin-bottom: 1.5rem;
}

.info-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-glow);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.info-item strong {
  display: block;
  font-family: var(--font-header);
  font-size: 1.05rem;
}

.info-item p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* FORM STYLES */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-family: var(--font-header);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 0.98rem;
  transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-blue);
}

.form-response {
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  border-radius: 6px;
  font-size: 0.95rem;
  display: none;
}

.form-response.success {
  display: block;
  background: rgba(34, 197, 94, 0.15);
  color: #166534;
  border: 1px solid #86efac;
}

/* 11. FOOTER */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
  padding: 3rem 0;
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.8rem;
  text-align: center;
}

.footer-brand p {
  font-family: var(--font-logo);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: var(--text-muted);
  margin-top: 0.6rem;
}

.footer-logo {
  height: 80px;
}

.footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  font-family: var(--font-header);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

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

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-light);
  padding-top: 1.5rem;
  width: 100%;
}

/* 12. MODAL STYLES */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  max-width: 500px;
  width: 100%;
  padding: 2.5rem;
  position: relative;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: transform var(--transition-normal);
}

.modal-backdrop.open .modal-box {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  font-size: 1.8rem;
  color: var(--text-muted);
}

.modal-title {
  font-family: var(--font-header);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.modal-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* 13. RESPONSIVE MEDIA QUERIES */
@media (max-width: 1200px) {
  .header-inner {
    padding: 0 1rem;
  }
  .nav-group {
    gap: 1rem;
  }
  .nav-link {
    font-size: 0.95rem;
    letter-spacing: 0.08em;
  }
  .theme-toggle-btn,
  .lang-toggle-btn {
    padding: 4px 8px;
  }
}

@media (max-width: 1024px) {
  .hero-title { font-size: 2.8rem; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .solutions-grid {
    grid-template-columns: 1fr;
  }
  .solution-card.full-width {
    grid-column: span 1;
  }
}

@media (max-width: 768px) {
  .nav-group { display: none; }
  .mobile-menu-btn { display: flex; }
  
  .header-notch-line-wrapper {
    display: none;
  }

  .site-header {
    border-bottom: 1px solid var(--border-light);
  }
  
  .header-inner {
    justify-content: space-between;
    padding: 0 1rem;
  }
  
  .notch-center-container {
    position: relative;
    left: auto;
    transform: none;
    height: auto;
  }
  
  .notch-frame {
    padding: 4px 8px;
  }

  .header-logo {
    height: 48px;
  }

  .hero-title { font-size: 2.2rem; }
  .about-grid { grid-template-columns: 1fr; }
  .solutions-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .contacts-grid { grid-template-columns: 1fr; }
  
  .job-card {
    flex-direction: column;
    align-items: flex-start;
  }
}
