:root {
  /* Color Palette - Premium Dark Mode */
  --bg-primary: #0a0a0a;
  --bg-secondary: #0f0f12;
  --accent-primary: #00f2ff;
  --accent-secondary: #7000ff;
  --text-primary: #ffffff;
  --text-secondary: #a0a0b0;
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-glow: rgba(0, 242, 255, 0.15);

  /* Typography */
  --font-main: 'Inter', sans-serif;
  --font-heading: 'Outfit', sans-serif;

  /* Spacing */
  --nav-height: 80px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
}

#particles-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0px);
  }
}

@keyframes aurora {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* Utility Classes */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 20px -5px rgba(0, 242, 255, 0.3);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px -5px rgba(112, 0, 255, 0.4);
}

.btn-outline {
  display: inline-block;
  padding: 12px 30px;
  background: transparent;
  border: 2px solid var(--accent-primary);
  color: var(--accent-primary);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background: var(--accent-primary);
  color: var(--bg-primary);
  box-shadow: 0 0 20px var(--glass-glow);
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--nav-height);
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 1000;
  border-bottom: 1px solid var(--glass-border);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background: var(--accent-primary);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

/* Hamburger Menu */
.hamburger {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--text-primary);
}

/* Hero Section */
#home {
  height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  /* Aurora Effect Background */
  background:
    radial-gradient(circle at 15% 50%, rgba(0, 242, 255, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 85% 30%, rgba(112, 0, 255, 0.08) 0%, transparent 50%);
}

#home::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  z-index: -1;
}

.hero-content {
  max-width: 900px;
  animation: fadeIn 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -2px;
  font-weight: 800;
}

.hero-subtitle {
  font-size: 1.4rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.tech-stack-hero {
  display: flex;
  gap: 1.5rem;
  margin-top: 4rem;
  color: var(--text-secondary);
  font-size: 1rem;
  align-items: center;
  border-top: 1px solid var(--glass-border);
  padding-top: 1.5rem;
}

.tech-stack-hero i {
  font-size: 1.5rem;
  color: var(--text-primary);
  opacity: 0.7;
  transition: all 0.3s;
}

.tech-stack-hero i:hover {
  opacity: 1;
  color: var(--accent-primary);
  transform: translateY(-3px);
}

/* Sections Global */
section {
  padding: 120px 0;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  margin-bottom: 4rem;
  text-align: center;
  font-weight: 700;
  letter-spacing: -1px;
}

.section-title span {
  position: relative;
  display: inline-block;
}

.section-title span::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0px;
  width: 100%;
  height: 8px;
  background: var(--glass-glow);
  z-index: -1;
  border-radius: 4px;
}

/* About Section */
#about {
  background-color: var(--bg-secondary);
  position: relative;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-text p {
  margin-bottom: 1.8rem;
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.about-image div {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  animation: float 6s ease-in-out infinite;
}

/* Skills Section */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
}

.skill-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 2.5rem 1.5rem;
  border-radius: 20px;
  text-align: center;
  transition: all 0.4s ease;
  backdrop-filter: blur(10px);
}

.skill-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent-primary);
  box-shadow: 0 10px 30px var(--glass-glow);
}

.skill-icon {
  font-size: 2.8rem;
  margin-bottom: 1.2rem;
  color: var(--accent-primary);
  background: -webkit-linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.skill-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.skill-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Projects Section */
#projects {
  background-color: var(--bg-secondary);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.project-card {
  background: var(--bg-primary);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  transition: all 0.4s ease;
  position: relative;
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: var(--glass-border);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.project-content {
  padding: 2.5rem;
}

.project-tags {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
}

.tag {
  font-size: 0.75rem;
  padding: 5px 14px;
  background: rgba(0, 242, 255, 0.08);
  color: var(--accent-primary);
  border-radius: 20px;
  border: 1px solid rgba(0, 242, 255, 0.1);
  font-weight: 500;
}

.project-card h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
}

/* Education */
#education {
  background: var(--bg-primary);
}

.education-item {
  padding: 2rem;
  background: var(--glass-bg);
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--accent-primary);
  transition: transform 0.3s;
}

.education-item:hover {
  transform: translateX(10px);
  background: rgba(255, 255, 255, 0.03);
}

/* Contact Section */
.contact-container {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  padding: 3rem;
  background: var(--glass-bg);
  border-radius: 30px;
  border: 1px solid var(--glass-border);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1.2rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--text-primary);
  font-family: var(--font-main);
  transition: all 0.3s ease;
  font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  background: rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 15px rgba(0, 242, 255, 0.1);
}

/* Social Links */
.social-links {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  font-size: 1.8rem;
}

.social-links a {
  transition: transform 0.3s ease, color 0.3s ease;
  color: var(--text-secondary);
}

.social-links a:hover {
  transform: translateY(-5px) scale(1.1);
  color: var(--accent-primary) !important;
}

/* Footer */
footer {
  padding: 3rem 0;
  text-align: center;
  color: var(--text-secondary);
  border-top: 1px solid var(--glass-border);
  background: var(--bg-secondary);
  font-size: 0.9rem;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-primary);
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }

  .nav-links {
    display: none;
    /* Handled by JS */
  }

  .hamburger {
    display: block;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .education-grid {
    grid-template-columns: 1fr;
  }

  .contact-container {
    padding: 1.5rem;
    width: 100%;
    margin: 0;
    border: none;
    background: transparent;
  }
}