/* =====================================================
   DIOGO SOUTO PORTFOLIO — style.css
   ===================================================== */

/* RESET & BASE */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --black:   #0e0e0e;
  --white:   #f4f2ee;
  --accent:  #c8f23e;
  --gray:    #7a7a74;
  --gray-lt: #a0a09a;
  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --pad: 40px;
  --gap: 2px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Hide default cursor on non-touch devices */
@media (hover: hover) {
  body { cursor: none; }
  a, button { cursor: none; }
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

/* =====================================================
   CURSOR
   ===================================================== */
.cursor,
.cursor-follower {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  display: none;
}

@media (hover: hover) {
  .cursor { display: block; }
  .cursor-follower { display: block; }
}

.cursor {
  width: 8px;
  height: 8px;
  background: var(--accent);
  mix-blend-mode: difference;
  transition: width 0.15s, height 0.15s;
}

.cursor.cursor--hover {
  width: 48px;
  height: 48px;
  background: var(--white);
}

.cursor-follower {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(200, 242, 62, 0.4);
  transition: none;
}

/* =====================================================
   NAV
   ===================================================== */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px var(--pad);
  mix-blend-mode: difference;
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--white);
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  opacity: 0.5;
  transition: opacity 0.2s;
}

.nav-links a:hover { opacity: 1; }

.nav-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}

.nav-menu-toggle span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--white);
  transition: transform 0.3s, opacity 0.3s;
}

/* MOBILE MENU */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 99;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.mobile-menu.is-open { display: flex; }

.mobile-menu ul {
  list-style: none;
  text-align: center;
}

.mobile-menu ul li {
  margin-bottom: 24px;
}

.mobile-menu ul a {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--white);
  transition: color 0.2s;
}

.mobile-menu ul a:hover { color: var(--accent); }

/* =====================================================
   HERO
   ===================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: 0 var(--pad) 64px;
  position: relative;
  overflow: hidden;
}

.hero-inner { width: 100%; }

.hero-tag {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-lt);
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(16px);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(56px, 10vw, 120px);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.03em;
  color: var(--white);
  display: flex;
  flex-direction: column;
}

.hero-line {
  display: block;
  overflow: hidden;
}

.hero-line-inner {
  display: block;
  transform: translateY(100%);
}

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

.hero-sub {
  margin-top: 40px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.hero-desc {
  font-size: 15px;
  font-weight: 300;
  color: var(--gray-lt);
  max-width: 320px;
  line-height: 1.65;
  opacity: 0;
  transform: translateY(12px);
}

.scroll-hint {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
  opacity: 0;
  flex-shrink: 0;
}

.scroll-line {
  width: 48px;
  height: 1px;
  background: var(--gray);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: var(--accent);
  animation: slideAnim 1.6s ease-in-out infinite;
}

@keyframes slideAnim {
  0%   { left: -100%; }
  100% { left: 100%; }
}

/* =====================================================
   MARQUEE
   ===================================================== */
.marquee-wrap {
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 18px 0;
  overflow: hidden;
  display: flex;
}

.marquee-track {
  display: flex;
  gap: 40px;
  white-space: nowrap;
  animation: marqueeAnim 22s linear infinite;
}

.marquee-track span {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray);
}

.marquee-track .dot {
  color: var(--accent);
}

@keyframes marqueeAnim {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* =====================================================
   SECTION COMMONS
   ===================================================== */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 40px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.section-label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray);
}

.section-count {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: var(--gray);
  letter-spacing: 0.05em;
}

/* =====================================================
   FEATURED GRID
   ===================================================== */
.featured-section {
  padding: 80px var(--pad);
}

.featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
}

.featured-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  display: block;
  background: #141414;
}

.featured-item.featured-large {
  grid-column: span 2;
  aspect-ratio: 16 / 7;
}

.featured-media {
  width: 100%;
  height: 100%;
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.featured-item:hover .featured-media {
  transform: scale(1.05);
}

/* Art placeholders (replace with real images when available) */
.feat-art-1 {
  background: #141414;
  position: relative;
  overflow: hidden;
}

.feat-art-1::before {
  content: '';
  position: absolute;
  width: 340px; height: 340px;
  background: var(--accent);
  border-radius: 50%;
  top: -80px; right: -80px;
  opacity: 0.18;
}

.feat-art-1::after {
  content: '';
  position: absolute;
  width: 240px; height: 240px;
  background: #8b1a1a;
  border-radius: 50%;
  bottom: -40px; left: 40px;
  opacity: 0.5;
}

.feat-art-2 {
  background: #0d1a0d;
}

.feat-art-3 {
  background: #100d1a;
}

.feat-art-4 {
  background: #1a0d0d;
}

.feat-art-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1;
  text-align: center;
  padding: 32px;
}

.feat-art-sub {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(200, 242, 62, 0.6);
  margin-bottom: 12px;
}

.feat-art-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--white);
  line-height: 1.05;
}

.featured-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 28px 32px;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.3s;
}

.featured-item:hover .featured-overlay {
  opacity: 1;
}

.featured-title {
  font-family: var(--font-display);
  font-size: clamp(16px, 2vw, 24px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
}

.featured-tag {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 5px 10px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* =====================================================
   PROJECT LIST
   ===================================================== */
.work-section {
  padding: 0 var(--pad) 80px;
}

.project-list {
  display: flex;
  flex-direction: column;
}

.project-item {
  display: grid;
  grid-template-columns: 56px 1fr auto 100px;
  align-items: center;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s;
}

.project-item::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  height: 1px;
  width: 0;
  background: var(--accent);
  transition: width 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-item:hover::after { width: 100%; }

.project-num {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.18);
  letter-spacing: 0.05em;
  transition: color 0.3s;
}

.project-item:hover .project-num {
  color: var(--accent);
}

.project-name {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.8vw, 34px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-item:hover .project-name {
  transform: translateX(10px);
}

.project-client {
  font-size: 13px;
  font-weight: 300;
  color: var(--gray-lt);
  text-align: right;
}

.project-year {
  font-size: 11px;
  color: rgba(255,255,255,0.2);
  text-align: right;
  letter-spacing: 0.05em;
}

/* =====================================================
   ABOUT PAGE
   ===================================================== */
.about-section {
  padding: 140px var(--pad) 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-eyebrow {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.about-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.0;
  margin-bottom: 32px;
}

.about-body {
  font-size: 16px;
  font-weight: 300;
  color: var(--gray-lt);
  line-height: 1.75;
  margin-bottom: 40px;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.stat-num {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--white);
}

.stat-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
  margin-top: 6px;
}

.about-right {}

.about-img-wrap {
  aspect-ratio: 3 / 4;
  background: #1a1a1a;
  overflow: hidden;
  position: relative;
  margin-bottom: 24px;
}

.about-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #1e1e1e, #2a2a2a);
}

.about-initials {
  font-family: var(--font-display);
  font-size: clamp(80px, 14vw, 140px);
  font-weight: 800;
  color: rgba(200,242,62,0.06);
  letter-spacing: -0.05em;
  user-select: none;
}

.about-badge {
  position: absolute;
  bottom: -16px;
  right: -16px;
  width: 100px;
  height: 100px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  animation: rotateBadge 12s linear infinite;
}

.about-badge span {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  color: var(--black);
  text-align: center;
  letter-spacing: 0.05em;
  line-height: 1.4;
  text-transform: uppercase;
}

@keyframes rotateBadge {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* =====================================================
   PROJECT PAGE
   ===================================================== */
.project-hero {
  padding: 140px var(--pad) 60px;
}

.project-hero-meta {
  display: flex;
  gap: 32px;
  margin-bottom: 24px;
}

.project-hero-tag {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.project-hero-year {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray);
}

.project-hero-title {
  font-family: var(--font-display);
  font-size: clamp(44px, 8vw, 96px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin-bottom: 40px;
}

.project-hero-title em {
  font-style: normal;
  color: var(--accent);
}

.project-cover {
  width: 100%;
  aspect-ratio: 16 / 8;
  overflow: hidden;
  background: #1a1a1a;
  margin-bottom: 80px;
}

.project-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-body {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  padding: 0 var(--pad) 80px;
}

.project-sidebar {}

.project-sidebar-item {
  margin-bottom: 32px;
}

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

.project-sidebar-value {
  font-size: 15px;
  font-weight: 300;
  color: var(--white);
}

.project-content p {
  font-size: 17px;
  font-weight: 300;
  color: var(--gray-lt);
  line-height: 1.8;
  margin-bottom: 24px;
}

.project-content h3 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 16px;
  margin-top: 40px;
}

.project-gallery {
  padding: 0 var(--pad) 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
}

.project-gallery-item {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #1a1a1a;
}

.project-gallery-item.full {
  grid-column: span 2;
  aspect-ratio: 16 / 7;
}

.project-nav {
  padding: 60px var(--pad);
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.project-nav-prev,
.project-nav-next {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.project-nav-next { align-items: flex-end; }

.project-nav-hint {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
}

.project-nav-title {
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
  transition: color 0.2s;
}

.project-nav-prev:hover .project-nav-title,
.project-nav-next:hover .project-nav-title {
  color: var(--accent);
}

/* =====================================================
   CONTACT PAGE
   ===================================================== */
.contact-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px var(--pad) 80px;
}

.contact-inner {
  width: 100%;
}

.contact-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 9vw, 112px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.9;
  margin-bottom: 60px;
}

.contact-title em {
  font-style: normal;
  color: var(--accent);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.contact-info-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 12px;
}

.contact-email {
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
  display: inline-block;
  margin-bottom: 48px;
  transition: color 0.2s;
  position: relative;
}

.contact-email::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.4s ease;
}

.contact-email:hover { color: var(--accent); }
.contact-email:hover::after { width: 100%; }

.contact-socials {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-social-link {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: rgba(255,255,255,0.3);
  transition: color 0.2s, transform 0.2s;
  display: inline-block;
}

.contact-social-link:hover {
  color: var(--white);
  transform: translateX(8px);
}

/* =====================================================
   FOOTER
   ===================================================== */
footer {
  padding: 64px var(--pad);
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.footer-big {
  font-family: var(--font-display);
  font-size: clamp(48px, 9vw, 100px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.9;
  color: var(--white);
}

.footer-big em {
  font-style: normal;
  color: var(--accent);
}

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

.footer-email {
  font-size: 14px;
  color: var(--gray-lt);
  display: block;
  margin-bottom: 16px;
  transition: color 0.2s;
}

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

.footer-socials {
  display: flex;
  gap: 20px;
  justify-content: flex-end;
  margin-bottom: 16px;
}

.footer-socials a {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
  transition: color 0.2s;
}

.footer-socials a:hover { color: var(--white); }

.footer-copy {
  font-size: 11px;
  color: rgba(255,255,255,0.18);
  letter-spacing: 0.05em;
}

/* =====================================================
   ANIMATIONS — initial states (set by JS)
   ===================================================== */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 900px) {
  :root { --pad: 24px; }

  .nav-links { display: none; }
  .nav-menu-toggle { display: flex; }

  .hero-title { font-size: clamp(44px, 12vw, 80px); }

  .hero-sub { flex-direction: column; align-items: flex-start; gap: 20px; }

  .featured-grid { grid-template-columns: 1fr; }
  .featured-item.featured-large { grid-column: span 1; aspect-ratio: 4/3; }

  .project-item {
    grid-template-columns: 40px 1fr;
    grid-template-rows: auto auto;
  }

  .project-client,
  .project-year { display: none; }

  .about-section {
    grid-template-columns: 1fr;
    padding-top: 120px;
  }

  .about-right { display: none; }

  .contact-grid { grid-template-columns: 1fr; gap: 40px; }

  footer { flex-direction: column; align-items: flex-start; }
  .footer-right { text-align: left; }
  .footer-socials { justify-content: flex-start; }

  .project-body { grid-template-columns: 1fr; gap: 40px; }
  .project-gallery { grid-template-columns: 1fr; }
  .project-gallery-item.full { grid-column: span 1; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 11vw; }
  .featured-item { aspect-ratio: 3/4; }
  .footer-big { font-size: 14vw; }
}

/* =====================================================
   REDUCED MOTION
   ===================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .scroll-line::after { animation: none; }
  .marquee-track { animation: none; }
}
