:root {
  --bg: #f0f0f5;
  --text: #111;
  --primary: #7c3aed;
  --card-bg: rgba(255, 255, 255, 0.7);
  --glass-blur: blur(10px);
}

body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  transition: background 0.3s, color 0.3s;
}

body.dark {
  --bg: #1c1b22;
  --text: #f9f9f9;
  --card-bg: rgba(30, 30, 30, 0.7);
}

#darkToggle {
  position: fixed;
  top: 15px;
  right: 20px;
  padding: 10px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  z-index: 999;
}

.hero {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(to bottom, #ede9fe, #ffffff);
}

body.dark .hero {
  background: linear-gradient(to bottom, #2c1a4f, #1c1c1c);
}

.profile {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid var(--primary);
  object-fit: cover;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-top: 20px;
  line-height: 1.2;
  color: inherit;
  text-align: center;
  word-break: break-word;
}

.hero h1 span {
  color: var(--primary);
  white-space: nowrap;
}

.hero p {
  font-size: 1.2rem;
  margin: 10px 0;
  color: inherit;
}

.socials a {
  margin: 0 10px;
  text-decoration: none;
  color: var(--primary);
  font-weight: 600;
}

.card {
  max-width: 800px;
  margin: 40px auto;
  background: var(--card-bg);
  backdrop-filter: var(--glass-blur);
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: background 0.3s ease, color 0.3s ease;
}

.card h2 {
  color: var(--primary);
  text-align: center;
  margin-bottom: 20px;
}

.skills-list {
  list-style: none;
  padding-left: 0;
  text-align: center;
  line-height: 2;
}

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

.btn {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 10px 25px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  margin-top: 20px;
  transition: background 0.3s;
}

.btn:hover {
  background: #5b21b6;
}

form input,
form textarea {
  width: 100%;
  padding: 12px;
  margin-top: 10px;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 1rem;
}

form button {
  margin-top: 15px;
}

footer {
  text-align: center;
  padding: 30px;
  color: #666;
  font-size: 0.9rem;
}

/* Responsive Fixes for Mobile */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.95rem;
  }

  .profile {
    width: 100px;
    height: 100px;
  }

  .socials a {
    font-size: 0.95rem;
  }
}
