* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", system-ui, -apple-system, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #f5f7fb;
  color: #222;
}

/* NAVBAR */

@keyframes navLineLeft {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes navLineRight {
  0%   { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  padding: 10px 32px;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(8px);
}

.navbar::before,
.navbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #22c55e, #3b82f6, #f7c910, #f50451);
  background-size: 200% 200%;
}

.navbar::before {
  top: 0;
  animation: navLineLeft 10s linear infinite;
}

.navbar::after {
  bottom: 0;
  animation: navLineRight 8s linear infinite;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 80px;
  justify-content: center;
}

.nav-link {
  position: relative;
  text-decoration: none;
  color: #f9fafb;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.3px;
  padding-bottom: 6px;
  transition: color 0.15s ease, transform 0.1s ease;
}

.nav-link:hover {
  color: #facc15;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background: #facc15;
  transition: width 0.2s ease;
}

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

.nav-link:active {
  color: #facc15;
  transform: scale(0.96);
}

.nav-link.active {
  color: #facc15;
}

.nav-link.active::after {
  width: 100%;
}

/* HERO */

.hero-combined {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 40%, #111827 100%);
  color: #ffffff;
  padding: 18px 16px 46px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 8px 0 12px;
}

.hero-left {
  flex: 2;
}

.hero-right {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-name {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 6px;
}

.hero-role {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 6px;
}

.hero-about {
  font-size: 14px;
  max-width: 480px;
  line-height: 1.6;
  margin-bottom: 16px;
}

.hero-right img {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 8%;
  border: 4px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.hero-icons-row {
  margin-top: 14px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.hero-icons-row a {
  color: #f8fafe;
  font-size: 22px;
  transition: transform 0.1s ease, color 0.1s ease;
}

.hero-icons-row a:hover {
  color: #cbbf3d;
}

.hero-icons-row a:active {
  color: #facc15;
  transform: scale(0.9);
}

.hero-cta {
  margin-top: 16px;
}

.btn-secondary {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  border: 2px solid #ffb703;
  color: #ffb703;
  background: transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease,
              background 0.15s ease, color 0.15s ease;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  background: #ffb703;
  color: #111827;
}

/* GENERIC SECTIONS */

.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 32px;
}

.section-title {
  font-size: 20px;
  margin: 32px 0 12px;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 60px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #6366f1, #ec4899, #facc15);
}

/* ABOUT */

#about.section {
  position: relative;
  background: radial-gradient(circle at top left, #eef2ff 0, #f9fafb 60%, #ffffff 100%);
  border-radius: 18px;
  overflow: hidden;
  padding: 20px 24px 24px;
  margin-top: 24px;
  margin-bottom: 24px;
}

#about.section::before,
#about.section::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #22c55e, #3b82f6, #f7c910, #f50451);
  background-size: 200% 200%;
  opacity: 0.6;
}

#about.section::before {
  top: 0;
  animation: navLineLeft 10s linear infinite;
}

#about.section::after {
  bottom: 0;
  animation: navLineRight 8s linear infinite;
}

.about-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 24px;
  align-items: stretch;
  margin-top: 8px;
}

.about-text {
  font-size: 14px;
  line-height: 1.9;
  color: #374151;
}

.about-text p {
  margin-bottom: 6px;
  max-width: 520px;
}

.about-with-line {
  position: relative;
  padding-left: 16px;
}

.about-with-line::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, #2563eb, #22c55e);
}

.about-facts {
  margin-top: 8px;
  list-style: disc;
  padding-left: 18px;
  font-size: 13px;
  color: #4b5563;
}

.about-facts li {
  margin-bottom: 3px;
}

.about-facts li span {
  font-weight: 600;
  color: #111827;
}

.about-facts li::marker {
  color: #2563eb;
}

/* About stats */

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.stat-card {
  position: relative;
  padding: 10px 12px;
  border-radius: 14px;
  background: linear-gradient(135deg, #6366f1 0%, #ec4899 40%, #facc15 100%);
  color: #f9fafb;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.7);
  overflow: hidden;
}

.stat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.22), transparent);
  pointer-events: none;
}

.stat-number {
  position: relative;
  z-index: 1;
  display: block;
  font-size: 18px;
  font-weight: 600;
}

.stat-label {
  position: relative;
  z-index: 1;
  display: block;
  font-size: 11px;
  letter-spacing: 0.2px;
}

/* EDUCATION */

#education.section {
  position: relative;
  background: radial-gradient(circle at top left, #eef2ff 0, #f9fafb 60%, #ffffff 100%);
  border-radius: 18px;
  margin-top: 24px;
  margin-bottom: 24px;
  padding: 32px 32px;
  overflow: hidden;
}

#education.section::before,
#education.section::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #22c55e, #3b82f6, #f7c910, #f50451);
  background-size: 200% 200%;
  opacity: 0.6;
}

#education.section::before {
  top: 0;
  animation: navLineLeft 10s linear infinite;
}

#education.section::after {
  bottom: 0;
  animation: navLineRight 8s linear infinite;
}

#education .section-title::after {
  width: 120px;
}

/* generic card */

.card {
  background: #ffffff;
  border-radius: 10px;
  padding: 14px 18px;
  margin: 10px 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  border-left: 4px solid #667eea;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.card h3 {
  font-size: 16px;
  margin-bottom: 4px;
}

.card .meta {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 4px;
}

.card p {
  font-size: 13px;
  line-height: 1.55;
}

/* education specific */

.edu-card {
  position: relative;
  border-left-color: #2563eb;
  overflow: hidden;
}

.edu-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(99,102,241,0.10), rgba(236,72,153,0.05));
  pointer-events: none;
}

.edu-card:first-of-type {
  box-shadow: 0 14px 38px rgba(37, 99, 235, 0.25);
  border-left-color: #f97316;
}

/* EXPERIENCE timeline */

#experience.section {
  position: relative;
  background: radial-gradient(circle at top left, #eef2ff 0, #f9fafb 60%, #ffffff 100%);
  border-radius: 18px;
  margin-top: 24px;
  margin-bottom: 24px;
  padding: 32px 32px;
  overflow: hidden;
}

#experience.section::before,
#experience.section::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #22c55e, #3b82f6, #f7c910, #f50451);
  background-size: 200% 200%;
  opacity: 0.6;
}

#experience.section::before {
  top: 0;
  animation: navLineLeft 10s linear infinite;
}

#experience.section::after {
  bottom: 0;
  animation: navLineRight 8s linear infinite;
}

.timeline {
  position: relative;
  margin-top: 24px;
  padding: 10px 0;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(180deg, #2563eb, #22c55e);
  transform: translateX(-50%);
  opacity: 0.8;
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 12px 28px;
}

.timeline-item.left {
  left: 0;
  text-align: left;
}

.timeline-item.right {
  left: 50%;
  text-align: left;
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: 24px;
  left: 100%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #fff;
  border: 3px solid #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.25);
}

.timeline-item.right::before {
  left: 0%;
  transform: translateX(-50%);
}

.timeline-content {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(15,23,42,0.15);
  padding: 12px 16px;
}

.timeline-content h3 {
  font-size: 15px;
  margin-bottom: 4px;
}

.timeline-content .meta {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 4px;
}

.exp-list {
  margin-top: 4px;
  padding-left: 18px;
}

.exp-list li {
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 3px;
}

/* mobile timeline */

@media (max-width: 768px) {
  .timeline::before {
    left: 10px;
  }

  .timeline-item,
  .timeline-item.left,
  .timeline-item.right {
    width: 100%;
    padding: 12px 18px 12px 32px;
    left: 0;
  }

  .timeline-item::before,
  .timeline-item.right::before {
    left: 10px;
    transform: translateX(-50%);
  }
}

/* PROJECTS buttons */

.project-tags {
  margin: 4px 0 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.project-tags span {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 500;
}

.project-actions {
  margin-top: 6px;
  display: flex;
  gap: 8px;
}

.btn-small {
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid transparent;
}

.btn-small.primary {
  background: #2563eb;
  color: #fff;
}

.btn-small.ghost {
  background: transparent;
  color: #2563eb;
  border-color: #2563eb;
}

.btn-small:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

/* SKILLS section */
.skills-chip-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.skill-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #22c55e0f, #2563eb0f);
  border: 1px solid rgba(148,163,184,0.4);
  box-shadow: 0 6px 16px rgba(15,23,42,0.12);
}

.skill-icon {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #22c55e, #2563eb);
  color: #ffffff;
  font-size: 16px;
}

.skill-name {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 2px;
}

.skill-level {
  font-size: 11px;
  color: #6b7280;
}

/* mobile */
@media (max-width: 768px) {
  .skills-chip-wrapper {
    gap: 10px;
  }
}


/* PORTFOLIO section */

#portfolio.section {
  background: radial-gradient(circle at top left, #eef2ff 0, #f9fafb 55%, #ffffff 100%);
  border-radius: 18px;
  padding: 24px 28px;
  margin-top: 24px;
  margin-bottom: 24px;
}

.portfolio-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 12px;
}

.portfolio-card {
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(15,23,42,0.10);
  padding: 12px 16px;
  border-left: 4px solid #22c55e;
}

.portfolio-main {
  border-radius: 16px 16px 8px 8px;
  padding: 10px 16px 6px;
}

.portfolio-card h3 {
  font-size: 15px;
  margin-bottom: 4px;
}

.portfolio-card .meta {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 4px;
}

.portfolio-card p {
  font-size: 13px;
  line-height: 1.55;
}

.portfolio-links-row {
  padding: 0 12px 10px 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.portfolio-links-row a {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  background: linear-gradient(135deg, #2563eb, #22c55e);
  color: #ffffff;
  border: none;
}

.portfolio-links-row a:hover {
  background: linear-gradient(135deg, #f97316, #ec4899);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(236,72,153,0.45);
}

/* CERTIFICATES */

#certificates.section {
  position: relative;
  background: radial-gradient(circle at top left, #eef2ff 0, #f9fafb 60%, #ffffff 100%);
  border-radius: 18px;
  margin-top: 24px;
  margin-bottom: 24px;
  padding: 32px 32px;
  overflow: hidden;
}

#certificates.section::before,
#certificates.section::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #22c55e, #3b82f6, #f7c910, #f50451);
  background-size: 200% 200%;
  opacity: 0.6;
}

#certificates.section::before {
  top: 0;
  animation: navLineLeft 10s linear infinite;
}

#certificates.section::after {
  bottom: 0;
  animation: navLineRight 8s linear infinite;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 16px;
}

.cert-card {
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(15,23,42,0.15);
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
}

.cert-card img {
  width: 140px;
  height: 90px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(15,23,42,0.25);
}

.cert-info h3 {
  font-size: 14px;
  margin-bottom: 4px;
}

.cert-info .meta {
  font-size: 12px;
  color: #6b7280;
}

/* CONTACT */

#contact.section {
  background: radial-gradient(circle at top left, #eef2ff 0, #f9fafb 60%, #ffffff 100%);
  border-radius: 18px;
  padding: 24px 28px;
  margin-top: 24px;
}

.contact-card {
  display: flex;
  gap: 18px;
  align-items: stretch;
  justify-content: space-between;
  background: #ffffff;
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 10px 28px rgba(15,23,42,0.12);
  border-left: 4px solid #22c55e;
}

.contact-form {
  flex: 1.2;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 13px;
  outline: none;
  background: #f9fafb;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 1px rgba(37,99,235,0.35);
  background: #ffffff;
}

.contact-form textarea {
  resize: vertical;
  min-height: 70px;
}

.contact-form button {
  align-self: flex-start;
  margin-top: 4px;
  padding: 8px 18px;
  border: none;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #22c55e);
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(37,99,235,0.4);
}

.contact-form button:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #f97316, #ec4899);
}
.contact-main {
  flex: 0.9;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
}

.contact-line {
  font-size: 14px;
  color: #111827;
}

.contact-line span {
  margin-right: 6px;
}

.contact-social {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.contact-social a {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #22c55e);
  box-shadow: 0 6px 14px rgba(37,99,235,0.4);
  text-decoration: none;
}

.contact-social a:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #f97316, #ec4899);
}
.contact-card > * {
  position: relative;
  z-index: 1;
}

/* FOOTER */

.site-footer {
  width: 100%;
  padding: 10px 16px 14px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 12px;
  color: #6b7280;
}

.footer-line {
  height: 2px;
  width: 60%;
  max-width: 520px;
  background: linear-gradient(90deg, #22c55e, #3b82f6, #facc15, #ec4899);
  opacity: 0.7;
  margin-bottom: 6px;
}

.footer-text {
  max-width: 600px;
}

.footer-text span {
  color: #111827;
  font-weight: 600;
}

/* RESPONSIVE */

@media (max-width: 768px) {
  .hero-combined {
    padding: 18px 16px 32px;
  }

  .hero-inner {
    flex-direction: column-reverse;
    align-items: center;
    text-align: center;
    gap: 16px;
  }

  .hero-left,
  .hero-right {
    flex: none;
  }

  .nav-list {
    flex-wrap: wrap;
    gap: 12px;
  }

  .section {
    padding: 20px 14px;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .cert-grid {
    grid-template-columns: 1fr;
  }

  .cert-card img {
    width: 120px;
    height: 80px;
  }

  .contact-card {
    flex-direction: column;
    align-items: flex-start;
  }
}
