/* ========================================
   DARK PORTFOLIO — Base Styles
   ======================================== */

:root {
  --bg: #080B0D;
  --bg-secondary: #111518;
  --card: #15191C;
  --text: #F5F4F0;
  --text-secondary: #A5A8AB;
  --accent: #E8BD86;
  --accent-2: #CFA06A;
  --border: rgba(255, 255, 255, 0.12);
  --hero-text: #E4E4E4;
  --container: 1360px;
  --pad: 64px;
  --radius-sm: 9px;
  --radius-md: 14px;
  --radius-lg: 15px;
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --header-h: 88px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--pad);
}

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

.accent {
  color: var(--accent);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.eyebrow__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease), transform 0.25s var(--ease),
    filter 0.25s var(--ease);
}

.btn--outline-gold {
  padding: 11px 18px;
  border: 1px solid var(--accent);
  border-radius: 10px;
  color: var(--text);
  background: transparent;
}

.btn--outline-gold:hover {
  background: var(--accent);
  color: #111;
}

.btn--pill {
  padding: 6px 22px 6px 6px;
  min-width: 190px;
  height: 48px;
  border-radius: 50px;
  background: var(--accent);
  color: #111418;
}

.btn--pill:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
}

.btn__play {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(17, 20, 24, 0.18);
  display: grid;
  place-items: center;
}

.btn--dark-solid {
  padding: 12px 20px;
  border-radius: 9px;
  background: rgba(30, 34, 38, 0.92);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn--dark-solid:hover {
  background: rgba(45, 50, 56, 0.95);
  transform: translateY(-1px);
}

.btn--dark-solid img {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
}

/* ========== HEADER ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition:
    background 0.35s ease,
    border-color 0.35s ease,
    backdrop-filter 0.35s ease,
    -webkit-backdrop-filter 0.35s ease;
}

.header.is-scrolled {
  background: rgba(8, 11, 13, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 24px;
}

.logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo__name {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--text);
}

.logo__role {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-top: 5px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav__link {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  padding-bottom: 4px;
  transition: color 0.2s;
}

.nav__link:hover,
.nav__link.is-active {
  color: var(--text);
}

.nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
}

.burger span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: 0.25s;
}

.eyebrow--status {
  text-transform: none;
  letter-spacing: 0.04em;
  font-size: 13px;
}

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 100svh;
  height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--header-h);
  overflow: hidden;
  box-sizing: border-box;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: brightness(0.72) contrast(1.05) saturate(0.95);
}

.hero__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.62) 45%,
    rgba(0, 0, 0, 0.78) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container);
  padding-block: 48px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__content .hero__title {
  text-align: center;
}

.hero__content .eyebrow,
.hero__content .hero__title,
.hero__content .btn--pill {
  margin-left: 0;
  margin-right: 0;
}

.hero__title {
  font-size: clamp(44px, 5vw, 76px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.055em;
  text-transform: none;
  margin-bottom: 28px;
  color: var(--text);
}

/* ========== CATEGORIES ========== */
.categories {
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.categories__inner {
  display: flex;
  justify-content: center;
}

.categories__row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
}

.categories__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 28px 16px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  border-right: 1px solid var(--border);
  transition: background 0.25s;
}

.categories__item:last-child {
  border-right: none;
}

.categories__item:hover {
  background: rgba(232, 189, 134, 0.06);
}

.categories__item:hover .categories__name {
  color: #f5d4a8;
}

.categories__name {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  transition: color 0.2s;
}

.categories__sub {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
  max-width: 180px;
}

/* ========== ABOUT ========== */
.about {
  padding: clamp(72px, 10vw, 120px) 0;
}

.about__grid {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) minmax(220px, 280px);
  gap: clamp(32px, 4vw, 56px);
  align-items: start;
}

.about__photo {
  width: 240px;
  height: 300px;
  border-radius: var(--radius-md);
  overflow: hidden;
  isolation: isolate;
  transform: translateZ(0);
}

.about__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 28%;
  transform: scale(1.12);
  transform-origin: 70% 20%;
  border-radius: inherit;
}

.about__title {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.15;
  margin-bottom: 16px;
  color: var(--text);
}

.about__text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 480px;
}

.skills {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding-top: 8px;
}

.skills__item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.skills__icon {
  width: 23px;
  height: 23px;
  flex-shrink: 0;
  margin-top: 2px;
  filter: invert(78%) sepia(28%) saturate(600%) hue-rotate(346deg) brightness(98%);
}

.skills__name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 3px;
}

.skills__desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* ========== PORTFOLIO ========== */
.portfolio {
  padding-top: clamp(56px, 8vw, 88px);
  padding-bottom: clamp(72px, 10vw, 120px);
  background: var(--bg);
}

.portfolio__head {
  margin-bottom: 28px;
}

.portfolio__title {
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  text-transform: uppercase;
}

.works-long__head {
  margin-bottom: 18px;
}

.works-long__title,
.reels__title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
}

.works-long {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 48px;
}

.work-card {
  border-radius: 12px;
  overflow: hidden;
  background: var(--card);
}

.work-card__btn {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  text-align: left;
  color: var(--text);
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
}

.work-card--long .work-card__btn {
  aspect-ratio: 16 / 9;
}

.work-card--reel {
  flex: 0 0 auto;
  width: min(220px, 62vw);
}

.work-card--reel .work-card__btn {
  aspect-ratio: 9 / 16;
}

.work-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.55s var(--ease);
}

.work-card__btn:hover .work-card__img,
.work-card__btn:focus-visible .work-card__img {
  transform: scale(1.04);
}

.work-card--reel .work-card__btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.4) 0%, transparent 45%);
  pointer-events: none;
}

.work-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: #111;
  display: grid;
  place-items: center;
  transition: transform 0.25s var(--ease);
}

.work-card--reel .work-card__play {
  width: 44px;
  height: 44px;
}

.work-card__btn:hover .work-card__play {
  transform: translate(-50%, -50%) scale(1.08);
}

.reels__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.reels__nav {
  display: flex;
  gap: 8px;
}

.reels__arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  color: var(--text);
  font-size: 16px;
  display: grid;
  place-items: center;
  transition: border-color 0.2s, background 0.2s;
}

.reels__arrow:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.reels__track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.reels__track .work-card {
  scroll-snap-align: start;
}

.modal__dialog.is-vertical {
  width: min(420px, calc(100vw - 48px), calc(82vh * 9 / 16));
  background: #000;
}

.modal__dialog.is-vertical .modal__body {
  aspect-ratio: 9 / 16;
  width: 100%;
  height: auto;
  max-height: none;
}

.modal__dialog.is-vertical .modal__video {
  object-fit: cover;
  object-position: center;
}

.footer__email-btn {
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;
  padding: 0;
}

.footer__email-btn:hover {
  color: var(--accent);
}

/* ========== CONTACT ========== */
.contact {
  padding-bottom: clamp(56px, 8vw, 96px);
}

.contact__banner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 360px;
  display: flex;
  align-items: center;
}

.contact__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: brightness(0.5) contrast(1.08) saturate(1.05);
  transition: filter 0.5s;
}

.contact__banner:hover .contact__bg {
  filter: brightness(0.62) contrast(1.05);
}

.contact__banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(8, 11, 13, 0.95) 0%,
    rgba(8, 11, 13, 0.78) 40%,
    rgba(8, 11, 13, 0.25) 100%
  );
}

.contact__content {
  position: relative;
  z-index: 1;
  padding: clamp(40px, 6vw, 64px);
  max-width: 560px;
}

.contact__star {
  display: block;
  color: var(--accent);
  font-size: 18px;
  margin-bottom: 14px;
}

.contact__title {
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.12;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.contact__text {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ========== FOOTER ========== */
.footer {
  padding: 28px 0 40px;
  border-top: 1px solid var(--border);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
}

.footer__links {
  display: flex;
  gap: 20px;
}

.footer__links a:hover {
  color: var(--accent);
}

/* ========== MODAL ========== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
}

.modal[hidden] {
  display: none;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
}

.modal__dialog {
  position: relative;
  width: min(1100px, 100%);
  background: #0a0c0e;
  border-radius: 12px;
  overflow: hidden;
}

.modal__close {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  display: grid;
  place-items: center;
}

.modal__close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.modal__body {
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  background: #000;
}

.modal__video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #000;
}

.modal__video[hidden],
.modal__message[hidden] {
  display: none;
}

.modal__message {
  color: rgba(255, 255, 255, 0.85);
  font-size: 18px;
  font-weight: 500;
  padding: 40px;
  text-align: center;
}

body.modal-open {
  overflow: hidden;
}
