:root {
  --bg-1: #f5f7f8;
  --bg-2: #dce5ea;
  --ink-1: #0d1a22;
  --ink-2: #2d4756;
  --line: rgba(255, 255, 255, 0.5);
  --glass: rgba(255, 255, 255, 0.45);
  --accent: #0f7f80;
  --accent-soft: #86c8bf;
}

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

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Plus Jakarta Sans", sans-serif;
  color: var(--ink-1);
  background: linear-gradient(130deg, var(--bg-1), var(--bg-2));
}

.bg-layer {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 10% 15%, rgba(134, 200, 191, 0.35), transparent 40%),
    radial-gradient(circle at 80% 0%, rgba(15, 127, 128, 0.15), transparent 45%),
    radial-gradient(circle at 100% 100%, rgba(255, 255, 255, 0.7), transparent 35%);
}

.glass {
  border: 1px solid var(--line);
  background: var(--glass);
  box-shadow: 0 10px 35px rgba(20, 45, 57, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-header {
  position: sticky;
  top: 1rem;
  width: min(1100px, calc(100% - 2rem));
  margin: 1rem auto 0;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
}

.brand {
  font-family: "Sora", sans-serif;
  font-weight: 700;
  color: var(--ink-1);
  text-decoration: none;
  letter-spacing: 0.2px;
}

nav {
  display: flex;
  gap: 0.75rem;
}

nav a {
  text-decoration: none;
  color: var(--ink-2);
  padding: 0.4rem 0.7rem;
  border-radius: 10px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

nav a[aria-current="page"],
nav a:hover {
  background: rgba(15, 127, 128, 0.13);
  color: var(--ink-1);
}

main {
  width: min(1100px, calc(100% - 2rem));
  margin: 1.2rem auto 3rem;
}

.hero {
  border-radius: 22px;
  padding: clamp(1.2rem, 2.5vw, 2.2rem);
  margin-bottom: 1.3rem;
  animation: reveal-up 0.45s ease both;
}

.eyebrow {
  margin: 0 0 0.7rem;
  font-size: 0.82rem;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--ink-2);
}

h1,
h2,
h3 {
  font-family: "Sora", sans-serif;
  margin: 0;
  line-height: 1.15;
}

.hero h1 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  max-width: 16ch;
}

.hero p {
  max-width: 62ch;
  color: var(--ink-2);
}

.service-tags {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.service-tags span {
  display: inline-block;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.5);
  font-size: 0.88rem;
}

.section-head {
  margin: 0.5rem 0 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.section-head h2 {
  font-size: clamp(1.35rem, 3.8vw, 1.9rem);
}

.cta-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.folder-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.9rem;
}

.project-card {
  border-radius: 18px;
  overflow: hidden;
  animation: reveal-up 0.5s ease both;
  cursor: pointer;
}

.project-card:nth-child(2) {
  animation-delay: 0.06s;
}

.project-card:nth-child(3) {
  animation-delay: 0.12s;
}

.project-card:nth-child(4) {
  animation-delay: 0.18s;
}

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

.card-body {
  padding: 0.75rem 0.85rem 0.85rem;
}

.card-body h3 {
  font-size: 0.98rem;
  text-align: center;
}

.card-body p {
  color: var(--ink-2);
  margin-bottom: 0.25rem;
}

.no-results {
  margin: 0.9rem 0 0;
  color: var(--ink-2);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(8, 16, 23, 0.88);
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) 70px;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem;
}

.lightbox-figure {
  margin: 0;
  max-height: 90vh;
  display: grid;
  justify-items: center;
  gap: 0.7rem;
}

.lightbox-figure img {
  max-width: 100%;
  max-height: 82vh;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  object-fit: contain;
}

.lightbox-figure figcaption {
  color: rgba(255, 255, 255, 0.92);
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 0.8rem;
  right: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-radius: 10px;
  padding: 0.4rem 0.7rem;
  cursor: pointer;
}

.lightbox-nav {
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.5rem;
  border-radius: 12px;
  height: 54px;
  cursor: pointer;
}

.contact-main {
  min-height: calc(100vh - 130px);
  display: grid;
  place-items: center;
}

.contact-card {
  width: min(720px, 100%);
  border-radius: 20px;
  padding: clamp(1.2rem, 3vw, 2rem);
  animation: reveal-up 0.45s ease both;
}

.contact-card h1 {
  font-size: clamp(1.6rem, 4.8vw, 2.5rem);
  max-width: 16ch;
}

.contact-card p {
  color: var(--ink-2);
}

.contact-methods {
  margin-top: 1.2rem;
}

.contact-form {
  margin-top: 1rem;
  display: grid;
  gap: 0.7rem;
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  color: var(--ink-2);
  font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea,
.contact-form button {
  font: inherit;
}

.contact-form input,
.contact-form textarea {
  border: 1px solid rgba(13, 26, 34, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  padding: 0.62rem 0.72rem;
  color: var(--ink-1);
}

.contact-form textarea {
  resize: vertical;
}

.contact-form button {
  justify-self: start;
  border: 1px solid rgba(15, 127, 128, 0.45);
  background: rgba(15, 127, 128, 0.18);
  color: #0b2d2d;
  border-radius: 10px;
  padding: 0.55rem 0.85rem;
  cursor: pointer;
  font-weight: 600;
}

.attachment-fields {
  display: grid;
  gap: 0.7rem;
}

.contact-form .add-attachment-btn {
  border: 1px solid rgba(13, 26, 34, 0.16);
  background: rgba(255, 255, 255, 0.6);
  color: var(--ink-1);
}

.form-hidden {
  display: none;
}

.email-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  overflow-wrap: anywhere;
}

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 760px) {
  .site-header {
    top: 0.5rem;
    margin-top: 0.5rem;
    border-radius: 14px;
  }

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

  .project-card img {
    height: 165px;
  }

  .lightbox {
    grid-template-columns: 1fr;
    align-content: center;
  }

  .lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
  }

  .lightbox-prev {
    left: 0.5rem;
  }

  .lightbox-next {
    right: 0.5rem;
  }
}
