@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --bg-color: #fafaf9;
  --bg-panel: #f5f5f3;
  --bg-panel-hover: #eaeae7;
  --text-main: #1c1917;
  --text-muted: #78716c;
  --border-color: rgba(0, 0, 0, 0.08);
  --accent-color: #000000;
  --accent-hover: #222222;
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

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

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

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

/* Custom Cursor removed */

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

@media(max-width: 768px) {
  .container {
    padding: 0 24px;
  }
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 16px 0;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  background-color: rgba(250, 250, 249, 0.85);
  transition: var(--transition-fast);
}

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

.logo-link {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.nav-links a {
  color: var(--text-muted);
  position: relative;
  padding: 6px 0;
}

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

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: var(--transition-fast);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.mobile-nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--text-main);
  margin-bottom: 4px;
  transition: var(--transition-fast);
}

@media(max-width: 768px) {
  .nav-container {
    display: contents;
  }
  
  .mobile-nav-toggle {
    display: block;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 280px;
    height: 100vh;
    background-color: var(--bg-panel);
    flex-direction: column;
    padding: 100px 32px;
    gap: 20px;
    transition: var(--transition-smooth);
    border-left: 1px solid var(--border-color);
  }
  
  .nav-links.open {
    right: 0;
  }
}

/* Section Navigation Panels */
.nav-section {
  display: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  padding-top: 80px; /* Reduced from 100px to align close to header */
  padding-bottom: 60px;
}

.nav-section.active-section {
  display: block;
}

.nav-section.visible-section {
  opacity: 1;
  transform: translateY(0);
}

/* Home & Reel Section Styles */
.home-section {
  padding-top: 80px; /* Aligns video directly below thin header */
}

.welcome-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 56px;
  line-height: 1.15;
  letter-spacing: -2px;
  margin-bottom: 24px;
  max-width: 900px;
}

.welcome-subtitle {
  font-size: 20px;
  color: var(--text-muted);
  max-width: 650px;
  margin-bottom: 40px;
  font-weight: 300;
}

.intro-links {
  display: flex;
  gap: 20px;
  margin-bottom: 60px;
}

.btn-primary {
  background-color: var(--accent-color);
  color: var(--bg-color);
  padding: 14px 32px;
  border-radius: 4px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  border: 1px solid var(--accent-color);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-fast);
}

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

.btn-secondary {
  background-color: transparent;
  color: var(--text-main);
  padding: 14px 32px;
  border-radius: 4px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  border: 1px solid var(--border-color);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-fast);
}

.btn-secondary:hover {
  background-color: var(--bg-panel);
}

@media(max-width: 768px) {
  .welcome-title {
    font-size: 36px;
    margin-bottom: 20px;
  }
  .welcome-subtitle {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .intro-links {
    flex-direction: column;
    gap: 12px;
  }
}

/* Client Brands Row */
.brands-row {
  border-top: 1px solid var(--border-color);
  padding-top: 30px;
}

.brands-row-title {
  font-family: var(--font-heading);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.marquee-content {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.marquee-item {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 24px)); }
}

/* Showreel Container on Home */
.showreel-wrap {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto 50px auto;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
  background-color: #000;
}

.aspect-16-9 {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
}

.aspect-16-9 iframe,
.aspect-16-9 video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Works Index Grid Section */
.works-section {
  /* Inherits padding-top: 80px from .nav-section to keep close to header */
}

.filter-wrap {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: 30px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-btn:hover {
  color: var(--text-main);
  border-color: var(--text-muted);
}

.filter-btn.active {
  background-color: var(--accent-color);
  color: var(--bg-color);
  border-color: var(--accent-color);
}

/* Direct Media Portfolio Grid (CSS Columns Masonry) */
.works-grid {
  display: block;
  column-count: 2;
  column-gap: 40px;
}

@media(max-width: 900px) {
  .works-grid {
    column-count: 1;
  }
}

.work-item {
  display: inline-block;
  width: 100%;
  break-inside: avoid;
  margin-bottom: 60px;
  transition: var(--transition-smooth);
}

.work-item > * + * {
  margin-top: 20px;
}

.work-media-container {
  width: 100%;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background-color: var(--bg-panel);
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

/* Multi-image stacked scroll row */
.work-media-scroll {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background-color: transparent;
  border: none;
}

.work-media-scroll .work-media-container {
  box-shadow: none;
}

/* Multi-image side-by-side row */
.work-media-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.work-media-row .work-media-container {
  box-shadow: none;
}

.work-media-container img {
  width: 100%;
  height: auto;
  display: block;
}

.work-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.work-meta-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
}

.work-client {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.5px;
  color: var(--text-main);
}

.work-tag {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 1px solid var(--border-color);
  padding: 1px 6px;
  border-radius: 3px;
  color: var(--text-muted);
}

.work-title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
}

.work-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* About & Contact Section */
.about-contact-section {
  /* Inherits padding-top: 80px from .nav-section */
}

.about-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

@media(max-width: 900px) {
  .about-contact-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }
}

.section-title {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.about-text {
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 24px;
}

.social-links {
  display: flex;
  gap: 16px;
  margin-top: 32px;
}

.social-btn,
.email-btn {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 12px 24px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  text-decoration: none;
  font-family: inherit;
  cursor: pointer;
  position: relative;
  transition: var(--transition-fast);
}

.social-btn:hover,
.email-btn:hover {
  background-color: var(--bg-panel-hover);
  border-color: var(--text-muted);
}

.email-btn.copied {
  background-color: #10b981;
  border-color: #10b981;
  color: #ffffff;
}

.email-btn.copied svg {
  fill: #ffffff;
}

.email-btn.copied:hover {
  background-color: #059669;
  border-color: #059669;
  color: #ffffff;
}

/* Footer */
.site-footer {
  padding: 40px 0;
  border-top: 1px solid var(--border-color);
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  background-color: var(--bg-panel);
}

.back-to-top {
  display: inline-block;
  margin-bottom: 12px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.5px;
}

.back-to-top:hover {
  color: var(--text-main);
}
