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

:root {
  /* Elite Cyber-Premium Palette */
  --bg-deep: #050816;
  --bg-dark: #0a0f24;
  --bg-glass: rgba(10, 15, 36, 0.7);
  
  --primary: #8833ff; /* Cosmic Violet */
  --primary-glow: rgba(136, 51, 255, 0.5);
  --accent: #00f2ff; /* Cyan Flare */
  --accent-glow: rgba(0, 242, 255, 0.4);
  
  --text-main: #e2e8f0;
  --text-dim: #94a3b8;
  --text-white: #ffffff;
  
  --border-glass: rgba(255, 255, 255, 0.1);
  --radius-lg: 16px;
  --radius-md: 12px;
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Space Grotesk', sans-serif;
  
  --transition: 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  cursor: none; /* We use custom cursor */
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-body);
  overflow-x: hidden;
}

body {
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background: radial-gradient(circle at 50% 50%, #1a1a3a 0%, #050816 100%);
}

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

.cursor-outline {
  width: 40px;
  height: 40px;
  border: 2px solid var(--primary);
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transition: all 0.2s ease-out;
}

/* Mesh Gradient Background */
.mesh-gradient {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  filter: blur(100px);
  opacity: 0.4;
}

.mesh-ball {
  position: absolute;
  border-radius: 50%;
  animation: float 20s infinite alternate;
}

.ball-1 { width: 600px; height: 600px; background: var(--primary); top: -10%; left: -10%; }
.ball-2 { width: 500px; height: 500px; background: var(--accent); bottom: -10%; right: -10%; animation-duration: 25s; }
.ball-3 { width: 400px; height: 400px; background: #ff3388; top: 40%; left: 30%; animation-duration: 30s; }

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(100px, 50px) scale(1.2); }
}

/* Glassmorphism Classes */
.glass {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section { padding: 8rem 0; position: relative; }
.reveal-up { opacity: 0; transform: translateY(40px); transition: all 1s var(--transition); }
.reveal-up.active { opacity: 1; transform: translateY(0); }

/* Typography */
h1, h2, h3 { font-family: var(--font-heading); font-weight: 800; color: var(--text-white); letter-spacing: -1px; }
.gradient-text { background: linear-gradient(90deg, var(--accent), var(--primary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

/* Navbar */
.navbar {
  position: fixed;
  top: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  min-width: 600px;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  z-index: 1000;
  transition: all var(--transition);
}

.navbar.scrolled {
  top: 1rem;
  padding: 0.5rem 1.5rem;
  min-width: 500px;
}

.nav-container { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.logo { font-size: 1.4rem; font-weight: 800; color: var(--text-white); white-space: nowrap; }
.nav-links { display: flex; list-style: none; gap: 2rem; align-items: center; transition: all 0.5s var(--transition); }
.nav-links a { font-size: 0.9rem; color: var(--text-dim); font-weight: 500; transition: color 0.3s; white-space: nowrap; }
.nav-links a:hover { color: var(--accent); }

.hamburger {
  display: none;
  cursor: pointer;
  color: var(--text-white);
  font-size: 1.5rem;
}

@media (max-width: 968px) {
  .navbar { width: 90%; min-width: unset; top: 1rem; border-radius: 20px; }
  .hamburger { display: block; }
  .nav-links {
    position: fixed;
    top: 5rem;
    right: -100%;
    flex-direction: column;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    width: 250px;
    height: auto;
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid var(--border-glass);
    gap: 1.5rem;
  }
  .nav-links.active { right: 1rem; }
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 0;
}

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

.hero-content h1 { font-size: 4.5rem; line-height: 1.1; margin-bottom: 2rem; }
.hero-content p { font-size: 1.2rem; color: var(--text-dim); margin-bottom: 3rem; max-width: 500px; }

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 450px;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 0 50px var(--primary-glow);
}

.hero-image-wrapper img { width: 100%; display: block; border-radius: 30px; }

.hero-aura {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  z-index: -1;
  animation: pulse 4s infinite alternate;
}

@keyframes pulse {
  0% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.1); }
}

/* Buttons */
.btn {
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.8rem;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
}

.btn-primary { background: var(--primary); color: white; border: none; box-shadow: 0 0 20px var(--primary-glow); }
.btn-primary:hover { transform: scale(1.05); box-shadow: 0 0 30px var(--primary-glow); }

.btn-outline { background: transparent; color: white; border: 1px solid var(--border-glass); }
.btn-outline:hover { background: var(--border-glass); border-color: var(--accent); }

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.project-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  height: 500px;
  transition: all var(--transition);
}

.project-img-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.project-img-container img { width: 100%; height: 100%; object-fit: cover; opacity: 0.5; transition: 0.5s; }

.project-card:hover .project-img-container img { opacity: 0.8; transform: scale(1.1); }

.project-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 3rem;
  z-index: 2;
  background: linear-gradient(to top, rgba(5, 8, 22, 0.9) 0%, transparent 100%);
}

.project-info h3 { font-size: 1.8rem; margin-bottom: 1rem; }
.project-info p { color: var(--text-dim); margin-bottom: 2rem; font-size: 0.9rem; }

.tech-tag {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  font-size: 0.7rem;
  margin-right: 0.5rem;
  color: var(--accent);
  border: 1px solid var(--accent-glow);
}

/* HUD elements */
.hud-corner {
  position: absolute;
  width: 40px;
  height: 40px;
  border: 1px solid var(--accent);
  opacity: 0.3;
}

.tl { top: 20px; left: 20px; border-right: none; border-bottom: none; }
.tr { top: 20px; right: 20px; border-left: none; border-bottom: none; }
.bl { bottom: 20px; left: 20px; border-right: none; border-top: none; }
.br { bottom: 20px; right: 20px; border-left: none; border-top: none; }

/* Experience & Skills */
.exp-card { padding: 3rem; margin-bottom: 2rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 1rem; }
.skill-tag {
  background: var(--bg-dark);
  border: 1px solid var(--border-glass);
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  transition: all 0.3s;
}
.skill-tag:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-5px); }

/* Responsive */
@media (max-width: 1200px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 968px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-content h1 { font-size: 3rem; }
  .hero-content p { margin: 0 auto 2rem; }
  .navbar { min-width: 90%; }
  .grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .projects-grid { grid-template-columns: 1fr; }
  .project-card { height: 400px; }
}

