* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  background: #f6f8fc;
  color: #1f2937;
  line-height: 1.7;
  transition: background 0.3s, color 0.3s;
}

body.dark {
  background: #0f172a;
  color: #e5e7eb;
}

.hero {
  text-align: center;
  padding: 4rem 1rem;
}

.profile-img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 4px solid #4f46e5;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-weight: 600;
  color: #4f46e5;
}

.hero-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
  font-size: 0.9rem;
}

.section {
  max-width: 1100px;
  margin: 3rem auto;
  padding: 0 1rem;
}

h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

.tech {
  background: white;
  padding: 1rem;
  border-radius: 14px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

body.dark .tech,
body.dark .project-card {
  background: #1e293b;
}

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

.project-card {
  background: white;
  padding: 1.8rem;
  border-radius: 18px;
  margin-bottom: 1.5rem;
}

.project-card ul {
  margin-top: 0.8rem;
  padding-left: 1.2rem;
}

.youtube-link {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 600;
  color: #ff0000;
}

footer {
  text-align: center;
  padding: 2rem;
  opacity: 0.7;
}

.theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  border: none;
  background: #4f46e5;
  color: white;
  padding: 10px 12px;
  border-radius: 50%;
  cursor: pointer;
}

/* Animations */
.fade-in {
  animation: fadeIn 1s ease forwards;
}

.slide-up {
  opacity: 0;
  transform: translateY(40px);
}

.slide-up.show {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.7s ease;
}

@keyframes fadeIn {
  from { opacity: 0 }
  to { opacity: 1 }
}

@media (max-width: 600px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.4rem; }
}
