:root {
  /* Dark Theme Palette */
  --bg-color: #0B0E14;
  --bg-surface: rgba(18, 24, 38, 0.6);
  --bg-surface-hover: rgba(28, 36, 56, 0.8);
  --text-primary: #F3F4F6;
  --text-secondary: #9CA3AF;

  /* Brand Accents */
  --accent-primary: #14F195;
  --accent-secondary: #00C2FF;
  --gradient-brand: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  --glow-color: rgba(20, 241, 149, 0.3);
  --glow-color-secondary: rgba(0, 194, 255, 0.2);

  /* Glassmorphism */
  --glass-border: 1px solid rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --glass-blur: blur(12px);

  /* Spacing */
  --section-padding: 100px 20px;
}

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

html {
  scroll-behavior: smooth;
}

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

/* Background Ambient Shapes */
.bg-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  opacity: 0.5;
  pointer-events: none;
}

.shape-1 {
  width: 50vw;
  height: 50vw;
  max-width: 500px;
  max-height: 500px;
  background: var(--glow-color);
  top: -100px;
  left: -200px;
}

.shape-2 {
  width: 60vw;
  height: 60vw;
  max-width: 600px;
  max-height: 600px;
  background: var(--glow-color-secondary);
  top: 40%;
  right: -250px;
}

.shape-3 {
  width: 40vw;
  height: 40vw;
  max-width: 400px;
  max-height: 400px;
  background: var(--glow-color);
  bottom: -100px;
  left: 10%;
}

/* Typography Utilities */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
}

.gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.dot {
  color: var(--accent-primary);
}

.text-light {
  color: var(--text-secondary);
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-8 {
  margin-top: 2rem;
}

.mt-12 {
  margin-top: 3rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.text-center {
  text-align: center;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.max-w-2xl {
  max-width: 42rem;
}

/* Glassmorphism Container */
.glass {
  background: var(--bg-surface);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: var(--glass-border);
}

.glass-card {
  background: var(--bg-surface);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: 16px;
  box-shadow: var(--glass-shadow);
  padding: 30px;
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 5%;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.navbar nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--accent-primary);
}

.btn-nav {
  padding: 8px 20px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.btn-nav:hover {
  background: var(--text-primary);
  color: var(--bg-color);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
  /* Above mobile menu */
}

.nav-toggle span {
  width: 25px;
  height: 2px;
  background: white;
  transition: 0.3s;
}

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

.badge {
  display: inline-block;
  padding: 8px 18px;
  background: rgba(20, 241, 149, 0.1);
  border: 1px solid rgba(20, 241, 149, 0.2);
  color: var(--accent-primary);
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  letter-spacing: -1px;
}

.hero .subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.cta-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 34px;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-glow {
  background: var(--gradient-brand);
  color: var(--bg-color);
  box-shadow: 0 0 20px var(--glow-color);
  border: none;
}

.btn-glow:hover {
  box-shadow: 0 0 30px var(--glow-color);
  transform: translateY(-3px);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-3px);
}

/* Tech Stack Pills */
.tech-stack-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.tech-pill {
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
  transition: border-color 0.3s, color 0.3s;
}

.tech-pill:hover {
  border-color: var(--accent-primary);
  color: var(--text-primary);
}

/* Sections */
.section {
  padding: var(--section-padding);
}

.section-container {
  max-width: 1000px;
  margin: 0 auto;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.5rem);
  margin-bottom: 2rem;
}

/* About */
.about-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

/* Skills */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}

.skill-card {
  padding: 16px;
  text-align: center;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.skill-card:hover {
  background: var(--bg-surface-hover);
  border-color: var(--accent-primary);
  color: var(--text-primary);
  transform: translateY(-5px);
}

/* Experience Timeline */
.timeline {
  position: relative;
  padding-left: 30px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255, 255, 255, 0.1);
}

.timeline-item {
  position: relative;
}

.timeline-dot {
  position: absolute;
  left: -42px;
  top: 32px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-primary);
  box-shadow: 0 0 10px var(--accent-primary);
  border: 4px solid var(--bg-color);
  transition: transform 0.3s ease;
}

.timeline-item:hover .timeline-dot {
  transform: scale(1.3);
}

.timeline-date {
  font-size: 0.85rem;
  color: var(--accent-primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.project-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  font-size: 0.75rem;
  padding: 4px 10px;
  background: rgba(20, 241, 149, 0.1);
  color: var(--accent-primary);
  border-radius: 4px;
  font-weight: 600;
}

/* Contact */
.contact-card {
  padding: 60px 40px;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.icon {
  margin-right: 8px;
}

/* Footer */
.footer {
  padding: 30px 5%;
  text-align: center;
  margin-top: 40px;
}

.footer-motto {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 8px;
}

/* Hover Effects */
.hover-glow:hover {
  box-shadow: 0 0 30px rgba(0, 194, 255, 0.15);
  border-color: rgba(0, 194, 255, 0.3);
  transform: translateY(-5px);
}

/* Animations & Scroll Reveals */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

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

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

/* Responsive */
@media (max-width: 768px) {
  .hidden-mobile {
    display: none;
  }

  .navbar {
    padding: 15px 20px;
  }

  .nav-toggle {
    display: flex;
  }

  .navbar nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 20px 0;
    gap: 15px;
    clip-path: circle(0% at 100% 0%);
    transition: clip-path 0.4s ease-in-out;
    border-bottom: var(--glass-border);
  }

  .navbar nav.open {
    clip-path: circle(150% at 50% 50%);
  }

  .hero h1 {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }

  .section {
    padding: 60px 20px;
  }

  .timeline-dot {
    left: -40px;
  }
}

@media (max-width: 480px) {
  .hero-content {
    margin-top: 20px;
  }

  .cta-group {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
  }

  .contact-links {
    flex-direction: column;
  }

  .section-container {
    padding: 0;
  }

  .glass-card {
    padding: 20px;
  }
}