:root {
  --primary: #00d4ff;
  --primary-dark: #0099cc;
  --primary-light: #33ddff;
  --accent: #ff6b6b;
  --accent-light: #ff8e8e;
  --bg-primary: #0a0a0f;
  --bg-secondary: #1a1a2e;
  --bg-tertiary: #16213e;
  --text: #e2e8f0;
  --text-light: #f8fafc;
  --text-dark: #94a3b8;
  --success: #00ff88;
  --warning: #ffaa00;
  --error: #ff4757;
  --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --shadow-glow: 0 0 30px rgba(0, 212, 255, 0.3);
  --shadow-soft: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

/* Animated Background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 20%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 107, 107, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 40% 70%, rgba(0, 212, 255, 0.3) 0%, transparent 50%);
  z-index: -2;
  animation: backgroundFloat 20s ease-in-out infinite;
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(45deg, transparent 49%, rgba(0, 212, 255, 0.03) 50%, transparent 51%),
    linear-gradient(-45deg, transparent 49%, rgba(255, 107, 107, 0.03) 50%, transparent 51%);
  background-size: 100px 100px;
  z-index: -1;
  animation: gridMove 15s linear infinite;
}

@keyframes backgroundFloat {
  0%, 100% { transform: rotate(0deg) scale(1); }
  33% { transform: rotate(120deg) scale(1.1); }
  66% { transform: rotate(240deg) scale(0.9); }
}

@keyframes gridMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(100px, 100px); }
}

/* Floating Elements */
.floating-shapes {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.shape {
  position: absolute;
  background: var(--gradient-3);
  border-radius: 50%;
  opacity: 0.1;
  animation: float 6s ease-in-out infinite;
}

.shape:nth-child(1) {
  width: 80px;
  height: 80px;
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.shape:nth-child(2) {
  width: 120px;
  height: 120px;
  top: 70%;
  right: 10%;
  animation-delay: 2s;
}

.shape:nth-child(3) {
  width: 60px;
  height: 60px;
  top: 40%;
  left: 80%;
  animation-delay: 4s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-30px) rotate(180deg); }
}

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

/* Typography */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h1 { 
  font-size: clamp(2.5rem, 5vw, 4rem);
  animation: slideInUp 1s ease-out;
}

h2 { 
  font-size: clamp(2rem, 4vw, 3rem);
  animation: slideInUp 1s ease-out 0.2s both;
}

h3 { 
  font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 { 
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

p {
  margin-bottom: 1.5rem;
  animation: fadeInUp 1s ease-out 0.4s both;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

a:hover {
  color: var(--primary-light);
  transform: translateY(-2px);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
}

.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;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.4);
  border-color: var(--primary);
}

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

.btn:active {
  transform: translateY(-1px);
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(10, 10, 15, 0.9);
  backdrop-filter: blur(25px);
  border-bottom: 1px solid rgba(0, 212, 255, 0.3);
  z-index: 1000;
  padding: 1.2rem 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 50%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(255, 107, 107, 0.08) 0%, transparent 50%);
  z-index: -1;
}

header.scrolled {
  background: rgba(10, 10, 15, 0.95);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  padding: 1rem 0;
  border-bottom-color: rgba(0, 212, 255, 0.4);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  height: 100%;
  min-height: 56px;
  gap: 0;
}

.logo {
  flex: 1 1 0;
  text-align: left;
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  cursor: pointer;
  margin: 0;
  line-height: 1;
  padding: 0;
}

nav {
  display: flex;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(15px);
  border-radius: 50px;
  padding: 0.6rem;
  border: 1px solid rgba(0, 212, 255, 0.2);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  margin: 0;
  z-index: 1;
}

.nav-links {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(15px);
  border-radius: 50px;
  padding: 0.6rem;
  border: 1px solid rgba(0, 212, 255, 0.2);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  margin: 0;
  z-index: 1;
}

nav a {
  color: var(--text);
  font-weight: 600;
  position: relative;
  padding: 0.8rem 1.8rem;
  border-radius: 30px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  overflow: hidden;
  text-align: center;
}

nav a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  opacity: 0;
  transition: all 0.4s ease;
  border-radius: 30px;
  z-index: -1;
}

nav a::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transition: all 0.5s ease;
  transform: translate(-50%, -50%);
  z-index: -1;
}

nav a:hover::before {
  opacity: 1;
}

nav a:hover::after {
  width: 120%;
  height: 120%;
}

nav a:hover {
  color: var(--text-light);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 212, 255, 0.3);
}

nav a.active {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--text-light);
  box-shadow: 0 5px 20px rgba(0, 212, 255, 0.4);
}

/* Hamburger menu */
.nav-toggle {
  display: none;
  margin-left: 1rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(0, 212, 255, 0.3);
  color: var(--text);
  font-size: 1.3rem;
  cursor: pointer;
  transition: all 0.4s ease;
  padding: 0.8rem;
  border-radius: 15px;
  overflow: hidden;
  z-index: 2;
}

/* Sections */
section {
  padding: 8rem 0;
  position: relative;
}

section:first-of-type {
  padding-top: 10rem;
}

.section-title {
  position: relative;
  margin-bottom: 4rem;
  text-align: center;
  animation: slideInUp 1s ease-out;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: var(--gradient-3);
  border-radius: 2px;
  animation: scaleIn 1s ease-out 0.5s both;
}

/* Animations */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: translateX(-50%) scaleX(0);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) scaleX(1);
  }
}

@keyframes rotateIn {
  from {
    opacity: 0;
    transform: rotate(-180deg) scale(0);
  }
  to {
    opacity: 1;
    transform: rotate(0deg) scale(1);
  }
}

/* Home Section */
.section-home {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.home-content {

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



.home-text h2 {
  color: var(--accent);
  margin-bottom: 2rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  animation: slideInUp 1s ease-out 0.3s both;
}

.home-text p {
  margin-bottom: 2.5rem;
  color: var(--text-dark);
  font-size: 1.1rem;
  line-height: 1.8;
}

.social-links {
  display: flex;
  gap: 2rem;
  margin-bottom: 3rem;
  animation: fadeInUp 1s ease-out 0.6s both;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.2rem;
  height: 3.2rem;
  min-width: 3.2rem;
  min-height: 3.2rem;
  aspect-ratio: 1/1;
  color: var(--text);
  font-size: 1.8rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0, 212, 255, 0.2);
}

.social-links a:hover {
  color: var(--primary);
  transform: translateY(-5px) rotate(10deg);
  box-shadow: var(--shadow-glow);
  background: rgba(0, 212, 255, 0.1);
}

.profile-img {
  width: 100%;
  max-width: 450px;
  height: 450px;
  object-fit: cover;
  object-position: center;
  border-radius: 35% 65% 70% 30% / 35% 35% 65% 65%;
  border: 4px solid transparent;
  background: linear-gradient(var(--bg-primary), var(--bg-primary)) padding-box,
              linear-gradient(135deg, var(--primary), var(--accent), var(--primary-light)) border-box;
  box-shadow: 
    var(--shadow-glow),
    0 0 0 8px rgba(0, 212, 255, 0.1),
    0 0 0 16px rgba(255, 107, 107, 0.05);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  animation: rotateIn 1s ease-out 0.8s both, morphShape 8s ease-in-out infinite;
  position: relative;
}

.profile-img::before {
  content: '';
  position: absolute;
  inset: -8px;
  background: linear-gradient(135deg, var(--primary), var(--accent), var(--primary-light));
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.profile-img::after {
  content: '';
  position: absolute;
  inset: -4px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: inherit;
  z-index: -2;
  filter: blur(20px);
  opacity: 0;
  transition: all 0.4s ease;
}

@keyframes morphShape {
  0%, 100% { 
    border-radius: 35% 65% 70% 30% / 35% 35% 65% 65%;
  }
  25% { 
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }
  50% { 
    border-radius: 40% 60% 60% 40% / 70% 30% 70% 30%;
  }
  75% { 
    border-radius: 70% 30% 40% 60% / 40% 70% 30% 60%;
  }
}

.profile-img:hover {
  border-radius: 50%;
  transform: scale(1.08) rotate(8deg);
  box-shadow: 
    0 0 60px rgba(0, 212, 255, 0.6),
    0 0 0 12px rgba(0, 212, 255, 0.15),
    0 0 0 24px rgba(255, 107, 107, 0.08),
    0 20px 40px rgba(0, 0, 0, 0.3);
}

.profile-img:hover::before {
  opacity: 0.3;
}

.profile-img:hover::after {
  opacity: 0.8;
  filter: blur(30px);
}

.home-image {
  display: flex;
  justify-content: center;
  position: relative;
}

.home-image::before {
  content: '';
  position: absolute;
  width: 120%;
  height: 120%;
  background: var(--gradient-1);
  border-radius: 50%;
  opacity: 0.1;
  z-index: -1;
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.1; }
  50% { transform: scale(1.1); opacity: 0.2; }
}

/* About Section */
.section-about {
  background: rgba(26, 26, 46, 0.3);
  backdrop-filter: blur(10px);
}

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

.about-text p {
  color: var(--text-dark);
  margin-bottom: 2rem;
  font-size: 1.1rem;
  line-height: 1.8;
}

.about-details {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.education, .coding-profiles {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  padding: 2.5rem;
  border-radius: 20px;
  border: 1px solid rgba(0, 212, 255, 0.2);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.education::before,
.coding-profiles::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-3);
}

.education:hover,
.coding-profiles:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border-color: var(--primary);
}

.education h3, .coding-profiles h3 {
  margin-bottom: 2rem;
  color: var(--primary);
}

.coding-profiles ul {
  list-style: none;
}

.coding-profiles li {
  margin-bottom: 1rem;
}

.coding-profiles a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem;
  border-radius: 10px;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.03);
}

.coding-profiles a:hover {
  background: rgba(0, 212, 255, 0.1);
  transform: translateX(10px);
}

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

.project-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border-radius: 25px;
  padding: 3rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0, 212, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: var(--gradient-2);
  border-radius: 0 25px 0 100%;
  opacity: 0.3;
}

.project-card:hover {
  transform: translateY(-15px) rotateX(5deg);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
  border-color: var(--primary);
}

.project-card h3 {
  margin-bottom: 1.5rem;
  color: var(--primary);
  position: relative;
  z-index: 1;
}

.project-card p {
  margin-bottom: 2rem;
  color: var(--text-dark);
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.tech-stack span {
  background: rgba(0, 212, 255, 0.15);
  color: var(--primary-light);
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid rgba(0, 212, 255, 0.3);
  transition: all 0.3s ease;
}

.tech-stack span:hover {
  background: rgba(0, 212, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 212, 255, 0.3);
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.project-link:hover {
  gap: 1.2rem;
}

/* Skills Section */
.section-skills {
  background: rgba(22, 33, 62, 0.3);
  backdrop-filter: blur(10px);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 3rem;
  max-width: 900px;
  margin: 0 auto;
}

.skill-category {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 2.5rem;
  transition: all 0.4s ease;
  border: 1px solid rgba(0, 212, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.skill-category::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100px;
  height: 100px;
  background: var(--gradient-1);
  border-radius: 50%;
  opacity: 0.1;
  transition: all 0.4s ease;
}

.skill-category:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  border-color: var(--primary);
}

.skill-category:hover::before {
  top: -20%;
  right: -20%;
  opacity: 0.2;
}

.skill-category h3 {
  color: var(--primary);
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.skill-category ul {
  list-style: none;
  position: relative;
  z-index: 1;
}

.skill-category li {
  margin-bottom: 1rem;
  position: relative;
  padding-left: 2rem;
  color: var(--text-dark);
  transition: all 0.3s ease;
}

.skill-category li::before {
  content: '◆';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-size: 0.8rem;
  transition: all 0.3s ease;
}

.skill-category li:hover {
  color: var(--text);
  transform: translateX(10px);
}

.skill-category li:hover::before {
  color: var(--accent);
  transform: scale(1.5);
}

/* Contact Section */
.section-contact {
  text-align: center;
  background: rgba(26, 26, 46, 0.3);
  backdrop-filter: blur(10px);
}

.section-contact p {
  max-width: 700px;
  margin: 0 auto 3rem;
  color: var(--text-dark);
  font-size: 1.2rem;
  line-height: 1.8;
}

/* Footer */
footer {
  padding: 3rem 0;
  text-align: center;
  background: rgba(10, 10, 15, 0.9);
  color: var(--text-dark);
  border-top: 1px solid rgba(0, 212, 255, 0.2);
}

/* Scroll Animations */
.fade-in {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s ease;
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.8s ease;
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Navbar Flex Layout */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  width: 100%;
  padding: 0 2rem;
}

/* Logo on left */
.logo {
  flex: 1 1 0;
  text-align: left;
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  cursor: pointer;
  margin: 0;
  line-height: 1;
  padding: 0;
}

/* Nav links on right */
.nav-links {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(15px);
  border-radius: 50px;
  padding: 0.6rem;
  border: 1px solid rgba(0, 212, 255, 0.2);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  margin: 0;
  z-index: 1;
}

.nav-links a {
  color: var(--text);
  font-weight: 600;
  position: relative;
  padding: 0.8rem 1.8rem;
  border-radius: 30px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  overflow: hidden;
  text-align: center;
}

.nav-links a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  opacity: 0;
  transition: all 0.4s ease;
  border-radius: 30px;
  z-index: -1;
}

.nav-links a::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transition: all 0.5s ease;
  transform: translate(-50%, -50%);
  z-index: -1;
}

.nav-links a:hover::before {
  opacity: 1;
}

.nav-links a:hover::after {
  width: 120%;
  height: 120%;
}

.nav-links a:hover {
  color: var(--text-light);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 212, 255, 0.3);
}

.nav-links a.active {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--text-light);
  box-shadow: 0 5px 20px rgba(0, 212, 255, 0.4);
}

/* Hamburger menu */
.nav-toggle {
  display: none;
  margin-left: 1rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(0, 212, 255, 0.3);
  color: var(--text);
  font-size: 1.3rem;
  cursor: pointer;
  transition: all 0.4s ease;
  padding: 0.8rem;
  border-radius: 15px;
  overflow: hidden;
  z-index: 2;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .navbar {
    padding: 0 1.5rem;
    min-height: 48px;
  }
  .logo {
    font-size: 1.7rem;
  }
  .nav-links {
    gap: 0.3rem;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 0 1rem;
    min-height: 44px;
  }
  .logo {
    font-size: 1.3rem;
  }
  .nav-links {
    display: none;
    position: fixed;
    top: 90px;
    left: 50%;
    transform: translateX(-50%) translateY(-300%);
    width: 90%;
    max-width: 400px;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(25px);
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    gap: 0.5rem;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    margin: 0;
  }
  .nav-links.show {
    display: flex;
    transform: translateX(-50%) translateY(0);
  }
  .nav-toggle {
    display: block;
    margin-left: 1rem;
    z-index: 3;
  }
}

/* ...existing code... */