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

/* Body */
body {
  font-family: "Poppins", sans-serif;
  background: linear-gradient(135deg, #eef2ff, #fdf4ff);
  color: #1f2937;
  transition: all 0.4s ease;
  scroll-behavior: smooth;
}

/* Navbar */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  position: sticky;
  top: 0;
  backdrop-filter: blur(10px);
  background: rgba(17, 24, 39, 0.8);
  color: white;
  z-index: 1000;
}

nav h2 {
  font-weight: bold;
  letter-spacing: 1px;
}

nav ul {
  display: flex;
  gap: 25px;
  list-style: none;
}

nav a {
  color: #d1d5db;
  text-decoration: none;
  font-weight: 500;
  position: relative;
}

/* underline animation */
nav a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  background: #60a5fa;
  left: 0;
  bottom: -4px;
  transition: 0.3s;
}

nav a:hover::after {
  width: 100%;
}

/* Button */
#themeToggle {
  background: linear-gradient(135deg, #3b82f6, #9333ea);
  border: none;
  padding: 6px 12px;
  color: white;
  cursor: pointer;
  border-radius: 20px;
}

/* Hero */
.hero {
  text-align: center;
  margin: 20px;
  padding: 120px 20px;
  background: linear-gradient(135deg, #3b82f6, #9333ea);
  color: white;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 10px;
}

.hero p {
  font-size: 20px;
  opacity: 0.9;
}

/* Sections */
section {
  max-width: 1000px;
  margin: auto;
  padding: 70px 20px;
}

h2 {
  margin-bottom: 25px;
  font-size: 28px;
  position: relative;
}

/* fancy underline */
h2::after {
  content: "";
  width: 50px;
  height: 4px;
  background: linear-gradient(135deg, #3b82f6, #9333ea);
  position: absolute;
  bottom: -10px;
  left: 0;
  border-radius: 5px;
}

#about p {
  line-height: 1.6;
  font-size: 18px;
  color: #374151;
}

/* Skills */
#skills ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 15px;
}

#skills li {
  background: rgba(230, 228, 228, 0.7);
  backdrop-filter: blur(10px);
  padding: 15px;
  border-radius: 12px;
  font-weight: 500;
  transition: 0.3s;
}

#skills li:hover {
  transform: translateY(-5px);
}

/* Projects */
.project {
  background: rgba(230, 228, 228, 0.7);
  backdrop-filter: blur(12px);
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 15px;
  transition: 0.3s;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.project:hover {
  transform: translateY(-8px) scale(1.01);
}

.project h3 {
  margin-bottom: 10px;
}

.project a {
  text-decoration: none;
  color: #7c3aed;
  font-weight: bold;
}

/* Contact */
#contact p {
  margin: 10px 0;
}

/* DARK MODE */
.dark {
  background: linear-gradient(135deg, #020617, #0f172a);
  color: #e5e7eb;
}

.dark nav {
  background: rgba(2, 6, 23, 0.8);
}

.dark .hero {
  background: linear-gradient(135deg, #1e293b, #020617);
}

.dark #skills li,
.dark .project {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.dark a {
  color: #a78bfa;
}
