/* Layout helpers */
body {
  padding-top: 70px; /* space for fixed navbar */
}

.section {
  padding: 60px 0;
  scroll-margin-top: 80px;
}

.section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  margin-bottom: 24px;
}

.section-title {
  margin: 0;
  font-weight: 900;
  font-size: 2rem;
  color: #1f2b3d;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.section-title i {
  color: #2e7bff;
  font-size: 1.35rem;
}

/* Navbar */
.navbar {
  background-color: #6861C7 !important;
  padding: 0;
  min-height: 64px;
  height: 64px;
}

.navbar .container {
  min-height: 64px;
  align-items: stretch;
}

.navbar .navbar-brand,
.navbar .nav-link {
  color: #ffffff !important;
}

.navbar-nav {
  align-items: stretch;
}

.navbar-nav .nav-item {
  display: flex;
}

.navbar-nav .nav-link {
  display: flex;
  align-items: center;
  height: 64px;
  padding: 0 1.1rem;
  line-height: 1;
}

.navbar .nav-link:hover {
  color: #ffffff !important;
  background-color: rgba(255, 255, 255, 0.18);
  border-radius: 0;
}

@media (max-width: 991.98px) {
  .navbar {
    height: auto;
    padding: 0.5rem 1rem;
    min-height: 64px;
  }

  .navbar .container {
    min-height: 0;
    align-items: center;
  }

  .navbar-collapse {
    background-color: #6861C7;
    padding: 0.25rem 0;
  }

  .navbar-nav {
    align-items: flex-start;
  }

  .navbar-nav .nav-link {
    width: 100%;
    padding: 0.65rem 1rem;
    height: auto;
  }

  .navbar .nav-link:hover {
    border-radius: 0.35rem;
  }
}

/* Imagery */
.header-img {
  max-width: 150px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.hero-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.hero-title {
  font-size: 2.25rem;
}

.hero-subtitle {
  color: #445067;
  margin: 0;
}

.about-img {
  max-width: 250px;
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  margin-bottom: 20px;
}

.card-img-top {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* Text */
.about-text {
  text-align: justify;
}

#about .row.align-items-center {
  align-items: flex-start !important;
}

#about.section {
  padding-top: 36px;
  padding-bottom: 50px;
}

#about .section-header {
  margin-bottom: 40px;
}

/* Progress bars */
.progress {
  height: 10px;
}

.progress-bar {
  font-size: 0.75rem;
  line-height: 10px;
  padding: 0;
}

/* Skills cards */
.skills-section {
  background: #f7faff;
}

.skill-card {
  background: #ffffff;
  border: 1px solid #eef2f7;
  border-radius: 20px;
  padding: 22px 20px;
  box-shadow: 0 18px 35px rgba(31, 56, 91, 0.08);
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.icon-badge {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 28px;
  margin-bottom: 14px;
}

.bg-skill-blue {
  background: linear-gradient(135deg, #3b83ff, #2e7bff);
}

.bg-skill-green {
  background: linear-gradient(135deg, #0f9e75, #0c8461);
}

.bg-skill-purple {
  background: linear-gradient(135deg, #a355ff, #8a35ff);
}

.bg-skill-orange {
  background: linear-gradient(135deg, #ff9036, #ff7a1f);
}

.skill-card h4,
.skill-card .skill-title {
  font-weight: 700;
  color: #1f2b3d;
  margin: 4px 0 6px;
  font-size: 1.25rem;
  line-height: 1.3;
}

.tech-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: justify;
}

.tech-list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 10px;
  color: #3e4a60;
  line-height: 1.35;
  font-size: 0.95rem;
}

.tech-list li::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2e7bff;
  position: absolute;
  left: 0;
  top: 8px;
}

.skill-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px rgba(31, 56, 91, 0.12);
}

@media (max-width: 575.98px) {
  .icon-badge {
    width: 52px;
    height: 52px;
    font-size: 26px;
  }

  .skill-card {
    padding: 20px 18px;
  }
}

/* Experience cards */
.experience-section {
  background: #f7faff;
}

.experience-card {
  background: #ffffff;
  border: 1px solid #e8eef7;
  border-radius: 18px;
  padding: 20px 18px;
  box-shadow: 0 12px 24px rgba(20, 41, 82, 0.08);
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.experience-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 2px;
}

.experience-badge {
  background: #eef4ff;
  color: #2e7bff;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 12px;
  white-space: nowrap;
}

.experience-card .role {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1f2b3d;
}

.experience-card .company {
  color: #5a6b84;
  font-weight: 600;
}

.experience-meta {
  color: #6a778d;
  font-size: 0.92rem;
}

.experience-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 7px;
  text-align: justify;
}

.experience-points li {
  position: relative;
  padding-left: 15px;
  color: #3e4a60;
  line-height: 1.4;
  font-size: 0.95rem;
}

.experience-points li::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2e7bff;
  position: absolute;
  left: 0;
  top: 8px;
}

.experience-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px rgba(20, 41, 82, 0.12);
}

@media (max-width: 575.98px) {
  .experience-card {
    padding: 18px 16px;
  }

  .experience-badge {
    font-size: 11px;
  }
}

.experience-meta-line {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #6a778d;
  font-size: 0.92rem;
  margin-bottom: 4px;
}

.experience-meta-line i {
  color: #2e7bff;
  font-size: 0.95rem;
}

/* Projects */
.projects-section {
  background: #f7faff;
}

.projects-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.projects-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: #2e7bff;
  text-transform: uppercase;
  letter-spacing: 0.015em;
  font-size: 0.95rem;
}

.projects-kicker i {
  font-size: 1.1rem;
}

.projects-title {
  margin: 0;
  font-weight: 900;
  font-size: 2rem;
  color: #1f2b3d;
}

.project-card {
  background: #ffffff;
  border: 1px solid #e8eef7;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 24px rgba(20, 41, 82, 0.08);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.project-image {
  position: relative;
  width: 100%;
  height: 190px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.project-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: linear-gradient(135deg, #3b83ff, #2e7bff);
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.badge-blue {
  background: linear-gradient(135deg, #0f9e75, #0c8461);
}

.badge-amber {
  background: linear-gradient(135deg, #ffb347, #ff9932);
}

.project-body {
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.project-body h5 {
  margin: 0;
  font-weight: 700;
  color: #1f2b3d;
}

.project-body p {
  margin: 0;
  color: #3e4a60;
  line-height: 1.45;
  text-align: justify;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-tags span {
  background: #eef4ff;
  color: #2e7bff;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.project-link {
  margin-top: auto;
  font-weight: 700;
  color: #2e7bff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  background: transparent;
}

.project-link:hover {
  text-decoration: underline;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(20, 41, 82, 0.12);
}

.project-card:hover .project-image img {
  transform: scale(1.04);
}

/* Contact */
.contact-section {
  background: #f7faff;
}

.contact-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 0 8px;
  font-weight: 800;
  color: #2e7bff;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  font-size: 0.95rem;
}

.contact-kicker i {
  font-size: 1.1rem;
}

.contact-title {
  margin: 0;
  font-weight: 900;
  font-size: 2rem;
  color: #1f2b3d;
}

.contact-subtitle {
  margin: 0;
  color: #5a6b84;
}

.contact-card {
  border: 1px solid #e8eef7;
  border-radius: 16px;
}

.contact-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.contact-social-link {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1f2b3d;
  background: #e8eef7;
  font-size: 1.25rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.contact-social-link:hover {
  color: #ffffff;
  background: #2e7bff;
  transform: translateY(-2px);
  box-shadow: 0 10px 18px rgba(32, 112, 255, 0.25);
  text-decoration: none;
}

.contact-card .form-label {
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
  color: #1f2b3d;
}

.contact-card .form-control {
  font-size: 0.95rem;
  padding: 10px 12px;
}

/* Certificates */
.certificates-section {
  background: #f7faff;
}

.certificate-card {
  background: #ffffff;
  border: 1px solid #e8eef7;
  border-radius: 18px;
  padding: 18px 16px;
  box-shadow: 0 10px 22px rgba(20, 41, 82, 0.08);
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.certificate-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 24px;
}

.certificate-title {
  margin: 4px 0 0;
  font-weight: 700;
  color: #1f2b3d;
}

.certificate-text {
  margin: 0;
  color: #3e4a60;
  line-height: 1.4;
  font-size: 0.95rem;
  text-align: justify;
}

.certificate-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 26px rgba(20, 41, 82, 0.12);
}

.bg-emerald {
  background: linear-gradient(135deg, #0f9e75, #0c8461);
}

.bg-indigo {
  background: linear-gradient(135deg, #3b83ff, #2e7bff);
}

.bg-amber {
  background: linear-gradient(135deg, #ffb347, #ff9932);
}

.bg-cerulean {
  background: linear-gradient(135deg, #2ac3ff, #1c9ddf);
}
