/* ========================================
   Aaron Villeda Portfolio
   Dark cinematic style
======================================== */

:root {
  --bg: #0a0a0a;
  --bg-elevated: #111111;
  --text: #f5f5f5;
  --text-muted: #a0a0a0;
  --accent: #e8e8e8;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 12px;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
}

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

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

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

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

/* ========== Header ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 0;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

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

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 28px;
  height: 18px;
  position: relative;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--text);
  position: absolute;
  left: 0;
  transition: 0.25s ease;
}

.menu-toggle span:first-child { top: 0; }
.menu-toggle span:last-child { bottom: 0; }

/* ========== Hero ========== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem 0 6rem;
  position: relative;
}

.hero-content {
  max-width: 720px;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 500;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.tagline {
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 2.75rem;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 999px;
  transition: all 0.25s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
}

.btn-primary:hover {
  background: #fff;
  transform: translateY(-1px);
}

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.04);
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--text-muted), transparent);
}

/* ========== Featured Video ========== */
.featured {
  padding: 0 0 6rem;
}

.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--bg-elevated);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1rem;
  text-align: center;
  gap: 0.4rem;
}

.video-placeholder .small {
  font-size: 0.85rem;
  opacity: 0.7;
}

/* ========== Work ========== */
.work {
  padding: 6rem 0;
  border-top: 1px solid var(--border);
}

.section-header {
  margin-bottom: 3.5rem;
}

.section-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 500;
  margin-top: 0.5rem;
}

.work-grid {
  display: grid;
  gap: 4rem;
}

.work-item {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.work-item:nth-child(even) {
  direction: rtl;
}

.work-item:nth-child(even) > * {
  direction: ltr;
}

.work-media {
  aspect-ratio: 16 / 10;
  background: var(--bg-elevated);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.media-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.work-info h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.work-info > p:first-of-type {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

.work-desc {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

/* ========== About ========== */
.about {
  padding: 7rem 0;
  border-top: 1px solid var(--border);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.about-text h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  font-weight: 500;
  line-height: 1.25;
  margin: 0.75rem 0 1.75rem;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2rem;
}

.skills span {
  font-size: 0.8rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
}

.about-image {
  aspect-ratio: 4 / 5;
  background: var(--bg-elevated);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.portrait-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

/* ========== Contact ========== */
.contact {
  padding: 7rem 0 6rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.contact h2 {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 500;
  margin: 0.6rem 0 1rem;
}

.contact-lead {
  color: var(--text-muted);
  font-size: 1.15rem;
  margin-bottom: 2.5rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.contact-link {
  font-size: 1.15rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.contact-link:hover {
  color: var(--text-muted);
}

/* ========== Footer ========== */
.footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ========== Responsive ========== */
@media (max-width: 900px) {
  .work-item,
  .work-item:nth-child(even) {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-image {
    max-width: 400px;
    margin: 0 auto;
  }
}

@media (max-width: 700px) {
  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .hero {
    padding: 7rem 0 5rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .work {
    padding: 4.5rem 0;
  }

  .about,
  .contact {
    padding: 5rem 0;
  }
}
