:root {
  --black: #111111;
  --white: #ffffff;
  --dark-gray: #3a3835;
  --mid-gray: #6b665f;
  --light-bg: #f5f3f0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
  background: var(--black);
}

body {
  font-family: "Outfit", sans-serif;
  background: var(--white);
  color: var(--black);
  overflow-x: hidden;
}

/* ===== NAVIGATION ===== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 0 56px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  transition: all 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
  overflow: visible;
}

nav.scrolled {
  height: 90px;
  background: rgba(17, 17, 17, 0.95);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo-img {
  height: 210px;
  width: auto;
  display: block;
  transition: all 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

nav.scrolled .nav-logo-img {
  height: 210px;
}

.nav-logo:hover .nav-logo-img {
  opacity: 0.75;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
  list-style: none;
}

.nav-links li {
  position: relative;
}

.nav-links li:not(:last-child)::after {
  display: none;
}

.nav-links a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.7);
  font-family: "Playfair Display", serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 1.5px;
  position: relative;
  padding: 10px 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.nav-links a:hover {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.04);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 650px;
  background: var(--black);
  overflow: hidden;
}

.triangles-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.tri-group {
  opacity: 0;
}

.tri-line {
  stroke-dasharray: 700;
  stroke-dashoffset: 700;
  opacity: 0;
}

/* Hero text */
.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  pointer-events: none;
  text-align: center;
}

.hero-inner {
  position: relative;
  padding: 50px 70px;
}

.hero-inner::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 340%;
  height: 300%;
  background: radial-gradient(
    ellipse,
    rgba(17, 17, 17, 0.72) 0%,
    rgba(17, 17, 17, 0.35) 35%,
    transparent 62%
  );
  z-index: -1;
  pointer-events: none;
}

.hero-text-wrap {
  position: relative;
}

.hero-bg-text {
  font-family: "Playfair Display", serif;
  font-size: clamp(80px, 12vw, 160px);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.04);
  text-transform: uppercase;
  letter-spacing: 16px;
  line-height: 1;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
}

.hero-title {
  position: relative;
  z-index: 2;
  font-family: "Playfair Display", serif;
  font-size: clamp(44px, 5.5vw, 76px);
  font-weight: 400;
  color: var(--white);
  letter-spacing: 6px;
  text-transform: uppercase;
  margin-bottom: 10px;
  opacity: 0;
  transform: translateY(30px);
}

.hero-sub {
  position: relative;
  z-index: 2;
  font-family: "Outfit", sans-serif;
  font-size: clamp(14px, 1.6vw, 20px);
  font-weight: 200;
  letter-spacing: 8px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  opacity: 0;
  transform: translateY(20px);
}

.hero-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  margin: 0 4px;
  vertical-align: middle;
  position: relative;
  top: -2px;
}

/* ===== PORTFOLIO SECTION ===== */
.portfolio {
  background: var(--white);
  padding: 140px 60px;
}

.portfolio-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 70px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
  opacity: 0;
  transform: translateY(24px);
}

.portfolio-header.visible {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.8s ease,
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.section-label {
  font-family: "Outfit", sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--mid-gray);
  margin-bottom: 14px;
}

.section-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(32px, 4vw, 50px);
  font-weight: 400;
  color: var(--black);
  line-height: 1.2;
}

.section-title em {
  font-style: italic;
  color: var(--mid-gray);
}

.portfolio-link {
  font-family: "Outfit", sans-serif;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--dark-gray);
  text-decoration: none;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.portfolio-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--dark-gray);
  transform: scaleX(0.3);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.portfolio-link:hover {
  color: var(--black);
}
.portfolio-link:hover::after {
  transform: scaleX(1);
}

/* Portfolio grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.portfolio-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  opacity: 0;
  transform: translateY(30px);
  aspect-ratio: 16/10;
  background: var(--black);
}

.portfolio-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.8s ease,
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.6s ease;
  filter: brightness(0.75) saturate(0.9);
}

.portfolio-card:hover img {
  transform: scale(1.04);
  filter: brightness(0.5) saturate(0.85);
}

.portfolio-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 36px;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.65) 0%,
    rgba(0, 0, 0, 0.1) 45%,
    transparent 65%
  );
}

.portfolio-card-type {
  font-family: "Outfit", sans-serif;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 10px;
}

.portfolio-card-name {
  font-family: "Playfair Display", serif;
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 400;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 8px;
  transform: translateY(4px);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-card:hover .portfolio-card-name {
  transform: translateY(0);
}

.portfolio-card-mini {
  font-family: "Outfit", sans-serif;
  font-size: 16px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.6;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-card:hover .portfolio-card-mini {
  max-height: 50px;
  opacity: 1;
}

.portfolio-card-arrow {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-card:hover .portfolio-card-arrow {
  opacity: 1;
  transform: translate(0, 0);
}

.portfolio-card-arrow svg {
  width: 16px;
  height: 16px;
  stroke: rgba(255, 255, 255, 0.6);
  stroke-width: 1.5;
  fill: none;
}

@media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .portfolio-card {
    aspect-ratio: 16/11;
  }
  .portfolio-card-overlay {
    padding: 24px;
  }
  .portfolio-card-mini {
    max-height: 50px;
    opacity: 1;
  }
}

/* ===== PORTFOLIO MODAL (Visi projektai) ===== */
.portfolio-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(10, 10, 10, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow-y: auto;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.portfolio-modal.active {
  display: block;
  opacity: 1;
}

.portfolio-modal-close {
  position: fixed;
  top: 32px;
  right: 40px;
  width: 48px;
  height: 48px;
  cursor: pointer;
  z-index: 2001;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  transition: all 0.35s ease;
}

.portfolio-modal-close:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.05);
}

.portfolio-modal-close svg {
  width: 18px;
  height: 18px;
  stroke: rgba(255, 255, 255, 0.6);
  stroke-width: 1.5;
  fill: none;
}

.portfolio-modal-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 60px 80px;
}

.portfolio-modal-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 400;
  color: var(--white);
  margin-bottom: 50px;
}

.portfolio-modal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.portfolio-modal-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  background: #1a1a1a;
}

.portfolio-modal-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-modal-card:hover img {
  filter: brightness(0.45);
  transform: scale(1.04);
}

.portfolio-modal-card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 100%);
}

.portfolio-modal-card-type {
  font-family: "Outfit", sans-serif;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 6px;
}

.portfolio-modal-card-name {
  font-family: "Playfair Display", serif;
  font-size: 20px;
  color: var(--white);
}

@media (max-width: 768px) {
  .portfolio-modal-inner {
    padding: 80px 20px 60px;
  }
  .portfolio-modal-close {
    top: 20px;
    right: 20px;
  }
  .portfolio-modal-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== PROJECT DETAIL MODAL ===== */
.project-detail {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(8, 8, 8, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  overflow-y: auto;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.project-detail.active {
  display: block;
  opacity: 1;
}

.project-detail-close {
  position: fixed;
  top: 32px;
  right: 40px;
  width: 48px;
  height: 48px;
  cursor: pointer;
  z-index: 3001;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  transition: all 0.35s ease;
}

.project-detail-close:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.05);
}

.project-detail-close svg {
  width: 18px;
  height: 18px;
  stroke: rgba(255, 255, 255, 0.6);
  stroke-width: 1.5;
  fill: none;
}

.project-detail-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 100px 60px 80px;
}

.project-detail-hero {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  margin-bottom: 48px;
}

.project-detail-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.8);
}

.project-detail-type {
  font-family: "Outfit", sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 14px;
}

.project-detail-name {
  font-family: "Playfair Display", serif;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 400;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 40px;
}

.project-detail-meta {
  display: flex;
  gap: 48px;
  padding: 28px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 40px;
}

.project-detail-meta-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.project-detail-meta-label {
  font-family: "Outfit", sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.25);
}

.project-detail-meta-value {
  font-family: "Outfit", sans-serif;
  font-size: 15px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.75);
}

.project-detail-desc-title {
  font-family: "Outfit", sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 16px;
}

.project-detail-desc {
  font-family: "Outfit", sans-serif;
  font-size: 16px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.85;
  max-width: 680px;
  margin-bottom: 56px;
}

.project-detail-gallery-title {
  font-family: "Outfit", sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 20px;
}

.project-detail-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.project-detail-gallery.three-imgs {
  grid-template-columns: repeat(3, 1fr);
}

.project-detail-gallery img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  filter: brightness(0.8);
  transition: filter 0.4s ease;
}

.project-detail-gallery img:hover {
  filter: brightness(0.95);
  cursor: zoom-in;
}

/* ===== IMAGE LIGHTBOX ===== */
.img-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 4000;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  cursor: zoom-out;
  opacity: 0;
  transition: opacity 0.3s ease;
  justify-content: center;
  align-items: center;
}

.img-lightbox.active {
  display: flex;
  opacity: 1;
}

.img-lightbox img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  transform: scale(0.92);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5);
}

.img-lightbox.active img {
  transform: scale(1);
}

.img-lightbox-close {
  position: fixed;
  top: 28px;
  right: 36px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  z-index: 4001;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
}

.img-lightbox-close:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.08);
}

.img-lightbox-close svg {
  width: 16px;
  height: 16px;
  stroke: rgba(255, 255, 255, 0.7);
  stroke-width: 1.5;
  fill: none;
}

@media (max-width: 768px) {
  .project-detail-inner {
    padding: 80px 20px 60px;
  }
  .project-detail-close {
    top: 20px;
    right: 20px;
  }
  .project-detail-meta {
    flex-direction: column;
    gap: 20px;
  }
  .project-detail-gallery {
    grid-template-columns: 1fr;
  }
  .project-detail-gallery.three-imgs {
    grid-template-columns: 1fr;
  }
}

/* ===== SERVICES SECTION ===== */
.services {
  background: var(--light-bg);
  padding: 140px 60px 160px;
}

.services-header {
  margin-bottom: 70px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
  opacity: 0;
  transform: translateY(24px);
}

.services-header.visible {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.8s ease,
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}

.pkg-card {
  background: var(--black);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
  display: flex;
  flex-direction: column;
  transition:
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.5s ease;
}

.pkg-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.pkg-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.5s ease;
}

.pkg-card.visible:hover {
  transform: translateY(-6px);
}

.pkg-card-img-wrap {
  position: relative;
  overflow: hidden;
}

.pkg-card-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  filter: brightness(0.5) saturate(0.8);
  display: block;
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.pkg-card:hover .pkg-card-img {
  filter: brightness(0.35) saturate(0.7);
  transform: scale(1.06);
}

.pkg-card-number {
  position: absolute;
  bottom: -20px;
  right: 24px;
  font-family: "Playfair Display", serif;
  font-size: 100px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.04);
  line-height: 1;
  pointer-events: none;
}

.pkg-card-body {
  padding: 40px 36px 44px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.pkg-card-label {
  font-family: "Outfit", sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.25);
  margin-bottom: 14px;
}

.pkg-card-name {
  font-family: "Playfair Display", serif;
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 400;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 24px;
}

.pkg-card-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.pkg-card-price-num {
  font-family: "Playfair Display", serif;
  font-size: 38px;
  font-weight: 400;
  color: var(--white);
  letter-spacing: -1px;
  line-height: 1;
}

.pkg-card-price-curr {
  font-family: "Outfit", sans-serif;
  font-size: 20px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.6);
}

.pkg-card-price-unit {
  font-family: "Outfit", sans-serif;
  font-size: 16px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.3);
  margin-left: 2px;
}

.pkg-card-list-wrap {
  overflow: hidden;
}

.pkg-card-section-title {
  font-family: "Outfit", sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 16px;
  margin-top: 26px;
  padding-top: 4px;
}

.pkg-card-section-title:first-of-type,
.pkg-card-section-title:first-child {
  margin-top: 0;
}

.pkg-card-list {
  list-style: none;
  padding: 0;
}

.pkg-card-list li {
  font-family: "Outfit", sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.65;
  padding: 6px 0;
  position: relative;
  transition: color 0.3s ease;
}

.pkg-card:hover .pkg-card-list li {
  color: rgba(255, 255, 255, 0.6);
}

.pkg-card-list li::before {
  display: none;
}

.pkg-card-note {
  font-family: "Outfit", sans-serif;
  font-size: 12px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.2);
  font-style: italic;
  padding-top: 20px;
  line-height: 1.5;
  margin-top: auto;
}

.pkg-card-btn {
  display: inline-block;
  margin-top: 18px;
  font-family: "Outfit", sans-serif;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--black);
  background: var(--white);
  border: none;
  padding: 13px 30px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.pkg-card-btn:hover {
  background: rgba(255, 255, 255, 0.85);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.06);
}

/* ===== SERVICE DETAIL MODAL ===== */
.svc-detail {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(8, 8, 8, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  overflow-y: auto;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.svc-detail.active {
  display: block;
  opacity: 1;
}

.svc-detail-close {
  position: fixed;
  top: 32px;
  right: 40px;
  width: 48px;
  height: 48px;
  cursor: pointer;
  z-index: 3001;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  transition: all 0.35s ease;
}

.svc-detail-close:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.05);
}

.svc-detail-close svg {
  width: 18px;
  height: 18px;
  stroke: rgba(255, 255, 255, 0.6);
  stroke-width: 1.5;
  fill: none;
}

.svc-detail-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 100px 60px 80px;
}

.svc-detail-label {
  font-family: "Outfit", sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.25);
  margin-bottom: 14px;
}

.svc-detail-name {
  font-family: "Playfair Display", serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 400;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 12px;
}

.svc-detail-price {
  font-family: "Outfit", sans-serif;
  font-size: 20px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 40px;
}

.svc-detail-price strong {
  font-weight: 400;
  color: var(--white);
  font-size: 28px;
}

.svc-detail-divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin-bottom: 32px;
}

.svc-detail .pkg-card-section-title {
  color: rgba(255, 255, 255, 0.45);
  margin-top: 32px;
}

.svc-detail .pkg-card-section-title:first-of-type {
  margin-top: 0;
}

.svc-detail .pkg-card-list li {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.55);
  padding: 7px 0;
}

.svc-detail .pkg-card-list li::before {
  display: none;
}

.svc-detail-note {
  font-family: "Outfit", sans-serif;
  font-size: 12px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.2);
  font-style: italic;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

@media (max-width: 768px) {
  .svc-detail-inner {
    padding: 80px 20px 60px;
  }
  .svc-detail-close {
    top: 20px;
    right: 20px;
  }
}

/* Popular badge */
.pkg-card-badge {
  position: absolute;
  top: 22px;
  right: 22px;
  font-family: "Outfit", sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--black);
  background: var(--white);
  padding: 7px 16px;
  z-index: 2;
}

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin: 0 auto;
    gap: 24px;
  }
  .pkg-card {
    min-height: auto;
  }
}

@media (max-width: 768px) {
  .services {
    padding: 80px 20px 100px;
  }
  .pkg-card-body {
    padding: 28px 24px 32px;
  }
  .pkg-card-img {
    height: 200px;
  }
  .pkg-card-price-num {
    font-size: 32px;
  }
}

/* ===== CONTACTS SECTION ===== */
.contacts {
  background: var(--black);
  padding: 140px 60px 120px;
  position: relative;
  overflow: hidden;
}

.contacts::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.025);
  clip-path: polygon(57% 0, 100% 0, 100% 100%, 47% 100%);
  pointer-events: none;
}

.contacts-top {
  margin-bottom: 80px;
  opacity: 0;
  transform: translateY(24px);
}

.contacts-top.visible {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.8s ease,
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.contacts-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 400;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
}

.contacts-title em {
  font-style: italic;
  color: rgba(255, 255, 255, 0.3);
}

.contacts-desc {
  font-family: "Outfit", sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.35);
  line-height: 1.8;
  max-width: 480px;
}

.contacts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  opacity: 0;
  transform: translateY(24px);
}

.contacts-grid.visible {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.8s ease 0.15s,
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.15s;
}

.contact-card {
  padding: 40px 36px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-right: none;
  position: relative;
  transition: background 0.4s ease;
}

.contact-card:last-child {
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.contact-card:hover {
  background: rgba(255, 255, 255, 0.03);
}

.contact-card-icon {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  transition: border-color 0.3s ease;
}

.contact-card:hover .contact-card-icon {
  border-color: rgba(255, 255, 255, 0.25);
}

.contact-card-icon svg {
  width: 18px;
  height: 18px;
  stroke: rgba(255, 255, 255, 0.4);
  stroke-width: 1.5;
  fill: none;
}

.contact-card-label {
  font-family: "Outfit", sans-serif;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.25);
  margin-bottom: 12px;
}

.contact-card-value {
  font-family: "Outfit", sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: var(--white);
  text-decoration: none;
  display: block;
  transition: color 0.3s ease;
  line-height: 1.5;
}

a.contact-card-value:hover {
  color: rgba(255, 255, 255, 0.55);
}

.contacts-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  opacity: 0;
}

.contacts-bottom.visible {
  opacity: 1;
  transition: opacity 0.8s ease 0.3s;
}

.contacts-socials {
  display: flex;
  gap: 20px;
}

.contacts-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.35);
  text-decoration: none;
  transition: all 0.35s ease;
}

.contacts-socials a:hover {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.04);
}

.contacts-socials a::after {
  display: none;
}

.contacts-cta-text {
  font-family: "Outfit", sans-serif;
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.2);
  text-transform: uppercase;
}

/* ===== CONTACT FORM ===== */
.contact-form-section {
  margin-top: 80px;
  padding-top: 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  opacity: 0;
  transform: translateY(24px);
  text-align: center;
}

.contact-form-section.visible {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.8s ease 0.2s,
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}

.contact-form-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 400;
  color: var(--white);
  margin-bottom: 10px;
}

.contact-form-subtitle {
  font-family: "Outfit", sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 48px;
  letter-spacing: 0.5px;
}

.cform {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 700px;
  margin: 0 auto;
  text-align: left;
}

.cform-group {
  position: relative;
}

.cform-group.full {
  grid-column: 1 / -1;
}

.cform-label {
  display: block;
  font-family: "Outfit", sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 10px;
}

.cform-input,
.cform-select,
.cform-textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-family: "Outfit", sans-serif;
  font-size: 14px;
  font-weight: 300;
  padding: 14px 18px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
  -webkit-appearance: none;
  border-radius: 0;
}

.cform-input::placeholder,
.cform-textarea::placeholder {
  color: rgba(255, 255, 255, 0.15);
}

.cform-input:focus,
.cform-select:focus,
.cform-textarea:focus {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.05);
}

.cform-select {
  cursor: pointer;
  color: rgba(255, 255, 255, 0.5);
}

.cform-select option {
  background: var(--black);
  color: var(--white);
}

.cform-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.7;
}

.cform-select-wrap {
  position: relative;
}

.cform-select-wrap::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 1px solid rgba(255, 255, 255, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}

.cform-submit {
  font-family: "Outfit", sans-serif;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--black);
  background: var(--white);
  border: none;
  padding: 16px 48px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  margin-top: 8px;
}

.cform-submit:hover {
  background: rgba(255, 255, 255, 0.85);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.08);
}

.cform-submit:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.cform-submit.loading {
  color: transparent;
}

.cform-submit.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border: 1.5px solid rgba(17, 17, 17, 0.2);
  border-top-color: var(--black);
  border-radius: 50%;
  animation: cform-spin 0.6s linear infinite;
}

@keyframes cform-spin {
  to {
    transform: rotate(360deg);
  }
}

.cform-msg {
  grid-column: 1 / -1;
  font-family: "Outfit", sans-serif;
  font-size: 13px;
  font-weight: 300;
  padding: 14px 18px;
  display: none;
}

.cform-msg.success {
  display: block;
  color: rgba(130, 210, 150, 0.8);
  background: rgba(130, 210, 150, 0.06);
  border: 1px solid rgba(130, 210, 150, 0.12);
}

.cform-msg.error {
  display: block;
  color: rgba(230, 120, 120, 0.8);
  background: rgba(230, 120, 120, 0.06);
  border: 1px solid rgba(230, 120, 120, 0.12);
}

.cform-error-field {
  border-color: rgba(230, 120, 120, 0.3) !important;
}

@media (max-width: 768px) {
  .cform {
    grid-template-columns: 1fr;
  }
  .contact-form-section {
    margin-top: 60px;
    padding-top: 40px;
  }
}

/* ===== FOOTER ===== */
.footer {
  background: var(--black);
  padding: 0 60px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.footer-inner {
  padding-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo-wrap {
  display: flex;
  align-items: center;
  text-decoration: none;
  height: 60px;
  overflow: visible;
}

.footer-logo-img {
  height: 210px;
  width: auto;
  max-width: 300px;
  display: block;
  object-fit: contain;
  opacity: 0.5;
  transition: opacity 0.35s ease;
  margin: -75px 0;
}

.footer-logo-wrap:hover .footer-logo-img {
  opacity: 0.7;
}

.footer-copy {
  font-family: "Outfit", sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.15);
  letter-spacing: 1px;
}

@media (max-width: 768px) {
  .contacts {
    padding: 80px 24px 60px;
  }
  .contacts::before {
    display: none;
  }
  .contacts-grid {
    grid-template-columns: 1fr;
  }
  .contact-card {
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: none;
  }
  .contact-card:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
  .contacts-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  .footer {
    padding: 0 24px 16px;
  }
  .footer-logo-img {
    height: 150px;
    margin: -50px 0;
  }
  .footer-inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

/* Grain */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 5;
}

/* ===== MOBILE ===== */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  cursor: pointer;
  z-index: 1002;
  position: relative;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--white);
  position: absolute;
  transition: all 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.nav-hamburger span:nth-child(1) {
  transform: translateY(-6px);
}
.nav-hamburger span:nth-child(2) {
  transform: translateY(0);
}
.nav-hamburger span:nth-child(3) {
  transform: translateY(6px);
}

.nav-hamburger.active span:nth-child(1) {
  transform: translateY(0) rotate(45deg);
}
.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
}
.nav-hamburger.active span:nth-child(3) {
  transform: translateY(0) rotate(-45deg);
}

.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.mobile-overlay.active {
  opacity: 1;
}

@media (max-width: 768px) {
  nav {
    padding: 0 24px;
    height: 90px;
  }
  nav.scrolled {
    height: 80px;
  }
  .nav-logo-img {
    height: 150px;
  }
  nav.scrolled .nav-logo-img {
    height: 150px;
  }
  .nav-hamburger {
    display: flex;
  }
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(17, 17, 17, 0.98);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 80px 40px;
    gap: 0;
    transition: right 0.45s cubic-bezier(0.25, 0.1, 0.25, 1);
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    z-index: 1001;
  }
  .nav-links.open {
    right: 0;
  }
  .nav-links li {
    width: 100%;
    text-align: center;
  }
  .nav-links li::after {
    display: none;
  }
  .nav-links a {
    display: block;
    padding: 16px 24px;
    font-size: 15px;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 8px;
  }
  .nav-links a:hover {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.04);
  }

  .hero-inner {
    padding: 32px 24px;
  }
  .hero-title {
    font-size: clamp(32px, 10vw, 50px);
    letter-spacing: 4px;
  }
  .hero-sub {
    font-size: 11px;
    letter-spacing: 4px;
  }
  .hero-bg-text {
    font-size: 60px;
    letter-spacing: 8px;
  }

  .portfolio {
    padding: 80px 20px;
  }
  .portfolio-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 40px;
  }
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .nav-logo-img {
    height: 180px;
  }
  nav.scrolled .nav-logo-img {
    height: 180px;
  }
  .footer-logo-img {
    height: 180px;
    margin: -60px 0;
  }
}
