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

:root {
  /* Dark Industrial Theme */
  --bg-primary: #050505;
  --bg-secondary: #0A0A0A;
  --bg-tertiary: #111111;
  
  /* Brand/Neon Accents */
  --accent-blue: #0A84FF;
  --accent-blue-glow: rgba(10, 132, 255, 0.4);
  --accent-red: #FF3B30;
  --accent-red-glow: rgba(255, 59, 48, 0.4);
  
  /* Text */
  --text-primary: #FFFFFF;
  --text-secondary: #A1A1A6;
  --text-tertiary: #6E6E73;
  
  /* Borders & UI */
  --border-light: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.2);
  
  /* Layout */
  --nav-height: 80px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  cursor: none; /* Hide default cursor for custom one */
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4, .display-font {
  font-family: 'Space Grotesk', sans-serif;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

/* Custom Cursor */
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--accent-red);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background 0.2s;
}

.cursor-outline {
  position: fixed;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 59, 48, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, border-color 0.2s;
}

/* Hover States for Cursor */
body.hovering .cursor-dot {
  width: 40px;
  height: 40px;
  background: var(--accent-blue-glow);
  mix-blend-mode: screen;
}
body.hovering .cursor-outline {
  width: 60px;
  height: 60px;
  border-color: var(--accent-blue);
}

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

/* Typography Scale */
.text-huge {
  font-size: clamp(2.5rem, 7vw, 7rem);
  font-weight: 700;
}

.text-h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 600;
}

.text-lead {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  color: var(--text-secondary);
  max-width: 600px;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 100;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(5, 5, 5, 0.7);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 1px;
}

.brand-logo img {
  height: 32px;
  background: #FFF;
  padding: 4px;
  border-radius: 4px;
}

.menu-btn {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  padding: 10px 24px;
  border-radius: 30px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.menu-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--text-primary);
  transition: all 0.3s ease;
  z-index: -1;
}

.menu-btn:hover {
  color: var(--bg-primary);
}

.menu-btn:hover::before {
  left: 0;
}

/* Magnetic Button (CTA) */
.btn-magnetic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 64px;
  padding: 0 40px;
  background: var(--text-primary);
  color: var(--bg-primary);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 4px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.btn-magnetic::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150%;
  height: 150%;
  background: var(--accent-red);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: -1;
}

.btn-magnetic:hover {
  color: #FFF;
  transform: scale(1.05);
}

.btn-magnetic:hover::after {
  transform: translate(-50%, -50%) scale(1);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-height) + 60px);
  padding-bottom: 100px;
  overflow: hidden;
}

/* Huge Watermark Logo */
.bg-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120vw;
  max-width: 1000px;
  opacity: 0.04;
  z-index: -3;
  pointer-events: none;
  display: flex;
  justify-content: center;
  align-items: center;
}

.bg-watermark img {
  width: 100%;
  height: auto;
  filter: grayscale(100%);
}

/* Background Animated Grid */
.bg-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  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: 50px 50px;
  z-index: -2;
  transform: perspective(500px) rotateX(60deg) translateY(-100px) translateZ(-200px);
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% { transform: perspective(500px) rotateX(60deg) translateY(0) translateZ(-200px); }
  100% { transform: perspective(500px) rotateX(60deg) translateY(50px) translateZ(-200px); }
}

.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, var(--accent-blue-glow) 0%, transparent 60%);
  transform: translate(-50%, -50%);
  z-index: -1;
  filter: blur(100px);
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
}

.hero .tagline {
  color: var(--accent-red);
  font-family: 'Space Grotesk', sans-serif;
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 20px;
  display: inline-block;
}

/* Reveal Animation classes for GSAP */
.reveal-text {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
}

.reveal-text .line {
  display: block;
  transform: translateY(110%);
  opacity: 0;
}

/* Asymmetric Services Section */
.services-section {
  padding: 150px 0;
  position: relative;
  background: var(--bg-secondary);
}

.services-header {
  margin-bottom: 100px;
}

.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 120px;
  align-items: center;
}

.service-row:nth-child(even) {
  grid-template-columns: 1fr 1fr;
  direction: rtl; /* Reverses the layout */
}

.service-row:nth-child(even) > * {
  direction: ltr; /* Keeps text normal */
}

.service-content {
  padding: 0 40px;
}

.service-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 5rem;
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px var(--border-strong);
  line-height: 1;
  margin-bottom: 20px;
}

.service-content h3 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.service-content p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.service-visual {
  height: 400px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.service-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.service-row:hover .service-visual img {
  transform: scale(1.05);
}

.service-visual::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.05) 50%, transparent 60%);
  background-size: 200% 200%;
  animation: shimmer 3s infinite linear;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Horizontal Scroll Execution Log */
.execution-section {
  padding: 150px 0;
  background: var(--bg-primary);
  overflow: hidden;
}

.execution-header {
  margin-bottom: 80px;
}

.horizontal-scroll-wrapper {
  display: flex;
  gap: 40px;
  padding-right: 40px; /* Space at end */
  width: max-content; /* Critical for horizontal scroll calculation */
}

.log-card {
  width: 450px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-light);
  padding: 40px;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-shrink: 0; /* Prevents squishing */
}

.log-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 20px;
}

.log-id {
  color: var(--accent-blue);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  letter-spacing: 2px;
}

.log-status {
  background: rgba(10, 132, 255, 0.1);
  color: var(--accent-blue);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid var(--accent-blue-glow);
}

.log-details h4 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.log-details p {
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.log-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.log-stat-item span {
  display: block;
  font-size: 0.8rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.log-stat-item strong {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  color: var(--text-primary);
}

/* Glassmorphic Drawer Form */
.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(5px);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.drawer-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.lead-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 500px;
  height: 100%;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  border-left: 1px solid var(--border-strong);
  z-index: 1000;
  padding: 60px 40px;
  overflow-y: auto;
  transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.lead-drawer.active {
  right: 0;
}

.close-drawer {
  position: absolute;
  top: 30px;
  right: 30px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 2rem;
  line-height: 1;
  transition: color 0.3s;
}

.close-drawer:hover {
  color: var(--accent-red);
}

.drawer-header {
  margin-bottom: 40px;
}

.drawer-header h3 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.drawer-header p {
  color: var(--text-secondary);
}

/* Form Styles */
.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.form-group input, 
.form-group select, 
.form-group textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-strong);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  padding: 12px 0;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-bottom-color: var(--accent-blue);
}

.form-group select option {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.btn-submit {
  width: 100%;
  padding: 20px;
  background: var(--accent-red);
  color: #fff;
  border: none;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 20px;
  border-radius: 4px;
  transition: background 0.3s;
}

.btn-submit:hover {
  background: #E53935;
}

/* Footer */
.footer {
  padding: 100px 0 50px;
  border-top: 1px solid var(--border-light);
  background: var(--bg-primary);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 80px;
}

.footer-brand {
  max-width: 400px;
}

.footer-brand img {
  height: 40px;
  background: #FFF;
  padding: 4px;
  border-radius: 4px;
  margin-bottom: 20px;
}

.footer-brand p {
  color: var(--text-secondary);
}

.footer-contact h4 {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.footer-contact ul {
  list-style: none;
  color: var(--text-secondary);
}

.footer-contact ul li {
  margin-bottom: 10px;
}

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  color: var(--text-tertiary);
  font-size: 0.9rem;
}

@media (max-width: 1024px) {
  .text-huge { font-size: clamp(3rem, 8vw, 4rem); }
  .service-row, .service-row:nth-child(even) {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 20px;
  }
  .service-visual { height: 250px; }
  .horizontal-scroll-wrapper {
    flex-wrap: wrap; /* Disable horiz scroll on small screens */
    width: 100%;
    padding-right: 0;
  }
  .log-card { width: 100%; }
  
  .footer-top { flex-direction: column; gap: 40px; }
  .footer-bottom { flex-direction: column; gap: 10px; align-items: center; text-align: center; }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .text-huge { font-size: clamp(2.5rem, 10vw, 3rem); }
  .text-h2 { font-size: clamp(2rem, 8vw, 2.5rem); }
  .services-section, .execution-section { padding: 80px 0; }
  .service-content { padding: 0; }
  .service-number { font-size: 3.5rem; }
  
  /* Mobile Navbar */
  .brand-logo { font-size: 1rem; }
  .menu-btn { padding: 8px 16px; font-size: 0.8rem; }
  
  /* Lead Drawer */
  .lead-drawer { padding: 40px 20px; }
  .drawer-header h3 { font-size: 1.5rem; }
}

/* Disable Custom Cursor on Touch Devices */
@media (hover: none) and (pointer: coarse) {
  * {
    cursor: auto !important;
  }
  .cursor-dot,
  .cursor-outline {
    display: none !important;
  }
}
