:root{
  --bg: #050505;
  --panel: rgba(33, 37, 42, 0.84);
  --panel-border: rgba(133, 140, 149, 0.34);

  --text: #f4f4f4;
  --muted: #b2b7be;

  --accent: #f5c400;
  --accent-2: #ffdf66;

  --shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Sora", sans-serif;
  color: var(--text);
  background: linear-gradient(155deg, #050505 0%, #2f353c 100%);
  overflow-x: hidden;
  min-height: 100vh;
}

#bg-canvas,
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

#bg-canvas {
  z-index: -2;
}

.noise {
  z-index: -1;
  opacity: 0.035;
  background-image: radial-gradient(circle at 20% 20%, #ffffff 0.4px, transparent 0.45px);
  background-size: 4px 4px;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 6vw;
  backdrop-filter: blur(10px);
  background: linear-gradient(to bottom, rgba(8, 8, 8, 0.88), rgba(47, 53, 60, 0.32));
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 1;
  padding: 0.35rem 0.55rem;
  border: 1px solid rgba(255, 223, 102, 0.35);
  border-radius: 14px;
  background: rgba(24, 25, 27, 0.78);
}

.brand-logo {
  display: block;
  height: 76px;
  min-width: 38px;
  width: auto;
  max-width: min(26vw, 120px);
  object-fit: contain;
}

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

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

.nav-toggle {
  display: none;
  width: 2.7rem;
  height: 2.7rem;
  border: 1px solid rgba(255, 223, 102, 0.35);
  border-radius: 12px;
  background: rgba(26, 28, 31, 0.85);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  flex-direction: column;
}

.nav-toggle span {
  width: 1.2rem;
  height: 2px;
  background: #ffd84d;
  border-radius: 99px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

nav a:hover,
nav a:focus-visible {
  color: var(--accent);
}

.section {
  width: min(1160px, 90vw);
  margin: 0 auto;
  padding: 7rem 0 2rem;
}

.hero {
  width: 100%;
  max-width: none;
  margin: 0;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 0;
  position: relative;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -3;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(5, 5, 5, 0.84), rgba(47, 53, 60, 0.5));
  z-index: -2;
}

.hero-content {
  width: min(880px, 90vw);
  text-align: center;
  padding: 3rem 1.2rem;
}

.eyebrow {
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--accent-2);
}

h1,
h2,
h3 {
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.1;
}

h1 {
  font-size: clamp(2.2rem, 7vw, 5.2rem);
  margin-top: 0.8rem;
}

.hero-title {
  display: grid;
  justify-items: center;
  gap: 0.9rem;
}

.hero-title-logo {
  width: min(360px, 62vw);
  max-height: 120px;
  object-fit: contain;
  filter: drop-shadow(0 8px 22px rgba(0, 0, 0, 0.38));
}

.hero-title span {
  display: block;
}

.tagline {
  max-width: 62ch;
  margin: 1.2rem auto 0;
  color: #d2d6db;
  font-size: clamp(1rem, 2.4vw, 1.3rem);
}

.hero-cta {
  margin-top: 2.2rem;
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-highlights {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.hero-highlight {
  border: 1px solid rgba(255, 223, 102, 0.3);
  background: rgba(25, 28, 33, 0.72);
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
  text-align: left;
}

.hero-highlight strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  color: var(--accent-2);
  font-size: 1rem;
}

.hero-highlight span {
  display: block;
  margin-top: 0.2rem;
  color: #c9ced4;
  font-size: 0.82rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(100deg, var(--accent), #ffdf66);
  color: #221b00;
  padding: 0.8rem 1.4rem;
}

.btn-ghost {
  color: var(--text);
  border-color: rgba(178, 183, 190, 0.45);
  padding: 0.8rem 1.4rem;
  background: transparent;
}

.btn-call {
  background: rgba(24, 28, 33, 0.82);
  color: #f5f5f5;
  border-color: rgba(255, 223, 102, 0.4);
  padding: 0.8rem 1.4rem;
}

.section-head h2 {
  margin-top: 0.7rem;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.about-grid {
  margin-top: 2.2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.about-card,
.skills,
.contact-form,
.timeline-item,
.gallery-item {
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.about-card {
  padding: 1.2rem;
}

.about-card img {
  width: 100%;
  object-fit: contain;
  border-radius: 14px;
}
.styled p {
  margin-top: 1rem;
  color: var(--muted);
  line-height: 1.7;
}

.about-card p {
  margin-top: 1rem;
  color: var(--muted);
  line-height: 1.7;
}

.skills {
  padding: 1.4rem;
}

.skills h3 {
  font-size: 1.2rem;
}

.skills-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.skill {
  font: inherit;
  font-size: 0.92rem;
  color: var(--text);
  border: 1px solid rgba(255, 223, 102, 0.26);
  border-radius: 12px;
  background: rgba(44, 49, 56, 0.72);
  padding: 0.75rem;
  position: relative;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.skill:hover,
.skill:focus-visible {
  transform: translateY(-3px);
  border-color: var(--accent);
}

.skill::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%) scale(0.98);
  opacity: 0;
  width: max-content;
  max-width: 210px;
  background: #131517;
  color: #eceff2;
  font-size: 0.72rem;
  line-height: 1.4;
  padding: 0.4rem 0.6rem;
  border-radius: 9px;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.skill:hover::after,
.skill:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.timeline {
  margin-top: 1.6rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.timeline-item {
  padding: 1rem;
}

.timeline-item span {
  font-family: "Space Grotesk", sans-serif;
  color: var(--accent-2);
  font-weight: 700;
}

.timeline-item p {
  color: var(--muted);
  margin-top: 0.6rem;
  line-height: 1.5;
}

.gallery-note {
  margin-top: 1rem;
  color: var(--muted);
}

.gallery-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.gallery-grid.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gallery-item {
  overflow: hidden;
  position: relative;
  aspect-ratio: 16 / 11;
  border-radius: 16px;
}

.gallery-open {
  border: none;
  background: none;
  padding: 0;
  width: 100%;
  height: 100%;
  cursor: zoom-in;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-more-wrap {
  margin-top: 1.1rem;
  display: flex;
  justify-content: center;
}

.gallery-toggle {
  min-width: 190px;
}

.reviews-grid {
  margin-top: 1.4rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.review-card {
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 1.1rem;
}

.review-text {
  color: #d6d9dd;
  line-height: 1.65;
}

.review-author {
  margin-top: 0.8rem;
  color: var(--accent-2);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.9rem;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(7, 7, 7, 0.92);
  backdrop-filter: blur(5px);
  display: grid;
  place-items: center;
  animation: fadeIn 0.22s ease;
}

.lightbox-figure {
  width: min(88vw, 1220px);
  max-height: 85vh;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 223, 102, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-figure img {
  width: 100%;
  height: 100%;
  max-height: 85vh;
  object-fit: contain;
  background: #0f1114;
}

.lightbox-nav,
.lightbox-close {
  position: fixed;
  border: 1px solid rgba(255, 223, 102, 0.38);
  background: rgba(22, 25, 29, 0.86);
  color: #f7f0d4;
  cursor: pointer;
}

.lightbox-close {
  top: 1.2rem;
  right: 1.2rem;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  font-size: 1.6rem;
  line-height: 1;
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 999px;
  font-size: 2rem;
  line-height: 1;
}

.lightbox-prev {
  left: max(1rem, 3vw);
}

.lightbox-next {
  right: max(1rem, 3vw);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.delete-photo {
  position: absolute;
  right: 0.5rem;
  bottom: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(23, 25, 28, 0.9);
  color: #f2f2f2;
  padding: 0.4rem 0.6rem;
  border-radius: 9px;
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
}

.gallery-controls {
  position: absolute;
  left: 0.5rem;
  right: 0.5rem;
  bottom: 0.5rem;
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

.drag-handle {
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(23, 25, 28, 0.9);
  color: #f2f2f2;
  padding: 0.4rem 0.6rem;
  border-radius: 9px;
  font: inherit;
  font-size: 0.78rem;
  cursor: grab;
}

.gallery-controls .delete-photo {
  position: static;
}

.gallery-item.dragging {
  opacity: 0.55;
  transform: scale(0.98);
}

.admin-actions {
  display: flex;
  justify-content: flex-end;
}

.contact-form {
  margin-top: 2rem;
  padding: 1.2rem;
  display: grid;
  gap: 0.9rem;
}

label {
  display: grid;
  gap: 0.45rem;
  font-size: 0.94rem;
  color: #d7dce1;
}

input,
textarea {
  resize: none;
  width: 100%;
  border-radius: 11px;
  border: 1px solid rgba(255, 223, 102, 0.26);
  background: rgba(23, 26, 30, 0.82);
  color: var(--text);
  padding: 0.72rem 0.8rem;
  font: inherit;
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(255, 223, 102, 0.5);
  border-color: transparent;
}

.submit-btn {
  width: max-content;
  border: none;
}

.submit-btn:active {
  transform: translateY(1px) scale(0.99);
}

.form-feedback {
  min-height: 1.2rem;
  color: var(--accent-2);
  font-size: 0.86rem;
}

.form-feedback.info {
  color: #cbd0d6;
}

.footer {
  text-align: center;
  color: var(--muted);
  padding: 2.8rem 1rem;
  font-size: 0.88rem;
  a {
    text-decoration: none;
    color: var(--muted);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.hidden {
  display: none;
}

.client-zone-body {
  background: linear-gradient(155deg, #050505 0%, #2f353c 100%);
}

.client-zone {
  min-height: 100svh;
  padding-top: 5rem;
  padding-bottom: 3rem;
}

@media (max-width: 980px) {
  .about-grid,
  .timeline,
  .reviews-grid,
  .gallery-grid.compact {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-highlights {
    grid-template-columns: 1fr;
  }

  .section {
    padding-top: 5.5rem;
  }
}

@media (max-width: 640px) {
  .topbar {
    padding: 0.5rem 1rem;
  }

  .brand-logo {
    height: 42px;
    min-width: 30px;
    max-width: min(28vw, 84px);
  }

  .hero-content {
    margin-top: 4rem;
  }

  .nav-toggle {
    display: inline-flex;
    width: 2.4rem;
    height: 2.4rem;
  }

  nav {
    position: absolute;
    top: calc(100% + 0.55rem);
    left: 1rem;
    right: 1rem;
    flex-direction: column;
    gap: 0;
    border: 1px solid rgba(255, 223, 102, 0.26);
    border-radius: 14px;
    background: rgba(20, 22, 26, 0.97);
    backdrop-filter: blur(10px);
    padding: 0.4rem 0.8rem;
    box-shadow: 0 14px 42px rgba(0, 0, 0, 0.45);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: max-height 0.28s ease, opacity 0.25s ease, transform 0.25s ease;
  }

  nav.open {
    max-height: 260px;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  nav a {
    font-size: 0.94rem;
    padding: 0.65rem 0.15rem;
    border-bottom: 1px solid rgba(255, 223, 102, 0.14);
  }

  nav a:last-child {
    border-bottom: none;
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-title-logo {
    width: min(260px, 78vw);
    max-height: 92px;
  }

  .btn {
    width: 100%;
  }

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

  .gallery-item {
    aspect-ratio: 3 / 2;
  }

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

  .lightbox-nav {
    width: 2.4rem;
    height: 2.4rem;
    font-size: 1.6rem;
  }
}

@media (min-width: 1600px) {
  .section {
    width: min(1360px, 88vw);
  }
}

.project-category-button {
  position: relative;
  display: block;
}

.project-category-card {
  min-height: 230px;
}

.project-category-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.9rem;
  display: grid;
  gap: 0.35rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.2));
  color: #f4f4f4;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.project-category-meta strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.02rem;
}

.project-category-meta span {
  font-size: 0.86rem;
  color: #d4d9df;
  line-height: 1.4;
}

.project-category-button:hover .project-category-meta,
.project-category-button:focus-visible .project-category-meta {
  opacity: 1;
  transform: translateY(0);
}

.admin-gallery-manager {
  gap: 1.2rem;
}

.category-create-box h3 {
  font-family: "Space Grotesk", sans-serif;
  margin-bottom: 0.6rem;
}

.category-create-form {
  display: grid;
  gap: 0.8rem;
}

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

.category-list-item {
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  background: var(--panel);
  padding: 0.7rem;
  display: grid;
  gap: 0.6rem;
}

.category-list-item.is-active {
  border-color: var(--accent);
}

.category-select-btn {
  border: none;
  background: transparent;
  color: var(--text);
  text-align: left;
  display: grid;
  gap: 0.3rem;
  cursor: pointer;
  font: inherit;
}

.category-select-btn strong {
  font-family: "Space Grotesk", sans-serif;
}

.category-select-btn span {
  color: var(--muted);
  font-size: 0.86rem;
}

.category-select-btn small {
  color: var(--accent-2);
  font-size: 0.78rem;
}

.category-delete-btn,
.photo-delete-btn,
.photo-drag-handle {
  border: 1px solid rgba(160, 167, 176, 0.34);
  background: rgba(23, 25, 28, 0.9);
  color: #f2f2f2;
  padding: 0.4rem 0.6rem;
  border-radius: 9px;
  font: inherit;
  font-size: 0.78rem;
}

.category-delete-btn,
.photo-delete-btn {
  cursor: pointer;
}

.photo-drag-handle {
  cursor: grab;
}

#uploadCategorySelect {
  border-radius: 11px;
  border: 1px solid rgba(160, 167, 176, 0.35);
  background: rgba(23, 26, 30, 0.86);
  color: var(--text);
  padding: 0.72rem 0.8rem;
  font: inherit;
}

@media (max-width: 980px) {
  .category-list {
    grid-template-columns: 1fr;
  }
}
