:root {
  --bg: #0b1418;
  --panel: #10242b;
  --panel2: #0e1c22;
  --text: #eaf4f6;
  --muted: #a7c0c7;
  --accent: #4fb3c8;
  --accent2: #3fd6b5;
  --border: rgba(120, 200, 210, 0.18);
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  white-space: nowrap;
  border: 0;
  clip: rect(0, 0, 0, 0);
}

body {
  color: var(--text);
  font-family: Inter, sans-serif;
  line-height: 1.7;
  background:
    radial-gradient(circle at 15% 10%, rgba(79, 180, 200, 0.445), transparent 45%),
    radial-gradient(circle at 85% 20%, rgba(63, 214, 181, 0.12), transparent 45%),
    radial-gradient(circle at 50% 90%, rgba(79, 179, 200, 0.1), transparent 50%),
    var(--bg);
}

header {
  position: fixed;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 18px 40px;
  background: rgba(11, 20, 24, 0.8);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
}

.logo {
  color: var(--text);
  font-family: "Playfair Display", serif;
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-decoration: none;
  text-transform: uppercase;
}

nav a {
  margin-left: 20px;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.3s;
}

nav a:hover {
  color: var(--accent2);
}

.nav-toggle {
  display: none;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  color: var(--accent);
  white-space: nowrap;
  text-decoration: none;
  background: transparent;
  border: 1px solid var(--accent);
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
}

.grid-icon-btn {
  display: grid;
  grid-template-columns: repeat(2, 7px);
  grid-template-rows: repeat(2, 7px);
  gap: 4px;
  align-content: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 6px;
  transition: 0.3s;
}

.grid-icon-btn span {
  width: 7px;
  height: 7px;
  background: currentColor;
  border-radius: 1px;
}

.grid-icon-btn:hover,
.grid-icon-btn:focus-visible {
  color: #061014;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  outline: none;
}
.btn:hover {
  color: #061014;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
}

.section {
  padding: 100px 12%;
}

.section h2,
.section-header h2 {
  font-family: "Playfair Display", serif;
}

.section h2 {
  margin-bottom: 40px;
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 30px;
}

.section-header h2 {
  margin-bottom: 0;
}

.card {
  overflow: hidden;
  background: rgba(16, 36, 43, 0.7);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: 0.25s;
}

.card:hover,
.card:focus-visible {
  border-color: var(--accent2);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.24);
  outline: none;
}

.card img {
  display: block;
  width: 100%;
  object-fit: cover;
}

.card-info p {
  color: var(--text);
  font-weight: 600;
}

.details {
  color: var(--muted);
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding: 100px 10% 60px;
  overflow: hidden;
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background: linear-gradient(120deg, rgba(11, 20, 24, 0.55), rgba(11, 20, 24, 0.1));
  pointer-events: none;
}

.hero-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-text {
  position: relative;
  z-index: 2;
  max-width: 540px;
}

.hero h1 {
  font-family: "Playfair Display", serif;
  font-size: 64px;
  line-height: 1;
}

.hero p {
  margin: 20px 0;
  color: var(--muted);
}

.carousel-wrapper {
  position: relative;
  overflow: hidden;
}

.gallery {
  display: flex;
  gap: 20px;
  padding-bottom: 10px;
  will-change: transform;
}

.gallery .card {
  position: relative;
  flex: 0 0 500px;
  aspect-ratio: 3 / 4;
  background: rgba(11, 20, 24, 0.8);
}

.gallery .card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gallery .card-info {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 16px;
  background: linear-gradient(to top, rgba(6, 16, 20, 0.92) 60%, transparent);
  opacity: 0;
  transition: opacity 0.35s;
}

.gallery .card:hover .card-info,
.gallery .card:focus-visible .card-info {
  opacity: 1;
}

.gallery .card-info p {
  margin-bottom: 6px;
  font-size: 15px;
}

.gallery .details {
  font-size: 13px;
}

.gallery .details span {
  display: block;
  margin-top: 3px;
}

.carousel-btn,
.modal-img-btn {
  position: absolute;
  top: 50%;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
  flex-shrink: 0;
  color: var(--text);
  background: rgba(16, 36, 43, 0.85);
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  transform: translateY(-50%);
}

.carousel-btn {
  width: 44px;
  height: 44px;
  padding-bottom: 3px;
  font-size: 20px;
  backdrop-filter: blur(6px);
}

.carousel-btn:hover,
.modal-img-btn:hover {
  background: rgba(79, 179, 200, 0.25);
  border-color: var(--accent2);
}

.prev {
  left: 8px;
}

.next {
  right: 8px;
}

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about > img {
  width: 80%;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}

.about-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 28px;
}

.about-meta-item,
.contact-card,
.contact-form {
  background: var(--panel);
  border: 1px solid var(--border);
}

.about-meta-item {
  padding: 14px 18px;
  border-radius: 12px;
}

.about-meta-label,
.contact-label {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.section-sub {
  max-width: 560px;
  margin-top: -20px;
  margin-bottom: 50px;
  color: var(--muted);
  font-size: 15px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 40px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 24px;
  border-radius: 14px;
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  color: var(--accent2);
  font-size: 22px;
  text-align: center;
}

.instagram-icon {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 1.8;
}

.contact-link {
  color: var(--text);
  font-size: 15px;
  text-decoration: none;
}

.contact-link:hover {
  color: var(--accent2);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 36px;
  border-radius: 16px;
}

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

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 13px 16px;
  color: var(--text);
  font-family: Inter, sans-serif;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  outline: none;
  resize: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79, 179, 200, 0.12);
}

.form-success {
  display: none;
  color: var(--accent2);
  font-size: 14px;
  text-align: center;
}

footer {
  padding: 40px;
  color: var(--muted);
  text-align: center;
  background: rgba(11, 20, 24, 0.6);
  border-top: 1px solid var(--border);
}

.overview-main {
  padding: 120px 12% 80px;
}

.overview-main .section {
  padding: 20px 0 0;
}

.overview-main .section-header {
  align-items: flex-start;
  margin-bottom: 32px;
}

.overview-main .section-header h1 {
  font-family: "Playfair Display", serif;
  font-size: 44px;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.work-grid .card {
  display: flex;
  flex-direction: column;
  min-height: 420px;
}

.work-grid .card:hover {
  transform: translateY(-3px);
}

.work-grid .card img {
  height: 300px;
}

.work-grid .card-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
}

.work-grid .card-info p {
  font-size: 18px;
}

.work-grid .details {
  display: grid;
  gap: 6px;
  font-size: 14px;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(6, 16, 20, 0.92);
  backdrop-filter: blur(10px);
}

.modal-overlay.open {
  display: flex;
}

.modal {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  width: 100%;
  height: min(800px, 90vh);
  max-width: min(1200px, 95vw);
  max-height: 90vh;
  overflow: hidden;
  background: linear-gradient(160deg, var(--panel), var(--panel2));
  border: 1px solid var(--border);
  border-radius: 16px;
  animation: modal-in 0.3s ease;
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
}

.modal-img-section {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #060f12;
}

.modal-img-wrap {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  min-height: 0;
  overflow: hidden;
  cursor: grab;
}

.modal-img-wrap.zoomed {
  cursor: zoom-out;
}

.modal-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  transform-origin: center;
  transition: transform 0.2s ease;
}

.modal-img-btn {
  width: 36px;
  height: 36px;
  font-size: 16px;
}

.modal-img-btn.hidden,
.modal-price.hidden {
  display: none;
}

.modal-thumbnails {
  display: flex;
  gap: 6px;
  padding: 8px 10px;
  overflow-x: auto;
  background: rgba(6, 16, 20, 0.6);
}

.modal-thumbnails img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  opacity: 0.6;
  border: 2px solid transparent;
  border-radius: 6px;
  cursor: pointer;
}

.modal-thumbnails img.active {
  opacity: 1;
  border-color: var(--accent2);
}

.modal-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: 40px;
}

.modal-content h3 {
  font-family: "Playfair Display", serif;
  font-size: 28px;
}

.modal-detail {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 14px;
  color: var(--muted);
  font-size: 14px;
  border-top: 1px solid var(--border);
}

.modal-detail strong {
  color: var(--text);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 26px;
  z-index: 201;
  color: var(--muted);
  font-size: 28px;
  line-height: 1;
  background: none;
  border: 0;
  cursor: pointer;
}

.modal-close:hover {
  color: var(--accent2);
}

.modal-request {
  margin-top: 10px;
  text-align: center;
}

@media (max-width: 768px) {
  header {
    align-items: center;
    padding: 15px 20px;
  }

  .logo {
    font-size: 1.15rem;
  }

  .nav-toggle {
    display: grid;
    gap: 4px;
    padding: 8px;
    color: var(--text);
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
  }

  .nav-toggle > span:not(.sr-only) {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
  }

  header nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    padding: 10px 20px 18px;
    background: rgba(11, 20, 24, 0.98);
    border-bottom: 1px solid var(--border);
  }

  header nav.open {
    display: grid;
  }

  header nav a {
    min-height: 44px;
    margin: 0;
    padding: 10px 0;
  }

  .hero {
    justify-content: center;
    padding: 120px 6% 60px;
    text-align: center;
  }

  .hero h1 {
    font-size: 44px;
  }

  .gallery .card {
    flex-basis: 260px;
  }

  .gallery .card-info {
    opacity: 1;
  }

  .about,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .about > img {
    width: 100%;
  }

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

  .overview-main {
    padding: 100px 8% 60px;
  }

  .overview-main .section-header h1 {
    font-size: 36px;
  }

  .modal {
    grid-template-columns: 1fr;
    height: auto;
    overflow-y: auto;
  }

  .modal-img-wrap {
    flex: 0 0 min(70vw, 55vh);
    min-height: 0;
    max-height: none;
  }

  .modal-content {
    padding: 24px;
  }
}

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