/* =============================================
   PORTFOLIO — STYLESHEET
   ============================================= */

:root {
  --bg:           #0a0a0a;
  --surface:      #111111;
  --border:       #222222;
  --text-primary: #f0f0f0;
  --text-muted:   #666666;
  --accent:       #ffffff;
  --font-display: 'Bebas Neue', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --nav-height:   64px;
  --grid-gap:     4px;
  --transition-fast: 0.2s ease;
  --transition-med:  0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
}
img, video { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

h1, h2, h3, .nav-logo {
  font-family: var(--font-display);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
h1 { font-size: clamp(3rem, 8vw, 7rem); line-height: 0.95; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }

nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-height);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem;
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-logo { font-size: 1.3rem; letter-spacing: 0.15em; color: var(--accent); }
.nav-links {
  display: flex; gap: 2.5rem;
  font-family: var(--font-display); font-size: 0.85rem;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.nav-links a { color: var(--text-muted); transition: color var(--transition-fast); }
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 4px;
}
.nav-hamburger span { display: block; width: 24px; height: 1.5px; background: var(--accent); }

@media (max-width: 768px) {
  .nav-links {
    display: none; position: fixed;
    top: var(--nav-height); left: 0; right: 0;
    background: var(--bg); flex-direction: column;
    align-items: center; gap: 0;
    border-top: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    display: block; padding: 1.2rem 2rem; width: 100%;
    text-align: center; border-bottom: 1px solid var(--border); font-size: 1rem;
  }
  .nav-hamburger { display: flex; }
}

section { padding-top: var(--nav-height); }

#hero { position: relative; height: 100svh; overflow: hidden; }
.carousel { position: relative; width: 100%; height: 100%; }
.carousel-track { display: flex; width: 100%; height: 100%; }
.carousel-slide { flex: 0 0 100%; position: relative; overflow: hidden; }
.carousel-slide video,
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; opacity: 0.6; }
.carousel-slide iframe {
  position: absolute; top: 50%; left: 50%;
  width: 177.78vh; min-width: 100%;
  height: 56.25vw; min-height: 100%;
  transform: translate(-50%, -50%);
  border: 0; opacity: 0.6; pointer-events: none;
}
.carousel::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 50%);
  pointer-events: none; z-index: 2;
}
.hero-content { position: absolute; bottom: 3rem; left: 2.5rem; right: 2.5rem; z-index: 3; }
.hero-eyebrow {
  font-family: var(--font-body); font-size: 0.75rem;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 0.75rem;
}
.hero-title { color: var(--accent); }
.hero-sub {
  margin-top: 1rem; font-size: 0.9rem; color: var(--text-muted);
  letter-spacing: 0.1em; text-transform: uppercase; font-family: var(--font-display);
}
.carousel-controls {
  position: absolute; bottom: 2rem; right: 2.5rem; z-index: 4; display: flex; gap: 0.5rem;
}
.carousel-btn {
  width: 40px; height: 40px;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.05);
  color: var(--accent); cursor: pointer; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition-fast);
}
.carousel-btn:hover { background: rgba(255,255,255,0.15); }
.carousel-dots {
  position: absolute; bottom: 2.6rem; left: 50%;
  transform: translateX(-50%); z-index: 4; display: flex; gap: 8px;
}
.dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,0.3); cursor: pointer;
  transition: background var(--transition-fast);
}
.dot.active { background: var(--accent); }

#work { padding: 5rem 0 3rem; }
.section-header { text-align: center; padding: 0 2rem 3rem; }
.section-header h2 { margin-bottom: 0.5rem; }
.section-header p {
  color: var(--text-muted); font-size: 0.85rem;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--grid-gap);
}
.work-item {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  cursor: pointer;
  background: var(--surface);
  background-size: cover;
  background-position: center;
}
.work-item::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.3);
  transition: background var(--transition-med);
  z-index: 1;
}
.work-item:hover::before { background: rgba(0,0,0,0.05); }
.work-item-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 55%);
  opacity: 0;
  transition: opacity var(--transition-med);
  display: flex; flex-direction: column;
  justify-content: flex-end; padding: 1.2rem;
  z-index: 2;
}
.work-item:hover .work-item-overlay { opacity: 1; }
.work-item-title {
  font-family: var(--font-display); font-size: 1.1rem;
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.2rem;
}
.work-item-role {
  font-size: 0.7rem; color: var(--text-muted);
  letter-spacing: 0.12em; text-transform: uppercase;
}

@media (max-width: 900px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
@media (hover: none) {
  .work-item-overlay {
    opacity: 1;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 55%);
  }
}

#about {
  padding: 6rem 2rem; max-width: 900px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.about-label {
  font-family: var(--font-display); font-size: 0.75rem;
  letter-spacing: 0.2em; color: var(--text-muted); margin-bottom: 1.2rem;
}
.about-text h2 { margin-bottom: 1.5rem; }
.about-text p { color: var(--text-muted); line-height: 1.8; margin-bottom: 1rem; }
.about-stats { display: flex; flex-direction: column; gap: 2rem; }
.stat-value {
  font-family: var(--font-display); font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--accent); line-height: 1;
}
.stat-label {
  font-size: 0.75rem; letter-spacing: 0.15em;
  color: var(--text-muted); text-transform: uppercase; margin-top: 0.3rem;
}
@media (max-width: 700px) { #about { grid-template-columns: 1fr; gap: 2.5rem; } }

#services { padding: 4rem 2rem 6rem; border-top: 1px solid var(--border); }
.services-inner { max-width: 900px; margin: 0 auto; }
.services-list {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 3rem;
}
.service-item { border-top: 1px solid var(--border); padding-top: 1.5rem; }
.service-name {
  font-family: var(--font-display); font-size: 1.1rem;
  letter-spacing: 0.08em; margin-bottom: 0.75rem;
}
.service-desc { color: var(--text-muted); font-size: 0.82rem; line-height: 1.7; }
@media (max-width: 700px) { .services-list { grid-template-columns: 1fr; } }

#contact { padding: 6rem 2rem; border-top: 1px solid var(--border); text-align: center; }
#contact h2 { margin-bottom: 1rem; }
#contact p {
  color: var(--text-muted); font-size: 0.85rem;
  letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 2.5rem;
}
.contact-email {
  font-family: var(--font-display); font-size: clamp(1.5rem, 4vw, 3rem);
  color: var(--accent); display: inline-block;
  border-bottom: 1px solid var(--border); padding-bottom: 0.4rem;
  transition: border-color var(--transition-fast), opacity var(--transition-fast);
}
.contact-email:hover { opacity: 0.7; border-color: var(--accent); }
.contact-socials { display: flex; justify-content: center; gap: 2rem; margin-top: 3rem; }
.contact-socials a {
  font-family: var(--font-display); font-size: 0.8rem;
  letter-spacing: 0.15em; color: var(--text-muted); transition: color var(--transition-fast);
}
.contact-socials a:hover { color: var(--accent); }

footer {
  border-top: 1px solid var(--border); padding: 1.5rem 2rem;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.72rem; letter-spacing: 0.1em;
  color: var(--text-muted); text-transform: uppercase;
}

.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.92);
  z-index: 200; display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity var(--transition-fast);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal-inner { width: min(90vw, 960px); aspect-ratio: 16/9; position: relative; }
.modal-inner video,
.modal-inner iframe { width: 100%; height: 100%; border: 0; display: block; }
.modal-close {
  position: absolute; top: -2.5rem; right: 0;
  background: none; border: none; color: var(--accent);
  font-size: 1.5rem; cursor: pointer;
  font-family: var(--font-display); letter-spacing: 0.1em;
}
.modal-info { position: absolute; bottom: -3.5rem; left: 0; }
.modal-title {
  font-family: var(--font-display); font-size: 1rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent);
}
.modal-role {
  font-size: 0.72rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-muted); margin-top: 0.2rem;
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
