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

:root {
  --bg-color: #050505;
  --accent-gold: #FFB800;
}

body, html {
  background-color: var(--bg-color);
  color: #e2e8f0;
  font-family: 'Inter', sans-serif;
  cursor: none; /* Custom cursor override */
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: 'Space Grotesk', sans-serif;
}

/* Custom Hide Scrollbar for Brutalism */
::-webkit-scrollbar {
  width: 4px;
}
::-webkit-scrollbar-track {
  background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
}

/* Noise Overlay */
.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.04;
  background-image: url('data:image/svg+xml,%3Csvg viewBox=%220 0 200 200%22 xmlns=%22http://www.w3.org/2000/svg%22%3E%3Cfilter id=%22noiseFilter%22%3E%3CfeTurbulence type=%22fractalNoise%22 baseFrequency=%220.85%22 numOctaves=%223%22 stitchTiles=%22stitch%22/%3E%3C/filter%3E%3Crect width=%22100%25%22 height=%22100%25%22 filter=%22url(%23noiseFilter)%22/%3E%3C/svg%3E');
  mix-blend-mode: color-dodge;
}

/* Drafting Grid Layer */
.drafting-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
  background-size: 100px 100px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

.crosshair {
  position: fixed;
  width: 20px;
  height: 20px;
  pointer-events: none;
  z-index: 2;
  opacity: 0.3;
}
.crosshair::before, .crosshair::after {
  content: '';
  position: absolute;
  background: white;
}
.crosshair::before { top: 9px; left: 0; width: 20px; height: 1px; }
.crosshair::after { top: 0; left: 9px; width: 1px; height: 20px; }
.ch-tl { top: 40px; left: 40px; }
.ch-tr { top: 40px; right: 40px; }
.ch-bl { bottom: 40px; left: 40px; }
.ch-br { bottom: 40px; right: 40px; }

/* Custom Magnetic Cursor */
#custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  background: white;
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  mix-blend-mode: difference;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background-color 0.2s;
}
#custom-cursor.active {
  width: 40px;
  height: 40px;
  background: var(--accent-gold);
}

/* Typography Overrides */
.text-outline {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.2);
  transition: -webkit-text-stroke 0.4s ease, color 0.4s ease;
}
.text-outline:hover {
  -webkit-text-stroke: 1px var(--accent-gold);
}

.text-outline-gold {
  color: transparent;
  -webkit-text-stroke: 1px var(--accent-gold);
}

.brutalist-border {
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0;
}

/* Brutalist Buttons */
.btn-brutal {
  border: 1px solid white;
  background: transparent;
  color: white;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-family: 'Space Grotesk', sans-serif;
  border-radius: 0;
  position: relative;
  overflow: hidden;
  transition: color 0.3s ease;
  display: inline-block;
  cursor: none;
}
.btn-brutal::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: var(--accent-gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.86, 0, 0.07, 1);
  z-index: -1;
}
.btn-brutal:hover {
  color: black;
  border-color: var(--accent-gold);
}
.btn-brutal:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.btn-brutal-gold {
  border: 1px solid var(--accent-gold);
  background: var(--accent-gold);
  color: black;
  text-transform: uppercase;
  border-radius: 0;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: 2px;
  transition: all 0.3s ease;
  cursor: none;
}
.btn-brutal-gold:hover {
  background: transparent;
  color: var(--accent-gold);
}

/* Marquee */
.marquee-container {
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: 15px 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(10px);
}
.marquee-content {
  display: inline-block;
  animation: marquee 20s linear infinite;
  font-family: 'Space Grotesk', sans-serif;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  letter-spacing: 4px;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Form Overrides */
.brutalist-input {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  color: white;
  font-family: 'Space Grotesk', sans-serif;
  border-radius: 0;
  transition: border-color 0.3s ease;
  padding: 10px 0;
  width: 100%;
  cursor: none;
}
.brutalist-input:focus {
  outline: none;
  border-bottom-color: var(--accent-gold);
}
.brutalist-input::placeholder {
  color: rgba(255,255,255,0.3);
}

/* Sticky Stacking Service Cards */
.sticky-card {
  position: sticky;
  top: 120px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 2px solid var(--accent-gold);
  margin-bottom: 40px;
}

/* Hide Default Anchors to match Custom Cursor Override */
a, button {
  cursor: none !important;
}
