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

:root {
  --primary: #6c63ff;
  --primary-dark: #5a52d5;
  --accent: #ff6584;
  --bg: #ffffff;
  --bg-light: #f8f7ff;
  --text: #1a1a2e;
  --muted: #6b7280;
  --border: #e5e7eb;
  --shadow: rgba(108,99,255,0.15);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 2px; }

/* ── Navbar ── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 6%;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.logo { font-size: 1.4rem; font-weight: 800; color: var(--primary); letter-spacing: -0.5px; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  color: var(--muted); text-decoration: none; font-size: 0.82rem;
  font-weight: 500; letter-spacing: 0.3px; transition: color 0.2s; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -3px; left: 0; right: 0;
  height: 2px; background: var(--primary);
  transform: scaleX(0); transition: transform 0.25s;
}
.nav-links a:hover { color: var(--primary); }
.nav-links a:hover::after { transform: scaleX(1); }
.hamburger { display: none; font-size: 1.6rem; cursor: pointer; color: var(--text); }

.mobile-menu {
  display: none; flex-direction: column;
  position: fixed; top: 62px; left: 0; right: 0; z-index: 99;
  background: #fff; border-bottom: 1px solid var(--border);
}
.mobile-menu.open { display: flex; }
.mobile-menu a { color: var(--text); text-decoration: none; font-size: 0.9rem; padding: 0.9rem 6%; border-bottom: 1px solid var(--border); }
.mobile-menu a:hover { background: var(--bg-light); color: var(--primary); }

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: space-between;
  flex-direction: row;
  padding: 8rem 6% 4rem; gap: 0;
  background: linear-gradient(135deg, #ffffff 0%, #f8f7ff 60%, #ede9fe 100%);
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(108,99,255,0.08), transparent);
  top: -100px; right: -100px; pointer-events: none;
}
.hero-tag {
  display: inline-block; background: #ede9fe; color: var(--primary);
  padding: 0.3rem 1rem; border-radius: 50px;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; margin-bottom: 1.2rem;
}
.hero-name {
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 900; line-height: 1.0; letter-spacing: -3px;
  color: var(--text); margin-bottom: 0.5rem;
}
.hero-name span { color: var(--primary); }
.hero-sub { font-size: 1.1rem; color: var(--muted); margin-bottom: 1.2rem; font-weight: 400; }
.highlight {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  font-weight: 700;
}
.hero-desc { color: var(--muted); max-width: 500px; line-height: 1.8; margin-bottom: 2rem; font-size: 0.92rem; }
.hero-btns { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-bottom: 2rem; }
.hero-socials { display: flex; gap: 0.8rem; }
.hero-socials a {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--border);
  color: var(--muted); font-size: 1.1rem; text-decoration: none; transition: all 0.2s;
}
.hero-socials a:hover { background: var(--primary); color: #fff; border-color: var(--primary); transform: translateY(-2px); }

/* ── Hero Image ── */
.hero-right { position: relative; flex-shrink: 0; }
.hero-img-wrap {
  width: 420px; height: 480px; border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(135deg, #ede9fe, #c7d2fe);
  border: 4px solid #fff;
  box-shadow: 0 20px 60px rgba(108,99,255,0.2);
}
.hero-img-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.hero-badge {
  position: absolute; background: #fff;
  padding: 0.6rem 1.2rem; border-radius: 50px;
  font-size: 0.8rem; font-weight: 700; color: var(--text);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  border: 1px solid var(--border);
  animation: float 3s ease-in-out infinite;
}
.badge-a { top: 20px; left: -30px; animation-delay: 0s; color: var(--primary); }
.badge-b { bottom: 40px; right: -20px; animation-delay: 1.5s; color: var(--accent); }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ── Buttons ── */
.btn {
  padding: 0.75rem 1.8rem; border-radius: 8px;
  font-size: 0.88rem; font-weight: 600; cursor: pointer;
  text-decoration: none; transition: all 0.25s;
  display: inline-flex; align-items: center; gap: 0.4rem;
}
.btn-primary { background: var(--primary); color: #fff; border: none; box-shadow: 0 4px 20px var(--shadow); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 8px 30px var(--shadow); }
.btn-ghost { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-ghost:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }
.btn-sm { background: var(--primary); color: #fff; padding: 0.5rem 1.2rem; border-radius: 6px; font-size: 0.8rem; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 0.3rem; transition: all 0.2s; }
.btn-sm:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-sm-outline { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); padding: 0.5rem 1.2rem; border-radius: 6px; font-size: 0.8rem; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 0.3rem; transition: all 0.2s; }
.btn-sm-outline:hover { background: var(--primary); color: #fff; }

/* ── Sections ── */
.section { padding: 7rem 6%; }
.bg-light { background: var(--bg-light); }
.section-tag {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 3px;
  color: var(--primary); text-transform: uppercase;
  margin-bottom: 1rem; display: block;
}
.section-title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; letter-spacing: -1.5px; line-height: 1.1; color: var(--text); margin-bottom: 1.5rem; }
.section-title span { color: var(--primary); }
.section-title.center { text-align: center; margin-bottom: 0.5rem; }
.section-sub { text-align: center; color: var(--muted); font-size: 0.9rem; margin-bottom: 3rem; }

/* ── About ── */
.about-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; margin-top: 1rem; }
.about-text p { color: var(--muted); line-height: 1.9; font-size: 0.92rem; margin-bottom: 1rem; }
.about-cards { display: flex; flex-direction: column; gap: 1.2rem; }
.about-card {
  padding: 1.5rem; border-radius: 16px;
  background: #fff; border: 1px solid var(--border);
  display: flex; gap: 1rem; align-items: flex-start;
  transition: transform 0.3s, box-shadow 0.3s;
}
.about-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px var(--shadow); }
.about-card-icon {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: #ede9fe; font-size: 1.3rem; color: var(--primary);
}
.about-card h4 { font-size: 0.92rem; font-weight: 700; color: var(--text); margin-bottom: 0.3rem; }
.about-card p { font-size: 0.84rem; color: var(--muted); line-height: 1.6; }

/* ── Education Timeline ── */
.timeline { max-width: 700px; margin: 3rem auto 0; position: relative; }
.timeline::before { content: ''; position: absolute; left: 18px; top: 0; bottom: 0; width: 2px; background: linear-gradient(to bottom, var(--primary), #c7d2fe); }
.timeline-item { display: flex; gap: 2rem; margin-bottom: 2rem; position: relative; }
.timeline-dot {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  background: #fff; border: 3px solid var(--primary);
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 1;
  box-shadow: 0 0 0 4px #ede9fe;
}
.timeline-card {
  flex: 1; padding: 1.4rem 1.6rem; border-radius: 14px;
  background: #fff; border: 1px solid var(--border);
  transition: transform 0.3s, box-shadow 0.3s;
}
.timeline-card:hover { transform: translateX(6px); box-shadow: 0 8px 25px var(--shadow); }
.timeline-year { font-size: 0.75rem; font-weight: 700; color: var(--primary); letter-spacing: 1px; text-transform: uppercase; display: block; margin-bottom: 0.4rem; }
.timeline-card h4 { font-size: 0.95rem; font-weight: 700; color: var(--text); margin-bottom: 0.3rem; }
.timeline-card p { font-size: 0.84rem; color: var(--muted); }

/* ── Skills ── */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; margin-top: 3rem; }
.skill-box {
  padding: 1.8rem; border-radius: 16px;
  background: #fff; border: 1px solid var(--border);
  transition: transform 0.3s, box-shadow 0.3s;
}
.skill-box:hover { transform: translateY(-6px); box-shadow: 0 16px 40px var(--shadow); }
.skill-box-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: #ede9fe; font-size: 1.5rem; color: var(--primary);
  margin-bottom: 1rem;
}
.skill-box h4 { font-size: 0.9rem; font-weight: 700; color: var(--text); margin-bottom: 0.8rem; }
.skill-pills { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.skill-pills span {
  padding: 0.3rem 0.85rem; border-radius: 50px; font-size: 0.78rem; font-weight: 500;
  background: #f3f4f6; color: var(--text); border: 1px solid var(--border);
  transition: all 0.2s;
}
.skill-pills span:hover { background: #ede9fe; color: var(--primary); border-color: #c7d2fe; }

/* ── Projects ── */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 2rem; max-width: 960px; margin: 0 auto; }
.project-card {
  padding: 2.2rem; border-radius: 20px;
  background: #fff; border: 1px solid var(--border);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative; overflow: hidden;
}
.project-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0); transition: transform 0.3s; transform-origin: left;
}
.project-card:hover { transform: translateY(-10px); box-shadow: 0 24px 60px var(--shadow); }
.project-card:hover::after { transform: scaleX(1); }
.project-num { font-size: 4rem; font-weight: 900; color: #f3f4f6; line-height: 1; margin-bottom: 0.5rem; letter-spacing: -3px; }
.project-body h3 { font-size: 1.1rem; font-weight: 800; color: var(--text); margin-bottom: 0.8rem; letter-spacing: -0.3px; }
.project-body p { color: var(--muted); font-size: 0.86rem; line-height: 1.8; margin-bottom: 1.4rem; }
.project-links { display: flex; gap: 0.6rem; }

/* ── Certifications ── */
.cert-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.2rem; margin-top: 3rem; }
.cert-card {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.2rem 1.4rem; border-radius: 14px;
  background: #fff; border: 1px solid var(--border);
  transition: transform 0.3s, box-shadow 0.3s;
}
.cert-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px var(--shadow); }
.cert-num { font-size: 1.4rem; font-weight: 900; color: #e5e7eb; flex-shrink: 0; width: 36px; }
.cert-info { flex: 1; }
.cert-info h4 { font-size: 0.85rem; font-weight: 700; color: var(--text); margin-bottom: 0.2rem; }
.cert-info p { font-size: 0.76rem; color: var(--muted); }
.cert-link {
  width: 34px; height: 34px; border-radius: 8px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: #f3f4f6; border: 1px solid var(--border);
  color: var(--muted); text-decoration: none; font-size: 1rem; transition: all 0.2s;
}
.cert-link:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ── Contact ── */
.contact-layout { display: grid; grid-template-columns: 1fr 1.5fr; gap: 4rem; align-items: start; margin-top: 1rem; }
.contact-left p { color: var(--muted); font-size: 0.92rem; line-height: 1.8; margin-bottom: 2rem; }
.contact-details { display: flex; flex-direction: column; gap: 1rem; }
.contact-detail-item {
  display: flex; align-items: center; gap: 0.8rem;
  color: var(--muted); text-decoration: none; font-size: 0.88rem;
  padding: 0.8rem 1rem; border-radius: 10px;
  background: var(--bg-light); border: 1px solid var(--border);
  transition: all 0.2s;
}
.contact-detail-item i { font-size: 1.1rem; color: var(--primary); }
.contact-detail-item:hover { border-color: var(--primary); color: var(--primary); transform: translateX(4px); }
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.contact-form input, .contact-form textarea {
  background: var(--bg-light); border: 1.5px solid var(--border);
  border-radius: 10px; padding: 0.85rem 1rem;
  color: var(--text); font-family: 'Inter', sans-serif;
  font-size: 0.88rem; outline: none; transition: all 0.2s;
}
.contact-form input:focus, .contact-form textarea:focus {
  border-color: var(--primary); background: #fff;
  box-shadow: 0 0 0 3px rgba(108,99,255,0.1);
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #9ca3af; }
.contact-form textarea { resize: vertical; }
.contact-form .btn { align-self: flex-start; }

/* ── Footer ── */
.footer { background: var(--text); padding: 2rem 6%; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-inner span { font-size: 1.1rem; font-weight: 800; color: #fff; }
.footer-inner p { color: rgba(255,255,255,0.4); font-size: 0.82rem; }
.footer-socials { display: flex; gap: 0.6rem; }
.footer-socials a {
  width: 36px; height: 36px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.6);
  font-size: 1rem; text-decoration: none; transition: all 0.2s;
}
.footer-socials a:hover { background: var(--primary); color: #fff; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .about-layout, .contact-layout { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: block; }
  .hero { flex-direction: column; padding-top: 8rem; text-align: center; }
  .hero-desc { margin: 0 auto 2rem; }
  .hero-btns, .hero-socials { justify-content: center; }
  .hero-img-wrap { width: 250px; height: 300px; }
  .badge-a { left: -10px; }
  .badge-b { right: -10px; }
  .footer-inner { flex-direction: column; text-align: center; }
}
