/* ========================================================================
   ЗАВОД АВТОМАТИКА — Corporate Website Styles
   ======================================================================== */

/* ----- CSS Custom Properties (Design Tokens) — DARK (default) ----- */
:root {
  /* Primary palette */
  --clr-primary: #0a6bff;
  --clr-primary-dark: #0550c8;
  --clr-primary-light: #3d8bff;
  --clr-accent: #00d4ff;
  --clr-accent-glow: rgba(0, 212, 255, .25);

  /* Neutrals */
  --clr-bg: #0b0f19;
  --clr-bg-card: #111827;
  --clr-bg-card-hover: #1a2332;
  --clr-surface: #151c2b;
  --clr-border: rgba(255, 255, 255, .07);
  --clr-border-light: rgba(255, 255, 255, .12);

  /* Text */
  --clr-text: #e2e8f0;
  --clr-text-muted: #94a3b8;
  --clr-text-heading: #f8fafc;
  --clr-white: #ffffff;

  /* Gradients */
  --grad-hero: linear-gradient(135deg, #0b0f19 0%, #0d1a2d 40%, #0a1628 100%);
  --grad-card: linear-gradient(145deg, rgba(17, 24, 39, .9), rgba(21, 28, 43, .7));
  --grad-accent: linear-gradient(135deg, #0a6bff, #00d4ff);
  --grad-overlay: linear-gradient(180deg, rgba(11,15,25,.85) 0%, rgba(11,15,25,.6) 50%, rgba(11,15,25,.9) 100%);

  /* Header */
  --header-bg: rgba(11, 15, 25, .92);
  --mobile-menu-bg: rgba(11, 15, 25, .97);

  /* Shadows */
  --shadow-card: 0 12px 40px rgba(0, 0, 0, .25);
  --shadow-card-lg: 0 20px 60px rgba(0, 0, 0, .35);
  --shadow-btn: 0 8px 30px rgba(10, 107, 255, .35);

  /* Icon bg */
  --icon-bg: rgba(10, 107, 255, .1);
  --icon-bg-hover: rgba(10, 107, 255, .15);
  --social-bg: rgba(255, 255, 255, .05);

  /* Typography */
  --font-heading: 'Inter', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  /* Spacing */
  --section-py: clamp(5rem, 8vw, 8rem);
  --container-max: 1280px;
  --container-px: clamp(1.25rem, 4vw, 3rem);

  /* Transitions */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --transition-fast: .2s var(--ease-out);
  --transition-mid: .4s var(--ease-out);
  --transition-slow: .6s var(--ease-out);

  /* Borders */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
}


/* ----- LIGHT THEME ----- */
[data-theme="light"] {
  --clr-bg: #f5f7fa;
  --clr-bg-card: #ffffff;
  --clr-bg-card-hover: #f0f4f8;
  --clr-surface: #eef1f6;
  --clr-border: rgba(0, 0, 0, .08);
  --clr-border-light: rgba(0, 0, 0, .12);

  --clr-text: #334155;
  --clr-text-muted: #64748b;
  --clr-text-heading: #0f172a;
  --clr-white: #0f172a;

  --grad-card: linear-gradient(145deg, rgba(255,255,255,.95), rgba(241,245,249,.8));
  --grad-overlay: linear-gradient(180deg, rgba(245,247,250,.85) 0%, rgba(245,247,250,.4) 50%, rgba(245,247,250,.9) 100%);

  --header-bg: rgba(255, 255, 255, .92);
  --mobile-menu-bg: rgba(255, 255, 255, .97);

  --shadow-card: 0 8px 30px rgba(0, 0, 0, .06);
  --shadow-card-lg: 0 16px 50px rgba(0, 0, 0, .08);
  --shadow-btn: 0 8px 25px rgba(10, 107, 255, .2);

  --icon-bg: rgba(10, 107, 255, .07);
  --icon-bg-hover: rgba(10, 107, 255, .12);
  --social-bg: rgba(0, 0, 0, .04);
}

[data-theme="light"] .hero {
  background: linear-gradient(135deg, #e8eef6 0%, #dce5f0 40%, #f0f4f9 100%);
}

[data-theme="light"] .hero-grid {
  background-image:
    linear-gradient(rgba(10, 107, 255, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 107, 255, .06) 1px, transparent 1px);
}

[data-theme="light"] .hero-orb--1 {
  background: rgba(10, 107, 255, .08);
}

[data-theme="light"] .hero-orb--2 {
  background: rgba(0, 212, 255, .06);
}

[data-theme="light"] .hero-orb--3 {
  background: rgba(10, 107, 255, .05);
}

[data-theme="light"] .btn-outline {
  color: var(--clr-text-heading);
  border-color: rgba(0, 0, 0, .15);
}

[data-theme="light"] .btn-outline:hover {
  background: rgba(10, 107, 255, .06);
  border-color: var(--clr-primary);
}

[data-theme="light"] .project-img-overlay {
  background: linear-gradient(to top, rgba(255,255,255,.5), transparent 60%);
}

[data-theme="light"] .project-tag {
  background: rgba(10, 107, 255, .9);
}

[data-theme="light"] .logo span {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="light"] .hero h1 .highlight {
  background: linear-gradient(135deg, #0a6bff, #0066dd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="light"] .hero-stat h3 {
  background: linear-gradient(135deg, #0a6bff, #0550c8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="light"] .contact-item p,
[data-theme="light"] .contact-item a {
  color: var(--clr-text-heading);
}

[data-theme="light"] .burger span {
  background: var(--clr-text-heading);
}

[data-theme="light"] .footer-socials a {
  background: var(--social-bg);
  border-color: var(--clr-border);
}

[data-theme="light"] .footer-socials svg {
  color: var(--clr-text-muted);
}

/* Theme toggle icon visibility */
[data-theme="light"] .icon-moon { display: block; }
[data-theme="light"] .icon-sun { display: none; }

/* Hero showcase adjustments for light theme */
[data-theme="light"] .hero-showcase-main {
  border-color: rgba(0, 0, 0, .1);
  box-shadow: 0 25px 70px rgba(0, 0, 0, .12);
}

[data-theme="light"] .hero-showcase-label {
  background: rgba(255, 255, 255, .9);
  border-color: rgba(0, 0, 0, .08);
  color: var(--clr-text-heading);
}

[data-theme="light"] .hero-showcase-thumb {
  border-color: rgba(0, 0, 0, .08);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .06);
}

[data-theme="light"] .hero-showcase-thumb span {
  background: rgba(255, 255, 255, .85);
  color: var(--clr-text-heading);
}

[data-theme="light"] .form-group input,
[data-theme="light"] .form-group textarea {
  background: var(--clr-surface);
  color: var(--clr-text-heading);
  border-color: rgba(0,0,0,.1);
}

[data-theme="light"] .form-group input::placeholder,
[data-theme="light"] .form-group textarea::placeholder {
  color: var(--clr-text-muted);
}

[data-theme="light"] .section-tag {
  color: var(--clr-primary);
}

[data-theme="light"] .header-phone {
  color: var(--clr-text-heading);
}

[data-theme="light"] .cta-inner::before {
  background: var(--grad-accent);
}


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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--clr-text);
  background: var(--clr-bg);
  overflow-x: hidden;
  transition: background .4s ease, color .4s ease;
}

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

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

ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--clr-text-heading);
  line-height: 1.15;
  font-weight: 700;
}

::selection {
  background: var(--clr-primary);
  color: #fff;
}


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

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: 1rem;
}

.section-tag::before {
  content: '';
  width: 32px;
  height: 2px;
  background: var(--grad-accent);
  border-radius: 2px;
}

.section-title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  margin-bottom: 1.25rem;
  letter-spacing: -.02em;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--clr-text-muted);
  max-width: 600px;
  line-height: 1.7;
}

.section-header {
  margin-bottom: 3.5rem;
}

.section-header.centered {
  text-align: center;
}

.section-header.centered .section-subtitle {
  margin: 0 auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 2rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad-accent);
  color: #0b0f19;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-btn);
}

.btn-outline {
  background: transparent;
  color: var(--clr-white);
  border: 1.5px solid var(--clr-border-light);
}

.btn-outline:hover {
  border-color: var(--clr-primary-light);
  background: rgba(10, 107, 255, .08);
  transform: translateY(-2px);
}

.btn svg {
  width: 18px;
  height: 18px;
}


/* ========================================================================
   THEME TOGGLE
   ======================================================================== */
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--clr-border-light);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  color: var(--clr-text-muted);
}

.theme-toggle:hover {
  border-color: var(--clr-primary-light);
  background: var(--icon-bg);
  color: var(--clr-primary-light);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

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


/* ========================================================================
   HEADER / NAVIGATION
   ======================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: all var(--transition-fast);
}

.site-header.scrolled {
  background: var(--header-bg);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border-bottom: 1px solid var(--clr-border);
  padding: .6rem 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: .7rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--clr-white);
  letter-spacing: -.02em;
}

.logo-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--grad-accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon svg {
  width: 22px;
  height: 22px;
  fill: #0b0f19;
  stroke: #0b0f19;
}

.logo span {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--clr-text-muted);
  transition: color var(--transition-fast);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--grad-accent);
  border-radius: 2px;
  transition: width var(--transition-fast);
}

.nav-links a:hover {
  color: var(--clr-text-heading);
}

.nav-links a:hover::after {
  width: 100%;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--clr-white);
}

.header-phone svg {
  width: 16px;
  height: 16px;
  color: var(--clr-accent);
}

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

.burger span {
  width: 24px;
  height: 2px;
  background: var(--clr-white);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

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

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

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


/* ========================================================================
   HERO SECTION — Two-column layout
   ======================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
  padding-bottom: 3rem;
  overflow: hidden;
  background: var(--grad-hero);
}

/* Grid background */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(10, 107, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 107, 255, .04) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 1;
}

/* Glowing orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 1;
  animation: orbFloat 8s ease-in-out infinite alternate;
}

.hero-orb--1 {
  width: 400px;
  height: 400px;
  background: rgba(10, 107, 255, .12);
  top: 5%;
  right: 10%;
}

.hero-orb--2 {
  width: 300px;
  height: 300px;
  background: rgba(0, 212, 255, .08);
  bottom: 10%;
  left: -5%;
  animation-delay: 3s;
}

.hero-orb--3 {
  width: 250px;
  height: 250px;
  background: rgba(10, 107, 255, .06);
  top: 50%;
  left: 40%;
  animation-delay: 5s;
}

@keyframes orbFloat {
  to { transform: translate(30px, -20px) scale(1.08); }
}

/* Two-column inner */
.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .45rem 1rem .45rem .45rem;
  background: var(--icon-bg);
  border: 1px solid rgba(10, 107, 255, .2);
  border-radius: 100px;
  font-size: .8rem;
  font-weight: 500;
  color: var(--clr-primary-light);
  margin-bottom: 2rem;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--clr-primary);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(.8); }
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  letter-spacing: -.03em;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero h1 .highlight {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--clr-text-muted);
  margin-bottom: 2.5rem;
  max-width: 500px;
  line-height: 1.8;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--clr-border);
}

.hero-stat h3 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  background: var(--grad-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-stat p {
  font-size: .82rem;
  color: var(--clr-text-muted);
  margin-top: .2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---- Hero showcase (right column) ---- */
.hero-showcase {
  position: relative;
}

.hero-showcase-main {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--clr-border-light);
  box-shadow: 0 25px 70px rgba(0, 0, 0, .3);
}

.hero-showcase-main img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
}

.hero-showcase-label {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .45rem .9rem;
  background: rgba(11, 15, 25, .75);
  backdrop-filter: blur(12px);
  border: 1px solid var(--clr-border-light);
  border-radius: 100px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--clr-text);
}

.hero-showcase-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
  margin-top: .75rem;
}

.hero-showcase-thumb {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--clr-border-light);
  box-shadow: 0 8px 25px rgba(0, 0, 0, .2);
  aspect-ratio: 4/3;
}

.hero-showcase-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.hero-showcase-thumb:hover img {
  transform: scale(1.08);
}

.hero-showcase-thumb span {
  position: absolute;
  bottom: .5rem;
  left: .5rem;
  padding: .2rem .6rem;
  background: rgba(11, 15, 25, .7);
  backdrop-filter: blur(8px);
  border-radius: 100px;
  font-size: .65rem;
  font-weight: 600;
  color: var(--clr-text);
  letter-spacing: .03em;
}


/* ========================================================================
   FEATURES (Advantages bar under hero)
   ======================================================================== */
.features-bar {
  position: relative;
  z-index: 10;
  margin-top: -4rem;
  padding-bottom: 2rem;
}

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

.feature-card {
  background: var(--grad-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: all var(--transition-mid);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad-accent);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.feature-card:hover {
  border-color: rgba(10, 107, 255, .25);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-lg);
}

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

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--icon-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  color: var(--clr-primary-light);
}

.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: .5rem;
}

.feature-card p {
  font-size: .9rem;
  color: var(--clr-text-muted);
  line-height: 1.6;
}


/* ========================================================================
   SERVICES SECTION
   ======================================================================== */
.services {
  padding: var(--section-py) 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.service-card {
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: all var(--transition-mid);
  cursor: default;
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 0;
  background: linear-gradient(to top, rgba(10, 107, 255, .05), transparent);
  transition: height var(--transition-mid);
}

.service-card:hover {
  border-color: rgba(10, 107, 255, .2);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.service-card:hover::after {
  height: 100%;
}

.service-num {
  font-size: .75rem;
  font-weight: 700;
  color: rgba(10, 107, 255, .4);
  margin-bottom: 1rem;
  letter-spacing: .1em;
}

.service-card h3 {
  font-size: 1.05rem;
  margin-bottom: .5rem;
  position: relative;
  z-index: 1;
}

.service-card p {
  font-size: .85rem;
  color: var(--clr-text-muted);
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

.service-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--icon-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.service-icon-wrap svg {
  width: 22px;
  height: 22px;
  color: var(--clr-primary-light);
}


/* ========================================================================
   INDUSTRIES SECTION
   ======================================================================== */
.industries {
  padding: var(--section-py) 0;
  background: var(--clr-surface);
  position: relative;
  overflow: hidden;
}

.industries::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(10, 107, 255, .04);
  filter: blur(100px);
  top: -10%;
  right: -10%;
}

.industries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.industry-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: 1.35rem 1.5rem;
  transition: all var(--transition-mid);
  cursor: default;
}

.industry-card:hover {
  border-color: rgba(10, 107, 255, .2);
  transform: translateX(6px);
  background: var(--clr-bg-card-hover);
}

.industry-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 10px;
  background: var(--icon-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.industry-icon svg {
  width: 22px;
  height: 22px;
  color: var(--clr-primary-light);
}

.industry-card h3 {
  font-size: 1rem;
  font-weight: 600;
}

.industry-card p {
  font-size: .8rem;
  color: var(--clr-text-muted);
  margin-top: .2rem;
}


/* ========================================================================
   PROJECTS SECTION
   ======================================================================== */
.projects {
  padding: var(--section-py) 0;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 1.5rem;
}

.project-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--clr-border);
  background: var(--clr-bg-card);
  transition: all var(--transition-mid);
}

.project-card:hover {
  border-color: rgba(10, 107, 255, .2);
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-lg);
}

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

.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.project-card:hover .project-img img {
  transform: scale(1.05);
}

.project-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11,15,25,.7), transparent 60%);
}

.project-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: .3rem .8rem;
  background: rgba(10, 107, 255, .85);
  backdrop-filter: blur(10px);
  border-radius: 100px;
  font-size: .75rem;
  font-weight: 600;
  color: #fff;
}

.project-body {
  padding: 1.5rem;
}

.project-body h3 {
  font-size: 1.15rem;
  margin-bottom: .5rem;
}

.project-body p {
  font-size: .9rem;
  color: var(--clr-text-muted);
  line-height: 1.6;
}

.project-meta {
  display: flex;
  gap: .75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.project-meta-tag {
  padding: .25rem .65rem;
  background: var(--icon-bg);
  border: 1px solid rgba(10, 107, 255, .15);
  border-radius: 100px;
  font-size: .75rem;
  color: var(--clr-primary-light);
  font-weight: 500;
}


/* ========================================================================
   CTA / ABOUT SECTION
   ======================================================================== */
.cta-section {
  padding: var(--section-py) 0;
  background: var(--clr-surface);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: rgba(10, 107, 255, .06);
  filter: blur(120px);
  bottom: -20%;
  left: -10%;
}

.cta-inner {
  background: var(--grad-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-xl);
  padding: 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad-accent);
}

.cta-inner h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin-bottom: 1rem;
}

.cta-inner p {
  font-size: 1.1rem;
  color: var(--clr-text-muted);
  max-width: 500px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}


/* ========================================================================
   CONTACTS SECTION
   ======================================================================== */
.contacts {
  padding: var(--section-py) 0;
}

.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.contact-item:hover {
  border-color: rgba(10, 107, 255, .2);
  background: var(--clr-bg-card-hover);
}

.contact-item-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: var(--radius-sm);
  background: var(--icon-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-item-icon svg {
  width: 22px;
  height: 22px;
  color: var(--clr-primary-light);
}

.contact-item h4 {
  font-size: .85rem;
  color: var(--clr-text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .3rem;
}

.contact-item p,
.contact-item a {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--clr-white);
}

.contact-item a:hover {
  color: var(--clr-primary-light);
}

/* Contact form */
.contact-form {
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.contact-form h3 {
  font-size: 1.3rem;
  margin-bottom: .5rem;
}

.contact-form > p {
  color: var(--clr-text-muted);
  margin-bottom: 2rem;
  font-size: .9rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 500;
  color: var(--clr-text-muted);
  margin-bottom: .4rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: .85rem 1rem;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  color: var(--clr-white);
  font-family: var(--font-body);
  font-size: .95rem;
  transition: border-color var(--transition-fast);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px rgba(10, 107, 255, .15);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-form .btn {
  width: 100%;
  justify-content: center;
  padding: 1rem;
  font-size: 1rem;
  margin-top: .5rem;
}


/* ========================================================================
   FOOTER
   ======================================================================== */
.site-footer {
  background: var(--clr-surface);
  border-top: 1px solid var(--clr-border);
  padding: 3rem 0 1.5rem;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--clr-border);
  margin-bottom: 1.5rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  font-size: .9rem;
  color: var(--clr-text-muted);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--clr-text-heading);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  font-size: .85rem;
  color: var(--clr-text-muted);
}

.footer-socials {
  display: flex;
  gap: .75rem;
}

.footer-socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--social-bg);
  border: 1px solid var(--clr-border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.footer-socials a:hover {
  background: var(--icon-bg-hover);
  border-color: var(--clr-primary);
}

.footer-socials svg {
  width: 16px;
  height: 16px;
  color: var(--clr-text-muted);
}


/* ========================================================================
   SCROLL REVEAL ANIMATIONS
   ======================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }
.reveal-delay-5 { transition-delay: .5s; }
.reveal-delay-6 { transition-delay: .6s; }


/* ========================================================================
   LIGHTBOX
   ======================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, .9);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-mid);
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  transform: scale(.9);
  transition: transform var(--transition-mid);
}

.lightbox.active img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, .2);
}

.lightbox-close svg {
  width: 20px;
  height: 20px;
  color: #fff;
}


/* ========================================================================
   MOBILE MENU
   ======================================================================== */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--mobile-menu-bg);
  backdrop-filter: blur(20px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-mid);
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu a {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--clr-text-heading);
  transition: color var(--transition-fast);
}

.mobile-menu a:hover {
  color: var(--clr-primary-light);
}


/* ========================================================================
   COUNTER ANIMATION STYLING
   ======================================================================== */
.counter-number {
  display: inline-block;
  font-variant-numeric: tabular-nums;
}


/* ========================================================================
   RESPONSIVE
   ======================================================================== */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-showcase {
    max-width: 560px;
  }

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

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

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

@media (max-width: 768px) {
  .nav-links,
  .header-cta .btn-outline {
    display: none;
  }

  .burger {
    display: flex;
  }

  .mobile-menu {
    display: flex;
  }

  .hero h1 {
    font-size: clamp(2rem, 6vw, 3rem);
  }

  .hero-stats {
    gap: 1.5rem;
    flex-wrap: wrap;
  }

  .hero-showcase-main img {
    height: 240px;
  }

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

  .features-bar {
    margin-top: -2rem;
  }

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

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

  .cta-inner {
    padding: 2.5rem 1.5rem;
  }

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

  .footer-top {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .section-title {
    font-size: clamp(1.6rem, 5vw, 2.5rem);
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
  }

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

  .hero-showcase-row {
    grid-template-columns: repeat(3, 1fr);
    gap: .5rem;
  }

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

  .project-img {
    height: 200px;
  }
}
