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

:root {
  /* Colors - Futuristic Dark Tech Palette */
  --bg-primary: #050814;
  --bg-secondary: #0a1128;
  --bg-dark: #02040a;
  --bg-dark-accent: #0f172a;
  
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-light: #ffffff;
  
  --accent-cyan: #00f0ff;
  --accent-purple: #b026ff;
  --accent-gradient: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-purple) 100%);
  --accent-gradient-hover: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-cyan) 100%);
  
  --shadow-glow: 0 0 10px rgba(0, 240, 255, 0.3), 0 0 20px rgba(0, 240, 255, 0.1);
  --shadow-glow-hover: 0 0 15px rgba(0, 240, 255, 0.6), 0 0 30px rgba(0, 240, 255, 0.3);
  
  /* Layout */
  --container-width: 1200px;
  --nav-height: 80px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Space Grotesk', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  
  /* Tech Grid Background */
  background-image: 
    linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 1px;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* Typography Utility */
.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  text-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

/* --- Navigation --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background: rgba(5, 8, 20, 0.8);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(0, 240, 255, 0.2);
  z-index: 1000;
  transition: all 0.3s ease;
}

header.scrolled {
  height: 70px;
  box-shadow: var(--shadow-glow);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-primary);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background: var(--accent-gradient);
  transition: width 0.3s ease;
  box-shadow: var(--shadow-glow);
}

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

.nav-links a:hover {
  color: var(--accent-cyan);
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.6);
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 0; /* Angular look */
  font-weight: 700;
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: none;
  border: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: transparent;
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: inset 0 0 10px rgba(0, 240, 255, 0.2), 0 0 10px rgba(0, 240, 255, 0.2);
}

.btn-primary:hover {
  background: var(--accent-cyan);
  color: var(--bg-dark);
  box-shadow: var(--shadow-glow-hover);
  transform: scale(1.05);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--accent-purple);
  color: var(--accent-purple);
  box-shadow: inset 0 0 10px rgba(176, 38, 255, 0.2), 0 0 10px rgba(176, 38, 255, 0.2);
}

.btn-outline:hover {
  background: var(--accent-purple);
  color: var(--bg-dark);
  box-shadow: 0 0 15px rgba(176, 38, 255, 0.6);
  transform: scale(1.05);
}

/* Mobile Menu Toggle */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--accent-cyan);
  cursor: none;
}

/* --- Hero Section --- */
.hero {
  padding-top: calc(var(--nav-height) + 4rem);
  padding-bottom: 6rem;
  background-color: transparent;
  color: var(--text-light);
  position: relative;
  overflow: hidden;
}

.aurora-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 15% 50%, rgba(0, 240, 255, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 85% 30%, rgba(176, 38, 255, 0.08) 0%, transparent 50%);
  filter: blur(40px);
  z-index: 0;
  animation: aurora-shift 15s ease-in-out infinite alternate;
}

@keyframes aurora-shift {
  0% { transform: scale(1) translate(0, 0); }
  50% { transform: scale(1.2) translate(-5%, 5%); }
  100% { transform: scale(1) translate(5%, -5%); }
}

.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content h1 {
  font-size: 4rem;
  margin-bottom: 1.5rem;
}

.hero-content p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 90%;
}

.hero-btns {
  display: flex;
  gap: 1.5rem;
}

/* Cybernetic HUD Element in Hero */
.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.tech-shape {
  width: 350px;
  height: 350px;
  border: 2px dashed rgba(0, 240, 255, 0.3);
  border-radius: 50%;
  position: relative;
  animation: spin-slow 20s linear infinite;
  display: flex;
  justify-content: center;
  align-items: center;
}

.tech-shape::before {
  content: '';
  position: absolute;
  width: 250px;
  height: 250px;
  border: 2px solid var(--accent-purple);
  border-radius: 50%;
  border-top-color: transparent;
  border-bottom-color: transparent;
  animation: spin-fast 10s linear infinite reverse;
}

.tech-shape::after {
  content: '';
  position: absolute;
  width: 100px;
  height: 100px;
  background: var(--accent-gradient);
  border-radius: 50%;
  filter: blur(30px);
  opacity: 0.6;
  animation: pulse-glow 4s ease-in-out infinite;
}

@keyframes spin-slow {
  100% { transform: rotate(360deg); }
}

@keyframes spin-fast {
  100% { transform: rotate(360deg); }
}

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

/* --- Brand Marquee --- */
.marquee-section {
  background: var(--bg-dark);
  padding: 3rem 0;
  overflow: hidden;
  border-top: 1px solid rgba(0, 240, 255, 0.1);
  border-bottom: 1px solid rgba(0, 240, 255, 0.1);
}

.marquee-container {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.marquee-container::before,
.marquee-container::after {
  content: '';
  position: absolute;
  top: 0;
  width: 200px;
  height: 100%;
  z-index: 2;
}

.marquee-container::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-dark) 0%, transparent 100%);
}

.marquee-container::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-dark) 0%, transparent 100%);
}

.marquee-content {
  display: inline-block;
  animation: scroll-marquee 30s linear infinite;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.5rem;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  color: rgba(255,255,255,0.2);
  margin: 0 3rem;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.marquee-item:hover {
  color: var(--accent-cyan);
  text-shadow: var(--shadow-glow);
}

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

/* --- Services Section --- */
.services {
  padding: 8rem 0;
  background-color: var(--bg-secondary);
  border-bottom: 1px solid rgba(0, 240, 255, 0.1);
}

.section-header {
  text-align: center;
  margin-bottom: 5rem;
}

.section-header h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
}

.service-card {
  background: rgba(5, 8, 20, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 3rem 2rem;
  border-radius: 10px;
  border: 1px solid rgba(0, 240, 255, 0.15);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-gradient);
  box-shadow: var(--shadow-glow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
  z-index: 2;
}

.service-card:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 10px 30px rgba(0, 240, 255, 0.1);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 70px;
  height: 70px;
  background: rgba(0, 240, 255, 0.05);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem;
  color: var(--accent-cyan);
  font-size: 2rem;
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  background: var(--accent-cyan);
  color: var(--bg-dark);
  box-shadow: var(--shadow-glow);
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-light);
}

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

/* --- Tech Stack Section --- */
.tech-stack {
  padding: 8rem 0;
  background-color: var(--bg-primary);
  background-image: 
    linear-gradient(rgba(176, 38, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(176, 38, 255, 0.02) 1px, transparent 1px);
  background-size: 50px 50px;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 2rem;
  text-align: center;
}

.tech-item {
  padding: 2rem 1rem;
  background: rgba(5, 8, 20, 0.8);
  border-radius: 10px;
  border: 1px solid rgba(176, 38, 255, 0.15);
  transition: all 0.4s ease;
  cursor: none;
}

.tech-item i {
  font-size: 3rem;
  color: rgba(255,255,255,0.3);
  margin-bottom: 1rem;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.tech-item p {
  font-weight: 700;
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 1px;
  color: var(--text-secondary);
  margin: 0;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.tech-item:hover {
  border-color: var(--accent-purple);
  box-shadow: 0 0 20px rgba(176, 38, 255, 0.2);
}

.tech-item:hover i {
  color: var(--accent-purple);
  text-shadow: 0 0 15px rgba(176, 38, 255, 0.8);
}

/* --- About Section --- */
.about {
  padding: 8rem 0;
  background-color: var(--bg-secondary);
  border-top: 1px solid rgba(0, 240, 255, 0.1);
  border-bottom: 1px solid rgba(0, 240, 255, 0.1);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text h2 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.stats-container {
  display: flex;
  gap: 3rem;
  margin-top: 3rem;
}

.stat-item h4 {
  font-size: 3rem;
  color: var(--accent-cyan);
  margin-bottom: 0.5rem;
  text-shadow: var(--shadow-glow);
}

.stat-item p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-family: 'Orbitron', sans-serif;
}

.about-image {
  position: relative;
}

.about-image img {
  width: 100%;
  border-radius: 10px;
  filter: grayscale(80%) contrast(120%);
  border: 1px solid rgba(0, 240, 255, 0.3);
}

.about-image::after {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100%;
  height: 100%;
  border: 2px dashed var(--accent-cyan);
  border-radius: 10px;
  z-index: -1;
  opacity: 0.5;
}

/* --- Contact Section --- */
.contact {
  padding: 8rem 0;
  background-color: var(--bg-primary);
  color: white;
  position: relative;
}

.contact-container {
  max-width: 800px;
  margin: 0 auto;
  background: rgba(5, 8, 20, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 4rem;
  border-radius: 10px;
  border: 1px solid rgba(0, 240, 255, 0.2);
  box-shadow: 0 0 40px rgba(0, 240, 255, 0.05);
}

.contact-container h2 {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 3rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-control {
  width: 100%;
  padding: 1.2rem 1.5rem;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 5px;
  color: white;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-control::placeholder {
  color: rgba(255,255,255,0.3);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: inset 0 0 10px rgba(0, 240, 255, 0.1), 0 0 15px rgba(0, 240, 255, 0.2);
  background: rgba(0, 240, 255, 0.02);
}

textarea.form-control {
  min-height: 180px;
  resize: vertical;
}

.btn-submit {
  width: 100%;
  padding: 1.2rem;
  font-size: 1.1rem;
}

/* --- Footer --- */
footer {
  background-color: var(--bg-dark);
  color: var(--text-secondary);
  padding: 5rem 0 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-logo {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  display: inline-block;
}

.footer-about p {
  max-width: 400px;
}

.footer-links h4 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: var(--text-light);
}

.footer-links ul li {
  margin-bottom: 1rem;
}

.footer-links ul li a {
  color: var(--text-secondary);
}

.footer-links ul li a:hover {
  color: var(--accent-cyan);
  padding-left: 5px;
  text-shadow: 0 0 5px rgba(0, 240, 255, 0.5);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.3);
  font-size: 0.9rem;
}

/* --- Utilities & Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

/* --- Custom Tech Cursor / Reticle --- */
@media (pointer: fine) {
  body, a, button, input, select, textarea {
    cursor: none;
  }
}

.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 4px;
  height: 4px;
  background-color: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 10000;
}

.cursor-reticle {
  position: fixed;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9999;
  transition: width 0.2s, height 0.2s, transform 0.1s linear;
}

.reticle-line {
  position: absolute;
  background-color: rgba(0, 240, 255, 0.6);
  transition: all 0.2s;
}

.reticle-line.top { top: 0; left: 50%; width: 2px; height: 10px; transform: translateX(-50%); }
.reticle-line.bottom { bottom: 0; left: 50%; width: 2px; height: 10px; transform: translateX(-50%); }
.reticle-line.left { top: 50%; left: 0; width: 10px; height: 2px; transform: translateY(-50%); }
.reticle-line.right { top: 50%; right: 0; width: 10px; height: 2px; transform: translateY(-50%); }

.cursor-reticle.hovered {
  width: 60px;
  height: 60px;
  animation: spin-reticle 4s linear infinite;
}

.cursor-reticle.hovered .reticle-line {
  background-color: var(--accent-purple);
  box-shadow: 0 0 10px var(--accent-purple);
}

@keyframes spin-reticle {
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Enhanced 3D Tilt */
.tilt-card {
  transform-style: preserve-3d;
  transform: perspective(1000px);
}

.tilt-inner {
  transform: translateZ(40px);
}

/* --- Responsive --- */
@media (max-width: 992px) {
  .hero .container, .about-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-content h1 {
    font-size: 3rem;
  }
  
  .hero-content p {
    margin: 0 auto 2.5rem;
  }
  
  .hero-btns {
    justify-content: center;
  }
  
  .tech-shape {
    margin: 0 auto;
    width: 250px;
    height: 250px;
  }
  
  .tech-shape::before {
    width: 180px;
    height: 180px;
  }
  
  .tech-shape::after {
    width: 70px;
    height: 70px;
  }
  
  .about-image {
    order: -1;
  }
  
  .stats-container {
    justify-content: center;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--nav-height));
    background: rgba(5, 8, 20, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: left 0.3s ease;
  }
  
  .nav-links.active {
    left: 0;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .contact-container {
    padding: 2rem;
  }
}
