/* RESET & BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #dfe9f3, #f9fafe);
  color: #1e1e2f;
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1100px;
  margin: 50px auto;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  padding: 50px;
  border-radius: 24px;
  box-shadow: 0 12px 50px rgba(0, 0, 0, 0.15);
  animation: fadeInUp 1s ease forwards;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* NAVBAR */
.navbar {
  background: linear-gradient(to right, #6a82fb, #9f8bff);
  padding: 18px 30px;
  border-radius: 16px;
  margin-bottom: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
  flex-wrap: wrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.logo {
  font-size: 1.7rem;
  font-weight: bold;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 18px;
  flex-wrap: wrap;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  height: 2px;
  width: 0;
  background-color: #fff;
  transition: width 0.3s;
}

.nav-links a:hover::after {
  width: 100%;
}

/* HEADER */
header {
  text-align: center;
  margin-bottom: 50px;
  animation: fadeInDown 1s ease forwards;
}

.profile-pic {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  box-shadow: 0 4px 20px rgba(106, 130, 251, 0.4);
  border: 4px solid white;
}

header h1 {
  font-size: 2.8rem;
  color: #2a2a3c;
}

.contact span,
.contact a {
  display: inline-block;
  margin: 10px;
  color: #333;
  font-size: 1rem;
  opacity: 0;
  animation: fadeIn 0.8s ease forwards;
  text-decoration: none;
}

.contact span:nth-child(1) { animation-delay: 0.2s; }
.contact span:nth-child(2) { animation-delay: 0.4s; }
.contact span:nth-child(3) { animation-delay: 0.6s; }
.contact a:nth-child(4) {
  animation-delay: 0.8s;
  color: #0a66c2;
  font-weight: 600;
}

/* RESUME BUTTON */
.btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 22px;
  background: linear-gradient(to right, #60a5fa, #4f46e5);
  color: white;
  font-weight: bold;
  border-radius: 50px;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

/* SECTIONS */
section {
  margin-bottom: 50px;
  opacity: 0;
  animation: slideIn 1s ease forwards;
}

section:nth-of-type(1) { animation-delay: 0.8s; }
section:nth-of-type(2) { animation-delay: 1s; }
section:nth-of-type(3) { animation-delay: 1.2s; }
section:nth-of-type(4) { animation-delay: 1.4s; }
section:nth-of-type(5) { animation-delay: 1.6s; }
section:nth-of-type(6) { animation-delay: 1.8s; }

section h2 {
  font-size: 1.9rem;
  color: #4f46e5;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

section h2::before {
  content: '✨';
}

/* ABOUT */
.about p {
  text-align: justify;
  font-size: 1.1rem;
}

/* LISTS */
ul {
  list-style-type: none;
  padding-left: 0;
}

ul li {
  margin-bottom: 20px;
  padding-left: 15px;
  border-left: 4px solid #93c5fd;
}

.experience ul li,
.education ul li,
.certifications ul li,
.projects ul li {
  background-color: rgba(240, 245, 255, 0.6);
  padding: 15px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(106, 130, 251, 0.05);
  transition: all 0.3s ease;
  border: 1px solid #c7d2fe;
}

.experience ul li:hover,
.education ul li:hover,
.certifications ul li:hover,
.projects ul li:hover {
  transform: translateY(-6px);
  background-color: #eef4ff;
}

/* SKILLS */
.skill-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 18px;
}

.skill-list span {
  background: #dbeafe;
  color: #1d4ed8;
  padding: 12px 18px;
  border-radius: 14px;
  text-align: center;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, background 0.3s ease;
}

.skill-list span:hover {
  transform: scale(1.08);
  background: #bfdbfe;
}

/* FOOTER */
footer {
  text-align: center;
  margin-top: 60px;
  font-size: 0.95rem;
  color: #555;
  padding-top: 25px;
  border-top: 1px solid #ddd;
  position: relative;
}

footer::before {
  content: "🌐";
  font-size: 1.5rem;
  display: block;
  margin-bottom: 10px;
}

/* ANIMATIONS */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  to { opacity: 1; }
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .nav-links {
    justify-content: center;
    flex-wrap: wrap;
  }

  header h1 {
    font-size: 2.3rem;
  }

  .skill-list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  header h1 {
    font-size: 1.8rem;
  }

  .skill-list {
    grid-template-columns: 1fr;
  }

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