/* ================================================
   MAIN.CSS — Premium Portfolio Stylesheet
   Inspired by abetterlou.com
   Warm dark palette, gold accents, GSAP-ready
   ================================================ */

/* --- Custom Properties --- */
:root {
  --bg-primary: #0a0600;
  --bg-secondary: #110d04;
  --bg-card: #161008;
  --bg-card-hover: #1e1610;

  --text-primary: #f5f0e8;
  --text-secondary: #8a7e6d;
  --text-muted: #5a5044;

  --accent: #ffb442;
  --accent-hover: #ffc56e;
  --accent-dim: rgba(255, 180, 66, 0.15);
  --accent-glow: rgba(255, 180, 66, 0.06);

  --border: rgba(255, 180, 66, 0.10);
  --border-hover: rgba(255, 180, 66, 0.25);

  --font-display: 'Syne', sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);

  --container-max: 1280px;
  --container-padding: 2.5rem;
  --header-height: 72px;
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection {
  background-color: var(--accent);
  color: var(--bg-primary);
}

::-moz-selection {
  background-color: var(--accent);
  color: var(--bg-primary);
}

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

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

/* --- Container --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* ================================================
   PRELOADER
   ================================================ */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.preloader-text {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.05em;
}

.preloader-bar {
  width: 120px;
  height: 2px;
  background: rgba(255, 180, 66, 0.15);
  border-radius: 2px;
  overflow: hidden;
}

.preloader-bar-fill {
  width: 0%;
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  animation: preloader-fill 1.5s ease-in-out forwards;
}

@keyframes preloader-fill {
  0%   { width: 0%; }
  60%  { width: 80%; }
  100% { width: 100%; }
}

/* ================================================
   HEADER / NAVIGATION
   ================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  transition: background-color 0.4s ease, backdrop-filter 0.4s ease;
}

.header.scrolled {
  background-color: rgba(10, 6, 0, 0.88);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}

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

.nav-brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.02em;
  transition: opacity 0.3s ease;
}

.nav-brand:hover { opacity: 0.8; }

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

.nav-link {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: color 0.3s ease;
  position: relative;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--ease-out);
}

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

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-cta {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--bg-primary);
  background: var(--accent);
  padding: 0.6rem 1.5rem;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.nav-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 24px rgba(255, 180, 66, 0.3);
}

/* Hamburger */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 28px;
  height: 20px;
  position: relative;
  z-index: 1001;
}

.nav-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  position: absolute;
  left: 0;
  transition: all 0.3s ease;
}

.nav-hamburger span:first-child { top: 4px; }
.nav-hamburger span:last-child  { bottom: 4px; }

.nav-hamburger.active span:first-child {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.nav-hamburger.active span:last-child {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

/* ================================================
   HERO
   ================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  position: relative;
  overflow: hidden;
}

.hero-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  padding-top: calc(var(--header-height) + 4rem);
  padding-bottom: 3rem;
}

.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-glow {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 900px;
  height: 700px;
  background: radial-gradient(ellipse, rgba(255, 180, 66, 0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 1;
}

.hero-label-line {
  display: block;
  width: 28px;
  height: 1px;
  background: var(--accent);
  opacity: 0.5;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.5vw, 4.25rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 1.75rem;
  position: relative;
  z-index: 1;
  max-width: 860px;
}

.hero-title-accent {
  color: var(--accent);
}

.hero-byline {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  position: relative;
  z-index: 1;
  margin-bottom: 2rem;
}

.hero-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  position: relative;
  z-index: 1;
  margin-bottom: 0;
}

.hero-social-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  padding-bottom: 2px;
}

.hero-social-link:hover { color: var(--text-primary); }

.hero-social-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--ease-out);
}

.hero-social-link:hover::after { width: 100%; }

.title-line {
  display: block;
  overflow: visible;
  white-space: normal;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  font-weight: 400;
  color: var(--text-secondary);
  max-width: 620px;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

.hero-meta {
  display: flex;
  gap: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

.hero-meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.meta-label {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
}

.meta-value {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* ================================================
   SECTIONS — Shared
   ================================================ */
.section {
  padding: 8rem 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.section--no-border { border-bottom: none; }

.section-header {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.section-number {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.05em;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.section-intro {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  color: var(--text-secondary);
  max-width: 680px;
  line-height: 1.5;
  margin-bottom: 4rem;
}

.body-large {
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  line-height: 1.45;
  letter-spacing: -0.01em;
}

/* ================================================
   DNA SECTION
   ================================================ */
.dna-grid {
  display: grid;
  gap: 1px;
  background: var(--border);
}

.dna-item {
  background: var(--bg-primary);
  padding: 3rem 0;
  transition: background-color 0.5s ease;
}

.dna-item:hover {
  background: var(--bg-secondary);
}

.dna-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.dna-number {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.05em;
}

.dna-tag {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  transition: border-color 0.3s ease;
}

.dna-item:hover .dna-tag {
  border-color: var(--border-hover);
}

.dna-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.dna-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 780px;
}

.dna-desc strong { color: var(--text-primary); font-weight: 600; }
.dna-desc em     { color: var(--text-primary); font-style: italic; }

/* ================================================
   CORPORATE SCALE SECTION
   ================================================ */
.scale-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.scale-detail p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.scale-detail strong { color: var(--text-primary); font-weight: 600; }

/* --- Stats Grid --- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.stat-item {
  padding: 2.5rem;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: background-color 0.4s ease;
}

.stat-item:hover {
  background-color: var(--accent-glow);
}

.stat-value-row {
  display: flex;
  align-items: baseline;
  margin-bottom: 0.5rem;
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4.5vw, 3.75rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.stat-prefix {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--accent);
  margin-right: 0.1em;
}

.stat-suffix {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--accent);
  margin-left: 0.05em;
}

.stat-label {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.25rem;
}

/* ================================================
   PROOF OF WORK
   ================================================ */
.work-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3.5rem;
  align-items: start;
}

.work-intro-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.25rem;
}

.work-card {
  display: flex;
  justify-content: space-between;
  padding: 2.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all 0.5s var(--ease-out);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.work-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(255, 180, 66, 0.04) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.work-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4),
              0 0 40px rgba(255, 180, 66, 0.04);
}

.work-card:hover::before { opacity: 1; }

.work-card-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.work-company {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.75rem;
}

.work-card-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 0.85rem;
  letter-spacing: -0.01em;
}

.work-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.25rem;
  flex: 1;
}

.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.work-tag {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  transition: all 0.3s ease;
}

.work-card:hover .work-tag {
  border-color: var(--border-hover);
  color: var(--text-secondary);
}

.work-arrow {
  font-size: 1.4rem;
  color: var(--accent);
  opacity: 0;
  transform: translate(-8px, 8px);
  transition: all 0.4s var(--ease-out);
  position: relative;
  z-index: 1;
  align-self: flex-start;
  flex-shrink: 0;
  margin-left: 1rem;
  margin-top: 0.25rem;
}

.work-card:hover .work-arrow {
  opacity: 1;
  transform: translate(0, 0);
}

/* ================================================
   MARQUEE
   ================================================ */
.marquee-section {
  overflow: hidden;
  padding: 1.25rem 0;
  background: var(--accent);
  white-space: nowrap;
}

.marquee-track {
  display: flex;
  animation: marquee-scroll 22s linear infinite;
}

.marquee-track span {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4.5vw, 4rem);
  font-weight: 800;
  color: var(--bg-primary);
  text-transform: uppercase;
  flex-shrink: 0;
}

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

/* ================================================
   FOOTER
   ================================================ */
.footer {
  padding: 6rem 0 3rem;
}

.footer-headline {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 10vw, 10rem);
  font-weight: 800;
  text-align: center;
  line-height: 0.9;
  margin-bottom: 4rem;
  letter-spacing: -0.03em;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-link {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: color 0.3s ease;
  position: relative;
  padding-bottom: 2px;
}

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

.footer-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--ease-out);
}

.footer-link:hover::after { width: 100%; }

.footer-copy {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 900px) {
  :root {
    --container-padding: 1.5rem;
  }

  .nav-links {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 999;
  }

  .nav-links.open {
    opacity: 1;
    visibility: visible;
  }

  .nav-links .nav-link {
    font-size: 1.5rem;
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.02em;
  }

  .nav-hamburger { display: block; }

  .nav-cta {
    display: none;
  }

  .hero-meta {
    flex-direction: column;
    gap: 1.25rem;
  }

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

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .work-intro {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .work-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .footer-links { justify-content: center; }

  .section { padding: 5rem 0; }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: clamp(2.2rem, 12vw, 4rem);
  }

  .section-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .dna-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .footer-headline {
    font-size: clamp(2.5rem, 14vw, 5rem);
  }
}

/* ================================================
   HIDDEN SCROLLBAR (like abetterlou.com)
   ================================================ */
::-webkit-scrollbar { width: 0; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: transparent; }
