@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;500;700&display=swap');

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

body {
  font-family: 'Poppins', sans-serif;
  transition: background 0.3s, color 0.3s;
  line-height: 1.6;
  background: var(--bg);
  background-attachment: fixed;
  background-size: cover;
}

/* Light Mode */
body.light {
  --bg: linear-gradient(to right, #f4f4f9, #e0f7fa);
  --text: #1a1a1a;
  --card: rgba(255, 255, 255, 0.7);
  --accent: #007bff;
}

/* Dark Mode */
body.dark {
  --bg: linear-gradient(to right, #0f0f0f, #1e1e1e);
  --text: #f5f5f5;
  --card: rgba(0, 0, 0, 0.6);
  --accent: #33aaff;
}

/* Navbar */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: var(--card);
  box-shadow: 0 3px 6px rgba(0,0,0,0.2);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
}

header h1 {
  font-size: 1.8rem;
  color: var(--accent);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

nav a {
  text-decoration: none;
  font-weight: 500;
  color: var(--text);
  transition: color 0.3s;
}

nav a:hover {
  color: var(--accent);
}

#theme-toggle {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--text);
}

/* Sections */
section {
  padding: 3rem 2rem;
  background: var(--card);
  color: var(--text);
  text-align: center;
  margin: 2rem auto;
  max-width: 1000px;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  backdrop-filter: blur(8px);
}

/* Section Headings */
h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

h2::after {
  content: '';
  width: 60%;
  height: 3px;
  background: var(--accent);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -8px;
}

/* Profile Pic */
#about img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--accent);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

#about img:hover {
  transform: scale(1.05);
}

/* Skills */
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.skills-grid span {
  padding: 0.6rem 1.2rem;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid var(--accent);
  border-radius: 10px;
  transition: transform 0.2s, background 0.3s;
  cursor: default;
}

.skills-grid span:hover {
  background: var(--accent);
  color: white;
  transform: scale(1.05);
}

/* Project Cards */
.project {
  background: var(--card);
  padding: 1.5rem;
  margin: 1.5rem auto;
  max-width: 800px;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
  text-align: left;
  backdrop-filter: blur(6px);
}

/* Footer */
footer {
  text-align: center;
  padding: 1.2rem;
  background: var(--card);
  color: var(--text);
  font-size: 0.9rem;
  backdrop-filter: blur(5px);
}