/* ============================================================
   SORA STUDIOS — project-cotswolds.css
   ============================================================ */

@font-face {
  font-family: 'Gebuk';
  src: url('fonts/Gebuk-7O7nK.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --clr-bg:      #0d0d1a;
  --clr-surface: #13131f;
  --clr-text:    #e8e8f0;
  --clr-muted:   #9898b0;
  --clr-green:   #3db87e;

  --font-body:   'Roboto', sans-serif;
  --font-hero:   'Inria Serif', serif;
  --font-gebuk:  'Gebuk', 'Georgia', serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--clr-bg);
  color: var(--clr-text);
  overflow-x: hidden;
  line-height: 1.6;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; background: none; border: none; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: 900px;
  z-index: 1000;
  background: rgba(60, 55, 100, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50px;
  transition: box-shadow 0.3s;
}
.navbar.scrolled { box-shadow: 0 4px 32px rgba(0,0,0,0.4); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
}
.nav-logo img {
  height: 24px;
  width: auto;
  filter: brightness(0) invert(1);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
  transition: color 0.2s;
}
.nav-links a:hover { color: #fff; }
.nav-links a.active {
  border-bottom: 2px solid #fff;
  color: #fff;
  padding-bottom: 2px;
}
.nav-links .nav-cta {
  padding: 8px 20px;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 50px;
  color: #fff;
  font-weight: 500;
  transition: background 0.25s, border-color 0.25s;
}
.nav-links .nav-cta:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
}
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-close { display: none; }

/* ============================================================
   MAIN
   ============================================================ */
.project-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 130px 32px 100px;
}

/* Back button */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 50px;
  padding: 9px 18px;
  margin-bottom: 52px;
  width: fit-content;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.back-btn:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border-color: rgba(255,255,255,0.35);
}
.back-btn img {
  width: 13px;
  filter: brightness(0) invert(1);
  opacity: 0.6;
  transform: rotate(180deg);
}

/* Project header */
.project-header {
  margin-bottom: 52px;
}

.project-title {
  font-family: var(--font-hero);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 400;
  color: #fff;
  margin-bottom: 20px;
}

.project-skills-label {
  font-size: 0.82rem;
  color: var(--clr-muted);
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.proj-tag {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #fff;
}

.tag-green   { background: var(--clr-green); }
.tag-personal {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.45);
  color: rgba(255,255,255,0.85);
}

/* ============================================================
   PHOTO GRID — 3 columns
   ============================================================ */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.photo-item {
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
  aspect-ratio: 4/3;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.photo-item:hover {
  transform: scale(1.02);
  box-shadow: 0 0 28px rgba(255,255,255,0.12);
}

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

.photo-item:hover img {
  transform: scale(1.05);
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-img-wrap {
  max-width: 90vw;
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img-wrap img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
  font-size: 1.4rem;
  color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.15); color: #fff; }

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  color: rgba(255,255,255,0.65);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255,255,255,0.14); color: #fff; }

/* ============================================================
   MOBILE RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {

  .nav-hamburger { display: flex; }
  .nav-links {
    position: fixed;
    top: 10px;
    right: 10px;
    width: 300px;
    height: auto;
    background: rgba(75, 68, 120, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 56px 32px 36px;
    gap: 8px;
    border: 1px solid rgba(255,255,255,0.13);
    border-radius: 20px;
    z-index: 998;
    box-shadow: 0 8px 40px rgba(0,0,0,0.45);
    transform-origin: top right;
    transform: scale(0);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.34, 1.2, 0.64, 1), opacity 0.25s ease;
  }
  .nav-links.open { transform: scale(1); opacity: 1; pointer-events: auto; }
  .nav-links a {
    font-size: 1.25rem;
    font-family: var(--font-hero);
    font-weight: 400;
    color: rgba(255,255,255,0.85);
    padding: 8px 0;
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.07);
  }
  .nav-links li:last-child a { border-bottom: none; }
  .nav-links a:hover { color: #fff; }
  .nav-links a.active { border-bottom: 2px solid #fff; color: #fff; }
  .nav-links .nav-cta {
    margin-top: 8px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.4) !important;
    border-radius: 50px !important;
    padding: 10px 20px !important;
    display: block;
    border-bottom: 1px solid rgba(255,255,255,0.4) !important;
  }
  .nav-close {
    display: flex;
    position: absolute;
    top: 14px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.3);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: none;
    color: rgba(255,255,255,0.7);
    font-size: 1rem;
    line-height: 1;
  }
  .nav-close:hover { border-color: #fff; color: #fff; }
  .nav-hamburger.active span:nth-child(1) { opacity: 0; }
  .nav-hamburger.active span:nth-child(2) { opacity: 0; }
  .nav-hamburger.active span:nth-child(3) { opacity: 0; }

  .navbar { width: calc(100% - 24px); top: 10px; }
  .project-main { padding: 100px 20px 80px; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}

@media (max-width: 480px) {
  .photo-grid { grid-template-columns: 1fr; gap: 10px; }
  .navbar { width: calc(100% - 24px); top: 10px; }
}
