/* =========================================
   ALEJANDRO BIGA — PORTFOLIO
   Minimal & elegant · 2026
   ========================================= */

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

:root {
  --bg:         #0d0d0d;
  --surface:    #141414;
  --surface-2:  #1a1a1a;
  --border:     rgba(255,255,255,0.07);
  --text:       #e8e4dc;
  --text-muted: #6b6560;
  --text-dim:   #3a3530;
  --accent:     #c8a96e;
  --accent-dim: rgba(200,169,110,0.12);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-mono:    'DM Mono', monospace;

  --max-w: 1100px;
  --section-pad: 120px;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  font-weight: 300;
  font-size: 14px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* SCROLLBAR */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--text-dim); border-radius: 2px; }

/* ============================
   NAV
   ============================ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 48px;
  background: rgba(13,13,13,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--accent);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 36px;
}

nav ul a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s;
}

nav ul a:hover {
  color: var(--text);
}

/* ============================
   HERO
   ============================ */
/* hero sub was replaced by hero-bio */
.hero-sub {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 420px;
  margin-bottom: 48px;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.6s;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.2s;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(72px, 10vw, 130px);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.4s;
}

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

.hero-sub {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 420px;
  margin-bottom: 48px;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.6s;
}

.hero-links {
  display: flex;
  gap: 16px;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.8s;
}

/* ============================
   HERO PHOTO — CIRCULAR
   ============================ */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 80px;
  align-items: center;
  padding: 0 48px;
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
}

.hero-bio {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.9;
  max-width: 520px;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.6s;
}

.hero-photo-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 380px;
  height: 380px;
  opacity: 0;
  animation: fadeIn 1s ease forwards 0.8s;
}

.hero-photo-glow {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,169,110,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero-photo-circle {
  position: relative;
  z-index: 2;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(200,169,110,0.25);
  box-shadow:
    0 0 0 8px rgba(200,169,110,0.05),
    0 0 0 16px rgba(200,169,110,0.03),
    0 32px 80px rgba(0,0,0,0.6);
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  filter: grayscale(15%) contrast(1.05);
  transition: filter 0.4s, transform 0.4s;
}

.hero-photo-circle:hover .hero-photo {
  filter: grayscale(0%) contrast(1);
  transform: scale(1.04);
}

.deco-orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--border);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.orbit-1 { width: 330px; height: 330px; border-color: rgba(200,169,110,0.12); }
.orbit-2 { width: 380px; height: 380px; border-color: rgba(255,255,255,0.04); }

.orbit-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 10px var(--accent);
}

/* ============================
   BUTTONS
   ============================ */
.btn-primary {
  display: inline-block;
  padding: 12px 28px;
  background: var(--accent);
  color: var(--bg);
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  transition: opacity 0.2s, transform 0.2s;
}

.btn-primary:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.btn-ghost {
  display: inline-block;
  padding: 12px 28px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 400;
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

/* ============================
   SECTIONS
   ============================ */
.section {
  padding: var(--section-pad) 48px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.section-label {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 48px;
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 56px;
}

/* ============================
   ABOUT
   ============================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.9;
}

.about-text strong {
  color: var(--text);
  font-weight: 500;
}

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

.stat {
  background: var(--surface);
  padding: 32px 24px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 300;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ============================
   SKILLS
   ============================ */
.skills {
  background: var(--surface);
  max-width: 100%;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.skills > * {
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
}

.skills-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.skill-group h3 {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.skill-group ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tag {
  display: inline-block;
  font-size: 12px;
  color: var(--text-muted);
  transition: color 0.2s;
}

.tag:hover {
  color: var(--text);
}

/* ============================
   PROJECTS
   ============================ */
.projects-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color 0.3s;
  position: relative;
  overflow: hidden;
}

.project-card:hover {
  border-color: rgba(200,169,110,0.3);
}

.project-card.featured {
  border-color: rgba(200,169,110,0.2);
  background: linear-gradient(135deg, var(--surface) 0%, rgba(200,169,110,0.04) 100%);
}

.project-card.featured::before {
  content: 'Featured';
  position: absolute;
  top: 24px; right: 24px;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 4px 12px;
  z-index: 2;
}

.project-img-main {
  position: relative;
  width: 100%;
  height: 340px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.project-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20,20,20,0.4) 0%, transparent 50%);
  pointer-events: none;
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(10%);
  transition: transform 0.6s ease, filter 0.3s;
}

.project-img-main:hover .project-img {
  transform: scale(1.03);
  filter: grayscale(0%);
}

/* Gallery thumbnail strip */
.project-gallery-strip {
  display: flex;
  gap: 3px;
  background: var(--bg);
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}

.gallery-thumb {
  width: 80px;
  height: 50px;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.45;
  filter: grayscale(30%);
  transition: opacity 0.2s, filter 0.2s, transform 0.2s;
  border: 1px solid transparent;
}

.gallery-thumb:hover {
  opacity: 0.75;
  filter: grayscale(0%);
  transform: translateY(-2px);
}

.gallery-thumb.active {
  opacity: 1;
  filter: grayscale(0%);
  border-color: var(--accent);
}

.project-body {
  padding: 40px 48px 48px;
}
/* ============================
   PROJECT VIDEO
   ============================ */
.project-video-wrap {
  position: relative;
  width: 100%;
  height: 340px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: #000;
  cursor: pointer;
}

.project-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(10%);
  transition: filter 0.3s;
}

.project-video-wrap:hover .project-video {
  filter: grayscale(0%);
}

.video-play-hint {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: rgba(255,255,255,0.6);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: opacity 0.3s;
  pointer-events: none;
}

.play-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(200,169,110,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--accent);
  background: rgba(0,0,0,0.4);
  transition: transform 0.2s, border-color 0.2s;
}

.project-video-wrap:hover .video-play-hint {
  opacity: 0;
}

.project-video-wrap:hover .play-icon {
  transform: scale(1.1);
  border-color: var(--accent);
}



.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.project-type {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
}

.project-year {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}

.project-card h3 {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 300;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  color: var(--text);
}

.project-card p {
  color: var(--text-muted);
  line-height: 1.9;
  max-width: 680px;
  margin-bottom: 24px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.project-tags span {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--surface-2);
  padding: 4px 12px;
  border: 1px solid var(--border);
}

.project-link {
  text-decoration: none;
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.08em;
  transition: opacity 0.2s;
}

.project-link:hover {
  opacity: 0.7;
}

/* ============================
   CONTACT
   ============================ */
.contact {
  border-top: 1px solid var(--border);
}

.contact-inner {
  max-width: 700px;
}

.contact-inner > p {
  color: var(--text-muted);
  margin-bottom: 56px;
  margin-top: -32px;
}

.contact-inner h2 em {
  font-style: italic;
  color: var(--accent);
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 56px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s, background 0.2s;
}

.contact-item:hover {
  border-color: rgba(200,169,110,0.3);
  background: var(--accent-dim);
}

.contact-icon {
  color: var(--accent);
  display: flex;
  align-items: center;
}

.contact-item > span:nth-child(2) {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  width: 80px;
}

.contact-handle {
  font-size: 13px;
  color: var(--text);
}

.cv-label {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.cv-buttons {
  display: flex;
  gap: 12px;
}

/* ============================
   FOOTER
   ============================ */
footer {
  border-top: 1px solid var(--border);
  padding: 28px 48px;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}


/* ============================
   EVENTS
   ============================ */
.events-intro {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.8;
  max-width: 560px;
  margin-top: -32px;
  margin-bottom: 56px;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.event-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 36px 32px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
  transition: border-color 0.25s, background 0.25s;
  position: relative;
  overflow: hidden;
}

.event-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.25s;
}

.event-card:hover {
  border-color: rgba(200,169,110,0.25);
  background: linear-gradient(135deg, var(--surface) 0%, rgba(200,169,110,0.04) 100%);
}

.event-card:hover::before {
  opacity: 1;
}

.event-year {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 300;
  color: var(--accent);
  opacity: 0.5;
  line-height: 1;
  min-width: 56px;
  letter-spacing: -0.02em;
  padding-top: 2px;
}

.event-card:hover .event-year {
  opacity: 1;
}

.event-content h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.event-location {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  opacity: 0.7;
}

.event-content p:last-child {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.8;
}

@media (max-width: 900px) {
  .events-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .events-grid { grid-template-columns: 1fr; }
  .event-card { padding: 24px 20px; }
}


/* ============================
   EVENT MEDIA STRIP
   ============================ */
.event-strip-wrap {
  width: 100%;
  overflow: hidden;
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  position: relative;
}

/* fade edges */
.event-strip-wrap::before,
.event-strip-wrap::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.event-strip-wrap::before {
  left: 0;
  background: linear-gradient(to right, var(--bg), transparent);
}
.event-strip-wrap::after {
  right: 0;
  background: linear-gradient(to left, var(--bg), transparent);
}

.event-strip {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: stripScroll 60s linear infinite;
}

.event-strip:hover {
  animation-play-state: paused;
}

.strip-item {
  flex-shrink: 0;
  width: 240px;
  height: 160px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color 0.3s, transform 0.3s;
}

.strip-item:hover {
  border-color: rgba(200,169,110,0.35);
  transform: scale(1.03);
  z-index: 1;
  position: relative;
}

.strip-item img,
.strip-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(15%);
  transition: filter 0.3s;
}

.strip-item:hover img,
.strip-item:hover video {
  filter: grayscale(0%);
}

.strip-video {
  width: 280px;
}

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

/* ============================
   ANIMATIONS
   ============================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 900px) {
  nav { padding: 20px 24px; }
  nav ul { gap: 20px; }

  .hero {
    grid-template-columns: 1fr;
    padding: 120px 24px 60px;
    gap: 48px;
  }

  .hero-photo-wrap { order: -1; width: 240px; height: 240px; }
  .hero-photo-circle { width: 200px; height: 200px; }
  .hero-photo-glow { width: 220px; height: 220px; }
  .orbit-1 { width: 230px; height: 230px; }
  .orbit-2 { width: 240px; height: 240px; }
  .orbit-dot { top: 8px; }
  .gallery-thumb { width: 56px; height: 38px; }

  .section { padding: 80px 24px; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-body { padding: 28px 24px 32px; }
  .project-card.featured::before { display: none; }

  .contact-item { padding: 16px 20px; }
  .cv-buttons { flex-direction: column; }

  footer { flex-direction: column; gap: 8px; padding: 24px; }
}

@media (max-width: 560px) {
  .skills-grid { grid-template-columns: 1fr 1fr; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .hero-links { flex-direction: column; }
  .project-meta { flex-direction: column; align-items: flex-start; gap: 4px; }
}
