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

:root {
  --bg-color: #0a0a0a;
  --text-color: #ffffff;
  --text-muted: #999999;
  --accent-color: #ffffff;
  --strip-height: 200px;
  --strip-height-mobile: 120px;
  --font-heading: 'Oswald', 'Bebas Neue', sans-serif;
  --font-body: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: var(--text-color);
  text-decoration: none;
  transition: opacity 0.3s ease;
}

a:hover {
  opacity: 0.8;
}

@keyframes header-shimmer {
  0% { background-position: -100% 0; }
  100% { background-position: 200% 0; }
}

@keyframes name-pulse {
  0%, 100% { transform: scale(1); letter-spacing: 6px; }
  50% { transform: scale(1.04); letter-spacing: 7px; }
}

@keyframes flicker-in {
  0%   { opacity: 0; }
  6%   { opacity: 0.7; }
  8%   { opacity: 0; }
  16%  { opacity: 0.85; }
  18%  { opacity: 0.1; }
  26%  { opacity: 0.9; }
  28%  { opacity: 0.6; }
  30%  { opacity: 0.95; }
  35%  { opacity: 0.75; }
  45%  { opacity: 1; }
  100% { opacity: 1; }
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  padding: 14px 40px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
  padding-bottom: 18px;
}

.site-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.04) 20%,
    rgba(255, 255, 255, 0.09) 40%,
    rgba(255, 255, 255, 0.13) 50%,
    rgba(255, 255, 255, 0.09) 60%,
    rgba(255, 255, 255, 0.04) 80%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: header-shimmer 40s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
}

.site-title {
  font-family: var(--font-heading);
  font-size: 13px;
  letter-spacing: 4px;
  text-transform: uppercase;
  font-weight: 300;
  line-height: 1.5;
  text-align: center;
  position: relative;
  z-index: 3;
}

.site-title strong {
  font-weight: 600;
  display: block;
  font-size: 15px;
  letter-spacing: 5px;
}

.site-title a {
  color: var(--text-color);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  position: relative;
  z-index: 3;
  margin-top: 8px;
}

.main-nav a {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.3s ease, font-size 0.4s ease;
  font-weight: 400;
  white-space: nowrap;
}

.main-nav a:hover {
  color: var(--text-color);
  opacity: 1;
}

@keyframes film-roll {
  0% { background-position: 0 0; }
  100% { background-position: 0 32px; }
}

.main-nav a.active {
  font-size: 12px;
  background: repeating-linear-gradient(
    to bottom,
    rgba(228, 215, 255, 1.0)  0px,
    rgba(228, 215, 255, 1.0)  10px,
    rgba(110, 80,  150, 0.5)  10px,
    rgba(110, 80,  150, 0.5)  12px,
    rgba(228, 215, 255, 1.0)  12px,
    rgba(228, 215, 255, 1.0)  22px,
    rgba(110, 80,  150, 0.5)  22px,
    rgba(110, 80,  150, 0.5)  24px,
    rgba(228, 215, 255, 1.0)  24px,
    rgba(228, 215, 255, 1.0)  32px
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: flicker-in 1.8s ease-out forwards, film-roll 25s linear infinite;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.nav-mobile-footer {
  display: none;
}

.hamburger span {
  width: 24px;
  height: 1px;
  background: var(--text-color);
  transition: all 0.3s ease;
}

.main-content {
  padding-top: 100px;
}

.page-header {
  text-align: center;
  padding: 60px 40px 40px;
}

.page-header .role {
  font-family: var(--font-heading);
  font-size: 13px;
  letter-spacing: 4px;
  text-transform: uppercase;
  font-weight: 300;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.page-header .name {
  font-family: var(--font-heading);
  font-size: 28px;
  letter-spacing: 6px;
  text-transform: uppercase;
  font-weight: 600;
  display: inline-block;
  animation: name-pulse 28s ease-in-out infinite;
}

.section-label {
  text-align: center;
  padding: 50px 40px 30px;
}

.section-label h2 {
  font-family: var(--font-heading);
  font-size: 15px;
  letter-spacing: 5px;
  text-transform: uppercase;
  font-weight: 300;
  color: var(--text-muted);
}

.section-label h2 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.section-label h2 a:hover {
  color: rgba(255, 255, 255, 0.7);
  opacity: 1;
}

.strips-container {
  width: 100%;
  padding: 0;
}

.strip {
  position: relative;
  width: 100%;
  height: var(--strip-height);
  overflow: hidden;
  cursor: pointer;
  margin-bottom: 2px;
  display: block;
  transition: height 0.5s ease;
}

.strip:hover {
  height: 250px;
}

.strip-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  transition: transform 0.6s ease;
}

.strip:hover .strip-bg {
  transform: scale(1.03);
}

.strip-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 1;
}

.strip-video.playing {
  opacity: 1;
}

.strip-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(0, 0, 0, 0.2) 40%,
    transparent 100%
  );
  z-index: 2;
  display: flex;
  align-items: center;
  padding-left: 60px;
}

.strip-title {
  font-family: var(--font-heading);
  font-size: 24px;
  letter-spacing: 6px;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-color);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.strip-play-hint {
  position: absolute;
  bottom: 15px;
  right: 20px;
  z-index: 3;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.strip:hover .strip-play-hint {
  opacity: 1;
}

@media (hover: none) {
  .strip .strip-play-hint {
    opacity: 0.6;
  }
}

.project-page {
  padding-top: 70px;
}

.project-hero {
  text-align: center;
  padding: 60px 40px 30px;
}

.project-hero .role {
  font-family: var(--font-heading);
  font-size: 13px;
  letter-spacing: 4px;
  text-transform: uppercase;
  font-weight: 300;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.project-hero .name {
  font-family: var(--font-heading);
  font-size: 28px;
  letter-spacing: 6px;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 20px;
}

.project-hero .description {
  font-family: var(--font-body);
  font-size: 14px;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.video-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px 40px;
}

.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: #000;
}

.video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.project-stills {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px;
}

.project-stills h3 {
  font-family: var(--font-heading);
  font-size: 13px;
  letter-spacing: 4px;
  text-transform: uppercase;
  font-weight: 300;
  color: var(--text-muted);
  margin-bottom: 30px;
  text-align: center;
}

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

.still-placeholder {
  aspect-ratio: 16/9;
  background: #1a1a1a;
  border: 1px solid #222;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.no-video-message {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 40px;
  text-align: center;
}

.no-video-message p {
  color: var(--text-muted);
  font-size: 14px;
  letter-spacing: 1px;
}

.no-video-message .project-image {
  max-width: 100%;
  margin-top: 30px;
}

.resume-page {
  padding-top: 110px;
  padding-bottom: 60px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.resume-toolbar {
  width: 100%;
  max-width: 900px;
  display: flex;
  justify-content: flex-end;
  padding: 0 20px 14px;
}

.resume-download-btn {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 8px 18px;
  text-decoration: none;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.resume-download-btn:hover {
  color: var(--text-color);
  border-color: rgba(255, 255, 255, 0.4);
  opacity: 1;
}

.resume-embed-wrap {
  width: 100%;
  max-width: 900px;
  padding: 0 20px;
}

.resume-iframe {
  width: 100%;
  height: 85vh;
  border: none;
  display: block;
}

.contact-page {
  padding-top: 70px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.contact-page .role {
  font-family: var(--font-heading);
  font-size: 13px;
  letter-spacing: 4px;
  text-transform: uppercase;
  font-weight: 300;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.contact-page .name {
  font-family: var(--font-heading);
  font-size: 28px;
  letter-spacing: 6px;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 40px;
}

.contact-page .email {
  font-family: var(--font-body);
  font-size: 16px;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.site-footer {
  text-align: center;
  padding: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 60px;
}

.site-footer p {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #444;
}

.site-footer .wowcool {
  margin-top: 8px;
  font-size: 10px;
  letter-spacing: 1px;
}

@keyframes wowcool-pulse {
  0%, 100% { color: #3a2a4a; }
  50% { color: #9b59b6; }
}

.site-footer .wowcool a {
  color: #3a2a4a;
  animation: wowcool-pulse 16s ease-in-out infinite;
}

.site-footer .wowcool a:hover {
  color: #c39bd3;
  animation: none;
  opacity: 1;
}

@media (max-width: 768px) {
  .site-header {
    padding: 10px 20px 8px;
  }

  .site-title {
    font-size: 11px;
    letter-spacing: 2px;
  }

  .site-title strong {
    font-size: 12px;
    letter-spacing: 3px;
  }

  .site-header {
    overflow: visible;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 999;
    background: rgba(10, 10, 10, 0.98);
    flex-direction: column;
    padding: 30px;
    gap: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .main-nav.open {
    display: flex;
  }

  .hamburger {
    display: flex;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    cursor: pointer;
  }

  .main-content {
    padding-top: 72px;
  }

  .strip {
    height: var(--strip-height-mobile);
  }

  .strip-overlay {
    padding-left: 20px;
  }

  .strip-title {
    font-size: 16px;
    letter-spacing: 3px;
  }

  .page-header {
    padding: 40px 20px 20px;
  }

  .page-header .name {
    font-size: 20px;
    letter-spacing: 4px;
  }

  .section-label {
    padding: 30px 20px 15px;
  }

  .video-container {
    padding: 0 15px 30px;
  }

  .stills-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }

  .project-stills {
    padding: 20px;
  }

  .nav-mobile-footer {
    display: block;
    margin-top: 10px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-family: var(--font-body);
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--text-muted);
    text-transform: uppercase;
    line-height: 2;
  }

  .nav-mobile-footer .wowcool a {
    color: var(--text-muted);
  }
}
