/* ==========================================================================
   DESIGN SYSTEM & CUSTOM VARIABLES (Dynetic System Service)
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  /* Colors - Dark Theme (Default) */
  --bg-base: #080c14;
  --bg-surface: #0f172a;
  --bg-card: rgba(15, 23, 42, 0.65);
  --border-color: rgba(255, 255, 255, 0.08);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --accent-color: #0d9488; /* Teal-600 */
  --accent-glow: rgba(13, 148, 136, 0.35);
  --accent-gradient: linear-gradient(135deg, #0d9488 0%, #06b6d4 100%);
  --accent-hover: #0f766e;
  
  --success-color: #10b981;
  --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  
  /* Fonts */
  --font-heading: 'Outfit', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Animations & Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Light Theme Variables */
body.light-theme {
  --bg-base: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.75);
  --border-color: rgba(0, 0, 0, 0.08);
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  
  --accent-color: #0f766e; /* Darker Teal */
  --accent-glow: rgba(15, 118, 110, 0.15);
  --accent-gradient: linear-gradient(135deg, #0f766e 0%, #0891b2 100%);
  --accent-hover: #115e59;
  
  --card-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.08);
}

/* ==========================================================================
   RESET & GLOBAL STYLES
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  transition: background-color 0.5s ease, color 0.5s ease;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  font-family: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

ul {
  list-style: none;
}

/* Scrollbar customization */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
  background: var(--text-muted);
  border-radius: 5px;
  border: 2px solid var(--bg-base);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-color);
}

/* ==========================================================================
   LAYOUT & CONTAINER
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 8rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section-subtitle {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 1rem;
  display: inline-block;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.125rem;
}

/* ==========================================================================
   BUTTONS STYLES
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #ffffff;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #06b6d4 0%, #0d9488 100%);
  opacity: 0;
  z-index: -1;
  transition: var(--transition-smooth);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px var(--accent-glow);
}

.btn-secondary {
  border: 1px solid var(--border-color);
  background-color: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background-color: var(--border-color);
  transform: translateY(-2px);
}

/* ==========================================================================
   HEADER / NAVIGATION
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition-smooth);
  padding: 1.5rem 0;
}

.header.scrolled {
  padding: 1rem 0;
  background-color: rgba(8, 12, 20, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
}

body.light-theme .header.scrolled {
  background-color: rgba(248, 250, 252, 0.8);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  transition: var(--transition-smooth);
}

.logo:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

.logo-img {
  height: 44px;
  width: auto;
  display: block;
}

.coreteel-logo-img {
  height: 129px;
  width: auto;
  max-width: 100%;
  display: block;
}

.coreteel-logo-img {
  height: 76px;
  width: auto;
  max-width: 100%;
  display: block;
  transition: var(--transition-smooth);
}

.airgentis-logo-img {
  height: 38px;
  width: auto;
  max-width: 100%;
  display: block;
  transition: var(--transition-smooth);
  filter: invert(1) hue-rotate(180deg);
}

/* Clear filter in light theme since the logo already has a white bg and dark blue text */
body.light-theme .airgentis-logo-img {
  filter: none;
}

.airgentis-banner-wrapper:hover {
  transform: translateY(-2px);
  border-color: rgba(6, 182, 212, 0.4) !important;
  box-shadow: 0 8px 24px rgba(6, 182, 212, 0.15);
}

.nav {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 0.5rem 0;
}

.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-gradient);
  transition: var(--transition-smooth);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.02);
  transition: var(--transition-smooth);
}

.theme-toggle:hover {
  background-color: var(--border-color);
  transform: scale(1.05);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--text-primary);
  stroke-width: 2;
}

.theme-toggle .sun-icon {
  display: none;
}

body.light-theme .theme-toggle .moon-icon {
  display: none;
}

body.light-theme .theme-toggle .sun-icon {
  display: block;
}

/* Mobile Menu Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.burger span {
  width: 28px;
  height: 3px;
  background-color: var(--text-primary);
  border-radius: 3px;
  transition: var(--transition-smooth);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 8rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-size: cover;
  background-position: center;
  opacity: 0.15;
}

body.light-theme .hero-bg {
  opacity: 0.06;
}

/* Dynamic background gradients */
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.15) 0%, rgba(6, 182, 212, 0) 70%);
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -10%;
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.1) 0%, rgba(13, 148, 136, 0) 70%);
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.hero-subtitle {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: rgba(13, 148, 136, 0.1);
  border: 1px solid rgba(13, 148, 136, 0.2);
  border-radius: 50px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-color);
  letter-spacing: 0.1em;
  margin-bottom: 2rem;
  text-transform: uppercase;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 4.25rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 2rem;
  letter-spacing: -0.03em;
}

.hero-title span {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  max-width: 600px;
}

.hero-btns {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.hero-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-bg {
  position: absolute;
  width: 110%;
  height: 110%;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.2) 0%, rgba(0,0,0,0) 70%);
  z-index: -1;
  border-radius: 50%;
}

.hero-img-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
  transform: perspective(1000px) rotateY(-10deg) rotateX(10deg);
  transition: var(--transition-smooth);
}

.hero-img-card:hover {
  transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
}

.hero-img-card img {
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* ==========================================================================
   STATS SECTION
   ========================================================================== */
.stats {
  padding: 4rem 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  background-color: rgba(15, 23, 42, 0.2);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--text-primary);
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
}

/* ==========================================================================
   SERVICES SECTION (НАПРАВЛЕНИЯ РАБОТЫ)
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.innovations-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

@media screen and (max-width: 768px) {
  .innovations-grid {
    grid-template-columns: 1fr;
  }
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 3rem 2.5rem;
  box-shadow: var(--card-shadow);
  transition: var(--transition-bounce);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(300px circle at var(--x, 0px) var(--y, 0px), rgba(13, 148, 136, 0.08), transparent 80%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.service-card:hover::before {
  opacity: 1;
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: rgba(13, 148, 136, 0.3);
  box-shadow: 0 20px 40px -15px rgba(13, 148, 136, 0.2);
}

.service-icon {
  width: 60px;
  height: 60px;
  background: rgba(13, 148, 136, 0.1);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-color);
  margin-bottom: 2rem;
  transition: var(--transition-smooth);
}

.service-card:hover .service-icon {
  background: var(--accent-gradient);
  color: #fff;
  transform: scale(1.1) rotate(5deg);
}

.service-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.service-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.service-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ==========================================================================
   PORTFOLIO / CASES SECTION (КЕЙСЫ)
   ========================================================================== */
.portfolio-filter {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 4rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.6rem 1.5rem;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid var(--border-color);
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.02);
  transition: var(--transition-smooth);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--accent-gradient);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 15px var(--accent-glow);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  transition: var(--transition-smooth);
}

.portfolio-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.portfolio-card:hover {
  transform: translateY(-5px);
  border-color: rgba(13, 148, 136, 0.2);
}

.portfolio-img-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background-color: rgba(0, 0, 0, 0.2);
}

.portfolio-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-card:hover .portfolio-img-wrapper img {
  transform: scale(1.08);
}

.portfolio-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--accent-color);
  font-weight: 600;
  font-size: 0.75rem;
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  text-transform: uppercase;
}

.portfolio-info {
  padding: 1.75rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.portfolio-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.portfolio-desc {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.portfolio-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--accent-color);
}

.portfolio-link svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2.5;
  transition: transform 0.3s ease;
}

.portfolio-card:hover .portfolio-link svg {
  transform: translateX(4px);
}

/* ==========================================================================
   INTERACTIVE CALCULATOR SECTION
   ========================================================================== */
.calc-container {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 32px;
  padding: 4rem;
  box-shadow: var(--card-shadow);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
}

.calc-title {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.calc-desc {
  color: var(--text-secondary);
  margin-bottom: 3rem;
}

.calc-options {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.calc-group-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.calc-services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.calc-checkbox-card {
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.01);
  transition: var(--transition-smooth);
}

.calc-checkbox-card:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(13, 148, 136, 0.2);
}

.calc-checkbox-card.selected {
  border-color: var(--accent-color);
  background: rgba(13, 148, 136, 0.05);
}

.calc-checkbox-card input {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  accent-color: var(--accent-color);
  margin-top: 0.15rem;
}

.calc-checkbox-label {
  display: flex;
  flex-direction: column;
}

.calc-label-title {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.calc-label-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.calc-range-wrapper {
  margin-top: 1rem;
}

.calc-range-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  font-weight: 500;
  font-size: 0.95rem;
}

.calc-range-val {
  color: var(--accent-color);
  font-weight: 700;
}

.calc-range {
  width: 100%;
  height: 6px;
  background: var(--border-color);
  border-radius: 5px;
  outline: none;
  accent-color: var(--accent-color);
}

.calc-summary {
  background: rgba(8, 12, 20, 0.4);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

body.light-theme .calc-summary {
  background: rgba(255, 255, 255, 0.5);
}

.calc-summary-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.75rem;
}

.calc-summary-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.calc-summary-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.calc-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: 1px dashed var(--border-color);
  padding-top: 1.5rem;
  margin-bottom: 2.5rem;
}

.calc-total-label {
  font-weight: 700;
  font-size: 1.1rem;
}

.calc-total-price {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-color);
}

/* ==========================================================================
   PARTNERS / CAROUSEL
   ========================================================================== */
.partners {
  padding: 5rem 0;
  background: rgba(15, 23, 42, 0.1);
  overflow: hidden;
  border-top: 1px solid var(--border-color);
}

.partners-slider {
  display: flex;
  width: max-content;
  animation: scrollLogos 30s linear infinite;
  gap: 5rem;
  align-items: center;
}

.partners-slider:hover {
  animation-play-state: paused;
}

.partner-logo {
  height: 50px;
  opacity: 0.4;
  transition: var(--transition-smooth);
  object-fit: contain;
  filter: grayscale(1) brightness(2);
}

body.light-theme .partner-logo {
  filter: grayscale(1) contrast(1.5);
  opacity: 0.5;
}

.partner-logo:hover {
  opacity: 1;
  filter: none;
}

@keyframes scrollLogos {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==========================================================================
   CONTACTS & FORM SECTION
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.contact-item {
  display: flex;
  gap: 1.5rem;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: rgba(13, 148, 136, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-color);
  flex-shrink: 0;
}

.contact-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.contact-details h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.contact-details p, .contact-details a {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.contact-details a:hover {
  color: var(--accent-color);
}

.contact-map-wrapper {
  margin-top: 2rem;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  height: 220px;
  box-shadow: var(--card-shadow);
}

.contact-map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.8) invert(0.9);
}

body.light-theme .contact-map-wrapper iframe {
  filter: none;
}

.contact-form-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 28px;
  padding: 3.5rem;
  box-shadow: var(--card-shadow);
}

.form-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 2rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.form-control {
  width: 100%;
  padding: 0.85rem 1.25rem;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.form-control:focus {
  border-color: var(--accent-color);
  background-color: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 0 4px var(--accent-glow);
}

body.light-theme .form-control {
  background-color: rgba(0, 0, 0, 0.01);
}

body.light-theme .form-control:focus {
  background-color: #ffffff;
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* Custom Modal / Toast Alert */
.toast-notification {
  position: fixed;
  bottom: 2rem;
  right: -400px;
  background: var(--bg-surface);
  border-left: 4px solid var(--success-color);
  border-top: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  border-radius: 8px;
  padding: 1.25rem 2rem;
  z-index: 2000;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text-primary);
}

.toast-notification.show {
  right: 2rem;
}

.toast-icon {
  color: var(--success-color);
  font-size: 1.5rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background-color: #05070a;
  border-top: 1px solid var(--border-color);
  padding: 5rem 0 2rem 0;
  color: var(--text-secondary);
}

body.light-theme .footer {
  background-color: #f1f5f9;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 0.80fr);
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand p {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-title {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-link {
  font-size: 0.9rem;
}

.footer-link:hover {
  color: var(--accent-color);
  transform: translateX(4px);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}

.social-link:hover {
  background: var(--accent-gradient);
  color: #fff;
  border-color: transparent;
  transform: translateY(-3px);
}

.social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ==========================================================================
   ANIMATIONS & SCROLL OBSERVERS
   ========================================================================== */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-up.appear {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */
@media screen and (max-width: 1024px) {
  .hero-title {
    font-size: 3.5rem;
  }
  .hero .container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .hero-image-wrapper {
    order: -1;
  }
  .hero-img-card {
    max-width: 500px;
  }
  .services-grid, .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .calc-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .footer-top {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
}

@media screen and (max-width: 768px) {
  .section {
    padding: 5rem 0;
  }
  .header {
    background-color: rgba(8, 12, 20, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
  }
  body.light-theme .header {
    background-color: rgba(248, 250, 252, 0.95);
  }
  .nav {
    position: fixed;
    top: 5.5rem;
    left: -100%;
    width: 100%;
    height: calc(100vh - 5.5rem);
    background-color: var(--bg-base);
    flex-direction: column;
    padding: 3rem;
    gap: 2rem;
    transition: var(--transition-bounce);
  }
  .nav.active {
    left: 0;
  }
  .burger {
    display: flex;
  }
  .burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }
  .burger.active span:nth-child(2) {
    opacity: 0;
  }
  .burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -7px);
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .services-grid, .portfolio-grid {
    grid-template-columns: 1fr;
  }
  .calc-services-grid {
    grid-template-columns: 1fr;
  }
  .contact-form-card {
    padding: 2rem;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .calc-container {
    padding: 2rem;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 480px) {
  .hero-title {
    font-size: 2.75rem;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .hero-btns {
    flex-direction: column;
    align-items: stretch;
  }
}


/* ==========================================================================
   BACKGROUND PARTICLES SYSTEM (Science/Tech drifting elements)
   ========================================================================== */
.bg-particles-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -10;
  pointer-events: none;
  overflow: hidden;
}

.bg-particle {
  position: absolute;
  color: var(--accent-color);
  opacity: 0.04;
  pointer-events: none;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  transition: opacity 0.5s ease;
}

body.light-theme .bg-particle {
  opacity: 0.025;
  color: var(--text-muted);
}

@keyframes driftUp {
  0% {
    transform: translateY(110vh) rotate(0deg);
  }
  100% {
    transform: translateY(-15vh) rotate(360deg);
  }
}

@keyframes driftDown {
  0% {
    transform: translateY(-15vh) rotate(0deg);
  }
  100% {
    transform: translateY(110vh) rotate(-360deg);
  }
}

@keyframes driftRight {
  0% {
    transform: translateX(-15vw) rotate(0deg);
  }
  100% {
    transform: translateX(110vw) rotate(360deg);
  }
}

@keyframes driftLeft {
  0% {
    transform: translateX(110vw) rotate(0deg);
  }
  100% {
    transform: translateX(-15vw) rotate(-360deg);
  }
}


/* ==========================================================================
   MODAL WINDOW STYLES
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(8, 12, 20, 0.85);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  padding: 1.5rem;
}

.modal-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.modal-window {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 28px;
  width: 100%;
  max-width: 650px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 3rem;
  position: relative;
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.7);
  transform: scale(0.9);
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.show .modal-window {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 2.5rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  background: none;
  border: none;
  transition: var(--transition-smooth);
}

.modal-close:hover {
  color: var(--text-primary);
  transform: rotate(90deg);
}

.modal-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
}

.modal-section {
  margin-bottom: 2.5rem;
}

.modal-section-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-primary);
}

.modal-section-title svg {
  width: 22px;
  height: 22px;
  color: #14b8a6;
  flex-shrink: 0;
}

.modal-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  list-style: none;
}

.modal-list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.modal-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0.1rem;
  color: #14b8a6;
  font-weight: bold;
  font-size: 1.1rem;
}

.modal-footer {
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
  margin-top: 1rem;
}

@media screen and (max-width: 576px) {
  .modal-window {
    padding: 2rem 1.5rem;
  }
  .modal-close {
    top: 1rem;
    right: 1rem;
  }
}

#plexus-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -9;
  pointer-events: none;
}


@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

/* Hover effect to scale the background card image (parallax effect) */
.service-card:hover .card-bg-image {
  transform: scale(1.05) !important;
}

/* Mobile responsive columns for the Airgentis modal */
@media screen and (max-width: 600px) {
  .modal-grid-cols {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
}

