/* style.css - Mindblowing Redesign */

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

:root {
  --color-bg-main: #020202; /* Pitch Black */
  --color-bg-alt: #070707;
  --color-bg-card: rgba(10, 10, 10, 0.4);
  --color-primary: #0066FF; /* Vibrant Blue */
  --color-primary-glow: rgba(0, 102, 255, 0.6);
  --color-secondary: #00FFFF; /* Intense Cyan */
  --color-secondary-glow: rgba(0, 255, 255, 0.6);
  --color-text-main: #B0B5C1;
  --color-text-heading: #FFFFFF;
  --color-border: rgba(255, 255, 255, 0.05);
  
  --font-body: 'Inter', sans-serif;
  --font-heading: 'Outfit', sans-serif;
  
  /* Mouse position variables set by JS */
  --mouse-x: 50%;
  --mouse-y: 50%;
}

* {
  margin: 0; padding: 0; box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg-main);
  color: var(--color-text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* Custom Cursor Tracker */
#cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--color-primary-glow) 0%, transparent 60%);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9999;
  opacity: 0.15;
  mix-blend-mode: screen;
  transition: opacity 0.3s ease;
}

/* Particles Canvas */
#particles-js {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -2;
  background-color: var(--color-bg-main);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-text-heading);
  line-height: 1.2;
}

a {
  color: var(--color-text-heading);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--color-secondary);
  text-shadow: 0 0 10px var(--color-secondary-glow);
}

.container {
  width: 100%; max-width: 1400px;
  margin: 0 auto; padding: 0 2rem;
}

.section {
  padding: 10rem 0;
  position: relative;
  z-index: 10;
}

/* Glassmorphism & Neon Borders */
.glass {
  background: var(--color-bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}

.glass::before {
  content: '';
  position: absolute;
  top: var(--mouse-y); left: var(--mouse-x);
  transform: translate(-50%, -50%);
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(0,255,255,0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 0;
}

.glass:hover::before { opacity: 1; }
.glass > * { position: relative; z-index: 1; }

/* Magnetic Buttons */
.btn {
  display: inline-flex;
  align-items: center; justify-content: center;
  padding: 1.2rem 3rem;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 800;
  cursor: pointer;
  border: none;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.95rem;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transform-style: preserve-3d;
  transition: transform 0.1s; /* JS handles magnetic effect */
}

.btn-primary {
  background: transparent;
  color: #fff;
  border: 1px solid var(--color-primary);
  box-shadow: 0 0 20px rgba(0, 102, 255, 0.2) inset, 0 0 20px rgba(0, 102, 255, 0.4);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  z-index: -1;
  opacity: 0.2;
  transition: opacity 0.4s ease;
}

.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover { color: #fff; box-shadow: 0 0 40px var(--color-secondary-glow); }

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
}

.btn-outline:hover {
  border-color: var(--color-secondary);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.2) inset;
}

/* Header */
header {
  position: fixed;
  top: 0; width: 100%;
  z-index: 1000;
  background: rgba(2, 2, 2, 0.4);
  backdrop-filter: blur(30px);
  border-bottom: 1px solid rgba(255,255,255,0.03);
  transition: padding 0.4s ease;
}

.header-scrolled { padding: 0.5rem 0; background: rgba(2,2,2,0.8); }

.nav-container {
  display: flex; justify-content: space-between; align-items: center;
  height: 100px; transition: height 0.4s ease;
}

.header-scrolled .nav-container { height: 70px; }

.logo img { height: 45px; object-fit: contain; filter: drop-shadow(0 0 10px rgba(0,102,255,0.5)); }

.nav-links { display: flex; gap: 3rem; }
.nav-links a {
  font-family: var(--font-heading); font-weight: 600; font-size: 0.9rem;
  text-transform: uppercase; letter-spacing: 2px;
  color: rgba(255,255,255,0.6);
  position: relative;
}

.nav-links a:hover, .nav-links a.active { color: #fff; text-shadow: 0 0 10px var(--color-secondary); }

/* Hero Section */
.hero {
  min-height: 110vh;
  display: flex; align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-content {
  position: relative; z-index: 10;
  max-width: 1000px;
}

.hero-title {
  font-size: clamp(4rem, 7vw, 8rem);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 2rem;
  letter-spacing: -2px;
  color: #fff;
  text-shadow: 0 0 40px rgba(255,255,255,0.2);
}

.hero-title .glow-text {
  background: linear-gradient(to right, var(--color-secondary), var(--color-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 30px rgba(0, 255, 255, 0.4));
}

/* Service Cards */
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 3rem;
}

.service-card {
  padding: 4rem 3rem;
  transition: transform 0.4s ease, border-color 0.4s ease;
}

.service-card:hover {
  transform: translateY(-15px) scale(1.02);
  border-color: rgba(0, 255, 255, 0.4);
  box-shadow: 0 20px 50px rgba(0,0,0,0.8), 0 0 30px rgba(0, 102, 255, 0.1) inset;
}

.service-icon {
  font-size: 3rem; margin-bottom: 2rem;
  color: var(--color-secondary);
  text-shadow: 0 0 20px var(--color-secondary-glow);
}

/* Features */
.feature-image {
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 0 50px rgba(0,102,255,0.2);
  border: 1px solid rgba(255,255,255,0.1);
  position: relative;
}

.feature-image::after {
  content: '';
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  box-shadow: inset 0 0 50px rgba(0,0,0,0.8);
  pointer-events: none;
}

/* Footer */
footer {
  background: #000; padding: 6rem 0 3rem;
  border-top: 1px solid rgba(0,102,255,0.3);
  position: relative; overflow: hidden;
}

footer::before {
  content: ''; position: absolute; top: -50px; left: 50%; transform: translateX(-50%);
  width: 50%; height: 100px;
  background: var(--color-primary); filter: blur(100px); opacity: 0.3; pointer-events: none;
}

.footer-col h4 { font-size: 1.4rem; color: #fff; margin-bottom: 2rem; }
.footer-links li { margin-bottom: 1rem; font-size: 1.1rem; }

/* Utilities */
.text-center { text-align: center; }
.text-gradient {
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
