html {
  scroll-behavior: smooth;
}

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

body {
  font-family: 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: #333;
  background: linear-gradient(135deg, #f0f4ff, #ffeef0, #fffde7);
  transition: background 0.3s ease, color 0.3s ease;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.header {
  background: linear-gradient(to right, #6a11cb, #2575fc);
  color: white;
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.header h1 {
  font-size: 2rem;
}

.header nav {
  margin-top: 10px;
}

.header a {
  color: white;
  text-decoration: none;
  margin: 0 15px;
  font-weight: bold;
  transition: color 0.3s;
}

.header a:hover,
.header a.active {
  color: #ffd700;
}

.dark-mode .header {
  background: #1e1e1e;
}

.dark-mode .header a:hover,
.dark-mode .header a.active {
  color: #f0f0f0;
}

.social-icons {
  position: absolute;
  right: 80px;
  top: 20px;
}

.social-icons a {
  display: inline-block;
  margin-left: 10px;
  transition: transform 0.3s ease;
}

.social-icons a:hover {
  transform: scale(1.2);
}

.dark-mode-btn {
  position: absolute;
  right: 10px;
  top: 10px;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 1000;
}

.hero {
  background: linear-gradient(120deg, #89f7fe, #66a6ff);
  padding: 60px 0;
  text-align: center;
  color: white;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.profile-img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid white;
  transition: transform 0.3s ease;
}

.profile-img:hover {
  transform: scale(1.1);
}

.download-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 25px;
  background: #ff6f61;
  color: white;
  text-decoration: none;
  border-radius: 30px;
  font-weight: bold;
  transition: background 0.3s ease;
}

.download-btn:hover {
  background: #ff3b2e;
}

.dark-mode .download-btn {
  background: #e63946;
}

.dark-mode .download-btn:hover {
  background: #ff4d5a;
}

.section {
  padding: 60px 0;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  margin: 40px auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.dark-mode .section {
  background: #2a2a2a;
  color: #f0f0f0;
}

.dark-mode .profile-img {
  border-color: #f0f0f0;
}

.section h2 {
  font-size: 2rem;
  color: #3b4c94;
  margin-bottom: 20px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.skill-card {
  background: linear-gradient(135deg, #ffffff, #f0f0f5);
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}

.skill-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.project-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.project-card h4 {
  padding: 15px 15px 5px;
  font-size: 1.1rem;
  color: #3b4c94;
}

.dark-mode .project-card h4 {
  color: #ddd;
}

.project-card p {
  padding: 0 15px 10px;
  font-size: 0.95rem;
  color: #555;
}

.project-card a {
  display: inline-block;
  margin: 0 15px 15px;
  color: #2575fc;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.project-card a:hover {
  color: #6a11cb;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.footer {
  background: #2575fc;
  color: white;
  text-align: center;
  padding: 20px 0;
}

.dark-mode .footer {
  background: #1e1e1e;
}