/* ============================================================
   Ozzy Software - shared base stylesheet
   Extracted from index.html; used by the standalone pages
   (clients, team, work). Keep in sync with index.html.
   ============================================================ */

/* ---------- FONTS + RESET + BASE + TYPOGRAPHY ---------- */
/* Self-hosted fonts — no third-party requests */
@font-face {
  font-family: 'Fira Code';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/firacode-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fira Code';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/firacode-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(/fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(/fonts/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --deep-dark: #151b1d;
  --primary-dark: #2a363b;
  --secondary-dark: #3f5159;
  --gold: #facf39;
  --gold-secondary: #fbcb6b;
  --white: #ffffff;
  --white-muted: rgba(255, 255, 255, 0.7);
  --white-dim: rgba(255, 255, 255, 0.4);
  --gold-glow: rgba(250, 207, 57, 0.25);
  --gold-glow-strong: rgba(250, 207, 57, 0.45);
  --font-mono: 'Fira Code', 'Courier New', monospace;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --nav-height: 72px;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 0px;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background: var(--deep-dark);
  color: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover {
  color: var(--gold-secondary);
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 100px 0;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
}

h2.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 16px;
  color: var(--white);
}

h2.section-title span {
  color: var(--gold);
}

.section-subtitle {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
  display: block;
}

.section-desc {
  color: var(--white-muted);
  font-size: 1.1rem;
  max-width: 640px;
  margin-bottom: 48px;
}

code, .mono {
  font-family: var(--font-mono);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background: rgba(21, 27, 29, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(250, 207, 57, 0.08);
  z-index: 1000;
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

.navbar.scrolled {
  background: rgba(21, 27, 29, 0.97);
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.4);
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
  text-decoration: none;
}

.nav-brand:hover {
  color: var(--white);
}

.nav-brand svg {
  width: 36px;
  height: 36px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  position: relative;
  color: var(--white-muted);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  padding: 4px 0;
  transition: color var(--transition-base);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width var(--transition-base);
}

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

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

.nav-links a.nav-cta {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 8px 4px;
  background: none;
  color: var(--gold) !important;
  border: 1px solid var(--gold);
  border-radius: 4px;
  font-weight: 600;
  transition: all var(--transition-base) !important;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  background: none !important;
  color: var(--gold) !important;
  border-color: var(--gold);
  box-shadow: 0 0 8px var(--gold-glow), 0 0 20px rgba(250, 207, 57, 0.15);
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all var(--transition-base);
  transform-origin: center;
}

.nav-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    background: var(--deep-dark);
    border-left: 1px solid rgba(250, 207, 57, 0.1);
    padding: 40px;
    transition: right var(--transition-base);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    font-size: 1.1rem;
  }

  .mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999;
  }

  .mobile-overlay.open {
    display: block;
  }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
}

.btn-primary {
  background: var(--gold);
  color: var(--deep-dark);
}

.btn-primary:hover {
  background: var(--gold-secondary);
  color: var(--deep-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--gold-glow);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--secondary-dark);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--white-dim);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  animation: scrollBounce 2s ease-in-out infinite;
}

.hero-scroll-hint .scroll-line {
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, var(--gold), transparent);
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: rgba(21, 27, 29, 0.95);
  border-top: 1px solid rgba(250, 207, 57, 0.06);
  padding: 60px 0 32px;
  --white-dim: #8fa3aa;
  --white-muted: #c4d0d4;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
}

.footer-brand svg {
  width: 32px;
  height: 32px;
}


.footer-desc {
  color: var(--white-dim);
  font-size: 0.9rem;
  max-width: 380px;
  line-height: 1.7;
}

.footer h4, .footer-heading {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--white-dim);
  font-size: 0.9rem;
  transition: color var(--transition-base);
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(250, 207, 57, 0.06);
  border: 1px solid rgba(250, 207, 57, 0.1);
  border-radius: 6px;
  color: var(--white-dim);
  font-size: 0.85rem;
  transition: all var(--transition-base);
}

.footer-social a:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.8rem;
  color: var(--white-dim);
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom a { text-decoration: underline; }
.footer-bottom .legal {
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ============================================================
   SCROLL ANIMATIONS + UTILITY
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }
.fade-in-delay-5 { transition-delay: 0.5s; }

/* ============================================================
   UTILITY
   ============================================================ */
.text-center { text-align: center; }
.text-gold { color: var(--gold); }

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--deep-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--secondary-dark);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

/* Selection */
::selection {
  background: var(--gold);
  color: var(--deep-dark);
}
