﻿/* ========================= Base ========================= */
html,
body {
  margin: 0;
  height: 100%;
  background: #0a0f1b;
  color: #ffffff;
  font-family: "Noto Sans Thai", Karla, system-ui, -apple-system, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-weight: 400;
  scroll-behavior: smooth;
}

/* ========================= Navbar ========================= */
.navbar {
  height: 70px;
  transition: background 0.35s, border-color 0.35s, backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.navbar-brand {
  font-weight: 700;
  letter-spacing: 0.4px;
  font-size: clamp(1.2rem, 0.9rem + 0.9vw, 1.6rem);
  color: #fff;
  text-decoration: none;
}

.nav-chip {
  border-radius: 999px;
  padding: 0.35rem 1rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-decoration: none;
  transition: transform 0.18s ease, background 0.18s ease,
    border-color 0.18s ease, box-shadow 0.18s ease;
  position: relative;
  overflow: hidden;
}
.nav-chip::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    120px 60px at var(--rx, -40%) 50%,
    rgba(255, 255, 255, 0.18),
    transparent 60%
  );
  transform: translateX(0);
  transition: opacity 0.25s ease;
  opacity: 0;
  pointer-events: none;
}
.nav-chip:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}
.nav-chip:hover::after {
  opacity: 1;
}
.nav-chip.active {
  background: #fff;
  color: #0b1220;
  border-color: #fff;
}

.btn-nav-contact {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #4d6bff, #b4ff3b);
  color: #fff;
  border-radius: 2rem;
  padding: 0.4rem 1.6rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}
.btn-nav-contact:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
  filter: saturate(120%);
}

.nav-chip:focus-visible,
.btn-nav-contact:focus-visible,
.btn-cta:focus-visible,
.btn-project:focus-visible,
.socials a:focus-visible {
  outline: 2px solid #b4ff3b;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(180, 255, 59, 0.25);
  border-color: #b4ff3b;
}

/* ========================= Cover ========================= */
.hero {
  min-height: 100vh;
  display: grid;
  align-content: center;
  overflow: hidden;
  background: linear-gradient(transparent 39px, rgba(255, 255, 255, 0.045) 40px)
      0 0/40px 40px,
    linear-gradient(90deg, transparent 39px, rgba(255, 255, 255, 0.045) 40px) 0
      0/40px 40px,
    radial-gradient(
      900px 520px at 18% -10%,
      rgba(77, 107, 255, 0.28),
      transparent 60%
    ),
    radial-gradient(
      900px 520px at 88% 8%,
      rgba(180, 255, 59, 0.14),
      transparent 60%
    ),
    linear-gradient(180deg, #0b1530 0%, #0a0f1b 100%);
}
.hero-content {
  padding-top: calc(70px + 1.5rem);
}

.eyebrow {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  padding: 0.25rem 0.8rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.hero-title {
  letter-spacing: -0.02em;
  margin: 1rem 0 0.25rem;
  font-size: clamp(2rem, 1rem + 2.8vw, 3.2rem);
  font-weight: 700;
}
.hero-title .grad {
  background: linear-gradient(135deg, #b4ff3b, #4d6bff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  color: #d6e6ff;
  opacity: 0.9;
  margin: 1.2rem 0;
}

.btn-cta {
  padding: 0.65rem 2rem;
  border-radius: 2rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}
.btn-cta-primary {
  background: linear-gradient(135deg, #b4ff3b, #4d6bff);
  color: #ffffff;
  border: 1.5px solid #000;
}
.btn-cta-outline {
  color: #fff;
  border: 1.5px solid #fff;
}
.btn-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
  filter: saturate(115%);
}

.hero-card-wrap {
  position: relative;
  max-width: 420px;
  margin: auto;
  overflow: visible;
  z-index: 1;
}
.hero-card {
  position: relative;
  border-radius: 16px;
  padding: 18px;
}
.hero-photo {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 14px;
}
.hero-photo img {
  width: 100%;
  display: block;
  border-radius: 12px;
  height: auto;
}
.hero-card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
}
.hero-card-note strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
}
.hero-card-note .small-muted {
  color: #d6e6ff;
  font-size: 0.92rem;
}
.socials a {
  text-decoration: none;
  font-size: 1.2rem;
  color: #fff;
  opacity: 0.9;
  margin-left: 0.8rem;
  transition: transform 0.18s ease, opacity 0.18s;
}
.socials a:hover {
  transform: translateY(-2px) scale(1.06);
  opacity: 1;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}
.tag-hash {
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: transform 0.18s ease, background 0.18s ease;
}
.tag-hash:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.16);
}

.float-icons {
  position: absolute;
  inset: -60px -80px -40px -80px;
  pointer-events: none;
  z-index: 3;
}
.icon-bubble {
  position: absolute;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: linear-gradient(
    135deg,
    rgba(27, 75, 255, 0.22),
    rgba(163, 255, 18, 0.1)
  );
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45),
    inset 0 0 1px rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  animation: iconFloat 6s ease-in-out infinite;
}
.icon-over {
  z-index: 4;
  width: 48px;
  height: 48px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45),
    inset 0 0 1px rgba(255, 255, 255, 0.2);
}
.ib1 {
  top: 3%;
  left: 5%;
}
.ib2 {
  top: 3%;
  right: 5%;
}
.ib3 {
  bottom: 0%;
  left: 5%;
}
.ib4 {
  bottom: 0%;
  right: 5%;
}
.ol1 {
  top: 20%;
  right: 22%;
}
.ol2 {
  bottom: 40%;
  left: 22%;
}
.ol3 {
  bottom: 25%;
  right: 25%;
}

@keyframes iconFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@media (max-width: 575.98px) {
  .icon-bubble {
    width: 36px;
    height: 36px;
  }
  .icon-over {
    width: 42px;
    height: 42px;
  }
  .ib2 {
    top: 2%;
    right: 4%;
  }
  .ib4 {
    bottom: -4%;
  }
}

/* ========================= About ========================= */
.about-section {
  padding: clamp(3rem, 6vw, 6rem) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.about-title {
  font-size: clamp(2rem, 1.3rem + 1.8vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 1rem;
}
.about-lead {
  color: #d6e6ff;
  opacity: 0.88;
  max-width: 560px;
  margin-bottom: 1.75rem;
}
.about-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.about-highlights li {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 180px;
}
.about-number {
  display: inline-block;
  font-size: clamp(1.8rem, 1.2rem + 2vw, 2.4rem);
  font-weight: 700;
  background: linear-gradient(135deg, #b4ff3b, #4d6bff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: transform 0.18s ease, filter 0.18s ease;
}
.about-highlights li:hover .about-number {
  transform: translateY(-3px);
  filter: brightness(1.1);
}
.about-label {
  color: #d6e6ff;
  opacity: 0.75;
  max-width: 240px;
}
.about-focus {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.about-subtitle {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
}
.about-focus-list li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.6rem;
  color: #d6e6ff;
  opacity: 0.92;
  transition: transform 0.18s ease;
}
.about-focus-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #b4ff3b, #4d6bff);
}
.about-focus-list li:hover {
  transform: translateX(4px);
}

.about-panel {
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  padding-left: clamp(1.25rem, 2vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.about-info li {
  display: flex;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.about-info li:last-child {
  border-bottom: 0;
}
.about-info .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.6);
}
.about-info .value {
  font-weight: 600;
  color: #fff;
}
.about-info a {
  color: inherit;
  text-decoration: none;
  position: relative;
}
.about-info a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -2px;
  height: 2px;
  background: linear-gradient(135deg, #b4ff3b, #4d6bff);
  transition: right 0.25s ease;
}
.about-info a:hover::after {
  right: 0;
}

/* ========================= Projects ========================= */
.project-section {
  padding: clamp(3rem, 6vw, 6rem) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.project-feature {
  position: relative;
}

.project-title {
  font-size: clamp(2rem, 1.4rem + 1.8vw, 2.7rem);
  font-weight: 700;
  margin-bottom: 1rem;
}
.project-description {
  color: #d6e6ff;
  opacity: 0.9;
  margin-bottom: 2rem;
  max-width: 520px;
}

.project-insights {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-bottom: 2.25rem;
}
.project-insights li {
  display: flex;
  gap: 0.75rem;
  color: #d6e6ff;
  opacity: 0.92;
  align-items: flex-start;
  transition: transform 0.18s ease;
}
.project-insights li:hover {
  transform: translateX(4px);
}
.project-insights .dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #b4ff3b, #4d6bff);
  margin-top: 0.45rem;
  flex-shrink: 0;
}

.project-metadata {
  display: grid;
  gap: 0.75rem;
}
.project-metadata .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.6);
  display: block;
}
.project-metadata .value {
  font-weight: 600;
  color: #fff;
}

.btn-project {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.8rem;
  border-radius: 999px;
  font-weight: 600;
  background: linear-gradient(135deg, #b4ff3b, #4d6bff);
  color: #0b1220;
  text-decoration: none;
  margin-bottom: 1.75rem;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}
.btn-project:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  filter: saturate(120%);
}
.btn-project i {
  font-size: 1rem;
}

.project-mockup {
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
  width: min(100%, 620px);
  animation: project-float 7s ease-in-out infinite;
  will-change: transform;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.project-mockup img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: inherit;
}
.project-feature .col-lg-7 {
  display: flex;
  justify-content: center;
}

.hover-float:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.project-gallery {
  margin: clamp(2.5rem, 4vw, 4rem) auto;
  overflow: hidden;
  position: relative;
  max-width: min(100%, 1336px);
}
.project-gallery::before,
.project-gallery::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(40px, 8vw, 120px);
  pointer-events: none;
  z-index: 2;
}
.project-gallery::before {
  left: 0;
  background: linear-gradient(90deg, rgba(10, 15, 27, 1), rgba(10, 15, 27, 0));
}
.project-gallery::after {
  right: 0;
  background: linear-gradient(270deg, rgba(10, 15, 27, 1), rgba(10, 15, 27, 0));
}

.project-gallery-track {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 1.25rem);
  width: max-content;
  animation: project-gallery-scroll 42s linear infinite;
}
.project-gallery:hover .project-gallery-track {
  animation-play-state: paused;
}

.project-gallery img {
  flex: 0 0 auto;
  height: clamp(160px, 22vw, 360px);
  width: auto;
  border-radius: 22px;
  object-fit: cover;
  transform: translateZ(0);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.gallery-thumb {
  background: none;
  border: 0;
  padding: 0;
  flex: 0 0 auto;
  display: block;
  cursor: pointer;
}
.gallery-thumb:focus {
  outline: none;
}
.gallery-thumb:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.7);
  outline-offset: 4px;
}
.project-gallery .gallery-thumb:hover img {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.45);
  filter: saturate(115%);
}
.gallery-thumb--duplicate {
  pointer-events: none;
}

.project-gallery--12m .project-gallery-track {
  animation-duration: 48s;
}

@keyframes project-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-16px);
  }
}
@keyframes project-gallery-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media (max-width: 991.98px) {
  .project-mockup {
    width: 100%;
  }
  .project-gallery img {
    height: clamp(140px, 32vw, 220px);
  }
}
@media (max-width: 575.98px) {
  .project-gallery {
    margin-top: 2rem;
  }
  .project-gallery-track {
    gap: 1rem;
  }
  .project-gallery img {
    height: clamp(120px, 40vw, 180px);
    border-radius: 18px;
  }
}

/* ========================= Lightbox (unchanged base, with subtle hover) ========================= */
body.lightbox-open {
  overflow: hidden;
}
.gallery-lightbox {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 3vw, 2.75rem);
  z-index: 1200;
}
.gallery-lightbox[hidden] {
  display: none !important;
}
.gallery-lightbox__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(6, 10, 20, 0.78);
}
.gallery-lightbox__dialog {
  position: relative;
  width: min(100%, 1080px);
  display: flex;
  justify-content: center;
  z-index: 1;
}
.gallery-lightbox__content {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
  padding: clamp(0.5rem, 2vw, 1.25rem) clamp(3rem, 7vw, 4.5rem);
}
.gallery-lightbox__figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.25rem);
  width: 100%;
}
.gallery-lightbox__figure img {
  width: 100%;
  max-height: min(80vh, 720px);
  object-fit: contain;
}
.gallery-lightbox__caption {
  font-size: clamp(0.875rem, 1.8vw, 1rem);
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
  max-width: 90ch;
}
.gallery-lightbox__close,
.gallery-lightbox__nav {
  background: rgba(15, 22, 35, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  border-radius: 999px;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.gallery-lightbox__close:hover,
.gallery-lightbox__nav:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.45);
}

.gallery-lightbox__close {
  position: absolute;
  top: clamp(0.5rem, 2.5vw, 1.5rem);
  right: clamp(0.5rem, 2.5vw, 1.5rem);
  width: 46px;
  height: 46px;
  font-size: 1.2rem;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 3;
}
.gallery-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(48px, 7vw, 62px);
  height: clamp(48px, 7vw, 62px);
  font-size: clamp(1.75rem, 4vw, 2.3rem);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 2;
  padding: 0;
}
.gallery-lightbox__nav--prev {
  left: clamp(0.75rem, 3vw, 2.25rem);
}
.gallery-lightbox__nav--next {
  right: clamp(0.75rem, 3vw, 2.25rem);
}
.gallery-lightbox__nav span,
.gallery-lightbox__close span {
  line-height: 1;
}
.gallery-lightbox__nav:focus-visible,
.gallery-lightbox__close:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.7);
  outline-offset: 3px;
}

@media (max-width: 767.98px) {
  .gallery-lightbox__content {
    padding: clamp(0.5rem, 3vw, 1rem) clamp(2.25rem, 7vw, 3rem);
  }
  .gallery-lightbox__nav {
    width: clamp(42px, 10vw, 54px);
    height: clamp(42px, 10vw, 54px);
    font-size: clamp(1.5rem, 5vw, 2rem);
  }
  .gallery-lightbox__close {
    width: 42px;
    height: 42px;
  }
}
@media (max-width: 575.98px) {
  .gallery-lightbox {
    padding: clamp(0.75rem, 4vw, 1.5rem);
  }
  .gallery-lightbox__content {
    padding: clamp(0.5rem, 4vw, 1rem) clamp(1.75rem, 8vw, 2.5rem);
  }
}

/* ========================= Cards (glass) ========================= */
.card-glass {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45),
    inset 0 0 1px rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px) saturate(160%);
}
.card-inked::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.35) 1px,
    transparent 1px
  );
  background-size: 18px 18px;
  opacity: 0.16;
  pointer-events: none;
}
.card-inked::after {
  content: "";
  position: absolute;
  inset: -20%;
  background: radial-gradient(
      240px 240px at 18% 26%,
      rgba(180, 255, 59, 0.25),
      transparent 60%
    ),
    radial-gradient(
      260px 260px at 82% 74%,
      rgba(27, 75, 255, 0.28),
      transparent 60%
    );
  filter: blur(4px);
  opacity: 0.65;
  pointer-events: none;
}

/* ========================= Gallery heading ========================= */
.gallery-heading {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: clamp(1.2rem, 0.8rem + 1.6vw, 1.6rem);
  font-weight: 700;
  margin: 1rem 0 0.75rem;
  color: #fff;
}

/* ========================= Contact ========================= */
.contact-section {
  padding: clamp(3rem, 6vw, 6rem) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.contact-title {
  font-size: clamp(2rem, 1.3rem + 1.8vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.contact-sub {
  color: #d6e6ff;
  opacity: 0.88;
  margin-bottom: 1.25rem;
}

.contact-form {
  padding: 1.25rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1.25rem;
}
@media (min-width: 768px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
  .form-row:nth-child(3) {
    grid-template-columns: 1fr;
  }
  .form-row:nth-child(4) {
    grid-template-columns: 1fr;
  }
}

.form-field {
  position: relative;
}
.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-radius: 0.9rem;
  padding: 1.1rem 1rem 0.9rem;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease,
    background 0.18s ease;
}
.form-field textarea {
  resize: vertical;
}
.form-field input:focus,
.form-field textarea:focus {
  border-color: #b4ff3b;
  box-shadow: 0 0 0 4px rgba(180, 255, 59, 0.16);
  background: rgba(255, 255, 255, 0.08);
}

.float-label {
  position: absolute;
  left: 0.9rem;
  top: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  pointer-events: none;
  transition: transform 0.18s ease, opacity 0.18s ease, top 0.18s ease,
    font-size 0.18s ease;
}
.form-field input:not(:placeholder-shown) + .error-msg,
.form-field textarea:not(:placeholder-shown) + .error-msg {
  display: none;
}
.form-field:has(input:focus) .float-label,
.form-field:has(textarea:focus) .float-label,
.form-field input:not(:placeholder-shown) ~ .float-label,
.form-field textarea:not(:placeholder-shown) ~ .float-label {
  top: 0.45rem;
  transform: translateY(-40%);
  font-size: 0.8rem;
  opacity: 0.85;
}

.error-msg {
  display: none;
  color: #ff9f9f;
  font-size: 0.85rem;
  margin-top: 0.25rem;
}
.form-field.invalid .error-msg {
  display: block;
}

.form-actions .btn-cta {
  margin-top: 0.25rem;
}
.form-success {
  margin-top: 0.9rem;
  color: #c8ffd0;
}

.contact-side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-card {
  padding: 1rem;
}
.contact-row {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.contact-row:last-child {
  border-bottom: 0;
}
.contact-row i {
  font-size: 1.1rem;
  opacity: 0.9;
}
.contact-row .label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.7);
}
.contact-row a,
.contact-row span {
  color: #fff;
  text-decoration: none;
}
.contact-row a:hover {
  text-decoration: underline;
}

.map-embed {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.map-placeholder {
  display: grid;
  place-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.7);
  height: 100%;
  width: 100%;
}
.map-placeholder i {
  font-size: 1.5rem;
}

.contact-socials {
  display: flex;
  gap: 0.65rem;
  margin-top: 0.5rem;
}
.contact-socials a {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: transform 0.18s ease, background 0.18s ease,
    border-color 0.18s ease;
}
.contact-socials a:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.35);
}

/* ========================= Micro-interactions ========================= */
.magnetic {
  position: relative;
  will-change: transform;
}
[data-tilt] {
  transform-style: preserve-3d;
}

/* ========================= Reduce Motion ========================= */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .project-gallery-track {
    animation: none !important;
  }
}
