/* ============================================
   DETECTIVE AGENCY - Red & Black Noir Theme
   Complete Stylesheet with High Animations
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=Rajdhani:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&family=Special+Elite&display=swap');

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
  --primary: #e31e24;
  --primary-dark: #b71c1c;
  --primary-light: #ff5252;
  --primary-rgb: 227, 30, 36;
  --black: #000000;
  --black-light: #0a0a0a;
  --black-lighter: #111111;
  --dark: #1a1a1a;
  --dark-2: #222222;
  --dark-3: #2a2a2a;
  --gray: #888888;
  --gray-light: #aaaaaa;
  --white: #ffffff;
  --white-dark: #f0f0f0;
  --heading-font: 'Orbitron', sans-serif;
  --sub-font: 'Rajdhani', sans-serif;
  --body-font: 'Inter', sans-serif;
  --typewriter-font: 'Special Elite', cursive;
  --transition: all 0.4s ease;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  --shadow-red: 0 10px 40px rgba(227, 30, 36, 0.3);
}

/* ============================================
   RESET & BASE
   ============================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--body-font);
  background-color: var(--black);
  color: var(--gray-light);
  line-height: 1.7;
  overflow-x: hidden;
  padding-top: 90px; /* reserve space for fixed header */
}

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

ul, ol {
  list-style: none;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  color: var(--white);
  font-weight: 700;
  line-height: 1.3;
}

p {
  margin-bottom: 15px;
  color: var(--gray-light);
}

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

/* ============================================
   CUSTOM CURSOR
   ============================================ */
.cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 99999;
  transition: transform 0.1s;
}

.cursor-ring {
  width: 40px;
  height: 40px;
  border: 2px solid rgba(227, 30, 36, 0.5);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 99998;
  transition: all 0.15s ease-out;
}

.cursor-ring.hover {
  width: 60px;
  height: 60px;
  border-color: var(--primary);
  background: rgba(227, 30, 36, 0.1);
}

/* ============================================
   UTILITIES
   ============================================ */
.section {
  padding: 100px 0;
  position: relative;
}

.section-dark {
  background: var(--black-light);
}

.section-darker {
  background: var(--black);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-subtitle {
  font-family: var(--sub-font);
  color: var(--primary);
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 10px;
  display: inline-block;
  position: relative;
}

.section-subtitle::before,
.section-subtitle::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 30px;
  height: 2px;
  background: var(--primary);
}

.section-subtitle::before {
  left: -40px;
}

.section-subtitle::after {
  right: -40px;
}

.section-title {
  font-size: 42px;
  color: var(--white);
  margin-bottom: 15px;
  text-transform: uppercase;
}

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

.section-desc {
  max-width: 600px;
  margin: 0 auto;
  color: var(--gray);
  font-size: 16px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 35px;
  border: none;
  border-radius: 0;
  font-family: var(--sub-font);
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  z-index: -1;
  transition: var(--transition);
}

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

.btn-primary {
  background: var(--primary);
  color: var(--white);
  clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 15px 100%, 0 calc(100% - 15px));
}

.btn-primary::before {
  background: var(--primary-dark);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-red);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--primary);
  clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 15px 100%, 0 calc(100% - 15px));
}

.btn-outline::before {
  background: var(--primary);
}

.btn-outline:hover {
  color: var(--white);
  transform: translateY(-3px);
}

/* ============================================
   PRELOADER - Detective Themed
   ============================================ */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--black);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader {
  position: relative;
  width: 80px;
  height: 80px;
}

.loader::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 3px solid var(--dark-3);
  border-top: 3px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.loader::after {
  content: '🔍';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 30px;
  animation: pulse-loader 1.5s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pulse-loader {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.2); }
}

.loader-text {
  margin-top: 25px;
  font-family: var(--typewriter-font);
  color: var(--primary);
  font-size: 16px;
  letter-spacing: 5px;
  text-transform: uppercase;
  animation: flicker 2s infinite;
}

@keyframes flicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% { opacity: 1; }
  20%, 24%, 55% { opacity: 0.4; }
}

/* ============================================
   HEADER / NAVBAR
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 18px 0;
  transition: var(--transition);
  background: rgba(10, 10, 10, 0.55);
  backdrop-filter: blur(18px);
}

.header.scrolled {
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(18px);
  padding: 12px 0;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
  border-bottom: 1px solid rgba(227, 30, 36, 0.2);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  height: 70px;
  width: auto;
}

.footer .logo img {
  height: 60px;
}

.logo-icon {
  width: 50px;
  height: 50px;
  background: var(--primary);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: logo-pulse 3s ease-in-out infinite;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

@keyframes logo-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(227, 30, 36, 0.4); }
  50% { box-shadow: 0 0 20px 5px rgba(227, 30, 36, 0.2); }
}

.logo-icon i {
  color: var(--white);
  font-size: 18px;
}

.logo-text {
  font-family: var(--heading-font);
  font-size: 24px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 2px;
}

.logo-text span {
  color: var(--primary);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 35px;
}

.nav-menu a {
  font-family: var(--sub-font);
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  padding: 5px 0;
}

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

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

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-search {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--dark-3);
  color: var(--white);
  cursor: pointer;
  transition: var(--transition);
}

.header-search:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  width: 30px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ============================================
   HERO SECTION - DETECTIVE THEMED
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--black);
  overflow: hidden;
}

/* Static grid background for performance */
.hero-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(227, 30, 36, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(227, 30, 36, 0.04) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: 1;
}

/* Floating particles (Reduced count or static for performance) */
.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--primary);
  border-radius: 50%;
  opacity: 0.4;
  animation: float-particle 15s infinite linear;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 12s; width: 4px; height: 4px; }
.particle:nth-child(2) { left: 20%; animation-delay: 2s; animation-duration: 18s; }
.particle:nth-child(3) { left: 35%; animation-delay: 4s; animation-duration: 14s; width: 5px; height: 5px; }
.particle:nth-child(4) { left: 50%; animation-delay: 1s; animation-duration: 16s; }
.particle:nth-child(5) { left: 65%; animation-delay: 3s; animation-duration: 13s; width: 4px; height: 4px; }
.particle:nth-child(6) { left: 75%; animation-delay: 5s; animation-duration: 17s; }
.particle:nth-child(7) { left: 85%; animation-delay: 2s; animation-duration: 15s; width: 6px; height: 6px; }
.particle:nth-child(8) { left: 90%; animation-delay: 4s; animation-duration: 11s; }

@keyframes float-particle {
  0% { transform: translateY(100vh) scale(0); opacity: 0; }
  10% { opacity: 0.5; }
  90% { opacity: 0.5; }
  100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

/* Fog / Smoke effect (Optimized) */
.hero-fog {
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}

.fog-layer {
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(227, 30, 36, 0.03) 0%, transparent 60%);
  opacity: 0.3;
}

.fog-layer:nth-child(1) {
  animation: fog-drift 25s linear infinite;
  opacity: 0.15;
}

.fog-layer:nth-child(2) {
  animation: fog-drift 35s linear infinite reverse;
  opacity: 0.1;
}

@keyframes fog-drift {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

/* Spotlight / Searchlight effect */
.hero-spotlight {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 4;
  pointer-events: none;
  background: radial-gradient(ellipse 600px 400px at var(--spotlight-x, 70%) var(--spotlight-y, 40%), 
    rgba(227, 30, 36, 0.06) 0%, 
    transparent 70%);
}

/* Scan line effect */
.hero-scanline {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  pointer-events: none;
  overflow: hidden;
}

.hero-scanline::before {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--primary), transparent);
  box-shadow: 0 0 20px var(--primary), 0 0 60px var(--primary);
  animation: scanline 6s linear infinite;
}

@keyframes scanline {
  0% { top: -5%; }
  100% { top: 105%; }
}

/* Red glow */
.hero-glow {
  position: absolute;
  top: 50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(227,30,36,0.12) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 2;
  animation: pulse-glow 4s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.15); opacity: 0.8; }
}

/* Crosshair / Target */
.hero-crosshair {
  position: absolute;
  right: 10%;
  top: 50%;
  transform: translateY(-50%);
  width: 300px;
  height: 300px;
  z-index: 6;
  opacity: 0.08;
  animation: rotate-slow 30s linear infinite;
}

@keyframes rotate-slow {
  to { transform: translateY(-50%) rotate(360deg); }
}

/* Fingerprint animation */
.hero-fingerprint {
  position: absolute;
  right: 5%;
  bottom: 10%;
  width: 200px;
  height: 200px;
  z-index: 5;
  opacity: 0.04;
  animation: fingerprint-fade 5s ease-in-out infinite;
}

@keyframes fingerprint-fade {
  0%, 100% { opacity: 0.04; transform: scale(1); }
  50% { opacity: 0.08; transform: scale(1.05); }
}

/* Radar / Pulse ring */
.hero-radar {
  position: absolute;
  right: 15%;
  top: 30%;
  width: 400px;
  height: 400px;
  z-index: 4;
}

.radar-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(227, 30, 36, 0.15);
  border-radius: 50%;
  animation: radar-expand 4s ease-out infinite;
}

.radar-ring:nth-child(1) { animation-delay: 0s; }
.radar-ring:nth-child(2) { animation-delay: 1s; }
.radar-ring:nth-child(3) { animation-delay: 2s; }
.radar-ring:nth-child(4) { animation-delay: 3s; }

@keyframes radar-expand {
  0% { width: 0; height: 0; opacity: 1; border-color: rgba(227, 30, 36, 0.4); }
  100% { width: 400px; height: 400px; opacity: 0; border-color: rgba(227, 30, 36, 0); }
}

/* Data rain / Matrix effect */
.hero-data-rain {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  overflow: hidden;
  pointer-events: none;
}

.data-column {
  position: absolute;
  top: -100%;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  color: rgba(227, 30, 36, 0.15);
  writing-mode: vertical-rl;
  animation: data-fall linear infinite;
  white-space: nowrap;
}

.data-column:nth-child(1) { left: 5%; animation-duration: 15s; animation-delay: 0s; }
.data-column:nth-child(2) { left: 15%; animation-duration: 12s; animation-delay: 2s; }
.data-column:nth-child(3) { left: 25%; animation-duration: 18s; animation-delay: 1s; }
.data-column:nth-child(4) { left: 40%; animation-duration: 14s; animation-delay: 3s; }
.data-column:nth-child(5) { left: 55%; animation-duration: 16s; animation-delay: 0.5s; }
.data-column:nth-child(6) { left: 70%; animation-duration: 13s; animation-delay: 2.5s; }
.data-column:nth-child(7) { left: 80%; animation-duration: 17s; animation-delay: 1.5s; }
.data-column:nth-child(8) { left: 92%; animation-duration: 11s; animation-delay: 4s; }

@keyframes data-fall {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(calc(100vh + 100%)); }
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: 10;
  max-width: 700px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  background: rgba(227, 30, 36, 0.1);
  border: 1px solid rgba(227, 30, 36, 0.3);
  margin-bottom: 25px;
  animation: fadeInUp 1s ease;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  animation: blink 1.5s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; box-shadow: 0 0 10px var(--primary); }
  50% { opacity: 0.3; box-shadow: none; }
}

.hero-badge span {
  font-family: var(--sub-font);
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 3px;
}

.hero-title {
  font-size: 68px;
  font-weight: 900;
  color: var(--white);
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 20px;
  animation: fadeInUp 1s ease 0.2s both;
}

.hero-title span {
  color: var(--primary);
  position: relative;
  display: inline-block;
}

.hero-title span::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary);
  opacity: 0.3;
}

/* Glitch text effect */
.glitch {
  position: relative;
  animation: glitch-anim 5s infinite;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.glitch::before {
  color: var(--primary);
  z-index: -1;
  animation: glitch-1 3s infinite linear alternate-reverse;
}

.glitch::after {
  color: #00ffff;
  z-index: -2;
  animation: glitch-2 2s infinite linear alternate-reverse;
}

@keyframes glitch-1 {
  0%, 95% { clip-path: inset(0 0 0 0); transform: translate(0); }
  96% { clip-path: inset(20% 0 60% 0); transform: translate(-3px, 2px); }
  97% { clip-path: inset(50% 0 20% 0); transform: translate(3px, -1px); }
  98% { clip-path: inset(70% 0 10% 0); transform: translate(-2px, 3px); }
  99% { clip-path: inset(10% 0 80% 0); transform: translate(1px, -2px); }
  100% { clip-path: inset(0 0 0 0); transform: translate(0); }
}

@keyframes glitch-2 {
  0%, 95% { clip-path: inset(0 0 0 0); transform: translate(0); }
  96% { clip-path: inset(30% 0 40% 0); transform: translate(2px, -3px); }
  97% { clip-path: inset(60% 0 10% 0); transform: translate(-3px, 1px); }
  98% { clip-path: inset(10% 0 70% 0); transform: translate(2px, -2px); }
  99% { clip-path: inset(40% 0 30% 0); transform: translate(-1px, 3px); }
  100% { clip-path: inset(0 0 0 0); transform: translate(0); }
}

/* Typewriter effect */
.typewriter-wrapper {
  display: inline-flex;
  align-items: center;
}

.typewriter-text {
  font-family: var(--typewriter-font);
  font-size: 20px;
  color: var(--primary);
  border-right: 2px solid var(--primary);
  padding-right: 5px;
  animation: cursor-blink 0.8s step-end infinite;
  white-space: nowrap;
  overflow: hidden;
}

@keyframes cursor-blink {
  50% { border-color: transparent; }
}

.hero-description {
  font-size: 18px;
  color: var(--gray);
  margin-bottom: 35px;
  max-width: 500px;
  animation: fadeInUp 1s ease 0.4s both;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  animation: fadeInUp 1s ease 0.6s both;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--dark-3);
  animation: fadeInUp 1s ease 0.8s both;
}

.hero-stat-number {
  font-family: var(--heading-font);
  font-size: 42px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.hero-stat-label {
  font-family: var(--sub-font);
  font-size: 14px;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 5px;
}

/* Confidential stamp animation */
.hero-stamp {
  position: absolute;
  right: 8%;
  top: 20%;
  z-index: 8;
  width: 200px;
  height: 200px;
  opacity: 0;
  animation: stamp-appear 0.5s ease 2s both;
}

.hero-stamp svg text {
  font-family: var(--heading-font);
  font-size: 14px;
  fill: var(--primary);
  opacity: 0.15;
}

@keyframes stamp-appear {
  0% { opacity: 0; transform: scale(3) rotate(-30deg); }
  70% { opacity: 0.2; transform: scale(0.95) rotate(-15deg); }
  100% { opacity: 0.12; transform: scale(1) rotate(-15deg); }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ============================================
   MARQUEE / SCROLLING TEXT
   ============================================ */
.marquee-section {
  padding: 20px 0;
  background: var(--primary);
  overflow: hidden;
  position: relative;
}

.marquee-track {
  display: flex;
  animation: marquee 25s linear infinite;
  white-space: nowrap;
}

.marquee-item {
  font-family: var(--heading-font);
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  padding: 0 30px;
  display: flex;
  align-items: center;
  gap: 30px;
  flex-shrink: 0;
}

.marquee-item i {
  font-size: 12px;
}

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

/* ============================================
   SERVICES SECTION
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  background: var(--black-lighter);
  border: 1px solid var(--dark-3);
  padding: 40px 30px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: var(--primary);
  transition: height 0.5s ease;
}

.service-card:hover::before {
  height: 100%;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: -50%;
  right: -50%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(227,30,36,0.08) 0%, transparent 70%);
  opacity: 0;
  transition: var(--transition);
}

.service-card:hover::after {
  opacity: 1;
  bottom: -20%;
  right: -20%;
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: rgba(227, 30, 36, 0.3);
  box-shadow: 0 20px 50px rgba(227, 30, 36, 0.15);
}

.service-icon {
  width: 70px;
  height: 70px;
  background: rgba(227, 30, 36, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: var(--primary);
  transform: rotateY(360deg);
}

.service-icon i {
  font-size: 28px;
  color: var(--primary);
  transition: var(--transition);
}

.service-card:hover .service-icon i {
  color: var(--white);
}

.service-number {
  position: absolute;
  top: 20px;
  right: 20px;
  font-family: var(--heading-font);
  font-size: 48px;
  font-weight: 900;
  color: rgba(255,255,255,0.03);
  line-height: 1;
  transition: var(--transition);
}

.service-card:hover .service-number {
  color: rgba(227, 30, 36, 0.08);
}

.service-card h3 {
  font-size: 22px;
  margin-bottom: 15px;
  text-transform: uppercase;
}

.service-card p {
  font-size: 15px;
  color: var(--gray);
  margin-bottom: 20px;
}

.service-link {
  font-family: var(--sub-font);
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.service-link i {
  transition: var(--transition);
}

.service-link:hover i {
  transform: translateX(5px);
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-images {
  position: relative;
}

.about-img-main {
  position: relative;
  overflow: hidden;
  border: 2px solid var(--dark-3);
}

.about-img-main img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: transform 0.6s ease;
  filter: grayscale(30%);
}

.about-img-main:hover img {
  transform: scale(1.05);
  filter: grayscale(0%);
}

/* Animated border on image */
.about-img-main::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border: 2px solid var(--primary);
  z-index: 2;
  opacity: 0;
  transition: var(--transition);
}

.about-img-main:hover::before {
  opacity: 1;
  animation: border-trace 2s linear infinite;
}

@keyframes border-trace {
  0% { clip-path: inset(0 100% 100% 0); }
  25% { clip-path: inset(0 0 100% 0); }
  50% { clip-path: inset(0 0 0 0); }
  75% { clip-path: inset(0 0 0 100%); }
  100% { clip-path: inset(0 100% 0 100%); }
}

.about-img-secondary {
  position: absolute;
  bottom: -40px;
  right: -30px;
  width: 200px;
  height: 200px;
  border: 4px solid var(--primary);
  overflow: hidden;
}

.about-img-secondary img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(50%);
}

.about-experience-badge {
  position: absolute;
  top: -20px;
  left: -20px;
  width: 120px;
  height: 120px;
  background: var(--primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  animation: badge-float 3s ease-in-out infinite;
}

@keyframes badge-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.about-experience-badge .number {
  font-family: var(--heading-font);
  font-size: 36px;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
}

.about-experience-badge .text {
  font-family: var(--sub-font);
  font-size: 11px;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
}

.about-content .section-subtitle {
  text-align: left;
}

.about-content .section-subtitle::before {
  display: none;
}

.about-content .section-title {
  text-align: left;
  font-size: 36px;
}

.about-text {
  margin-bottom: 30px;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 30px;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sub-font);
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  transition: var(--transition);
}

.about-feature:hover {
  transform: translateX(5px);
  color: var(--primary);
}

.about-feature i {
  color: var(--primary);
  font-size: 14px;
}

/* ============================================
   COUNTER SECTION
   ============================================ */
.counter-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  position: relative;
  overflow: hidden;
}

.counter-section::before {
  content: '';
  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: 30px 30px;
  animation: grid-move 15s linear infinite;
}

.counter-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  position: relative;
  z-index: 2;
}

.counter-item {
  text-align: center;
  padding: 20px;
}

.counter-icon {
  font-size: 40px;
  color: var(--white);
  margin-bottom: 15px;
  opacity: 0.8;
}

.counter-number {
  font-family: var(--heading-font);
  font-size: 48px;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  margin-bottom: 5px;
}

.counter-label {
  font-family: var(--sub-font);
  font-size: 16px;
  color: rgba(255,255,255,0.8);
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* ============================================
   PORTFOLIO / CASES SECTION
   ============================================ */
.portfolio-filter {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 25px;
  background: transparent;
  border: 1px solid var(--dark-3);
  color: var(--gray);
  font-family: var(--sub-font);
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--dark);
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.6s ease;
  filter: grayscale(40%);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(227,30,36,0.2) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  opacity: 0;
  transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-item:hover img {
  transform: scale(1.1);
  filter: grayscale(0%);
}

.portfolio-category {
  font-family: var(--sub-font);
  font-size: 14px;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 5px;
}

.portfolio-title {
  font-size: 20px;
  color: var(--white);
  margin-bottom: 15px;
}

.portfolio-link {
  width: 45px;
  height: 45px;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 18px;
  transition: var(--transition);
}

.portfolio-link:hover {
  background: var(--white);
  color: var(--primary);
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */
.testimonials-wrapper {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.testimonial-slide {
  display: none;
  text-align: center;
  padding: 0 20px;
}

.testimonial-slide.active {
  display: block;
  animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.testimonial-quote {
  font-size: 60px;
  color: var(--primary);
  margin-bottom: 10px;
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-text {
  font-size: 20px;
  color: var(--gray-light);
  font-style: italic;
  margin-bottom: 30px;
  line-height: 1.8;
}

.testimonial-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 15px;
  border: 3px solid var(--primary);
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-name {
  font-family: var(--heading-font);
  font-size: 18px;
  color: var(--white);
  margin-bottom: 5px;
}

.testimonial-role {
  font-family: var(--sub-font);
  font-size: 14px;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.testimonial-stars {
  color: var(--primary);
  margin-bottom: 20px;
  font-size: 18px;
  display: flex;
  justify-content: center;
  gap: 3px;
}

.testimonial-nav {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
}

.testimonial-nav button {
  width: 45px;
  height: 45px;
  background: transparent;
  border: 1px solid var(--dark-3);
  color: var(--white);
  font-size: 18px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-nav button:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 25px;
}

.testimonial-dot {
  width: 12px;
  height: 12px;
  border: 2px solid var(--dark-3);
  background: transparent;
  cursor: pointer;
  transition: var(--transition);
}

.testimonial-dot.active {
  background: var(--primary);
  border-color: var(--primary);
}

/* ============================================
   BLOG SECTION
   ============================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.blog-card {
  background: var(--black-lighter);
  border: 1px solid var(--dark-3);
  overflow: hidden;
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-10px);
  border-color: rgba(227,30,36,0.3);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

.blog-img {
  position: relative;
  overflow: hidden;
  height: 220px;
}

.blog-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  filter: grayscale(30%);
}

.blog-card:hover .blog-img img {
  transform: scale(1.08);
  filter: grayscale(0%);
}

.blog-date {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--primary);
  color: var(--white);
  padding: 8px 15px;
  font-family: var(--sub-font);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
}

.blog-body {
  padding: 25px;
}

.blog-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
}

.blog-meta span {
  font-size: 13px;
  color: var(--gray);
  display: flex;
  align-items: center;
  gap: 5px;
}

.blog-meta span i {
  color: var(--primary);
  font-size: 12px;
}

.blog-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
  transition: var(--transition);
}

.blog-card h3:hover {
  color: var(--primary);
}

.blog-card p {
  font-size: 14px;
  color: var(--gray);
  margin-bottom: 15px;
}

.blog-link {
  font-family: var(--sub-font);
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.blog-link:hover i {
  transform: translateX(5px);
}

.blog-link i {
  transition: var(--transition);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--black) 0%, var(--dark) 100%);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(227,30,36,0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse-glow 4s ease-in-out infinite;
}

.cta-content {
  text-align: center;
  position: relative;
  z-index: 2;
}

.cta-content h2 {
  font-size: 48px;
  margin-bottom: 15px;
}

.cta-content h2 span {
  color: var(--primary);
}

.cta-content p {
  font-size: 18px;
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto 30px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* ============================================
   CLIENTS / BRANDS
   ============================================ */
.clients-section {
  padding: 60px 0;
  background: var(--black-lighter);
  border-top: 1px solid var(--dark-3);
  border-bottom: 1px solid var(--dark-3);
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 30px;
  align-items: center;
}

.client-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0.3;
  filter: grayscale(100%);
  transition: var(--transition);
}

.client-item:hover {
  opacity: 1;
  filter: grayscale(0%);
}

.client-logo-placeholder {
  font-family: var(--heading-font);
  font-size: 18px;
  color: var(--gray);
  font-weight: 700;
  letter-spacing: 3px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--black-light);
  padding-top: 80px;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--primary), transparent);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid var(--dark-3);
}

.footer-about .logo {
  margin-bottom: 20px;
}

.footer-about p {
  font-size: 15px;
  color: var(--gray);
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: var(--dark-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  font-size: 16px;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
}

.footer-title {
  font-size: 20px;
  margin-bottom: 25px;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 15px;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--primary);
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  font-size: 15px;
  color: var(--gray);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-links a::before {
  content: '›';
  color: var(--primary);
  font-size: 18px;
  font-weight: bold;
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: 5px;
}

.footer-contact li {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  font-size: 15px;
  color: var(--gray);
}

.footer-contact li i {
  color: var(--primary);
  font-size: 18px;
  margin-top: 3px;
  flex-shrink: 0;
}

.footer-bottom {
  padding: 25px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: 14px;
  color: var(--gray);
  margin: 0;
}

.footer-bottom p span {
  color: var(--primary);
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  font-size: 14px;
  color: var(--gray);
}

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

/* ============================================
   SCROLL TO TOP
   ============================================ */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 20px;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background: var(--primary-dark);
  transform: translateY(-5px);
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-scale.active {
  opacity: 1;
  transform: scale(1);
}

/* Stagger delay for children */
.stagger-children .reveal:nth-child(1) { transition-delay: 0.1s; }
.stagger-children .reveal:nth-child(2) { transition-delay: 0.2s; }
.stagger-children .reveal:nth-child(3) { transition-delay: 0.3s; }
.stagger-children .reveal:nth-child(4) { transition-delay: 0.4s; }
.stagger-children .reveal:nth-child(5) { transition-delay: 0.5s; }
.stagger-children .reveal:nth-child(6) { transition-delay: 0.6s; }

/* Section background animated lines */
.section-bg-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.section-bg-lines .line {
  position: absolute;
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, rgba(227, 30, 36, 0.05), transparent);
  animation: line-fade 3s ease-in-out infinite;
}

.section-bg-lines .line:nth-child(1) { left: 20%; animation-delay: 0s; }
.section-bg-lines .line:nth-child(2) { left: 40%; animation-delay: 0.5s; }
.section-bg-lines .line:nth-child(3) { left: 60%; animation-delay: 1s; }
.section-bg-lines .line:nth-child(4) { left: 80%; animation-delay: 1.5s; }

@keyframes line-fade {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
  .hero-title { font-size: 48px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .counter-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: repeat(2, 1fr); }
  .hero-crosshair, .hero-stamp, .hero-fingerprint { display: none; }
  .hero-radar { right: 5%; opacity: 0.5; }
}

@media (max-width: 768px) {
  .cursor-dot, .cursor-ring { display: none; }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: rgba(10, 10, 10, 0.98);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
    border-left: 1px solid var(--dark-3);
    backdrop-filter: blur(20px);
  }

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

  .hamburger {
    display: flex;
  }

  .header-search { display: none; }
  .header-actions .btn { display: none; }

  .hero-title { font-size: 36px; }
  .hero-stats { flex-direction: column; gap: 20px; }
  .hero-buttons { flex-direction: column; }
  .hero-radar, .hero-crosshair, .hero-stamp, .hero-fingerprint { display: none; }
  .about-wrapper { grid-template-columns: 1fr; gap: 40px; }
  .about-img-secondary { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .section-title { font-size: 30px; }
  .cta-content h2 { font-size: 32px; }
  .counter-number { font-size: 36px; }
  .clients-grid { grid-template-columns: repeat(3, 1fr); }
  .section { padding: 70px 0; }
  .cta-buttons { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 28px; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .counter-grid { grid-template-columns: 1fr; }
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 50px 0; }
  .hero-stat-number { font-size: 32px; }
  .about-features { grid-template-columns: 1fr; }
}