/* ============================================
   Alessandro Novo — Portfolio
   assets/css/style.css
   ============================================ */

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

:root {
  --black:  #0a0a0a;
  --white:  #f5f2ee;
  --gray:   #8a8680;
  --accent: #c8b89a;
  --line:   rgba(200, 184, 154, 0.2);

  --serif:   'DM Serif Display', serif;
  --sans:    'DM Sans', sans-serif;
  --display: 'Bebas Neue', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--sans);
  font-weight: 300;
  overflow-x: hidden;
  cursor: none;
}

/* ── CURSOR ─────────────────────────────── */
.cursor {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease;
}

.cursor-ring {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(200, 184, 154, 0.4);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cursor.hover    { transform: translate(-50%, -50%) scale(2); }
.cursor-ring.hover { transform: translate(-50%, -50%) scale(1.5); }

/* ── PAGE OVERLAY ────────────────────────── */
.page-overlay {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 200;
  transform-origin: bottom;
  animation: overlayOut 0.8s cubic-bezier(0.77, 0, 0.18, 1) forwards;
}

@keyframes overlayOut {
  0%   { transform: scaleY(1); }
  100% { transform: scaleY(0); }
}

/* ── NAV ─────────────────────────────────── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 48px;
}

nav::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10,10,10,0.9) 0%, transparent 100%);
  pointer-events: none;
}

.nav-logo {
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: 0.08em;
  color: var(--white);
  text-decoration: none;
  position: relative;
  z-index: 1;
}

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
  position: relative;
  z-index: 1;
}

.nav-links a {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray);
  text-decoration: none;
  transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--white); }

/* ── PAGES ───────────────────────────────── */
.page          { display: none; }
.page.active   { display: block; }

/* ── FADE-IN ─────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* ── HERO ────────────────────────────────── */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 48px 60px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(200, 184, 154, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(200, 184, 154, 0.04) 0%, transparent 50%);
}

.hero-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 48px;
  width: 1px;
  background: var(--line);
}

.hero-counter {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--gray);
  text-transform: uppercase;
  margin-bottom: 32px;
  position: relative;
}

.hero-title {
  font-family: var(--display);
  font-size: clamp(72px, 10vw, 160px);
  line-height: 0.9;
  letter-spacing: 0.02em;
  color: var(--white);
  position: relative;
}

.hero-title em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--accent);
}

.hero-sub {
  position: absolute;
  right: 48px;
  bottom: 60px;
  font-size: 13px;
  color: var(--gray);
  letter-spacing: 0.08em;
  max-width: 260px;
  text-align: right;
  line-height: 1.7;
}

.scroll-hint {
  position: absolute;
  left: 48px;
  bottom: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

.scroll-hint span {
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gray);
  writing-mode: vertical-rl;
}

.scroll-hint::after {
  content: '';
  display: block;
  width: 1px;
  height: 60px;
  background: var(--accent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%, 100% { opacity: 0.3; transform: scaleY(0.5); }
  50%       { opacity: 1;   transform: scaleY(1);   }
}

/* ── PROJECT INDEX ───────────────────────── */
.project-index {
  padding: 80px 48px 40px;
  border-bottom: 1px solid var(--line);
}

.project-index-label {
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 24px;
}

.project-index-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 0;
  list-style: none;
}

.project-index-list li {
  font-size: 12px;
  color: var(--gray);
  cursor: pointer;
  transition: color 0.2s;
  white-space: nowrap;
}

.project-index-list li::after {
  content: ' /';
  color: var(--line);
  margin: 0 8px;
}

.project-index-list li:last-child::after { display: none; }
.project-index-list li:hover { color: var(--accent); }

/* ── PROJECTS ────────────────────────────── */
.projects-section { padding: 0 48px; }

.project-item {
  padding: 80px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  align-items: start;
}

.project-meta {
  position: sticky;
  top: 100px;
}

.project-num {
  font-family: var(--display);
  font-size: 80px;
  line-height: 1;
  color: rgba(200, 184, 154, 0.12);
  margin-bottom: 24px;
}

.project-title {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 8px;
  color: var(--white);
}

.project-subtitle {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}

.project-desc {
  font-size: 14px;
  line-height: 1.8;
  color: var(--gray);
  margin-bottom: 20px;
}

.project-award {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(200, 184, 154, 0.3);
  padding: 6px 12px;
  border-radius: 2px;
  margin-bottom: 6px;
  margin-right: 4px;
}

/* ── MEDIA ───────────────────────────────── */
.project-media {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.project-gif {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #141414;
  position: relative;
}

.project-gif img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.project-gif:hover img { transform: scale(1.03); }

.project-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.project-images.two-col {
  grid-template-columns: repeat(2, 1fr);
}

.project-images img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: #141414;
  transition: opacity 0.3s;
}

.project-images img:hover { opacity: 0.85; }

.img-full {
  width: 100%;
  background: #141414;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.img-full img {
  max-width: 100%;
  display: block;
}

/* ── ABOUT ───────────────────────────────── */
.about-section {
  padding: 120px 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 120px;
  align-items: start;
}

.about-label {
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 40px;
}

.about-headline {
  font-family: var(--serif);
  font-size: clamp(36px, 4vw, 52px);
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 32px;
}

.about-headline em {
  font-style: italic;
  color: var(--accent);
}

.about-body {
  font-size: 15px;
  line-height: 1.85;
  color: var(--gray);
  margin-bottom: 24px;
}

.about-section-title {
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.about-awards { margin-bottom: 48px; }

.award-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--gray);
  line-height: 1.5;
}

.clients-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.client-tag {
  font-size: 11px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  color: var(--gray);
  border-radius: 2px;
  letter-spacing: 0.05em;
}

/* ── FOOTER ──────────────────────────────── */
footer {
  padding: 60px 48px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-name {
  font-family: var(--display);
  font-size: 42px;
  letter-spacing: 0.05em;
  color: var(--white);
  opacity: 0.15;
}

.footer-link {
  display: block;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
  text-decoration: none;
  margin-bottom: 8px;
  transition: color 0.3s;
}

.footer-link:hover { color: var(--accent); }

.footer-right { text-align: right; }

.footer-copy {
  font-size: 11px;
  color: rgba(138, 134, 128, 0.4);
  margin-top: 24px;
}

/* ── RESPONSIVE ──────────────────────────── */
@media (max-width: 900px) {
  nav { padding: 24px; }

  .hero { padding: 0 24px 60px; }
  .hero-line { left: 24px; }
  .hero-sub  { display: none; }
  .scroll-hint { left: 24px; }

  .project-index    { padding: 60px 24px 32px; }
  .projects-section { padding: 0 24px; }

  .project-item {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 60px 0;
  }

  .project-meta { position: relative; top: auto; }

  .about-section {
    grid-template-columns: 1fr;
    gap: 60px;
    padding: 80px 24px;
  }

  footer {
    padding: 40px 24px;
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }

  .footer-right { text-align: left; }
}
