/* ===== GOOGLE FONT IMPORT ===== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  background-color: #fafafa;
  color: #222;
  transition: background 0.4s ease, color 0.4s ease;
}

/* ===== HEADINGS ===== */
h1, h2, h3 {
  font-weight: 700;
}

h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 8px;
  font-size: 2.2rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 4px;
  width: 80px;
  background: linear-gradient(90deg, #ffcc00, #ff66cc, #4a90e2);
  background-size: 300%;
  animation: underlineGradient 6s infinite linear;
  border-radius: 2px;
}

@keyframes underlineGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ===== HEADER ===== */
header {
  background: rgba(0, 0, 0, 0.92);
  color: white;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(12px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 700;
  font-size: 1.5rem;
  color: #ffcc00;
  letter-spacing: 1px;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 24px;
}

nav ul li a, #darkModeBtn {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: #ffcc00;
}

/* ===== HERO ===== */
.hero {
  text-align: center;
  padding: 6rem 2rem;
  background: linear-gradient(135deg, #6a11cb, #2575fc);
  color: white;
}

.gradient-text {
  background: linear-gradient(90deg, #ffcc00, #ff66cc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  background: linear-gradient(90deg, #ff66cc, #4a90e2);
  color: white;
  padding: 12px 28px;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.primary-btn {
  margin-top: 1.5rem;
}

/* ===== SECTIONS ===== */
section {
  padding: 4rem 2rem;
  text-align: center;
}

/* ===== CARDS ===== */
.skills-grid, .projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 26px;
  margin-top: 2.5rem;
}

.skill-card {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(10px);
  font-weight: 500;
  font-size: 1rem;
  text-align: center;
  border-left: 4px solid #4a90e2;
  border-radius: 18px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  padding: 1.4rem;
  transition: all 0.3s ease;
}

.skill-card:hover {
  transform: translateY(-6px);
  border-left-color: #ff66cc;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.project-card {
  background: linear-gradient(135deg, #ff9966, #ff5e62);
  color: white;
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  transition: all 0.35s ease;
}

.project-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 14px 40px rgba(0,0,0,0.3);
}

.experience-card {
  background: linear-gradient(135deg, #43cea2, #185a9d);
  color: white;
  padding: 2rem;
  border-radius: 20px;
  max-width: 750px;
  margin: 0 auto;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  transition: transform 0.35s ease;
}

.experience-card:hover {
  transform: scale(1.02);
  box-shadow: 0 14px 40px rgba(0,0,0,0.3);
}

.experience-card ul {
  list-style: none;
  text-align: left;
}

.experience-card ul li {
  padding-left: 1.4rem;
  position: relative;
  margin-bottom: 0.7rem;
  font-size: 0.95rem;
}

.experience-card ul li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #ffdd57;
}

/* ===== CONTACT ===== */
.contact-info p {
  font-size: 1.05rem;
  margin: 8px 0;
}

/* ===== FADE-IN ANIMATION ===== */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== DARK MODE ===== */
.dark {
  background-color: #121212;
  color: #f4f4f4;
}

.dark header, .dark footer {
  background: #0d0d0d;
}

.dark .skill-card {
  background: rgba(30, 30, 30, 0.85);
  color: #f4f4f4;
}

.dark .project-card {
  background: linear-gradient(135deg, #667eea, #764ba2);
}

.dark .experience-card {
  background: linear-gradient(135deg, #ff512f, #dd2476);
}

.dark h2::after {
  background: linear-gradient(90deg, #ffd700, #ff69b4, #4a90e2);
}

/* ===== FOOTER ===== */
footer {
  text-align: center;
  padding: 1.2rem;
  background: #333;
  color: white;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
  h2 {
    font-size: 1.9rem;
  }
  nav ul li {
    margin-left: 18px;
  }
}

@media (max-width: 768px) {
  nav {
    flex-direction: column;
    gap: 1rem;
  }
  nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }
  .hero {
    padding: 4rem 1.5rem;
  }
  h2 {
    font-size: 1.7rem;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 0.95rem;
  }
  nav ul li {
    margin-left: 12px;
  }
  .skills-grid, .projects-grid {
    grid-template-columns: 1fr;
  }
  h2 {
    font-size: 1.5rem;
  }
  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}
