:root {
  --bg: #07090f;
  --bg-soft: #0d1018;
  --card: rgba(17, 22, 34, 0.78);
  --card-solid: #111622;
  --border: rgba(255, 255, 255, 0.10);
  --border-cyan: rgba(0, 245, 255, 0.22);
  --text: #f7fbff;
  --muted: #a9b4c4;
  --cyan: #00f5ff;
  --cyan-2: #00bcd4;
  --red: #f44336;
  --gold: #f0b83a;
  --green: #00ff9d;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --nav-height: 84px;
  --container: min(1180px, calc(100% - 40px));
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: "Poppins", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(0, 245, 255, 0.10), transparent 34rem),
    radial-gradient(circle at 90% 20%, rgba(244, 67, 54, 0.10), transparent 32rem),
    var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

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

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

button {
  font-family: inherit;
}

p {
  color: var(--muted);
  line-height: 1.8;
}

::selection {
  background: var(--cyan);
  color: #061018;
}

/* ================= HEADER ================= */
.site-header {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate;
}

.hero-slider,
.hero-slide,
.hero-overlay,
.hero-noise {
  position: absolute;
  inset: 0;
}

.hero-slide {
  background-size: cover;
  background-position: center center;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.4s ease, transform 7s ease;
  z-index: -5;
  filter: brightness(1.08) contrast(1.04) saturate(1.08);
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-overlay {
  z-index: -4;
  background:
    linear-gradient(90deg, rgba(2, 5, 10, 0.84) 0%, rgba(2, 5, 10, 0.50) 42%, rgba(2, 5, 10, 0.22) 100%),
    linear-gradient(180deg, rgba(2, 5, 10, 0.22) 0%, rgba(2, 5, 10, 0.58) 100%);
}

.hero-noise {
  z-index: -3;
  opacity: 0.14;
  background-image:
    radial-gradient(circle at 30% 20%, rgba(0, 245, 255, 0.12), transparent 24rem),
    radial-gradient(circle at 70% 45%, rgba(244, 67, 54, 0.10), transparent 26rem);
}

.main-nav {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: var(--container);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
  padding: 0 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(8, 11, 18, 0.58);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.25);
  transition: top 0.35s ease, background 0.35s ease, border-color 0.35s ease, height 0.35s ease;
}

.main-nav.scrolled {
  top: 10px;
  height: 72px;
  background: rgba(8, 11, 18, 0.92);
  border-color: rgba(0, 245, 255, 0.16);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 150px;
  z-index: 1002;
}

.brand img {
  width: 138px;
  height: auto;
}

.nav-panel {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}

.nav-menu > li {
  position: relative;
}

.nav-menu > li > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 13px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: color 0.25s ease, background 0.25s ease;
}

.nav-menu > li > a:hover,
.nav-menu > li > a.active-link {
  color: var(--cyan);
  background: rgba(0, 245, 255, 0.08);
}

.dropdown-trigger span {
  font-size: 10px;
  transition: transform 0.25s ease;
}

.has-dropdown:hover .dropdown-trigger span,
.has-dropdown.open .dropdown-trigger span {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 16px);
  right: 0;
  min-width: 380px;
  padding: 12px;
  list-style: none;
  border: 1px solid var(--border-cyan);
  border-radius: 22px;
  background: rgba(9, 13, 22, 0.96);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: 0.25s ease;
}

.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 13px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  color: var(--text);
  transition: background 0.25s ease, transform 0.25s ease;
}

.dropdown-menu a:hover {
  background: linear-gradient(135deg, rgba(0, 245, 255, 0.15), rgba(244, 67, 54, 0.11));
  transform: translateX(4px);
}

.menu-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(0, 245, 255, 0.08);
  border: 1px solid rgba(0, 245, 255, 0.18);
  font-size: 18px;
}

.dropdown-menu strong {
  display: block;
  color: var(--text);
  font-size: 14px;
  line-height: 1.2;
}

.dropdown-menu small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.nav-toggle,
.nav-close {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  width: var(--container);
  min-height: 100vh;
  padding-top: 170px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  color: var(--cyan);
  border: 1px solid rgba(0, 245, 255, 0.18);
  border-radius: 999px;
  background: rgba(0, 245, 255, 0.08);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-content h1 {
  max-width: 920px;
  margin-top: 22px;
  font-size: clamp(3.2rem, 8vw, 7.8rem);
  line-height: 0.92;
  letter-spacing: -0.08em;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-content h1 span {
  color: transparent;
  background: linear-gradient(90deg, var(--cyan), #ffffff, var(--gold), var(--red));
  background-size: 260% auto;
  -webkit-background-clip: text;
  background-clip: text;
  animation: textShine 7s ease-in-out infinite;
}

.hero-content p {
  max-width: 720px;
  margin: 24px 0 0;
  font-size: clamp(1rem, 1.7vw, 1.25rem);
  color: rgba(255, 255, 255, 0.80);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn-primary {
  color: #061018;
  background: linear-gradient(135deg, var(--cyan), #73fff5);
  box-shadow: 0 18px 45px rgba(0, 245, 255, 0.20);
}

.btn-primary:hover {
  box-shadow: 0 22px 60px rgba(0, 245, 255, 0.28);
}

.btn-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(0, 245, 255, 0.35);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 42px;
}

.hero-stats div {
  min-width: 130px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(10px);
}

.hero-stats strong {
  display: block;
  font-size: 20px;
  color: var(--text);
}

.hero-stats small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text);
  background: rgba(8, 11, 18, 0.5);
  backdrop-filter: blur(12px);
  font-size: 38px;
  line-height: 1;
  cursor: pointer;
  transition: 0.25s ease;
}

.slider-arrow:hover {
  color: #061018;
  background: var(--cyan);
  border-color: var(--cyan);
  transform: translateY(-2px);
}

.slider-prev {
  left: 28px;
}

.slider-next {
  right: 28px;
}

.slider-dots {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 9px;
}

.slider-dot {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
  transition: 0.25s ease;
}

.slider-dot.active {
  width: 34px;
  background: var(--cyan);
}

.scroll-indicator {
  position: absolute;
  bottom: 42px;
  right: 48px;
  z-index: 4;
  width: 28px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  display: grid;
  place-items: start center;
  padding-top: 8px;
}

.scroll-indicator span {
  width: 5px;
  height: 9px;
  border-radius: 999px;
  background: var(--cyan);
  animation: scrollPulse 1.7s ease-in-out infinite;
}

/* ================= SECTIONS ================= */
.section {
  position: relative;
  padding: 110px 0;
}

.section-heading {
  width: var(--container);
  margin: 0 auto 56px;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 14px;
}

.section-heading h2,
.vision-text h2,
.kemty-text h2,
.about-inner h2 {
  max-width: 840px;
  color: var(--text);
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.055em;
}

.section-heading p {
  max-width: 760px;
  font-size: 1rem;
}

.services-section {
  background:
    linear-gradient(180deg, rgba(7, 9, 15, 0.98), rgba(10, 14, 24, 0.96)),
    radial-gradient(circle at 10% 20%, rgba(0, 245, 255, 0.13), transparent 30rem);
}

.services-grid,
.universe-grid,
.projects-grid,
.expertise-grid {
  width: var(--container);
  margin: 0 auto;
  display: grid;
  gap: 22px;
}

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

.service-card,
.expertise-card,
.project-card,
.universe-card,
.vision-card,
.about-inner,
.footer-block {
  border: 1px solid var(--border);
  background: var(--card);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
}

.service-card,
.expertise-card {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  padding: 28px;
  border-radius: var(--radius-xl);
  transition: transform 0.28s ease, border-color 0.28s ease, background 0.28s ease;
}

.service-card::before,
.expertise-card::before {
  content: "";
  position: absolute;
  inset: auto -30% -45% -30%;
  height: 170px;
  background: radial-gradient(circle, rgba(0, 245, 255, 0.16), transparent 64%);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.service-card:hover,
.expertise-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-cyan);
  background: rgba(20, 27, 42, 0.88);
}

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

.card-icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  border-radius: 20px;
  font-size: 28px;
  background: linear-gradient(135deg, rgba(0, 245, 255, 0.14), rgba(244, 67, 54, 0.12));
  border: 1px solid rgba(255, 255, 255, 0.13);
}

.service-card h3,
.expertise-card h3,
.project-card h3,
.universe-card h3 {
  color: var(--text);
  font-size: 1.24rem;
  margin-bottom: 13px;
}

.service-card p {
  margin-bottom: 22px;
}

.service-card a {
  position: relative;
  z-index: 2;
  color: var(--cyan);
  font-size: 14px;
  font-weight: 800;
}

/* ================= VISION ================= */
.vision-section {
  background:
    radial-gradient(circle at 90% 10%, rgba(244, 67, 54, 0.10), transparent 30rem),
    var(--bg-soft);
}

.vision-container {
  width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  gap: 42px;
  align-items: center;
}

.vision-text {
  display: grid;
  gap: 18px;
}

.vision-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.vision-points span {
  padding: 10px 13px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 700;
}

.vision-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: 14px;
}

.vision-card img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: 22px;
  filter: saturate(1.05) contrast(1.05);
}

.vision-card div {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(8, 11, 18, 0.74);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.vision-card strong,
.vision-card span {
  display: block;
}

.vision-card strong {
  color: var(--cyan);
  font-size: 1.1rem;
}

.vision-card span {
  color: rgba(255, 255, 255, 0.82);
  margin-top: 5px;
}

/* ================= UNIVERSE ================= */
.universe-section {
  background: #080b12;
}

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

.universe-card {
  position: relative;
  min-height: 510px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.universe-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-cyan);
}

.universe-card img {
  width: 100%;
  height: 100%;
  min-height: 510px;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.universe-card:hover img {
  transform: scale(1.08);
}

.universe-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(2, 5, 10, 0.96) 100%);
}

.universe-content {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  padding: 28px;
}

.universe-content span {
  color: var(--cyan);
  font-weight: 900;
  letter-spacing: 0.16em;
}

.universe-content h3 {
  margin-top: 8px;
  font-size: 1.75rem;
}

.universe-content a {
  display: inline-flex;
  margin-top: 18px;
  color: var(--cyan);
  font-weight: 800;
}

/* ================= PROJECTS ================= */
.projects-section {
  overflow: hidden;
  background:
    linear-gradient(rgba(6, 8, 13, 0.86), rgba(6, 8, 13, 0.94)),
    url("pictures/egypt.jpg") center/cover fixed;
}

.floating-lights {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.floating-lights span {
  position: absolute;
  width: 15px;
  height: 15px;
  border-radius: 999px;
  background: var(--cyan);
  box-shadow: 0 0 22px var(--cyan), 0 0 60px rgba(0, 245, 255, 0.5);
  opacity: 0.34;
  animation: floatLight 12s ease-in-out infinite;
}

.floating-lights span:nth-child(1) { top: 12%; left: 7%; animation-delay: 0s; }
.floating-lights span:nth-child(2) { top: 18%; left: 82%; animation-delay: 1s; background: var(--red); box-shadow: 0 0 22px var(--red); }
.floating-lights span:nth-child(3) { top: 40%; left: 12%; animation-delay: 2s; background: var(--gold); box-shadow: 0 0 22px var(--gold); }
.floating-lights span:nth-child(4) { top: 55%; left: 72%; animation-delay: 3s; }
.floating-lights span:nth-child(5) { top: 80%; left: 24%; animation-delay: 4s; background: var(--green); box-shadow: 0 0 22px var(--green); }
.floating-lights span:nth-child(6) { top: 74%; left: 88%; animation-delay: 5s; }
.floating-lights span:nth-child(7) { top: 25%; left: 48%; animation-delay: 1.7s; }
.floating-lights span:nth-child(8) { top: 90%; left: 52%; animation-delay: 2.8s; background: var(--red); box-shadow: 0 0 22px var(--red); }
.floating-lights span:nth-child(9) { top: 8%; left: 62%; animation-delay: 3.6s; background: var(--gold); box-shadow: 0 0 22px var(--gold); }
.floating-lights span:nth-child(10) { top: 65%; left: 4%; animation-delay: 5.2s; }

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

.project-card {
  overflow: hidden;
  border-radius: var(--radius-xl);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-cyan);
}

.project-card img {
  height: 260px;
  width: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.project-body {
  padding: 24px;
}

.project-body span {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* ================= EXPERTISE ================= */
.expertise-section {
  background: var(--bg-soft);
}

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

.expertise-card {
  min-height: 230px;
}

.center-action {
  width: var(--container);
  margin: 42px auto 0;
  display: flex;
  justify-content: center;
}

/* ================= KEMTY ================= */
.kemty-section {
  background:
    radial-gradient(circle at 15% 25%, rgba(0, 245, 255, 0.10), transparent 28rem),
    linear-gradient(180deg, #080b12, #0f1420);
}

.kemty-container {
  width: var(--container);
  margin: 0 auto 52px;
  display: grid;
  grid-template-columns: 1fr 0.7fr;
  gap: 44px;
  align-items: center;
}

.kemty-text {
  display: grid;
  gap: 18px;
}

.kemty-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
}

.kemty-actions img {
  width: 180px;
  border-radius: 12px;
  transition: transform 0.25s ease;
}

.kemty-actions img:hover {
  transform: translateY(-3px) scale(1.02);
}

.kemty-phone {
  position: relative;
  justify-self: center;
}

.kemty-phone::before {
  content: "";
  position: absolute;
  inset: 8% -10%;
  z-index: -1;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(0, 245, 255, 0.22), transparent 66%);
  filter: blur(8px);
}

.kemty-phone img {
  width: min(390px, 90vw);
  border-radius: 28px;
  transform: rotate(4deg);
  border: 1px solid var(--border-cyan);
  box-shadow: var(--shadow);
  transition: transform 0.35s ease;
}

.kemty-phone img:hover {
  transform: rotate(0deg) translateY(-6px);
}

.wallpaper-grid {
  width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.wallpaper-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: transparent;
  cursor: pointer;
}

.wallpaper-card img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  transition: transform 0.38s ease, filter 0.38s ease;
}

.wallpaper-card:hover img {
  transform: scale(1.08);
  filter: saturate(1.15) contrast(1.06);
}

/* ================= ABOUT + PARTNERS + FOOTER ================= */
.about-strip {
  padding: 90px 0;
  background: #080b12;
}

.about-inner {
  width: var(--container);
  margin: 0 auto;
  padding: 42px;
  border-radius: var(--radius-xl);
  text-align: center;
}

.about-inner p {
  max-width: 920px;
  margin: 18px auto 0;
}

.about-inner strong {
  color: var(--text);
}

.partners-section {
  padding: 80px 0;
  overflow: hidden;
  background: #07090f;
  text-align: center;
}

.partners-section h2 {
  width: var(--container);
  margin: 0 auto 32px;
  color: var(--cyan);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.logo-slider {
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}

.logo-track {
  width: max-content;
  display: flex;
  align-items: center;
  gap: 42px;
  animation: scrollLogos 26s linear infinite;
}

.logo-track img {
  width: 170px;
  max-height: 90px;
  object-fit: contain;
  opacity: 0.72;
  filter: grayscale(0.2);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.logo-track img:hover {
  opacity: 1;
  transform: scale(1.06);
}

.main-footer {
  position: relative;
  overflow: hidden;
  padding: 80px 0 34px;
  background: #05070c;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-glow {
  position: absolute;
  inset: -30% auto auto 50%;
  width: 560px;
  height: 560px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 245, 255, 0.10), transparent 68%);
  pointer-events: none;
}

.footer-grid {
  position: relative;
  width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 22px;
}

.footer-block {
  border-radius: 24px;
  padding: 26px;
}

.footer-block h3 {
  margin-bottom: 12px;
  color: var(--cyan);
  font-size: 1.1rem;
}

.footer-block ul {
  list-style: none;
}

.footer-block li {
  color: var(--muted);
  margin-bottom: 10px;
  line-height: 1.7;
}

.footer-block a:hover {
  color: var(--cyan);
}

.support-icons,
.social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.support-icons img {
  width: 45px;
  height: 45px;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.support-icons img:hover {
  transform: translateY(-3px);
}

.social-icons a {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-cyan);
  border-radius: 50%;
  color: var(--cyan);
  background: rgba(0, 245, 255, 0.06);
  transition: 0.25s ease;
}

.social-icons a:hover {
  color: #061018;
  background: var(--cyan);
  transform: translateY(-3px);
}

.footer-quote {
  position: relative;
  width: var(--container);
  margin: 36px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  color: rgba(255, 255, 255, 0.74);
  font-style: italic;
}

/* ================= LIGHTBOX ================= */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.92);
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: min(100%, 960px);
  max-height: 88vh;
  border-radius: 22px;
  border: 1px solid var(--border-cyan);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.65);
}

.lightbox-close {
  position: absolute;
  top: 22px;
  right: 28px;
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  font-size: 32px;
  cursor: pointer;
}

/* ================= REVEAL ================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ================= ANIMATIONS ================= */
@keyframes textShine {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

@keyframes scrollPulse {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(16px); opacity: 0.2; }
  100% { transform: translateY(0); opacity: 1; }
}

@keyframes floatLight {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.24; }
  50% { transform: translateY(-36px) scale(1.35); opacity: 0.55; }
}

@keyframes scrollLogos {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

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

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

  .universe-card:nth-child(3) {
    grid-column: 1 / -1;
  }

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

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

  .footer-block:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 930px) {
  :root {
    --nav-height: 66px;
    --container: min(100% - 28px, 1180px);
  }

  .main-nav {
    top: 12px;
    height: var(--nav-height);
    padding: 0 14px;
  }

  .brand img {
    width: 118px;
  }

  .nav-toggle {
    z-index: 1002;
    width: 46px;
    height: 46px;
    display: grid;
    gap: 5px;
    place-content: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    cursor: pointer;
  }

  .nav-toggle span {
    width: 20px;
    height: 2px;
    display: block;
    border-radius: 999px;
    background: var(--text);
  }

  .nav-close {
    position: absolute;
    top: 18px;
    right: 20px;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text);
    background: rgba(255, 255, 255, 0.08);
    font-size: 28px;
    cursor: pointer;
  }

  .nav-panel {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(88vw, 390px);
    height: 100vh;
    padding: 88px 20px 28px;
    display: block;
    overflow-y: auto;
    background: rgba(8, 11, 18, 0.98);
    border-left: 1px solid rgba(255, 255, 255, 0.10);
    transform: translateX(110%);
    transition: transform 0.35s ease;
    box-shadow: -18px 0 60px rgba(0, 0, 0, 0.45);
  }

  body.nav-open .nav-panel {
    transform: translateX(0);
  }

  .nav-menu {
    display: grid;
    gap: 8px;
  }

  .nav-menu > li > a {
    width: 100%;
    justify-content: space-between;
    padding: 13px 14px;
    border-radius: 16px;
    font-size: 13px;
  }

  .dropdown-menu {
    position: static;
    min-width: 0;
    display: none;
    margin: 6px 0 12px;
    padding: 8px;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.06);
  }

  .has-dropdown:hover .dropdown-menu {
    display: none;
  }

  .has-dropdown.open .dropdown-menu {
    display: block;
  }

  .dropdown-menu a {
    grid-template-columns: 36px 1fr;
    padding: 10px;
  }

  .menu-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
  }

  .hero-content {
    padding-top: 130px;
    padding-bottom: 90px;
  }

  .slider-arrow {
    display: none;
  }

  .scroll-indicator {
    display: none;
  }

  .vision-container,
  .kemty-container {
    grid-template-columns: 1fr;
  }

  .vision-card img {
    height: 420px;
  }

  .kemty-phone {
    order: -1;
  }

  .kemty-phone img {
    transform: none;
  }
}

@media (max-width: 720px) {
  .section {
    padding: 82px 0;
  }

  .hero-content h1 {
    letter-spacing: -0.06em;
  }

  .hero-actions,
  .hero-stats {
    width: 100%;
  }

  .btn {
    width: 100%;
  }

  .hero-stats div {
    flex: 1 1 120px;
  }

  .services-grid,
  .projects-grid,
  .universe-grid,
  .expertise-grid,
  .wallpaper-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .universe-card:nth-child(3),
  .footer-block:first-child {
    grid-column: auto;
  }

  .service-card,
  .expertise-card {
    min-height: auto;
  }

  .universe-card,
  .universe-card img {
    min-height: 430px;
  }

  .project-card img,
  .wallpaper-card img {
    height: 300px;
  }

  .about-inner {
    padding: 28px;
  }
}

@media (max-width: 460px) {
  .hero-content {
    padding-top: 120px;
  }

  .hero-kicker,
  .section-kicker {
    font-size: 10px;
    letter-spacing: 0.1em;
  }

  .hero-content p {
    font-size: 0.96rem;
  }

  .hero-stats {
    display: none;
  }

  .section-heading h2,
  .vision-text h2,
  .kemty-text h2,
  .about-inner h2 {
    letter-spacing: -0.035em;
  }

  .nav-panel {
    width: 100vw;
  }
}

/********************************************************************************************************/
/* =========================================================
   FIX NAVBAR SANS MODIFIER LES SECTIONS
   ========================================================= */

.main-nav {
  z-index: 999999 !important;
  overflow: visible !important;
}

.main-nav.scrolled {
  z-index: 999999 !important;
}

.nav-panel,
.nav-menu,
.dropdown-menu,
.brand,
.nav-toggle,
.nav-close {
  z-index: 1000000 !important;
}

.dropdown-menu {
  z-index: 1000001 !important;
}

.slider-arrow,
.slider-dots,
.scroll-indicator {
  z-index: 50 !important;
}

.lightbox {
  z-index: 1000010 !important;
}

section[id],
header[id],
#services {
  scroll-margin-top: calc(var(--nav-height) + 48px);
}

@media (max-width: 930px) {
  .main-nav,
  .main-nav.scrolled {
    z-index: 999999 !important;
  }

  .nav-panel {
    z-index: 1000002 !important;
  }

  .nav-toggle,
  .nav-close {
    z-index: 1000003 !important;
  }
}

/* =========================================================
   FIX RESPONSIVE MENU PRINCIPAL - AJOUT SANS CASSER LE DESIGN
   Objectif : corriger le menu burger confondu/chevauché et
   stabiliser l'affichage sur téléphones, tablettes, laptops
   13-14 pouces et écrans externes.
   ========================================================= */

/* Laptops compacts : on garde le menu desktop mais on réduit légèrement
   les espacements pour éviter que les liens se touchent. */
@media (min-width: 1181px) and (max-width: 1360px) {
  .main-nav {
    width: min(1160px, calc(100% - 28px));
    padding: 0 14px;
  }

  .brand {
    min-width: 122px;
  }

  .brand img {
    width: 112px;
  }

  .nav-menu > li > a {
    padding: 11px 9px;
    font-size: 11px;
    letter-spacing: 0.018em;
  }

  .dropdown-menu {
    min-width: 360px;
  }
}

/* Tablettes, petits laptops et mobiles : passage en vrai panneau burger.
   Le point important est transform:none sur .main-nav pour que .nav-panel
   ne soit plus positionné par rapport à la barre arrondie. */
@media (max-width: 1180px) {
  :root {
    --nav-height: 66px;
    --container: min(100% - 28px, 1180px);
  }

  .main-nav,
  .main-nav.scrolled {
    left: 14px;
    right: 14px;
    width: auto;
    transform: none;
    height: var(--nav-height);
    padding: 0 14px;
    border-radius: 999px;
    overflow: visible !important;
  }

  .main-nav {
    top: 12px;
  }

  .main-nav.scrolled {
    top: 8px;
    height: 64px;
  }

  .brand {
    min-width: 0;
  }

  .brand img {
    width: 118px;
  }

  .nav-toggle {
    position: relative;
    z-index: 1000004 !important;
    width: 46px;
    height: 46px;
    display: grid;
    gap: 5px;
    place-content: center;
    flex: 0 0 46px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    cursor: pointer;
  }

  .nav-toggle span {
    width: 20px;
    height: 2px;
    display: block;
    border-radius: 999px;
    background: var(--text);
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  body.nav-open::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 999998;
    background: rgba(0, 0, 0, 0.58);
    backdrop-filter: blur(5px);
  }

  .nav-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: min(86vw, 430px);
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    padding: calc(88px + env(safe-area-inset-top)) 20px calc(28px + env(safe-area-inset-bottom));
    display: block;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    background:
      radial-gradient(circle at top right, rgba(0, 245, 255, 0.13), transparent 18rem),
      rgba(8, 11, 18, 0.985);
    border-left: 1px solid rgba(255, 255, 255, 0.10);
    transform: translateX(112%);
    transition: transform 0.35s ease;
    box-shadow: -18px 0 60px rgba(0, 0, 0, 0.45);
    z-index: 1000002 !important;
  }

  body.nav-open .nav-panel {
    transform: translateX(0);
  }

  .nav-close {
    position: absolute;
    top: calc(18px + env(safe-area-inset-top));
    right: 20px;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text);
    background: rgba(255, 255, 255, 0.08);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    z-index: 1000003 !important;
  }

  .nav-menu {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 9px;
    width: 100%;
  }

  .nav-menu > li {
    width: 100%;
  }

  .nav-menu > li > a {
    width: 100%;
    min-height: 48px;
    justify-content: space-between;
    padding: 13px 14px;
    border-radius: 16px;
    font-size: 13px;
    line-height: 1.25;
    white-space: normal;
    overflow-wrap: anywhere;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav-menu > li > a:hover,
  .nav-menu > li > a.active-link {
    color: var(--cyan);
    background: rgba(0, 245, 255, 0.08);
    border-color: rgba(0, 245, 255, 0.18);
  }

  .dropdown-menu {
    position: static;
    min-width: 0;
    width: 100%;
    display: none;
    margin: 7px 0 12px;
    padding: 8px;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.055);
  }

  .has-dropdown:hover .dropdown-menu {
    display: none;
  }

  .has-dropdown.open .dropdown-menu {
    display: grid;
    gap: 6px;
  }

  .dropdown-menu a {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
    border-radius: 14px;
    transform: none !important;
  }

  .dropdown-menu strong,
  .dropdown-menu small {
    overflow-wrap: anywhere;
  }

  .dropdown-menu small {
    font-size: 10.5px;
  }

  .menu-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    font-size: 16px;
  }

  .hero-content {
    padding-top: 132px;
    padding-bottom: 92px;
  }

  .slider-arrow {
    display: none;
  }

  .scroll-indicator {
    display: none;
  }
}

/* Tablettes portrait/paysage : les grilles restent lisibles et respirent. */
@media (min-width: 721px) and (max-width: 1180px) {
  .services-grid,
  .expertise-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .projects-grid,
  .universe-grid,
  .wallpaper-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .universe-card:nth-child(3) {
    grid-column: 1 / -1;
  }

  .vision-container,
  .kemty-container {
    grid-template-columns: 1fr;
  }
}

/* Téléphones larges et moyens. */
@media (max-width: 720px) {
  .main-nav,
  .main-nav.scrolled {
    left: 12px;
    right: 12px;
  }

  .nav-panel {
    width: min(92vw, 420px);
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero-content {
    min-height: 100svh;
    padding-top: 124px;
    padding-bottom: 76px;
  }

  .hero-content h1 {
    font-size: clamp(2.65rem, 14vw, 5rem);
  }

  .section-heading {
    margin-bottom: 42px;
  }
}

/* Très petits téléphones : panneau plein écran et boutons bien séparés. */
@media (max-width: 460px) {
  :root {
    --container: min(100% - 24px, 1180px);
  }

  .main-nav,
  .main-nav.scrolled {
    left: 10px;
    right: 10px;
    height: 62px;
    padding: 0 12px;
  }

  .brand img {
    width: 104px;
  }

  .nav-toggle {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .nav-panel {
    width: 100vw;
    padding: calc(82px + env(safe-area-inset-top)) 14px calc(24px + env(safe-area-inset-bottom));
  }

  .nav-close {
    right: 16px;
    width: 42px;
    height: 42px;
  }

  .nav-menu {
    gap: 8px;
  }

  .nav-menu > li > a {
    min-height: 46px;
    padding: 12px;
    font-size: 12px;
  }

  .dropdown-menu a {
    grid-template-columns: 34px minmax(0, 1fr);
    padding: 9px;
  }

  .menu-icon {
    width: 34px;
    height: 34px;
  }
}

/* Écrans très étroits type ancien téléphone. */
@media (max-width: 360px) {
  .nav-menu > li > a {
    font-size: 11.5px;
  }

  .dropdown-menu small {
    display: none;
  }

  .hero-actions .btn {
    padding-left: 14px;
    padding-right: 14px;
    font-size: 13px;
  }
}

/* Petits laptops avec faible hauteur : le hero évite de se tasser sous la navbar. */
@media (min-width: 1181px) and (max-height: 760px) {
  .hero-content {
    padding-top: 132px;
    padding-bottom: 72px;
  }

  .hero-content h1 {
    font-size: clamp(3rem, 7vw, 6.4rem);
  }

  .hero-stats {
    margin-top: 28px;
  }
}

/*------------------------------------------------------------------------------------------*/

/* =========================================================
   FIX MENU BURGER : SUPPRESSION DU DOUBLE BOUTON FERMER
   ========================================================= */
@media (max-width: 1180px) {
  body.nav-open .nav-toggle {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: scale(0.72) !important;
  }

  .nav-close {
    z-index: 1000006 !important;
  }
}

/* =========================================================
   FIX CIBLE : SUPPRIMER L'ANIMATION PARASITE AU RETRECISSEMENT
   Ce bloc ne modifie pas la structure ni le design : il neutralise
   uniquement les transitions du menu pendant le redimensionnement.
   ========================================================= */
@media (max-width: 1180px) {
  .nav-panel {
    transition: none !important;
    will-change: auto;
  }

  body.menu-can-animate:not(.is-resizing-menu) .nav-panel {
    transition: transform 0.35s ease !important;
    will-change: transform;
  }

  body.is-resizing-menu .main-nav,
  body.is-resizing-menu .nav-panel,
  body.is-resizing-menu .nav-panel *,
  body.is-resizing-menu .nav-toggle,
  body.is-resizing-menu .nav-toggle span,
  body.is-resizing-menu .nav-close,
  body.is-resizing-menu .dropdown-menu,
  body.is-resizing-menu::before {
    transition: none !important;
    animation: none !important;
  }

  body.is-resizing-menu:not(.nav-open) .nav-panel {
    transform: translateX(112%) !important;
  }
}

@media (min-width: 1181px) {
  body.is-resizing-menu .main-nav,
  body.is-resizing-menu .nav-panel,
  body.is-resizing-menu .dropdown-menu {
    transition: none !important;
    animation: none !important;
  }
}
