﻿/* ===== BASE STYLE ===== */
:root {
  --primary: #364cb1;         /* Indigo highlight */
  --accent: #08af8a;          /* Vibrant teal */
  --accent-alt: #0069c5;      /* Deep ocean blue */
  --accent-mid: #0092b7;      /* Aqua transition */
  --primary-rgb: 54, 76, 177;
  --accent-rgb: 8, 175, 138;
  --accent-alt-rgb: 0, 105, 197;
  --accent-mid-rgb: 0, 146, 183;
  --dark: #090909;
  --light: #f5f7fa;
  --text: rgba(240, 241, 246, 0.92);
  --muted: rgba(255, 255, 255, 0.65);
  --radius: 14px;
  --shadow: 0 18px 45px rgba(15, 15, 30, 0.18);
  --shadow-soft: 0 12px 30px rgba(16, 16, 40, 0.14);
  --transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1);
  --surface: linear-gradient(135deg, rgba(17, 17, 26, 0.85), rgba(4, 4, 7, 0.9));
  --surface-alt: linear-gradient(145deg, rgba(54, 76, 177, 0.16), rgba(0, 162, 161, 0.1));
  --layout-max-width: 1080px;
  --layout-fluid-width: min(1080px, 94vw);
  --layout-inline-pad: clamp(16px, 4vw, 32px);
  --page-background: radial-gradient(circle at 20% 20%, #161927, #08080f 70%);
  --skeleton-base: rgba(255, 255, 255, 0.06);
  --skeleton-glow: rgba(255, 255, 255, 0.18);
  --heading-font: "Space Grotesk", "Poppins", system-ui, sans-serif;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@supports (content-visibility: auto) {
  main section,
  .project-card,
  .projects-grid {
    content-visibility: auto;
    contain-intrinsic-size: 400px 600px;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--page-background);
}

body {
  margin: 0;
  font-family: "Poppins", Arial, sans-serif;
  background: var(--page-background);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--heading-font);
  letter-spacing: 0.08em;
}

body.modal-open {
  overflow: hidden;
  overscroll-behavior: contain;
}

html.modal-open {
  overflow: hidden;
  overscroll-behavior: contain;
}



main section {
  position: relative;
  padding: clamp(70px, 11vw, 120px) 0;
  display: flex;
  justify-content: center;
}

main section .section-inner {
  width: min(1080px, 94vw);
  display: grid;
  gap: clamp(18px, 3vw, 30px);
  text-align: center;
}

main section h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.6rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

main section p {
  margin: 0 auto;
  line-height: 1.7;
  color: rgba(240, 241, 246, 0.76);
  max-width: 720px;
}

main section.dark-panel .section-inner {
  background: linear-gradient(145deg, rgba(12, 13, 22, 0.84), rgba(10, 11, 18, 0.78));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(3, 3, 10, 0.45);
  padding: clamp(36px, 6vw, 56px);
}

main section.dark-panel h2 {
  color: var(--accent);
}

main section.dark-panel p {
  color: rgba(240, 241, 246, 0.72);
}

/* ===== HEADER ===== */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(8, 9, 15, 0.7);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 18px 30px rgba(5, 6, 12, 0.28);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: clamp(18px, 5vw, 40px);
  max-width: var(--layout-max-width);
  width: 100%;
  margin: 0 auto;
  padding: 0.9rem var(--layout-inline-pad);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  padding: 6px 0;
}
.logo img {
  height: clamp(24px, 2.6vw, 38px);
  width: auto;
  display: block;
  object-fit: contain;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav__toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(15, 16, 28, 0.65);
  color: #fff;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.nav__toggle span,
.nav__toggle span::before,
.nav__toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  position: relative;
  transition: var(--transition);
}

.nav__toggle span::before,
.nav__toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav__toggle span::before {
  top: -6px;
}

.nav__toggle span::after {
  top: 6px;
}

.nav__toggle[aria-expanded="true"] span {
  background: transparent;
}

.nav__toggle[aria-expanded="true"] span::before {
  top: 0;
  transform: rotate(45deg);
}

.nav__toggle[aria-expanded="true"] span::after {
  top: 0;
  transform: rotate(-45deg);
}

.nav__toggle:hover {
  background: rgba(var(--accent-alt-rgb), 0.22);
  border-color: rgba(255, 255, 255, 0.2);
}

.nav__links {
  list-style: none;
  display: flex;
  gap: clamp(16px, 4vw, 28px);
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav__links a {
  color: rgba(245, 246, 250, 0.74);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.04em;
  position: relative;
  padding: 0.35rem 0;
  transition: color 0.25s ease;
}
.nav__links a::after {
  content: "";
  position: absolute;
  inset: auto 0 -8px 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.35s ease;
}
.nav__links a:hover,
.nav__links a:focus-visible {
  color: #fff;
}
.nav__links a:hover::after,
.nav__links a:focus-visible::after {
  transform: scaleX(1);
}

@media (max-width: 820px) {
  header .container {
    padding: 0.8rem var(--layout-inline-pad);
  }

  .nav__toggle {
    display: inline-flex;
  }

  .nav__links {
    position: absolute;
    top: 100%;
    right: 5%;
    left: 5%;
    margin: 0 auto;
    padding: 18px clamp(18px, 6vw, 28px);
    background: rgba(10, 10, 18, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    box-shadow: 0 24px 40px rgba(5, 6, 12, 0.35);
    flex-direction: column;
    gap: 14px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: var(--transition);
  }

  .nav__links[data-open="true"] {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav__links a {
    width: 100%;
    text-align: center;
    padding: 0.6rem 0;
  }
}

@media (max-width: 520px) {
  .logo img {
    height: 24px;
  }
}




/* ===== PROJECTS GRID ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
  padding: 40px 0 10px;
  perspective: 1200px;
  perspective-origin: 50% 40%;
  position: relative;
}

.projects-pagination {
  display: none;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
}
.pagination-btn {
  min-width: 40px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(12,12,18,0.72);
  color: #f8f9fb;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}
.pagination-btn:hover {
  background: rgba(var(--primary-rgb), 0.82);
  border-color: rgba(255,255,255,0.3);
  transform: translateY(-1px);
}
.pagination-btn.active {
  background: rgba(var(--primary-rgb), 0.9);
  border-color: rgba(255,255,255,0.35);
  cursor: default;
}
.pagination-btn.disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}
.pagination-ellipsis {
  align-self: center;
  color: rgba(255,255,255,0.6);
  font-weight: 500;
}

.project-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(10px, 3vw, 18px);
  margin: 12px auto 28px;
}

.filter-chip {
  border: 1px solid rgba(var(--accent-rgb), 0.22);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(245, 246, 250, 0.82);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.filter-chip:hover {
  transform: translateY(-3px);
  border-color: rgba(var(--accent-rgb), 0.45);
  background: rgba(var(--accent-rgb), 0.14);
  box-shadow: 0 14px 28px rgba(var(--accent-rgb), 0.2);
}

.filter-chip.active {
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.9), rgba(var(--accent-rgb), 0.9));
  color: #fff;
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: 0 18px 36px rgba(var(--primary-rgb), 0.35);
}

.filter-chip:focus-visible {
  outline: 2px solid rgba(var(--accent-rgb), 0.6);
  outline-offset: 2px;
}

.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  --project-card-inline-pad: clamp(18px, 2.8vw, 26px);
  --project-card-block-pad: clamp(16px, 2.4vw, 22px);
  cursor: default;
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(155deg, rgba(17, 18, 28, 0.9), rgba(9, 9, 16, 0.78));
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition:
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.55s ease,
    border-color 0.45s ease,
    opacity 0.45s ease;
  transition-delay: var(--card-delay, 0s);
  transform: translate3d(0, 18px, 0) scale(0.98);
  opacity: 0;
  will-change: transform, opacity;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(140deg, rgba(var(--accent-rgb), 0.22), rgba(var(--primary-rgb), 0.16) 55%, transparent 90%);
  opacity: 0;
  transform: translate3d(0, 18px, 0) scale(0.96);
  transition: transform 0.75s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.75s ease;
  pointer-events: none;
}

.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.08);
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.project-card.visible {
  transform: translate3d(0, 0, 0) scale(1);
  opacity: 1;
}

.project-card.visible::before {
  opacity: 0.28;
  transform: translate3d(0, 0, 0) scale(1);
}

.project-card.visible::after {
  opacity: 0.1;
}

.project-card:hover {
  transform: translate3d(0, -14px, 0) scale(1.03);
  box-shadow: 0 28px 58px rgba(5, 5, 20, 0.5);
  border-color: rgba(255, 255, 255, 0.24);
}

.project-card:hover::before {
  opacity: 0.45;
}

.project-card:hover::after {
  opacity: 0.22;
}

.project-card-link {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  text-decoration: none;
  color: inherit;
}

.project-card-link:focus-visible {
  outline: 2px solid rgba(var(--accent-rgb), 0.6);
  outline-offset: 6px;
}

.project-card-media {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: #05070f;
}

.project-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 6, 12, 0) 35%, rgba(5, 6, 12, 0.78));
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

.project-card--featured {
  grid-column: span 2;
  min-height: 100%;
  background: linear-gradient(155deg, rgba(22, 24, 38, 0.92), rgba(9, 10, 18, 0.82));
  flex-direction: column;
  --featured-card-columns: minmax(340px, 1.55fr) minmax(280px, 1fr);
  --project-card-inline-pad: clamp(22px, 3.4vw, 34px);
  --project-card-block-pad: clamp(20px, 3vw, 30px);
  position: relative;
  overflow: hidden;
}

.project-card--featured .project-card-media {
  height: 320px;
}

.project-card--featured .project-card-meta {
  padding: var(--project-card-block-pad) var(--project-card-inline-pad);
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2.4vw, 24px);
  align-items: flex-start;
  justify-content: center;
}

.project-card--featured .project-card-desc {
  font-size: 0.96rem;
  color: rgba(245, 246, 250, 0.82);
}

.project-card--featured::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(8, 9, 18, 0.2), rgba(8, 9, 18, 0.75));
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.project-card--featured:hover::after {
  opacity: 0.5;
}

.project-card-media img,
.project-card-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  object-position: var(--media-focus-x, 50%) var(--media-focus-y, 50%);
  transform-origin: var(--media-focus-x, 50%) var(--media-focus-y, 50%);
  transform: scale(calc(var(--media-zoom, 1) * 1.02));
  transition: transform 0.65s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.5s ease;
  will-change: transform;
}

.project-card-media video[data-autoplay] {
  opacity: 0;
  transition: opacity 0.6s ease;
}

.project-card-media video[data-autoplay].is-playing {
  opacity: 1;
}

.project-card-media video[data-autoplay]::-webkit-media-controls {
  display: none !important;
}

.project-card.visible .project-card-media img,
.project-card.visible .project-card-media video {
  transform: scale(calc(var(--media-zoom, 1) * 1.015));
}

.project-card:hover .project-card-media::after {
  opacity: 0.5;
}

.project-card:hover .project-card-media img,
.project-card:hover .project-card-media video {
  transform: scale(calc(var(--media-zoom, 1) * 1.08));
}

.video-thumb {
  position: relative;
  width: 100%;
  height: 100%;
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
  object-position: var(--media-focus-x, 50%) var(--media-focus-y, 50%);
  transform-origin: var(--media-focus-x, 50%) var(--media-focus-y, 50%);
  transform: scale(var(--media-zoom, 1));
}

.video-thumb .play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: rgba(255, 255, 255, 0.92);
  font-size: 2.1rem;
  text-shadow: 0 6px 28px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}

.project-card-meta {
  padding: var(--project-card-block-pad) var(--project-card-inline-pad);
  display: grid;
  gap: clamp(12px, 1.8vw, 18px);
  text-align: left;
  background: linear-gradient(140deg, rgba(10, 10, 18, 0.92), rgba(9, 9, 16, 0.82));
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  align-items: flex-start;
  justify-items: flex-start;
  align-content: flex-start;
  transition: background 0.45s ease, border-color 0.45s ease, transform 0.45s ease;
}

.project-card-client {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(235, 236, 245, 0.7);
  letter-spacing: 0.06em;
}

.project-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.85), rgba(var(--accent-rgb), 0.85));
  color: #0b0b12;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
}

.project-card-category {
  justify-self: flex-start;
  font-size: 0.7rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(var(--accent-rgb), 0.82);
  background: rgba(var(--accent-rgb), 0.12);
  border: 1px solid rgba(var(--accent-rgb), 0.25);
  border-radius: 999px;
  padding: 4px 14px;
}

.project-card-meta h3 {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 600;
  color: #f8f9fb;
  letter-spacing: 0.05em;
  transition: color 0.45s ease;
}

.project-card-desc {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(245, 246, 250, 0.8);
  line-height: 1.55;
  transition: color 0.45s ease;
}

.project-card:hover .project-card-meta {
  background: linear-gradient(150deg, rgba(14, 16, 28, 0.95), rgba(8, 9, 16, 0.82));
  border-color: rgba(255, 255, 255, 0.22);
  transform: translate3d(0, -4px, 0);
}

.project-card:hover .project-card-meta h3 {
  color: rgba(255, 255, 255, 0.92);
}

.project-card:hover .project-card-desc {
  color: rgba(245, 246, 250, 0.92);
}
.project-card {
  position: relative;
}

.project-card-actions {
  width: 100%;
  margin-top: auto;
  padding: clamp(12px, 1.8vw, 18px) var(--project-card-inline-pad) var(--project-card-block-pad);
  display: flex;
  flex-wrap: wrap;
  gap: clamp(8px, 1.2vw, 14px);
  align-items: center;
  justify-content: flex-end;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(145deg, rgba(10, 10, 18, 0.94), rgba(6, 6, 12, 0.86));
}
.project-card-count {
  position: static;
  margin-right: auto;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245, 246, 250, 0.72);
  font-weight: 600;
}
.project-card-actions .project-card-share {
  margin-left: auto;
}
.project-card-share--inline {
  align-self: flex-start;
  margin-bottom: 12px;
}
.project-card-share {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.16);
  color: rgba(245, 246, 250, 0.92);
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}
.project-card-share i {
  font-size: 0.85rem;
}
.project-card-share:hover {
  background: rgba(var(--accent-rgb), 0.3);
  border-color: rgba(var(--accent-rgb), 0.5);
  transform: translateY(-1px);
}
.project-card-share:focus-visible {
  outline: 2px solid rgba(var(--accent-rgb), 0.6);
  outline-offset: 2px;
}

.project-card:hover .project-card-share {
  background: rgba(var(--accent-rgb), 0.35);
  border-color: rgba(var(--accent-rgb), 0.65);
  transform: translateY(-2px);
}

.project-card-skeleton {
  position: relative;
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: linear-gradient(155deg, rgba(15, 16, 26, 0.85), rgba(9, 9, 14, 0.78));
  box-shadow: 0 18px 36px rgba(5, 6, 16, 0.32);
  padding: 18px 20px 20px;
  display: grid;
  gap: 16px;
  overflow: hidden;
  animation: skeletonFadeIn 0.35s ease-out;
}

.project-card-skeleton__media {
  height: 210px;
  border-radius: 18px;
  background: var(--skeleton-base);
  position: relative;
  overflow: hidden;
}

.project-card-skeleton__body {
  display: grid;
  gap: 12px;
}

.skeleton-line {
  height: 12px;
  border-radius: 999px;
  background: var(--skeleton-base);
  position: relative;
  overflow: hidden;
}

.skeleton-line--lg {
  width: 78%;
}

.skeleton-line--md {
  width: 60%;
}

.skeleton-line--sm {
  width: 44%;
}

.project-card-skeleton__media::after,
.skeleton-line::after {
  content: "";
  position: absolute;
  inset: -1px;
  background: linear-gradient(90deg, transparent, var(--skeleton-glow), transparent);
  transform: translateX(-100%);
  animation: skeletonShimmer 1.6s ease-in-out infinite;
}

@keyframes skeletonShimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

@keyframes skeletonFadeIn {
  0% {
    opacity: 0;
    transform: translateY(12px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.projects-empty-state {
  width: 100%;
  text-align: center;
  padding: 60px 24px;
  border-radius: calc(var(--radius) + 4px);
  border: 1px dashed rgba(255, 255, 255, 0.22);
  color: rgba(245, 246, 250, 0.92);
  background: linear-gradient(140deg, rgba(9, 10, 18, 0.72), rgba(8, 9, 16, 0.66));
  box-shadow: 0 24px 46px rgba(0, 0, 0, 0.35);
}

@media (max-width: 768px) {
  .project-card-media {
    height: 180px;
  }
  .project-card-meta {
    padding: 16px;
  }
  .project-card-meta h3 {
    font-size: 1.02rem;
  }
  .project-card-desc {
    font-size: 0.88rem;
  }
}

@media (max-width: 640px) {
  .projects-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .project-card--featured {
    grid-column: 1 / -1;
  }
  .project-card--featured .project-card-media {
    height: 240px;
  }
  .hero-text-inner {
    padding: 4px 10px;
    letter-spacing: 0.18em;
  }
  .contact-card-action {
    width: 100%;
    justify-content: center;
  }
  .contact-card-secondary {
    width: 100%;
    justify-content: center;
    gap: 10px;
  }
  .contact-card-secondary .contact-card-chip {
    flex: 1 1 48%;
    min-width: 140px;
  }
}

@media (min-width: 840px) {
  .project-card--featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: var(--featured-card-columns);
    grid-template-rows: auto auto;
    min-height: 380px;
  }

  .project-card--featured .project-card-link {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: var(--featured-card-columns);
  }

  .project-card--featured .project-card-media {
    grid-column: 1 / 2;
    height: 100%;
  }

  .project-card--featured .project-card-meta {
    grid-column: 2 / 3;
    height: 100%;
  }

  .project-card--featured .project-card-actions {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    margin-top: 0;
    padding: clamp(14px, 2vw, 20px) var(--project-card-inline-pad) clamp(20px, 2.6vw, 28px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: transparent;
    justify-content: flex-start;
  }
}


/* ===== MODAL ===== */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  padding: clamp(18px, 4vw, 36px);
  justify-content: center;
  align-items: center;
  z-index: 9999;
  background: rgba(6, 6, 12, 0.45);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  overflow: hidden;
  overscroll-behavior: contain;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  cursor: pointer;
}

.modal.show {
  display: flex;
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: rgba(10,10,16,0.35);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: calc(var(--radius) + 2px);
  box-shadow: 0 28px 60px rgba(0,0,0,0.55);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 2vw, 20px);
  width: min(880px, 92vw);
  max-height: min(84vh, 92dvh);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--primary-rgb), 0.6) rgba(8, 9, 16, 0.55);
  color: #fff;
  position: relative;
  padding: 18px clamp(14px, 4vw, 24px);
  transform: scale(0.92);
  opacity: 0;
  transition: all 0.45s ease;
  cursor: auto;
}

.modal.show .modal-content {
  transform: scale(1);
  opacity: 1;
}

.modal-media-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  min-height: clamp(200px, 42vh, 480px);
  padding: clamp(6px, 2vw, 16px) clamp(4px, 1.5vw, 12px);
}

#modalMediaWrapper {
  flex-shrink: 0;
}

.modal-content::-webkit-scrollbar {
  width: 10px;
}

.modal-content::-webkit-scrollbar-track {
  background: rgba(6, 7, 12, 0.55);
  border-radius: 12px;
}

.modal-content::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.75), rgba(var(--accent-rgb), 0.6));
  border-radius: 12px;
  border: 2px solid rgba(6, 7, 12, 0.55);
}

.modal-content::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.9), rgba(var(--accent-rgb), 0.75));
}

.modal-media-wrapper img,
.modal-media-wrapper video {
  width: min(92vw, 920px);
  max-width: 100%;
  max-height: min(72vh, 760px);
  object-fit: contain;
  border-radius: calc(var(--radius) - 2px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
  z-index: 1;
  position: relative;
  background: #000;
}

.modal-media-wrapper .modal-video {
  width: min(90vw, 860px);
  aspect-ratio: 16 / 9;
}

.modal-media-wrapper .modal-img {
  background: #02040a;
}

.modal-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(18,18,26,0.6);
  color: #fff;
  font-size: 2rem;
  padding: 10px 18px;
  border-radius: 32px;
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 16px 30px rgba(0,0,0,0.35);
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  backdrop-filter: blur(18px);
}
.modal-btn:hover {
  background: rgba(var(--primary-rgb), 0.85);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-50%) scale(1.02);
}
.modal-btn.left { left: 18px; }
.modal-btn.right { right: 18px; }
.modal-btn.close {
  top: 18px;
  right: 18px;
  transform: none;
  padding: 8px 16px;
  font-size: 2.2rem;
  z-index: 6;
  line-height: 1;
  position: sticky;
  align-self: flex-end;
}
.modal-btn.left:hover {
  transform: translateY(-50%) translateX(-6px) scale(1.02);
}
.modal-btn.right:hover {
  transform: translateY(-50%) translateX(6px) scale(1.02);
}
.modal-btn.close:hover {
  transform: scale(1.05);
  background: rgba(var(--primary-rgb), 0.9);
}

/* Thumbnails inside modal */
.thumbnail-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
  width: 100%;
  padding-bottom: 8px;
}
.thumb {
  width: 78px;
  height: 54px;
  object-fit: cover;
  border-radius: 10px;
  opacity: 0.55;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  box-shadow: 0 8px 16px rgba(0,0,0,0.35);
  background: #05070f;
  display: block;
}
.thumb:hover,
.thumb.active {
  opacity: 1;
  border-color: var(--primary);
  transform: translateY(-4px);
}

/* Watermark */
.modal-watermark {
  position: absolute;
  bottom: 12px;
  left: 18px;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.75);
  font-weight: 500;
  background: rgba(9,9,16,0.6);
  padding: 6px 12px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}
/* ===== HERO SECTION (FINAL FIX) ===== */
.hero {
  position: relative;
  min-height: 88vh;
  padding: clamp(80px, 12vh, 140px) 0;
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(circle at 25% 25%, rgba(6, 9, 20, 0.88), rgba(2, 3, 8, 0.96));
  --hero-foreground-overlay-opacity: 1;
  --hero-background-overlay-opacity: 0.6;
}

.hero-background {
  position: absolute;
  inset: -18% -14% -16%;
  display: grid;
  place-items: center;
  pointer-events: none;
  filter: blur(18px) saturate(1.12);
  opacity: 0.82;
  z-index: -1;
}

.hero-video-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 36px;
  opacity: 0.9;
  transform: none;
  mix-blend-mode: normal;
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: -2;
}

.hero-video-layer video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--hero-video-desktop-position, 50% 50%);
  opacity: 0.95;
  filter: saturate(1.1) contrast(1.05);
  transform: scale(var(--hero-video-desktop-scale, 1));
  transition: opacity 0.4s ease, object-position 0.4s ease, transform 0.4s ease;
}

.hero-video-layer.hero-video--empty {
  opacity: 0;
}

.hero-video-layer.hero-video--empty video {
  opacity: 0;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  --hero-overlay-opacity: 0.85;
  background: linear-gradient(145deg, rgba(2, 0, 36, 0.55), rgba(34, 67, 117, 0.28));
  pointer-events: none;
  mix-blend-mode: soft-light;
  opacity: var(--hero-overlay-opacity, 0.9);
  transition:
    background 0.6s ease,
    opacity 0.4s ease,
    filter 0.4s ease,
    mix-blend-mode 0.4s ease;
}

.hero-video-overlay--aurora {
  background:
    radial-gradient(circle at 20% 18%, rgba(54, 199, 255, 0.22), transparent 55%),
    radial-gradient(circle at 80% 62%, rgba(143, 107, 255, 0.18), transparent 65%),
    linear-gradient(145deg, rgba(2, 0, 36, 0.55), rgba(34, 67, 117, 0.28));
  filter: saturate(1.05);
}

.hero-video-overlay--ember {
  background:
    radial-gradient(circle at 70% 20%, rgba(255, 198, 93, 0.5), transparent 55%),
    linear-gradient(130deg, rgba(120, 22, 0, 0.75), rgba(28, 5, 1, 0.7));
  mix-blend-mode: screen;
  filter: saturate(1.2);
}

.hero-video-overlay--midnight {
  background:
    radial-gradient(circle at 12% 88%, rgba(8, 48, 112, 0.7), transparent 62%),
    linear-gradient(160deg, rgba(2, 6, 23, 0.92), rgba(11, 32, 60, 0.65));
  mix-blend-mode: multiply;
  filter: saturate(0.85);
}

.hero-video-overlay--prism {
  background:
    conic-gradient(
      from 110deg,
      rgba(8, 175, 138, 0.65),
      rgba(122, 54, 255, 0.45),
      rgba(255, 198, 93, 0.35),
      rgba(8, 175, 138, 0.65)
    ),
    linear-gradient(140deg, rgba(1, 9, 27, 0.8), rgba(12, 36, 60, 0.5));
  mix-blend-mode: color-dodge;
  filter: saturate(1.3);
}

.hero-video-overlay--nebula {
  background:
    radial-gradient(circle at 28% 32%, rgba(255, 138, 203, 0.4), transparent 55%),
    radial-gradient(circle at 70% 68%, rgba(70, 130, 255, 0.35), transparent 60%),
    linear-gradient(150deg, rgba(6, 3, 28, 0.92), rgba(21, 11, 41, 0.8));
  mix-blend-mode: lighten;
  filter: saturate(1.15);
}

.hero-video-overlay--lumen {
  background:
    radial-gradient(circle at 40% 20%, rgba(255, 255, 255, 0.4), transparent 55%),
    radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.2), transparent 65%),
    linear-gradient(130deg, rgba(6, 20, 35, 0.82), rgba(32, 54, 78, 0.6));
  mix-blend-mode: soft-light;
  filter: saturate(1.05) contrast(1.05);
}

.hero-video-overlay--noir {
  background:
    radial-gradient(circle at 50% 10%, rgba(255, 255, 255, 0.12), transparent 45%),
    linear-gradient(165deg, rgba(0, 0, 0, 0.85), rgba(12, 12, 12, 0.65));
  mix-blend-mode: multiply;
  filter: saturate(0.6) contrast(1.1);
}

.hero-video-glow {
  position: absolute;
  inset: -18% -12%;
  background: radial-gradient(circle at 30% 30%, rgba(8, 175, 138, 0.35), transparent 60%);
  filter: blur(60px);
  opacity: var(--hero-background-overlay-opacity, 0.6);
  pointer-events: none;
}

@media (max-width: 1024px) {
  .hero-video-layer {
    border-radius: 24px;
    inset: -6% -8%;
  }

  .hero-video-layer video {
    object-position: var(--hero-video-desktop-position, 50% 50%);
  }
}

@media (max-width: 640px) {
  .hero-video-layer {
    inset: -12% -18% -4%;
    border-radius: 20px;
    opacity: 0.9;
  }

  .hero-video-layer video {
    object-fit: cover;
    object-position: var(--hero-video-mobile-position, 50% 35%);
    transform: scale(var(--hero-video-mobile-scale, 1.05));
  }
}

.hero-stripe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 118%;
  height: 118%;
  transform: translate(-50%, -50%) rotate(0deg);
  border-radius: 45%;
  mix-blend-mode: screen;
  will-change: transform, opacity;
  z-index: -1;
}

.hero-stripe::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 40% 32%, rgba(255, 255, 255, 0.28), transparent 60%);
  mix-blend-mode: difference;
  opacity: 0.32;
  filter: blur(14px);
}

.hero-stripe--one {
  background:
    conic-gradient(from 120deg, rgba(54, 76, 177, 0.78) 0deg, rgba(8, 175, 138, 0.56) 140deg, transparent 240deg, transparent 360deg);
  animation: heroStripeOrbit 32s linear infinite;
  animation-delay: -6s;
}

.hero-stripe--two {
  width: 78%;
  height: 78%;
  background:
    linear-gradient(140deg, rgba(0, 146, 183, 0.58), transparent 65%),
    radial-gradient(circle at 55% 40%, rgba(143, 107, 255, 0.55), transparent 70%);
  animation: heroStripeOrbit 46s linear infinite reverse;
  animation-delay: -12s;
}

.hero-stripe--three {
  width: 60%;
  height: 60%;
  background:
    conic-gradient(from -60deg, rgba(8, 175, 138, 0.7) 0deg, rgba(8, 175, 138, 0.12) 140deg, transparent 200deg, transparent 360deg);
  animation: heroStripeOrbit 22s linear infinite;
  animation-delay: -3s;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -28% -24% -30%;
  background:
    radial-gradient(circle at 12% 38%, rgba(8, 175, 138, 0.45), transparent 55%),
    radial-gradient(circle at 88% 20%, rgba(54, 76, 177, 0.4), transparent 65%);
  filter: blur(80px);
  opacity: var(--hero-background-overlay-opacity, 0.6);
  animation: heroGlowShift 18s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 7, 16, 0) 35%, rgba(6, 7, 16, 0.88) 85%);
  backdrop-filter: blur(3px);
  opacity: var(--hero-foreground-overlay-opacity, 1);
  z-index: 0;
  pointer-events: none;
}

.hero #heroText {
  position: relative;
  display: inline-block;
  color: transparent;
  opacity: 1;
  overflow: visible;
  animation: none;
}

.hero-text-inner {
  position: relative;
  display: inline-block;
  padding: 6px 16px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: linear-gradient(120deg, #16f2ff, #6aa9ff, #8f6bff, #ff6ec4, #ffb86c, #16f2ff);
  background-size: 420% 420%;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 24px 55px rgba(0, 0, 0, 0.55);
  animation: heroHeadingGradient 8s ease-in-out infinite, heroHeadingPulse 6s ease-in-out infinite;
  z-index: 0;
}

.hero-text-inner::after {
  content: "";
  position: absolute;
  inset: -14px -24px -16px;
  background:
    radial-gradient(circle at 30% 30%, rgba(22, 242, 255, 0.32), transparent 55%),
    radial-gradient(circle at 70% 70%, rgba(255, 110, 196, 0.28), transparent 60%);
  opacity: 0.35;
  filter: blur(22px);
  z-index: -1;
  animation: heroHeadingAura 7s ease-in-out infinite;
}

@keyframes heroStripeOrbit {
  0% {
    transform: translate(-50%, -50%) rotate(0deg) scale(1);
    opacity: 0.88;
  }
  50% {
    transform: translate(-50%, -50%) rotate(180deg) scale(1.05);
    opacity: 0.72;
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg) scale(1);
    opacity: 0.88;
  }
}

@keyframes heroGlowShift {
  0% {
    transform: translate3d(-2%, -1%, 0) scale(1.05);
    opacity: 0.6;
  }
  50% {
    transform: translate3d(3%, -3%, 0) scale(1.1);
    opacity: 0.72;
  }
  100% {
    transform: translate3d(-4%, 2%, 0) scale(0.98);
    opacity: 0.55;
  }
}

@keyframes heroContentRise {
  0% {
    opacity: 0;
    transform: translateY(32px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroHeadingGradient {
  0% {
    background-position: 0% 50%;
  }
  25% {
    background-position: 50% 0%;
  }
  50% {
    background-position: 100% 50%;
  }
  75% {
    background-position: 50% 100%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes heroHeadingPulse {
  0%,
  100% {
    text-shadow: 0 24px 55px rgba(0, 0, 0, 0.55);
  }
  50% {
    text-shadow:
      0 24px 55px rgba(0, 0, 0, 0.55),
      0 0 30px rgba(22, 242, 255, 0.42);
  }
}

@keyframes heroHeadingAura {
  0% {
    opacity: 0.28;
    transform: translateY(0) scale(0.95);
  }
  50% {
    opacity: 0.6;
    transform: translateY(-3px) scale(1.02);
  }
  100% {
    opacity: 0.28;
    transform: translateY(0) scale(0.95);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-content {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .hero::before {
    animation: none;
  }

  .hero-background,
  .hero-stripe {
    animation: none;
    opacity: 0.65;
    filter: none;
  }

  .hero-stripe {
    transform: translate(-50%, -50%) rotate(0deg) scale(1);
  }

  .hero-background {
    gap: 0;
  }

  .hero-text-inner {
    animation: none;
    background-position: 50% 50%;
  }

  .hero-text-inner::after {
    animation: none;
    opacity: 0;
  }

  .project-card-skeleton,
  .project-card-skeleton__media::after,
  .skeleton-line::after {
    animation: none;
  }
}

#heroSubtitle {
  margin-top: 1.2rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(245, 246, 248, 0.75);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0069c5, #0092b7, #00a2a1, #08af8a);
  color: #fff;
  padding: 14px 32px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 1.5rem;
  transition: var(--transition);
  box-shadow: 0 18px 35px rgba(var(--accent-alt-rgb), 0.35);
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.4), transparent 55%);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.btn:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 24px 45px rgba(var(--accent-rgb), 0.45);
}
.btn:hover::after {
  opacity: 1;
  transform: scale(1.15);
}
.btn:focus-visible {
  outline: 2px solid rgba(var(--accent-rgb), 0.8);
  outline-offset: 4px;
}

.btn--ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: none;
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.4);
}



/* Fade-in animation for hero content */
/* ===== MOBILE OPTIMIZATION ===== */
@media (max-width: 768px) {
  .hero {
    padding: clamp(70px, 18vh, 120px) 0;
  }

  .hero-background {
    inset: -32% -22% -34%;
    gap: 0;
    filter: blur(10px) saturate(1.05);
    opacity: 0.68;
  }

  .hero-stripe--one,
  .hero-stripe--two,
  .hero-stripe--three {
    width: 88%;
    height: 88%;
    animation-duration: 20s;
    animation-delay: 0s;
  }

  .hero-stripe--two {
    width: 68%;
    height: 68%;
  }

  .hero-stripe--three {
    width: 52%;
    height: 52%;
  }

  .hero::before {
    inset: -28% -32% -36%;
    filter: blur(60px);
    opacity: 0.5;
  }

  .contact-section {
padding: clamp(66px, 11vh, 100px) 0;
  }

  .contact-subtitle {
    font-size: 0.95rem;
    margin-bottom: 24px;
  }

  .contact-details {
    grid-template-columns: 1fr;
    gap: 18px;
    margin: 0 auto 32px;
  }

  .contact-card {
    padding: 18px;
    border-radius: 18px;
    gap: 12px;
  }

  .contact-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 1.05rem;
  }

  .contact-card-action {
    width: fit-content;
    padding-inline: 14px;
    font-size: 0.86rem;
  }

  .contact-card-secondary {
    gap: 10px;
    justify-content: center;
  }

  .contact-card-map iframe {
    height: 200px;
  }
}


@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.7rem;
  }
  .hero p {
    font-size: 0.95rem;
  }
}

/* ===== CONTACT SECTION ===== */
.contact-section {
  background: radial-gradient(circle at top, rgba(14, 16, 28, 0.92), rgba(6, 7, 13, 0.96));
  color: #fff;
  padding: clamp(66px, 11vh, 100px) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.contact-section h2 {
  font-size: clamp(1.85rem, 2.8vw, 2.3rem);
  color: var(--accent);
  margin-bottom: 10px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

.contact-subtitle {
  color: rgba(255, 255, 255, 0.68);
  margin-bottom: 40px;
  font-size: 1.01rem;
  max-width: 520px;
  margin-inline: 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.1fr);
  gap: clamp(24px, 5vw, 38px);
  align-items: stretch;
}

.contact-column {
  display: grid;
  gap: 24px;
  text-align: left;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.contact-column .contact-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(18px, 3vw, 26px);
  margin: 0;
  width: 100%;
}

.contact-card {
  display: grid;
  gap: 14px;
  padding: 24px;
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(17, 20, 32, 0.92), rgba(9, 10, 18, 0.88));
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 22px 48px rgba(5, 6, 16, 0.35);
  text-align: left;
  align-content: start;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-6px);
  border-color: rgba(var(--accent-rgb), 0.35);
  box-shadow: 0 28px 62px rgba(6, 8, 20, 0.45);
}

.contact-card-header {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
}

.contact-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: rgba(var(--accent-rgb), 0.22);
  color: var(--accent);
  font-size: 1.25rem;
  box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.35);
}

.contact-card-meta {
  display: grid;
  gap: 6px;
}

.contact-card-title {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(240, 241, 246, 0.58);
}

.contact-card-value {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 500;
  letter-spacing: 0.015em;
  color: rgba(245, 246, 250, 0.92);
  word-break: break-word;
}
.contact-card-value a,
.contact-inline-link,
.contact-inline-link:visited {
  color: rgba(245, 246, 250, 0.92);
  text-decoration: none;
  font-weight: inherit;
  transition: color 0.25s ease;
}
.contact-card-value a:hover,
.contact-inline-link:hover {
  color: var(--accent);
  text-decoration: none;
}

.contact-card-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.16);
  color: rgba(245, 246, 250, 0.92);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.contact-card-action i {
  font-size: 0.85rem;
}

.contact-card-action:hover {
  background: rgba(var(--accent-rgb), 0.3);
  color: rgba(245, 246, 250, 0.95);
  transform: translateY(-1px);
}

.contact-card-map iframe {
  width: 100%;
  height: 180px;
  border: 0;
  display: block;
  border-radius: 18px;
}

.contact-card--map {
  align-self: stretch;
}

.contact-card--map .contact-card-map {
  margin-top: 12px;
}

.contact-card--map .contact-card-map iframe {
  height: 320px;
}

.contact-map-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.contact-card-secondary {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.contact-card-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(245, 246, 250, 0.92);
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.contact-card-chip img {
  width: 20px;
  height: 20px;
  display: inline-block;
}

.contact-card-chip:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--accent-rgb), 0.45);
  background: rgba(255, 255, 255, 0.18);
}


.contact-value {
  color: rgba(245, 246, 250, 0.9);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.contact-value:hover {
  color: var(--accent);
}

/* Contact Icons */
.contact-icons,
.footer-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(16px, 3vw, 26px);
  margin-top: 28px;
  flex-wrap: wrap;
}

.contact-icons a,
.footer-icons a {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  transition: var(--transition);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
}

.contact-icons a:hover,
.footer-icons a:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 48px rgba(0, 0, 0, 0.45);
  border-color: rgba(255, 255, 255, 0.22);
}

.contact-icons img,
.footer-icons img,
.viber-icon {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
  transition: transform 0.3s ease, filter 0.3s ease;
  object-fit: contain;
}

.contact-icons a:hover img,
.footer-icons a:hover img {
  transform: scale(1.1);
}

.contact-icons a:hover img[alt="Viber"],
.footer-icons a:hover img[alt="Viber"] {
  filter: none;
  background: #7360f2;
  border-radius: 50%;
  padding: 4px;
}

.contact-icons a:hover img[alt="WhatsApp"],
.footer-icons a:hover img[alt="WhatsApp"] {
  filter: none;
  background: #25d366;
  border-radius: 50%;
  padding: 4px;
}

@media (max-width: 920px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-column {
    text-align: center;
  }

  .contact-subtitle {
    margin-inline: auto;
    text-align: center;
  }

  .contact-actions {
    justify-content: center;
  }

  .contact-column .contact-details {
    grid-template-columns: 1fr;
  }

  .contact-card--map .contact-card-map iframe {
    height: 260px;
  }
}

.footer-icons a:hover img[alt="Instagram"] {
  filter: none;
  background: radial-gradient(circle at 30% 30%, #feda75, #d62976, #962fbf, #4f5bd5);
  border-radius: 50%;
  padding: 4px;
}

.footer-icons a:hover img[alt="Facebook"] {
  filter: none;
  background: #1877f2;
  border-radius: 50%;
  padding: 4px;
}

.footer-icons a:hover img[alt="TikTok"] {
  filter: none;
  background: #010101;
  border-radius: 50%;
  padding: 4px;
}

/* ===== SMOOTH GRADIENT SEPARATOR ===== */
.section-separator {
  width: 100%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(var(--primary-rgb), 0.85),
    rgba(var(--accent-rgb), 0.65),
    transparent
  );
  margin: 0;
  opacity: 0.85;
}

/* ===== FOOTER ===== */
.footer {
  position: relative;
  background: linear-gradient(180deg, rgba(7, 7, 12, 0.95), rgba(3, 3, 6, 0.98));
  padding: clamp(64px, 12vw, 100px) 0 42px;
  text-align: center;
  color: rgba(240, 241, 246, 0.78);
  width: 100%;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(var(--primary-rgb), 0.25), transparent 55%),
              radial-gradient(circle at 75% 10%, rgba(var(--accent-rgb), 0.22), transparent 60%);
  opacity: 0.9;
  pointer-events: none;
}

.footer-content {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  width: min(1080px, 94vw);
  margin: 0 auto;
  display: grid;
  gap: clamp(18px, 3vw, 28px);
  justify-items: center;
  padding: 0;
}

.footer-content h3 {
  color: var(--accent);
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.footer-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.footer-logo img {
  height: clamp(26px, 3vw, 46px);
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.55));
}

.footer-details {
  display: grid;
  gap: 10px;
  margin: 18px 0 12px;
  color: rgba(245, 246, 250, 0.92);
  font-size: 1rem;
  justify-items: center;
  text-align: center;
}

.footer-details p {
  margin: 0;
  line-height: 1.6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.footer-details i {
  color: var(--primary);
  font-size: 1.1rem;
}

.footer-icons {
  margin: 36px auto 12px;
  display: flex;
  justify-content: center;
}

.footer-icons a {
  background: rgba(255, 255, 255, 0.06);
}

.footer-icons a:hover {
  background: rgba(var(--primary-rgb), 0.8);
}

.copyright {
  position: relative;
  z-index: 1;
  font-size: 0.92rem;
  color: rgba(230, 232, 240, 0.55);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
  margin-top: 32px;
  letter-spacing: 0.04em;
}

/* Responsive */
@media (max-width: 768px) {
  .container,
  .section-inner,
  .hero-content,
  .projects-grid,
  .contact-details,
  .footer-content {
    width: 100%;
    max-width: none;
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero {
    padding: clamp(70px, 18vh, 120px) 0;
  }
  /* keep the rest of your mobile tweaks below */
}

  .contact-section {
    padding: 46px 16px 56px;
  }

  .contact-subtitle {
    font-size: 0.95rem;
    margin-bottom: 24px;
  }

  .contact-card {
    padding: 18px;
    border-radius: 18px;
  }

  .contact-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 1.05rem;
  }

  .contact-card-action {
    padding-inline: 14px;
    font-size: 0.86rem;
  }

  .contact-card-secondary {
    justify-content: center;
  }

  .contact-card-map iframe {
    height: 200px;
  }

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1080px, 94vw);
  margin: 0 auto;
  display: grid;
  gap: clamp(18px, 3vw, 26px);
  align-items: center;
  justify-items: center;
  opacity: 0;
  transform: translateY(26px);
  animation: heroContentRise 1.4s cubic-bezier(0.23, 1, 0.32, 1) forwards;
  animation-delay: 0.2s;
}

.hero h1,
.hero #heroTitle,
.hero #heroText {
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-shadow: 0 18px 45px rgba(0, 0, 0, 0.55);
}

.hero p,
.hero .hero-subtitle,
#heroSubtitle {
  font-size: clamp(1rem, 2.3vw, 1.25rem);
  color: rgba(245, 246, 248, 0.82);
  margin: 0 auto;
  max-width: 560px;
}







