:root {
  color-scheme: light;
  --font-sans: "Inter", "SF Pro Display", "Segoe UI", system-ui, sans-serif;
  --color-bg: #f5f5f5;
  --color-surface: #ffffff;
  --color-card: #ffffff;
  --color-border: #dcdcdc;
  --color-border-strong: #1f1f1f;
  --color-text: #151515;
  --color-subtle: #4a4a4a;
  --color-accent: #1f1f1f;
  --shadow-soft: 0 24px 48px -32px rgba(17, 17, 17, 0.35);
  --shadow-sharp: 0 18px 38px -20px rgba(17, 17, 17, 0.45);
  --hero-image: url("../images/Hero.jpg");
  --nav-height: 82px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.page {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-top: var(--nav-height);
}

nav.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  background: rgba(18, 18, 18, 0.95);
  border-bottom: 1px solid rgba(250, 250, 250, 0.08);
  height: var(--nav-height);
  padding: 0 clamp(1.5rem, 3vw, 3.6rem);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  color: rgba(245, 245, 245, 0.85);
}

nav .brand {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.98rem;
  text-align: center;
  justify-self: center;
}

.nav-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.88rem;
}

.nav-group--left {
  justify-self: start;
  justify-content: flex-start;
  gap: 0.75rem;
}

.nav-group--right {
  justify-self: end;
  justify-content: flex-end;
  gap: 1.35rem;
}

.nav-group a,
.nav-group button {
  color: rgba(240, 240, 240, 0.72);
}

.nav-group a:hover,
.nav-group button:hover {
  color: #ffffff;
}

.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 0;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.icon-link svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: currentColor;
}

.icon-link:hover {
  border-color: rgba(255, 255, 255, 0.6);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-group button {
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: transparent;
  color: #f3f3f3;
  font: inherit;
  padding: 0.45rem 0.9rem;
  border-radius: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}


.hero {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(4rem, 14vh, 8.5rem) clamp(1.5rem, 2.5vw, 4rem) clamp(3.5rem, 8vh, 5rem);
  padding-top: calc(var(--nav-height) + clamp(3.5rem, 12vh, 7rem));
  overflow: hidden;
  margin-top: calc(-1 * var(--nav-height));
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-image);
  background-color: #1a1a1a;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -2;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: -1;
}

.hero-content {
  max-width: 720px;
  color: #f4f4f4;
}

.hero .profile {
  width: 148px;
  height: 148px;
  margin: 0 auto 1.25rem;
  border-radius: 0;
  border: 3px solid rgba(255, 255, 255, 0.4);
  overflow: hidden;
  box-shadow: 0 25px 60px -30px rgba(0, 0, 0, 0.55);
  background-image: url("../images/findmetwice.png");
  background-size: cover;
  background-position: center;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  letter-spacing: 0.04em;
  margin: 0 0 0.5rem;
  text-transform: capitalize;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.hero-star {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.8em;
  height: 0.8em;
  margin: 0;
  transform: none;
  vertical-align: middle;
}

.hero-star svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: rgba(255, 255, 255, 0.92);
}

.hero p {
  margin: 0 auto 1.5rem;
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  line-height: 1.6;
  max-width: 54ch;
  color: rgba(244, 244, 244, 0.82);
}

.hero .cta {
  display: inline-flex;
  gap: 0.8rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.hero .cta a {
  padding: 0.65rem 1.35rem;
  border-radius: 0;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: inherit;
  transition: background 180ms ease;
}

.hero .cta a.primary {
  background: #f0f0f0;
  color: #151515;
  border-color: rgba(240, 240, 240, 0.8);
}

.hero .cta a:hover {
  background: rgba(255, 255, 255, 0.2);
}

.hero .cta a.primary:hover {
  background: #ffffff;
}

.section {
  padding: clamp(3rem, 6vw, 6rem) clamp(1.5rem, 5vw, 4.5rem);
}

.section-header {
  margin: 0 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.section-header h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  letter-spacing: 0.02em;
}

.filters {
  display: grid;
  grid-template-columns: minmax(200px, 1.2fr) auto;
  gap: 1rem;
  align-items: center;
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.search-field {
  position: relative;
  width: 100%;
}

.search-field input {
  width: 100%;
  padding: 0.8rem 1rem 0.8rem 2.8rem;
  border-radius: 0;
  border: 1px solid var(--color-border);
  background: var(--color-card);
  color: var(--color-text);
  font-size: 0.95rem;
  transition: border 160ms ease, box-shadow 160ms ease;
}

.search-field input:focus {
  outline: none;
  border-color: var(--color-border-strong);
  box-shadow: 0 0 0 4px rgba(31, 31, 31, 0.12);
}

.search-field svg {
  position: absolute;
  left: 1rem;
  top: 50%;
  width: 1rem;
  height: 1rem;
  fill: currentColor;
  color: var(--color-subtle);
  transform: translateY(-50%);
}

.filter-chips {
  display: inline-flex;
  gap: 0.6rem;
  align-items: center;
  flex-wrap: wrap;
}

.chip {
  border: 1px solid var(--color-border);
  border-radius: 0;
  padding: 0.45rem 1.05rem;
  background: transparent;
  color: var(--color-subtle);
  font: inherit;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease, border 150ms ease;
}

.chip:hover {
  border-color: var(--color-border-strong);
}

.chip.is-active {
  background: var(--color-accent);
  border-color: var(--color-border-strong);
  color: #ffffff;
}

.gallery {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  max-width: 1080px;
  margin-inline: auto;
}

.project-card {
  border-radius: 0;
  border: 1px solid var(--color-border);
  background: var(--color-card);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 200ms ease;
}

.project-card:hover {
  box-shadow: var(--shadow-sharp);
}

.project-thumb {
  position: relative;
  padding-top: 56.5%;
  background-color: #1d1d1d;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.project-details {
  padding: 1.4rem 1.35rem 1.5rem;
  display: grid;
  gap: 0.75rem;
}

.project-details h3 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.project-details p {
  margin: 0;
  font-size: 0.93rem;
  color: var(--color-subtle);
  line-height: 1.5;
}

.meta {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(69, 69, 69, 0.9);
}

.project-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.project-actions button {
  border: none;
  border-radius: 0;
  padding: 0.65rem 1.15rem;
  font: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-accent);
  color: #ffffff;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: opacity 150ms ease, background 150ms ease;
}

.project-actions button:hover {
  
  opacity: 0.92;
}

.project-actions button svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: currentColor;
}

.project-actions .length {
  font-size: 0.82rem;
  color: var(--color-subtle);
}

footer {
  padding: 2rem clamp(1.5rem, 3vw, 3.5rem) 3rem;
  color: var(--color-subtle);
  text-align: center;
  font-size: 0.85rem;
}

footer a {
  color: inherit;
}

.footer-icons {
  display: inline-flex;
  gap: 0.75rem;
  margin-left: 1rem;
}

.footer-icons .icon-link {
  width: 2rem;
  height: 2rem;
  border-color: rgba(255, 255, 255, 0.35);
}

.footer-icons .icon-link svg {
  width: 1rem;
  height: 1rem;
}

@media (max-width: 640px) {
  .nav-group--left {
    display: none;
  }
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 400;
  padding: clamp(1rem, 4vw, 3rem);
}

.modal.is-visible {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 7, 7, 0.78);
  backdrop-filter: blur(6px);
}

.modal-dialog {
  position: relative;
  width: min(1040px, 100%);
  border-radius: 0;
  overflow: hidden;
  box-shadow: var(--shadow-sharp);
  background: #0f0f0f;
  display: flex;
  flex-direction: column;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.4rem;
  background: #111111;
  color: #f4f4f4;
}

.modal-header h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.modal-close {
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: #fdfdfd;
  width: 2rem;
  height: 2rem;
  border-radius: 0;
  cursor: pointer;
  font-size: 1.1rem;
  display: grid;
  place-items: center;
  transition: background 150ms ease;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.modal iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  background: #050505;
}

.modal-playlist {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem 1rem;
  background: rgba(10, 10, 10, 0.9);
  flex-wrap: wrap;
}

.modal-playlist[hidden] {
  display: none;
}

.modal-playlist button {
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  font: inherit;
  padding: 0.45rem 0.9rem;
  cursor: pointer;
  transition: border-color 150ms ease, color 150ms ease, background 150ms ease;
}

.modal-playlist button.is-active {
  border-color: rgba(255, 255, 255, 0.8);
  color: #0b0c10;
  background: rgba(255, 255, 255, 0.85);
}

.modal-playlist button:hover {
  border-color: rgba(255, 255, 255, 0.8);
  color: #ffffff;
}

@media (max-width: 820px) {
  .hero {
    min-height: 68vh;
    margin-top: calc(-1 * var(--nav-height));
    padding-top: calc(var(--nav-height) + clamp(0.75rem, 6vh, 2.25rem));
  }

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

  .nav-links {
    gap: 1rem;
  }
}

@media (max-width: 540px) {
  nav.site-nav {
    padding: 0.6rem 1.2rem;
  }

  .nav-links {
    gap: 0.85rem;
    font-size: 0.82rem;
  }

  .nav-links button {
    padding: 0.35rem 0.7rem;
  }

  .hero .profile {
    width: 120px;
    height: 120px;
  }

  .hero .cta a {
    width: 100%;
    justify-content: center;
  }

  .project-card {
    border-radius: 0;
  }
}
