:root {
  --bg: #f7f9fb;
  --card: #ffffff;
  --primary: #1e0b64;
  --muted: #6b7280;
  --text: #0f172a;
  --shadow: 0 8px 20px rgba(12, 18, 27, 0.06);
  --radius: 12px;
  --wrap-max: 1200px;
  --gap: 24px;
}

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


html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

a {
  text-decoration: none;
  color: inherit;
}

.wrap {
  width: 100%;
  max-width: var(--wrap-max);
  margin: 0 auto;
  padding: 0 24px;
}

.site-header {
  width: 100%;
  background: var(--card);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(15, 23, 42, 0.04);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02);
}

.page {
  width: 100%;
  padding-top: 72px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 85px;
}

.brand {
  font-weight: 600;
  font-size: 32px;
  white-space: nowrap;
  flex-shrink: 0;
}

.top-nav {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  overflow: hidden;
}

.top-nav .nav-links {
  display: flex;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  white-space: nowrap;
  overflow-x: auto;
}

.top-nav a {
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  padding: 8px 6px;
  display: inline-block;
}

.top-nav a:hover {
  color: var(--primary);
}

.top-nav .nav-links::-webkit-scrollbar {
  height: 6px;
}

.top-nav .nav-links::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.06);
  border-radius: 6px;
}

.section {
  padding: 64px 0;
}

.section-title {
  text-align: center;
  font-size: 30px;
  font-weight: 600;
  margin: 0;
  color: #101828;
}

section {
  scroll-margin-top: 72px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
  align-items: center;
}

.hero-left {
  max-width: 640px;
}

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

.hero-title {
  font-size: 48px;
  font-weight: 600;
  letter-spacing: 1px;
  margin: 0px 0px 0px;
}

.hero-sub {
  font-size: 18px;
  line-height: 1.75;
  color: var(--muted);
  margin: 20px 0px 20px;
  max-width: 65ch;
  text-align: left;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0 28px;
  gap: 14px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.btn.primary {
  background: var(--primary);
  color: #fff;
  border: none;
}

.btn.secondary {
  background: transparent;
  color: var(--primary);
  border: 1px solid rgba(37, 99, 235, 0.12);
}

.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 4px;
  color: var(--muted);
  border: 1px solid #1e0b64;
}

.icon-link svg {
  display: block;
  width: 25px;
  height: 25px;
}

.avatar {
  width: 360px;
  height: 360px;
  border-radius: 50%;
  object-fit: cover;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.skill-card {
  background: var(--card);
  padding: 0 20px 20px;
  background-color: #9fa0a40d;
  border: 1px solid #9fa0a40d;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  position: relative;
}

.skill-card:hover {
  border-color: #1e0b64;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

.skill-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 7px;
  background: #1e0b64;
  border-radius: 8px 8px 0 0;
}

.skill-heading {
  font-size: 22px;
  font-weight: px;
  color: var(--primary);
  margin-bottom: px;
}

.skill-list {
  display: inline-grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding-left: px;
}

.skill-list span {
  font-size: px;
  font-weight: 500;
  color: var(--text);
}

.projects-section .projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 2fr);
  gap: 20px;
  margin-top: 40px;
}

.projects-section .project-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.projects-section .project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}

.projects-section .project-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  /*object-fit: cover;*/
  display: block;
}

.projects-section .project-title {
  font-size: 22px;
  font-weight: 600;
  margin: auto auto auto;
  max-width: 100%;
  padding: 0 20px;
  flex-wrap: auto;
  display: flex;
  align-items: center;
  color: #101828;
  gap: 10px;
}

.projects-section .project-desc {
  font-size: 16px;
  color: #667085;
  margin: 12px 0 24px;
  padding: 0 20px;
  line-height: 1.6;
}

.projects-section .link-icon {
  opacity: 0.6;
  transform: translateY(5px);
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.cert-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: px;
  width: px;
  padding: 12px;
  background: #eeeeee1c;
  border: 4px solid #e5e7eb;
  border-radius: px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.cert-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.cert-logo {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 15px;
}

.cert-name {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
}

.cert-org {
  font-size: 14px;
  color: var(--muted);
  margin-top: 5px;
}

.blog-section .small-lead {
  gap: 20px;
  margin-top: 40px;
  text-align: center;
  color: var(--muted);
  max-width: 70ch;
  margin: 10px auto 18px auto;
}

.center {
  text-align: center;
}

.blog-section .small-lead {
  max-width: 90ch;
  margin: 16px auto 0 auto;
  text-align: center;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.explore-blog-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: px;
  background: #1e0b64;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  font-family: Inter, system-ui, sans-serif;
  padding: 16px 25px;
  border-radius: 4px;
  text-decoration: none;
  white-space: nowrap;
  margin: 20px auto 0 auto;
}

.explore-blog-btn:hover {
  background: #1e0b64;
}

.contact-card-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.contact-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0px;
  padding: 28px;
  width: 100%;
  max-width: 550px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
}

.contact-section .small-lead {
  max-width: 90ch;
  margin: 16px auto 0 auto;
  text-align: center;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.contact-form label {
  display: block;
  margin-bottom: 16px;
}

.contact-form .label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #344054;
  margin-bottom: 6px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px 5px;
  font-size: 15px;
  border-radius: 0px;
  border: 1px solid #d0d5dd;
  font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #7e55d8;
}

.form-actions {
  margin-top: 20px;
  text-align: center;
}

.site-footer {
  background: #1d2939;
  color: #e5e7eb;
  width: 100%;
}

.site-footer .wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 30px 40px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 145px;
  width: 100%;
}

.footer-brand h3 {
  margin: 10px 0px;
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
}

.footer-brand p {
  margin: 10px 0px;
  font-size: 20px;
  color: #cbd5e1;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
  width: 100%;
}

.footer-col h4 {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 600;
  color: #94a3b8;
}

.footer-col a {
  display: block;
  margin-bottom: 10px;
  font-size: 15px;
  color: #ffffff;
  text-decoration: none;
}

.footer-col a:hover {
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid #475467;
  padding-top: 24px;
  text-align: center;
  font-size: 14px;
  color: #94a3b8;
}

@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 2fr 0.9fr;
    gap: 32px;
  }

  .cert-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .projects-section .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }

  .skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 320px));
    justify-content: center;
  }

  .skill-card {
    width: 100%;
    max-width: 420px;
    text-align: left;
  }

  .skill-heading {
    text-align: center;
  }

  .cert-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-top {
    flex-direction: column;
    gap: 40px;
  }

  .footer-links {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-right {
    order: -1;
  }

  .avatar {
    margin: 0 auto 18px auto;
  }
}

@media (max-width: 520px) {

   .wrap {
    padding: 0 16px;
  }

  .header-inner {
    gap: 10px;
  }

  .brand {
    font-size: 16px;
  }

  .top-nav .nav-links {
    gap: 10px;
    font-size: 13px;
    white-space: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .hero-title {
    font-size: 22px;
  }

  .hero-sub {
    font-size: 15px;
  }

  .avatar {
    width: 180px;
    height: 180px;
  }

  .projects-section .projects-grid {
  grid-template-columns: 1fr;
}

  .project-image {
    height: auto;
  }

  .cert-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-links {
    grid-template-columns: 1fr;
  }
}