:root {
  --bg: #090909;
  --surface: #111111;
  --surface-2: #191919;
  --accent: #e63946;
  --accent-dim: rgba(230, 57, 70, 0.10);
  --text: #f1faee;
  --text-muted: rgba(241, 250, 238, 0.52);
  --border: rgba(255, 255, 255, 0.07);
  --nav-height: 70px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-width: 320px;
  overflow-x: hidden;
}

/* ─── PROGRESS BAR ───────────────────────────────────── */
.progress-container {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  width: 100%;
  height: 3px;
  background: transparent;
  pointer-events: none;
}

.progress-bar {
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #ff8080);
  width: 0%;
  transition: width 0.08s linear;
}

/* ─── NAVIGATION ─────────────────────────────────────── */
.nav-modern {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 90;
  height: var(--nav-height);
  background-color: rgba(9, 9, 9, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.nav-modern.scrolled {
  background-color: rgba(9, 9, 9, 0.97);
  border-bottom-color: var(--border);
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.6);
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  padding: 0 2.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* Override legacy float from custom.css */
.title {
  float: none !important;
  flex-shrink: 0;
}

.title h1 {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 5px;
  margin: 0;
  color: var(--text);
  text-transform: uppercase;
  line-height: 1.2;
}

.title h2 {
  font-size: 0.6rem;
  font-weight: 300;
  margin: 3px 0 0;
  color: var(--text-muted);
  letter-spacing: 3px;
  text-align: left !important;
  text-transform: uppercase;
}

.title h2 span {
  color: var(--accent);
  font-weight: 600;
}

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

.nav-list {
  display: flex;
  list-style: none;
  margin: 0 !important;
  padding: 0;
  gap: 0;
}

.nav-link {
  display: block;
  padding: 0.5rem 1.1rem;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: color 0.25s ease;
  position: relative;
  line-height: normal;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -2px;
  left: 50%;
  background-color: var(--accent);
  transition: width 0.3s ease;
  transform: translateX(-50%);
}

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

.nav-link:hover::after {
  width: 60%;
}

.social-icons {
  display: flex;
  margin-left: 2rem;
  gap: 0.5rem;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background-color: transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.social-icon:hover {
  border-color: rgba(230, 57, 70, 0.5);
  background-color: var(--accent-dim);
  transform: none;
}

.social-icon img {
  width: 15px;
  height: 15px;
  filter: brightness(0) invert(1);
  opacity: 0.6;
  transition: opacity 0.25s ease;
}

.social-icon:hover img {
  opacity: 1;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 17px;
  cursor: pointer;
  z-index: 100;
}

.mobile-menu-btn span {
  width: 100%;
  height: 2px;
  background-color: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--bg);
  z-index: 89;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-100%);
  transition: transform 0.45s cubic-bezier(0.77, 0, 0.175, 1);
  border-bottom: 1px solid var(--border);
}

.mobile-menu.active {
  transform: translateY(0);
}

.mobile-menu ul {
  list-style: none;
  text-align: center;
}

.mobile-menu ul li {
  margin: 2rem 0;
}

.mobile-menu ul li a {
  color: var(--text);
  font-size: 1.4rem;
  font-weight: 300;
  letter-spacing: 6px;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.25s ease;
}

.mobile-menu ul li a:hover {
  color: var(--accent);
}

/* ─── HERO ───────────────────────────────────────────── */
.hero-section {
  min-height: 100vh;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
  overflow: hidden;
  padding-top: var(--nav-height);
}

/* Radial vignette */
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 35%, rgba(0, 0, 0, 0.55) 100%);
  pointer-events: none;
  z-index: 1;
}

/* Bottom fade into content */
.hero-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 220px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  padding: 2rem;
  max-width: 950px;
  margin: 0 auto;
  width: 100%;
}

.hero-eyebrow {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1.75rem;
  opacity: 0;
  transform: translateY(16px);
  animation: revealUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
}

.hero-title {
  font-size: clamp(2.4rem, 5.5vw, 5rem);
  margin-bottom: 1.5rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 3px;
  line-height: 1.08;
  color: var(--text);
  opacity: 0;
  transform: translateY(24px);
  animation: revealUp 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.55s forwards;
}

.hero-title em {
  font-style: normal;
  color: var(--accent);
}

/* Ensure no legacy animations from modern.css override */
.hero-content.hero-animate .hero-title {
  animation: revealUp 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.55s forwards;
}

.hero-subtitle {
  font-size: clamp(0.85rem, 1.4vw, 1.05rem);
  color: var(--text-muted);
  font-weight: 300;
  letter-spacing: 0.5px;
  max-width: 580px;
  margin: 0 auto 2.75rem;
  line-height: 1.9;
  opacity: 0;
  transform: translateY(16px);
  animation: revealUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.8s forwards;
}

.hero-content.hero-animate .hero-subtitle {
  animation: revealUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.8s forwards;
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(16px);
  animation: revealUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) 1.0s forwards;
}

.btn-primary {
  display: inline-block;
  padding: 0.85rem 2.4rem;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  border: 1px solid var(--accent);
}

.btn-primary:hover {
  background: transparent;
  color: var(--accent);
}

.btn-secondary {
  display: inline-block;
  padding: 0.85rem 2.4rem;
  background: transparent;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  border-radius: 2px;
  border: 1px solid var(--border);
  transition: border-color 0.25s ease, color 0.25s ease;
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--text);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  opacity: 0;
  animation: revealUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) 1.5s forwards;
}

.hero-scroll-hint span {
  font-size: 0.58rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2.2s ease-in-out 2s infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); transform-origin: top; }
  50%       { opacity: 0.3; transform: scaleY(0.4); transform-origin: top; }
}

@keyframes revealUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─── SHOWREEL ───────────────────────────────────────── */
.showreel-container {
  padding: 6rem 0 4rem;
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

.showreel-label {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.showreel-label::before {
  content: '';
  width: 36px;
  height: 2px;
  background: var(--accent);
  flex-shrink: 0;
}

.showreel-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.showreel-label span {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
  flex-shrink: 0;
}

.showreel {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  border: none;
  display: block;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7), 0 0 0 1px var(--border);
}

.profile {
  height: auto;
}

/* ─── SHARED SECTION STYLES ─────────────────────────── */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 0;
}

.section-eyebrow {
  display: block;
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.8rem;
}

.section-title {
  font-size: clamp(1.6rem, 2.8vw, 2.5rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: 1px;
  line-height: 1.15;
  margin: 0 0 1rem;
  text-align: center;
}

/* Section underline bar */
.section-title-group {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title-group .section-eyebrow {
  display: block;
  margin-bottom: 0.75rem;
}

.section-divider {
  width: 40px;
  height: 2px;
  background: var(--accent);
  margin: 1.25rem auto 0;
}

/* ─── SKILLS ─────────────────────────────────────────── */
.features-section {
  padding: 7rem 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.skills-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem 5rem;
  max-width: 800px;
  margin: 0 auto;
}

.skill-category h3 {
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.75rem;
  text-align: left;
}

.skill-list {
  list-style: none;
  padding: 0;
}

.skill-item {
  margin: 0 0 0.6rem;
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.3px;
  padding: 0.9rem 1.1rem;
  border-radius: 2px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-left: 2px solid transparent;
  opacity: 0;
  transform: translateX(-16px);
  transition: border-left-color 0.25s ease, background 0.25s ease;
}

.skill-item.revealed {
  opacity: 1;
  transform: translateX(0);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease,
    border-left-color 0.25s ease,
    background 0.25s ease;
}

.skill-item:hover {
  border-left-color: var(--accent);
  background: rgba(230, 57, 70, 0.05);
}

.skill-item .material-icons {
  margin-right: 12px;
  color: var(--accent);
  font-size: 1rem;
  opacity: 0.8;
}

/* ─── BRANDS ─────────────────────────────────────────── */
.brand-section {
  padding: 6rem 0;
  border-bottom: 1px solid var(--border);
}

.brands-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
}

.brand-card {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 180px;
  height: 110px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 1.5rem;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.brand-card:hover {
  border-color: rgba(255, 255, 255, 0.14);
  background: var(--surface-2);
  transform: none;
}

.brand-card img {
  max-width: 100%;
  max-height: 100%;
  filter: grayscale(100%) brightness(0.7);
  transition: filter 0.35s ease;
  object-fit: contain;
}

.brand-card:hover img {
  filter: grayscale(0%) brightness(1);
  transform: none;
}

/* ─── CLIENT WORK ────────────────────────────────────── */
.client-section {
  padding: 7rem 0 4rem;
}

.client-card {
  margin-bottom: 4rem;
  background: var(--surface);
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid var(--border);
  opacity: 0;
  transform: translateY(28px);
}

.client-card.revealed {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.65s ease, transform 0.65s ease, border-color 0.25s ease;
}

.client-card:hover {
  border-color: rgba(255, 255, 255, 0.11);
  transform: none;
  box-shadow: none;
}

.client-info {
  padding: 2rem 2.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.client-info h2 {
  font-size: 1.35rem;
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.3px;
  line-height: 1.3;
  flex: 1;
  min-width: 160px;
}

.client-info h2 a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.client-info h2 a:hover {
  color: var(--accent);
}

.client-info p {
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin-top: 0.4rem;
}

.client-info p a {
  color: var(--text-muted);
  text-decoration: underline;
}

.client-info p a:hover {
  color: var(--accent);
}

.client-tags {
  position: static;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: flex-start;
  margin: 0;
  flex-shrink: 0;
}

.client-tag {
  background: transparent;
  color: var(--text-muted);
  font-size: 0.6rem;
  padding: 0.25em 0.75em;
  border-radius: 2px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: 1px solid var(--border);
  transition: color 0.2s ease, border-color 0.2s ease;
  user-select: none;
}

.client-tag:hover {
  color: var(--accent);
  border-color: rgba(230, 57, 70, 0.4);
}

.video-gallery {
  padding: 2rem 2.5rem;
}

.video-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.video-item {
  flex: 1;
  min-width: 280px;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 3px;
  background: #000;
}

.video-container:hover {
  transform: none;
  box-shadow: none;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  border-radius: 3px;
  border: none;
  margin: 0 !important;
}

/* ─── FOOTER ─────────────────────────────────────────── */
.site-footer {
  background-color: var(--surface);
  padding: 5rem 0 2.5rem;
  border-top: 1px solid var(--border);
  margin-top: 0;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-info h3,
.footer-contact h3,
.footer-social h3 {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.4rem;
}

.footer-brand-name {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.footer-info p,
.footer-contact p {
  margin-bottom: 0.6rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.footer-contact a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-contact a:hover {
  color: var(--text);
}

.social-links {
  display: flex;
  gap: 0.6rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text-muted);
  text-decoration: none;
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}

.social-links a:hover {
  border-color: rgba(230, 57, 70, 0.4);
  color: var(--text);
  background: var(--accent-dim);
  transform: none;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 1px;
}

/* ─── FLOATING ARROW ─────────────────────────────────── */
.floating-arrow {
  position: fixed;
  right: 2rem;
  bottom: 2rem;
  z-index: 120;
  background: var(--accent);
  color: #fff;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(230, 57, 70, 0.35);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, background 0.2s ease;
}

.floating-arrow .material-icons {
  font-size: 1.4rem;
}

.floating-arrow.visible {
  opacity: 1;
  pointer-events: auto;
}

.floating-arrow:hover {
  background: #c42d3a;
  transform: none;
}

/* ─── MASTER CONTAINER OVERRIDE (legacy) ─────────────── */
.master-container {
  margin: 0 auto !important;
  padding: 0 !important;
  max-width: none !important;
}

/* ─── RESPONSIVE ─────────────────────────────────────── */
@media screen and (max-width: 992px) {
  .nav-content {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .skills-container {
    grid-template-columns: 1fr;
    max-width: 500px;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media screen and (max-width: 768px) {
  .hero-section {
    min-height: 90vh;
  }

  .hero-title {
    letter-spacing: 1px;
  }

  .showreel-container {
    padding: 3rem 0 2rem;
  }

  .client-info {
    padding: 1.5rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .video-gallery {
    padding: 1.25rem 1.5rem;
  }

  .video-item {
    min-width: 100%;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .brand-card {
    width: 130px;
    height: 90px;
  }

  .hero-scroll-hint {
    display: none;
  }
}

@media screen and (max-width: 480px) {
  .nav-wrapper {
    padding: 0 1.25rem;
  }

  .hero-cta-group {
    flex-direction: column;
    align-items: center;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }

  .video-row {
    gap: 1rem;
  }
}
