/* ============================================
   TITANTOP ROOFING — GLOBAL STYLES
   Neo Brutalist × Cinematic × Kinetic
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Space+Grotesk:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;700&display=swap');

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background-color: var(--bg-0);
  color: var(--text-primary);
  font-family: var(--font-body);
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { border: none; background: none; font-family: inherit; }

/* ── CSS VARIABLES ── */
:root {
  /* Colors */
  --bg-0: #080B0F;
  --bg-1: #0D1117;
  --bg-2: #111820;
  --bg-3: #161E2A;
  --indigo: #4F46E5;
  --indigo-glow: #6366F1;
  --indigo-dim: rgba(79,70,229,0.15);
  --acid: #DFE104;
  --acid-dim: rgba(223,225,4,0.15);
  --text-primary: #F0F4FF;
  --text-secondary: #8892AA;
  --text-muted: #4A5568;
  --border: rgba(255,255,255,0.08);
  --border-bright: rgba(255,255,255,0.15);
  --glass-bg: rgba(255,255,255,0.04);
  --glass-border: rgba(255,255,255,0.08);

  /* Fonts */
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing */
  --section-gap: clamp(5rem, 10vw, 9rem);
  --container-max: 1320px;
  --container-pad: clamp(1.5rem, 5vw, 4rem);

  /* Shadows */
  --shadow-glow: 0 0 60px rgba(79,70,229,0.25);
  --shadow-card: 0 8px 40px rgba(0,0,0,0.6), 0 2px 8px rgba(0,0,0,0.4);
  --shadow-brutal: 4px 4px 0 var(--acid);
}

/* ── SPOTLIGHT CURSOR ── */
.spotlight {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79,70,229,0.12) 0%, transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: transform 0.05s linear;
  z-index: 9999;
  mix-blend-mode: screen;
}

/* Custom cursor */
body::after {
  content: '';
  position: fixed;
  width: 10px;
  height: 10px;
  background: var(--acid);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transition: transform 0.1s ease;
  transform: translate(var(--cx, 0), var(--cy, 0)) translate(-50%, -50%);
}

/* ── GRID OVERLAY ── */
.hero__grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* ── BLOBS ── */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  animation: blobDrift 12s ease-in-out infinite;
}
.blob--1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(79,70,229,0.35), transparent 70%);
  top: -100px; left: -100px;
  animation-delay: 0s;
}
.blob--2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(99,102,241,0.25), transparent 70%);
  bottom: 100px; right: -50px;
  animation-delay: -4s;
}
.blob--3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(223,225,4,0.08), transparent 70%);
  top: 50%; left: 50%;
  animation-delay: -8s;
}
@keyframes blobDrift {
  0%, 100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* ── GLASSMORPHISM ── */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ── TYPOGRAPHY ── */
.section__label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--acid);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
}
.section__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.92;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  text-transform: uppercase;
}
.gradient-text {
  background: linear-gradient(135deg, var(--indigo-glow), var(--acid));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section__header { margin-bottom: clamp(3rem, 6vw, 5rem); }
.section__header--center { text-align: center; }

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

/* ── SECTIONS ── */
.section { padding: var(--section-gap) 0; position: relative; overflow: hidden; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.9rem 2.2rem;
  border-radius: 2px;
  transition: all 0.2s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  overflow: hidden;
  cursor: none;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: currentColor;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.btn:hover::before { opacity: 0.08; }

.btn--primary {
  background: var(--acid);
  color: #000;
  border: 2px solid var(--acid);
  box-shadow: 0 0 0 0 var(--acid);
}
.btn--primary:hover {
  background: #000;
  color: var(--acid);
  box-shadow: 4px 4px 0 var(--acid);
  transform: translate(-2px, -2px);
}

.btn--ghost {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border-bright);
}
.btn--ghost:hover {
  border-color: var(--acid);
  color: var(--acid);
  box-shadow: 4px 4px 0 rgba(223,225,4,0.3);
  transform: translate(-2px, -2px);
}
.btn--xl { padding: 1.2rem 3rem; font-size: 1rem; }

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1.2rem var(--container-pad);
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
}
.nav.scrolled {
  background: rgba(8,11,15,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  flex-shrink: 0;
}
.nav__logo-mark {
  color: var(--acid);
  font-size: 1.4rem;
}
.nav__links {
  display: flex;
  gap: 0.2rem;
  margin-left: auto;
}
.nav__link {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  padding: 0.5rem 0.8rem;
  border-radius: 2px;
  transition: color 0.15s ease, background 0.15s ease;
  position: relative;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 0.8rem; right: 0.8rem;
  height: 2px;
  background: var(--acid);
  transform: scaleX(0);
  transition: transform 0.2s cubic-bezier(0.23,1,0.32,1);
}
.nav__link:hover, .nav__link.active { color: var(--text-primary); }
.nav__link:hover::after, .nav__link.active::after { transform: scaleX(1); }
.nav__cta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  background: var(--acid);
  color: #000;
  padding: 0.6rem 1.4rem;
  border-radius: 2px;
  flex-shrink: 0;
  transition: all 0.2s ease;
}
.nav__cta:hover {
  background: #000;
  color: var(--acid);
  border: 1px solid var(--acid);
  box-shadow: 2px 2px 0 var(--acid);
}
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
}
.nav__burger span {
  width: 24px; height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: all 0.3s ease;
}

/* ── MOBILE MENU ── */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg-0);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.23,1,0.32,1);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu ul { display: flex; flex-direction: column; gap: 1.5rem; text-align: center; }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 4rem);
  color: var(--text-secondary);
  transition: color 0.2s ease;
}
.mobile-menu a:hover { color: var(--acid); }

/* ── MARQUEE ── */
.marquee-strip {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  padding: 1rem 0;
  position: relative;
  z-index: 2;
}
.marquee-track {
  display: flex;
  gap: 3rem;
  align-items: center;
  white-space: nowrap;
  animation: marqueeRun 25s linear infinite;
  width: max-content;
}
.marquee-track span {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
}
.marquee-track .sep {
  color: var(--acid);
  font-size: 0.8rem;
}
@keyframes marqueeRun {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee-strip:hover .marquee-track { animation-play-state: paused; }

/* ── FOOTER ── */
.footer {
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  padding: 5rem 0 2rem;
}
.footer__top {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 5rem;
  margin-bottom: 4rem;
}
.footer__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}
.footer__brand p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.footer__socials { display: flex; gap: 0.8rem; }
.social-link {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 0.4rem 0.7rem;
  border-radius: 2px;
  transition: all 0.2s ease;
}
.social-link:hover {
  border-color: var(--acid);
  color: var(--acid);
}
.footer__links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.footer__col { display: flex; flex-direction: column; gap: 0.7rem; }
.footer__col h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: var(--acid);
  margin-bottom: 0.5rem;
}
.footer__col a, .footer__col span {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}
.footer__col a:hover { color: var(--text-primary); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}
.footer__bottom-links { display: flex; gap: 2rem; }
.footer__bottom-links a { transition: color 0.2s ease; }
.footer__bottom-links a:hover { color: var(--acid); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .footer__top { grid-template-columns: 1fr; gap: 3rem; }
  .footer__links { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .footer__links { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: 1rem; text-align: center; }
}

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  padding: 10rem 0 5rem;
  position: relative;
  overflow: hidden;
  background: var(--bg-0);
}
.page-hero__blobs { position: absolute; inset: 0; pointer-events: none; }
.page-hero__label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--acid);
  letter-spacing: 0.15em;
  margin-bottom: 1.5rem;
}
.page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vw, 9rem);
  line-height: 0.9;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  margin-bottom: 2rem;
}
.page-hero__sub {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.7;
}

/* ── SCROLL ANIMATION ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.23,1,0.32,1), transform 0.6s cubic-bezier(0.23,1,0.32,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

