/* ---------- Reset & Base ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
  color: #f3f6ff;
  line-height: 1.7;
  background:
    radial-gradient(circle at top left, rgba(139, 92, 246, 0.35), transparent 30%),
    radial-gradient(circle at bottom right, rgba(34, 197, 94, 0.18), transparent 25%),
    linear-gradient(135deg, #0f172a 0%, #111827 35%, #1e293b 100%);
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.25);
  z-index: 100;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
}

.logo {
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.5px;
  color: #f8fafc;
  text-shadow: 0 0 18px rgba(168, 85, 247, 0.6);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.7rem;
}

.nav-links a {
  text-decoration: none;
  color: #e2e8f0;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.2px;
  transition: color 0.3s ease, transform 0.3s ease;
}

.nav-links a:hover {
  color: #a78bfa;
  transform: translateY(-2px);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(91, 33, 182, 0.92) 0%, rgba(59, 130, 246, 0.85) 52%, rgba(14, 165, 233, 0.8) 100%);
  color: #fff;
  overflow: hidden;
  box-shadow: inset 0 -20px 40px rgba(15, 23, 42, 0.28);
}

.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  filter: blur(2px);
  z-index: 0;
}

.hero::before {
  width: 300px;
  height: 300px;
  top: -70px;
  left: -70px;
}

.hero::after {
  width: 420px;
  height: 420px;
  bottom: -120px;
  right: -90px;
}

.hero > * {
  position: relative;
  z-index: 1;
  animation: fadeUp 0.9s ease both;
}

.hero h1 { animation-delay: 0.1s; }
.hero .tagline { animation-delay: 0.2s; }
.hero .btn { animation-delay: 0.3s; }

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

.profile-photo {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.35);
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.hero .tagline {
  font-size: 1.2rem;
  font-weight: 300;
  margin-bottom: 1.75rem;
  opacity: 0.96;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.8rem 1.9rem;
  margin: 0.3rem;
  background: linear-gradient(135deg, #ffffff, #e2e8f0);
  color: #1d4ed8;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.3px;
  border: 1px solid transparent;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
}

.btn:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 18px 38px rgba(59, 130, 246, 0.28);
  background: linear-gradient(135deg, #a78bfa, #3b82f6);
  color: #fff;
}

/* ---------- Sections ---------- */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
  text-align: center;
  background: rgba(15, 23, 42, 0.15);
}

.alt-bg {
  background: rgba(148, 163, 184, 0.08);
}

.section h2 {
  font-size: 2.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #f8fafc;
  position: relative;
  display: inline-block;
}

.section h2::after {
  content: '';
  display: block;
  width: 56px;
  height: 4px;
  margin: 0.8rem auto 1.5rem;
  background: linear-gradient(90deg, #c084fc, #60a5fa);
  border-radius: 999px;
}

.section p,
.section li {
  color: #dbeafe;
}

/* ---------- Projects ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 1rem;
}

.project-card {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.9));
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 22px;
  padding: 2rem 1.6rem;
  text-align: left;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.28);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 44px rgba(96, 165, 250, 0.18);
  border-color: rgba(167, 139, 250, 0.5);
}

.project-tag {
  display: inline-block;
  margin-bottom: 0.8rem;
  background: linear-gradient(135deg, #8b5cf6, #3b82f6);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
}

.project-card h3 {
  margin-bottom: 0.7rem;
  color: #ffffff;
  font-size: 1.7rem;
}

.project-card p {
  color: #dbeafe;
  margin-bottom: 1.1rem;
}

.project-actions {
  display: flex;
  justify-content: flex-start;
}

.project-btn {
  background: linear-gradient(135deg, #8b5cf6, #3b82f6);
  color: #fff;
}

.project-btn:hover {
  background: linear-gradient(135deg, #a78bfa, #60a5fa);
  color: #fff;
}

/* ---------- Skills ---------- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.skill-card {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.16), rgba(168, 85, 247, 0.18));
  padding: 1.3rem;
  border-radius: 16px;
  font-weight: 600;
  color: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.skill-card:hover {
  transform: translateY(-6px);
  border-color: rgba(96, 165, 250, 0.8);
  background: linear-gradient(135deg, #8b5cf6, #3b82f6);
  color: #fff;
  box-shadow: 0 18px 36px rgba(59, 130, 246, 0.24);
}

@media (max-width: 700px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- Education ---------- */
.education-item {
  margin-bottom: 1.5rem;
  text-align: left;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.18), rgba(139, 92, 246, 0.18));
  padding: 1.5rem 1.6rem;
  border-radius: 18px;
  border-left: 4px solid #8b5cf6;
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.18);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.education-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 30px rgba(96, 165, 250, 0.18);
}

.education-item h3 {
  color: #f8fafc;
  margin-bottom: 0.35rem;
}

.education-item p {
  color: #dbeafe;
}

/* ---------- Experience & Certifications ---------- */
.current-certification {
  max-width: 720px;
  margin: 1rem auto 1.5rem;
  padding: 1.1rem 1.4rem;
  text-align: left;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.16), rgba(14, 165, 233, 0.14));
  border: 1px solid rgba(251, 191, 36, 0.45);
  border-left: 4px solid #fbbf24;
  border-radius: 12px;
}

.current-certification-label {
  color: #fbbf24;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.current-certification h3 {
  color: #fef3c7;
  font-size: 1.25rem;
  margin: 0.2rem 0 0.25rem;
}

.current-certification p {
  color: #dbeafe;
  font-size: 0.92rem;
}

.experience-list,
.certification-groups {
  display: grid;
  gap: 1.2rem;
  margin-top: 1rem;
}

.experience-item,
.certification-group {
  text-align: left;
  padding: 1.4rem 1.5rem;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.82), rgba(30, 41, 59, 0.82));
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 16px;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.18);
}

.experience-item h3,
.certification-group h3 {
  color: #f8fafc;
  margin-bottom: 0.35rem;
}

.experience-company,
.certification-group > p:not(.certification-issuer) {
  color: #dbeafe;
  font-weight: 600;
}

.experience-meta,
.certification-card span {
  color: #cbd5e1;
  font-size: 0.92rem;
}

.experience-skill {
  color: #a7f3d0;
  margin-top: 0.65rem;
  font-size: 0.92rem;
}

.certification-groups {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.certification-group {
  border-top: 3px solid #38bdf8;
}

.featured-certification {
  grid-column: 1 / -1;
}

.certification-group h3 {
  font-size: 1.15rem;
}

.certification-lead {
  margin: 1rem 0 0.75rem;
  padding: 0.9rem 1rem;
  background: rgba(14, 165, 233, 0.1);
  border-left: 3px solid #fbbf24;
  border-radius: 0 10px 10px 0;
}

.certification-lead h4 {
  color: #fbbf24;
  font-size: 1rem;
  font-style: italic;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.certification-lead p {
  color: #cbd5e1;
  font-size: 0.86rem;
}

.certification-issuer {
  color: #7dd3fc;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.featured-certification h3 {
  color: #7dd3fc;
}

.certification-group:nth-child(2) h3 {
  color: #c4b5fd;
}

.certification-group:nth-child(3) h3 {
  color: #a7f3d0;
}

.certification-group details {
  margin-top: 0.75rem;
}

.certification-group summary {
  color: #c4b5fd;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
}

.certification-group details span {
  display: block;
  color: #cbd5e1;
  font-size: 0.88rem;
  margin-top: 0.3rem;
}

.certification-list {
  display: grid;
  gap: 0.75rem;
  list-style: none;
  margin-top: 1.2rem;
  padding: 1rem 0 0;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.certification-list li {
  color: #f8fafc;
  display: grid;
  gap: 0.15rem;
  padding-left: 0.75rem;
  border-left: 2px solid rgba(196, 181, 253, 0.55);
}

.certification-list strong {
  color: #f0abfc;
  font-size: 0.96rem;
  font-style: italic;
  font-weight: 600;
}

.certification-list li > span {
  color: #cbd5e1;
  font-size: 0.86rem;
}

.certification-list details {
  margin-top: 0.1rem;
}

.certification-list summary {
  font-size: 0.8rem;
}

/* ---------- Contact & Social ---------- */
#contact a {
  color: #c4b5fd;
  font-weight: 500;
}

.social-links {
  margin-top: 1.5rem;
}

.social-links .btn {
  background: linear-gradient(135deg, #375108, #5ba59c);
  color: #fff;
}

.social-links .btn:hover {
  background: linear-gradient(135deg, #16a34a, #0ea5e9);
}

/* ---------- Footer ---------- */
footer {
  text-align: center;
  padding: 1.8rem 1.5rem;
  background: rgba(15, 23, 42, 0.9);
  color: #cbd5e1;
  font-size: 0.9rem;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}
