/* ===== Reset ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  color: #e5e7eb;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
  min-height: 100vh;
}

/* ===== Layout ===== */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: 4.5rem 0; }
.section.alt-bg { background: transparent; }

.section-content h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #e5e7eb;
}

.section-intro {
  max-width: 640px;
  margin-bottom: 2rem;
  color: rgba(229, 231, 235, 0.78);
}

/* ===== Navbar ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(96, 165, 250, 0.15);
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo { font-weight: 700; font-size: 1rem; color: rgba(229, 231, 235, 0.9); }

.nav-links a {
  margin-left: 1.25rem;
  text-decoration: none;
  font-size: 0.95rem;
  color: rgba(229, 231, 235, 0.85);
}

.nav-links a:hover { color: #60a5fa; }

/* ===== Top ===== */
.top { padding: 6rem 0 4rem; }

.top-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.top-kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  color: rgba(229, 231, 235, 0.65);
  margin-bottom: 0.5rem;
}

.top h1 {
  font-size: 3rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}

.top h2 {
  font-size: 1.25rem;
  font-weight: 500;
  color: rgba(229, 231, 235, 0.85);
  margin-bottom: 0.9rem;
}

.top-subtitle {
  max-width: 520px;
  color: rgba(229, 231, 235, 0.85);
  margin-bottom: 1.5rem;
}

.top-buttons { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.3rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}

.primary-btn {
  background: linear-gradient(135deg,#3b82f6,#8b5cf6);
  color: white;
  border: none;
  transition: all 0.3s ease;
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(96,165,250,0.35);
}

.secondary-btn {
  background: transparent;
  color: rgba(229, 231, 235, 0.9);
  border: 1px solid rgba(229, 231, 235, 0.25);
  transition: all 0.3s ease;
}

.secondary-btn:hover {
  border-color: rgba(167, 139, 250, 0.9);
  background: rgba(167, 139, 250, 0.08);
  transform: translateY(-2px);
}

/* ===== Photo ===== */
.top-photo { flex: 0 0 240px; display: flex; justify-content: center; }

.profile-photo-wrapper {
  position: relative;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-photo-wrapper::before {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(96,165,250,0.35),
    rgba(167,139,250,0.25),
    transparent 70%
  );
  filter: blur(20px);
  z-index: 0;
}

.profile-photo {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #1e293b;
  position: relative;
  z-index: 1;
}

/* ===== Stats ===== */
.about-title{
  text-align: center;
  font-size: 2.25rem;
  font-weight: 800;
  color: #e5e7eb;
  margin-bottom: 3rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.stat-card {
  background: rgba(30, 41, 59, 0.55);
  backdrop-filter: blur(10px);
  border-radius: 0.75rem;
  padding: 1rem 1.2rem;
  border: 1px solid rgba(96, 165, 250, 0.18);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background .25s ease;
}

.stat-card:hover{
  transform: translateY(-6px);
  border-color: rgba(96, 165, 250, 0.45);
  box-shadow: 0 16px 44px rgba(96, 165, 250, 0.14);
  background: rgba(30, 41, 59, 0.62);
}

.stat-number { display: block; font-size: 1.4rem; font-weight: 700; }
.stat-label { font-size: 0.85rem; color: rgba(229, 231, 235, 0.7); }

/* ===== Timeline ===== */
.timeline {
  margin-top: 1rem;
  border-left: 2px solid rgba(96, 165, 250, 0.25);
  padding-left: 1.5rem;
}

.timeline-item { margin-bottom: 1.75rem; position: relative; }

.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.05rem;
  top: 0.3rem;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #60a5fa;
}

.timeline-item h3 { font-size: 1.05rem; margin-bottom: 0.15rem; color: rgba(229,231,235,0.95); }
.timeline-meta { font-size: 0.85rem; color: rgba(229,231,235,0.7); margin-bottom: 0.4rem; }
.timeline-item ul { margin-left: 1rem; margin-top: 0.25rem; color: rgba(229,231,235,0.82); }

/* ===== Education section ===== */
.education-title{
  text-align: center;
  font-size: 2.25rem;
  font-weight: 800;
  color: #e5e7eb;
  margin-bottom: 3rem;
}

.edu-block { margin-top: 2.5rem; }

.edu-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: rgba(229,231,235,0.95);
}

.edu-title i { color: rgba(96,165,250,0.9); }

.edu-grid { display: grid; gap: 1rem; }

.edu-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.edu-head h4 {
  font-size: 1.05rem;
  color: rgba(229,231,235,0.95);
  margin-bottom: 0.25rem;
}

.edu-sub {
  color: rgba(229,231,235,0.75);
  font-weight: 500;
}

.edu-right { text-align: right; }

.edu-date {
  margin-top: 0.25rem;
  font-size: 0.85rem;
  color: rgba(229,231,235,0.65);
}

.edu-badge {
  display: inline-block;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(34, 197, 94, 0.15);
  color: rgba(134, 239, 172, 0.95);
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.edu-badge-blue {
  background: rgba(59, 130, 246, 0.15);
  color: rgba(147, 197, 253, 0.95);
  border-color: rgba(59, 130, 246, 0.25);
}

.edu-badge-purple {
  background: rgba(167, 139, 250, 0.15);
  color: rgba(216, 180, 254, 0.95);
  border-color: rgba(167, 139, 250, 0.25);
}

.edu-text {
  color: rgba(229,231,235,0.82);
}

.edu-list {
  margin-left: 1.1rem;
  color: rgba(229,231,235,0.82);
}

.edu-list li + li { margin-top: 0.35rem; }

@media (max-width: 768px) {
  .edu-right { text-align: left; }
  .edu-head { flex-direction: column; }
}

/* ===== Certifications ===== */
.cert-title{
  text-align: center;
  font-size: 2.25rem;
  font-weight: 800;
  color: #e5e7eb;
  margin-bottom: 3rem;
}

.certification-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.cert-card{
  border-radius: 16px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background .25s ease;
}

.cert-card:hover{
  transform: translateY(-6px);
  border-color: rgba(96, 165, 250, 0.45);
  box-shadow: 0 16px 44px rgba(96, 165, 250, 0.14);
  background: rgba(30, 41, 59, 0.62);
}

.cert-badge{
  width: 64px;
  height: 64px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.95rem;
  border: 1px solid rgba(255,255,255,0.06);
}

.cert-badge i{
  font-size: 1.75rem;
}

.cert-badge-blue{
  background: rgba(59,130,246,0.18);
  color: rgba(96,165,250,0.95);
}
.cert-badge-green{
  background: rgba(34,197,94,0.18);
  color: rgba(74,222,128,0.95);
}
.cert-badge-purple{
  background: rgba(167,139,250,0.18);
  color: rgba(216,180,254,0.95);
}
.cert-badge-yellow{
  background: rgba(234,179,8,0.18);
  color: rgba(250,204,21,0.95);
}

.cert-name{
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
  color: rgba(229,231,235,0.95);
}

.cert-issuer{
  font-size: 0.9rem;
  color: rgba(148,163,184,0.9);
  margin-bottom: 0.6rem;
}

.cert-desc{
  font-size: 0.92rem;
  color: rgba(226,232,240,0.85);
  margin-bottom: 0.9rem;
  line-height: 1.45;
}

.cert-list{
  margin-left: 1.1rem;
  color: rgba(229,231,235,0.82);
  font-size: 0.92rem;
}

.cert-list li + li{
  margin-top: 0.25rem;
}

/* ===== Skills section ===== */
.skills-title{
  text-align: center;
  font-size: 2.25rem;
  font-weight: 800;
  color: #e5e7eb;
  margin-bottom: 3rem;
}

.skills-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px){
  .skills-grid{ grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px){
  .skills-grid{ grid-template-columns: repeat(3, 1fr); }
}

.skills-head{
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.skills-card-title{
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
}

.skills-icon{
  font-size: 1.9rem;
}

.skills-icon-blue{ color: #60a5fa; }
.skills-icon-green{ color: #34d399; }
.skills-icon-purple{ color: #a78bfa; }
.skills-icon-pink{ color: #f472b6; }
.skills-icon-orange{ color: #fb923c; }

.skill-badges{
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

/* Badge base */
.skill-badge{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid transparent;
}

/* Color variants */
.skill-blue{
  background: rgba(59,130,246,0.18);
  color: rgba(147,197,253,0.95);
  border-color: rgba(96,165,250,0.18);
}

.skill-green{
  background: rgba(16,185,129,0.16);
  color: rgba(134,239,172,0.95);
  border-color: rgba(52,211,153,0.18);
}

.skill-purple{
  background: rgba(139,92,246,0.16);
  color: rgba(196,181,253,0.95);
  border-color: rgba(167,139,250,0.18);
}

.skill-pink{
  background: rgba(236,72,153,0.14);
  color: rgba(251,182,206,0.95);
  border-color: rgba(244,114,182,0.18);
}

.skill-orange{
  background: rgba(249,115,22,0.14);
  color: rgba(253,186,116,0.95);
  border-color: rgba(251,146,60,0.18);
}

.skills-note{
  color: rgba(229,231,235,0.7);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ===== Projects ===== */
.projects-title{
  text-align: center;
  font-size: 2.25rem;
  font-weight: 800;
  color: #e5e7eb;
  margin-bottom: 3rem;
}

.projects-category {
  margin-top: 3rem;
  grid-column: 1 / -1;
}

.projects-category:first-of-type {
  margin-top: 2rem;
}

.projects-category-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: #e5e7eb;
}

.category-icon-blue { color: #60a5fa; }
.category-icon-green { color: #34d399; }
.category-icon-purple { color: #a78bfa; }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 0.5rem;
}

.project-card {
  background: rgba(30, 41, 59, 0.60);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(96, 165, 250, 0.18);
  border-radius: 0.9rem;
  padding: 1.3rem 1.5rem;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background .25s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(96, 165, 250, 0.55);
  box-shadow: 0 16px 44px rgba(96, 165, 250, 0.16);
  background: rgba(30, 41, 59, 0.66);
}

.project-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  gap: 1rem;
}

.project-icon {
  font-size: 1.75rem;
}

.text-blue { color: #60a5fa; }
.text-green { color: #34d399; }
.text-purple { color: #a78bfa; }

.project-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(229, 231, 235, 0.82);
  background: rgba(51, 65, 85, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.18);
  white-space: nowrap;
}

.project-card h3 {
  color: rgba(229, 231, 235, 0.96);
  font-size: 1.1rem;
  margin-bottom: 0.45rem;
}

.project-tag {
  color: #93c5fd;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.85rem;
}

.project-card p {
  color: rgba(229, 231, 235, 0.78);
  font-size: 0.95rem;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.project-tech span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  background: rgba(96, 165, 250, 0.14);
  color: #bfdbfe;
  border: 1px solid rgba(96, 165, 250, 0.14);
}

.project-link {
  display: inline-block;
  margin-top: 0.2rem;
  font-size: 0.92rem;
  text-decoration: none;
  color: rgba(229, 231, 235, 0.92);
  font-weight: 600;
  transition: color .2s ease;
}

.project-link:hover {
  color: #60a5fa;
  text-decoration: none;
}

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.contact-email {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-email:hover {
  color: #8b5cf6;
}

.contact-links { list-style: none; }
.contact-links li + li { margin-top: 0.3rem; }

.contact-links a {
  color: rgba(229, 231, 235, 0.9);
  text-decoration: none;
  transition: color 0.2s ease;
}
.contact-links a:hover {
  color: #8b5cf6;
}

/* ===== Footer ===== */
.footer {
  border-top: 1px solid rgba(96, 165, 250, 0.15);
  padding: 1.25rem 0;
  margin-top: 1.5rem;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(10px);
}

.footer-content {
  text-align: center;
  font-size: 0.85rem;
  color: rgba(229, 231, 235, 0.7);
}

/* ===== Gradient title ===== */
.gradient-text {
  background: linear-gradient(135deg,#60a5fa,#a78bfa);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .top { padding: 5rem 0 3rem; }
  .top h1 { font-size: 2.35rem; }

  .top-content { flex-direction: column; align-items: flex-start; }
  .top-photo { align-self: center; }

  .nav-content { justify-content: space-between; }
  .nav-links { display: none; }

  .profile-photo-wrapper { width: 200px; height: 200px; }
  .profile-photo-wrapper::before { width: 220px; height: 220px; }
  .profile-photo { width: 184px; height: 184px; }
}

