/* ============================================================
   Alex Tintoré Portfolio — main.css
   ============================================================ */

:root {
  --black:      #08070a;
  --deep:       #100f14;
  --gold:       #c9a94a;
  --gold2:      #e8cc7a;
  --white:      #f0eee8;
  --muted:      #6b6672;
  --muted2:     #9990a0;
  --border:     rgba(201,169,74,0.18);
  --border-dim: rgba(255,255,255,0.06);
}

/* ─── RESET & BASE ─── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
}

/* Noise texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.5;
}

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 60px;
  background: linear-gradient(to bottom, rgba(8,7,10,0.96), transparent);
}

.nav-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 0.15em;
  color: var(--white);
}
.nav-logo span { color: var(--gold); }

nav ul { list-style: none; display: flex; gap: 40px; align-items: center; }

nav ul a {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s;
}
nav ul a:hover { color: var(--gold); }

.nav-cta {
  color: var(--gold) !important;
  border: 1px solid var(--border);
  padding: 8px 20px;
  border-radius: 40px;
  transition: background 0.3s, color 0.3s !important;
}
.nav-cta:hover { background: var(--gold) !important; color: var(--black) !important; }

/* ─── CAROUSEL ─── */
#home {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.9s cubic-bezier(0.77,0,0.175,1);
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  flex-shrink: 0;
  background-color: var(--deep);
  background-size: cover;
  background-position: center;
}

.slide-fallback { background: linear-gradient(135deg, #0a0c14 0%, #141830 50%, #0a0a10 100%); }

.slide-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.12);
  text-transform: uppercase;
}

.carousel-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 55%;
  background: linear-gradient(to top, rgba(8,7,10,1) 0%, transparent 100%);
  z-index: 2;
  pointer-events: none;
}

.carousel-caption {
  position: absolute;
  bottom: 80px; left: 60px;
  z-index: 3;
}

.caption-tag {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 12px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s 0.3s, transform 0.5s 0.3s;
}

.caption-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(48px, 7vw, 100px);
  line-height: 0.95;
  letter-spacing: 0.03em;
  color: var(--white);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s 0.4s, transform 0.6s 0.4s;
}

.carousel-slide.active .caption-tag,
.carousel-slide.active .caption-title {
  opacity: 1;
  transform: translateY(0);
}

.carousel-btn {
  position: absolute;
  top: 50%; z-index: 10;
  transform: translateY(-50%);
  background: none;
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--white);
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 18px;
  transition: border-color 0.3s, background 0.3s;
}
.carousel-btn:hover { border-color: var(--gold); background: rgba(201,169,74,0.1); }
.carousel-prev { left: 30px; }
.carousel-next { right: 30px; }

.carousel-dots {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 10px;
}
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.2);
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s;
}
.dot.active { background: var(--gold); border-color: var(--gold); }

/* ─── SHARED SECTION STYLES ─── */
.section-header {
  display: flex;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 64px;
  padding: 0 60px;
}
.section-num {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--gold);
}
.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(48px, 6vw, 80px);
  letter-spacing: 0.04em;
  color: var(--white);
  line-height: 1;
}

/* ─── PHOTOGRAPHY ─── */
#photography {
  padding: 120px 0 100px;
  background: var(--black);
  position: relative;
  overflow: hidden;
}

#photography::before {
  content: 'PHOTO';
  position: absolute;
  right: -40px; top: 60px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 280px;
  color: rgba(255,255,255,0.012);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.photo-category { margin-bottom: 72px; padding: 0 60px; }

.category-label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px;
  letter-spacing: 0.1em;
  color: var(--white);
  text-align: center;
  margin-bottom: 24px;
  position: relative;
}
.category-label::after {
  content: '';
  display: block;
  width: 40px; height: 1px;
  background: var(--gold);
  margin: 10px auto 0;
  opacity: 0.6;
}

.photo-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.photo-cell {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  background: var(--deep);
}

.photo-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16,1,0.3,1);
}
.photo-cell:hover img { transform: scale(1.06); }

.ph-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.08);
  text-transform: uppercase;
}

.photo-cell-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8,7,10,0.7) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s;
}
.photo-cell:hover .photo-cell-overlay { opacity: 1; }

/* ─── WORK ─── */
#work {
  background: var(--deep);
  padding: 120px 0 140px;
  position: relative;
  overflow: hidden;
}

#work::before {
  content: 'WORK';
  position: absolute;
  left: -20px; top: 40px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 320px;
  color: rgba(255,255,255,0.012);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.work-domains {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  padding: 0 60px;
  position: relative;
  z-index: 2;
}

.domain-col {
  padding: 0 40px 0 0;
  border-right: 1px solid var(--border-dim);
}
.domain-col:first-child { padding-left: 0; }
.domain-col:last-child  { border-right: none; padding-right: 0; padding-left: 40px; }
.domain-col:nth-child(2){ padding-left: 40px; }

.domain-label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 0.1em;
  color: var(--white);
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}
.domain-label::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
}

.role-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px;
  letter-spacing: 0.04em;
  color: var(--gold);
  line-height: 1.1;
  margin-bottom: 6px;
}

.role-company-date {
  font-family: 'DM Mono', monospace;
  font-size: 14px;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.role-bullets { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.role-bullets li {
  font-size: 18px;
  font-weight: 300;
  color: var(--muted2);
  line-height: 1.65;
  padding-left: 16px;
  position: relative;
}
.role-bullets li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--gold);
  opacity: 0.6;
}

/* ─── ABOUT ─── */
#about {
  background: var(--black);
  padding: 120px 0 140px;
  position: relative;
  overflow: hidden;
}

#about::after {
  content: 'AT';
  position: absolute;
  right: -40px; top: 50%;
  transform: translateY(-50%);
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(300px, 35vw, 520px);
  color: rgba(201,169,74,0.03);
  line-height: 1;
  letter-spacing: -0.05em;
  pointer-events: none;
  user-select: none;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  padding: 0 60px;
  position: relative;
  z-index: 2;
  align-items: start;
}

.about-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(64px, 9vw, 130px);
  line-height: 0.9;
  letter-spacing: 0.02em;
  color: var(--white);
  margin-bottom: 32px;
}
.about-name em { font-style: normal; color: var(--gold); display: block; }

.about-meta {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin-top: 48px;
}

.stat-box {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-dim);
  padding: 20px 24px;
  position: relative;
}
.stat-box::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--gold);
}
.stat-n {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 40px;
  color: var(--gold);
  line-height: 1;
  letter-spacing: 0.02em;
}
.stat-l {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 4px;
}

.about-bio {
  font-size: 20px;
  font-weight: 300;
  line-height: 1.85;
  color: var(--muted2);
  margin-bottom: 28px;
}
.about-bio strong { color: var(--white); font-weight: 400; }

.about-links { display: flex; gap: 20px; margin-top: 48px; }

.about-link {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 12px 28px;
  transition: 0.3s;
}
.about-link.primary  { background: var(--gold); color: var(--black); }
.about-link.primary:hover { background: var(--gold2); }
.about-link.secondary { border: 1px solid var(--border); color: var(--muted); }
.about-link.secondary:hover { border-color: var(--gold); color: var(--gold); }

/* ─── FOOTER ─── */
footer {
  padding: 48px 60px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--deep);
}
.footer-copy {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--muted);
  text-transform: uppercase;
}
.footer-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px;
  letter-spacing: 0.1em;
  color: var(--white);
  opacity: 0.1;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  nav { padding: 20px 24px; }
  nav ul { gap: 20px; }
  .section-header, .work-domains, .about-grid { padding: 0 24px; }
  .photo-category { padding: 0 24px; }
  .work-domains { grid-template-columns: 1fr; }
  .domain-col { padding: 0 0 40px; border-right: none; border-bottom: 1px solid var(--border-dim); }
  .domain-col:last-child { border-bottom: none; padding-left: 0; }
  .domain-col:nth-child(2) { padding-left: 0; }
  .about-grid { grid-template-columns: 1fr; gap: 60px; }
  .photo-row { grid-template-columns: 1fr 1fr; }
  footer { padding: 32px 24px; }
}

@media (max-width: 600px) {
  .photo-row { grid-template-columns: 1fr; }
  nav ul { display: none; }
  .carousel-caption { left: 24px; bottom: 60px; }
}
