/* Premium visual enhancements — layered on top of iPortfolio template */

:root {
  --primary: #149ddd;
  --primary-light: #37b3ed;
  --primary-dark: #0b7eb5;
  --accent: #21b1ca;
  --navy: #173b6c;
  --dark: #050d18;
  --surface: #f5f8fd;
  --radius: 14px;
  --shadow: 0 10px 40px rgba(5, 13, 24, 0.1);
  --shadow-hover: 0 20px 50px rgba(20, 157, 221, 0.2);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  /* HP kecil saja yang pakai gambar utuh (contain); di atas ini pakai cover */
  --hero-contain-max: 480px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Open Sans", sans-serif;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* ── Header ── */
#header {
  overflow-x: hidden;
}

#header .nav-menu.navbar {
  width: 100%;
  padding-left: 0;
  padding-right: 0;
}

.nav-menu > ul {
  width: 100%;
  max-width: 100%;
  padding: 0;
  margin: 0;
}

.nav-menu > ul > li {
  width: 100%;
}

#header .profile img {
  height: 120px;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.nav-menu a {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border-radius: 8px;
  border-left: 3px solid transparent;
  color: #e2e2e2 !important;
  padding-left: 10px !important;
  padding-right: 8px !important;
}

.nav-menu a .icon-header {
  width: 22px;
  min-width: 22px;
  flex-shrink: 0;
}

.nav-menu a i {
  color: #e2e2e2 !important;
}

.nav-menu .active,
.nav-menu .active:focus {
  background: rgba(0, 0, 0, 0.28);
  border-left-color: var(--primary);
  color: var(--primary) !important;
}

.nav-menu .active i,
.nav-menu .active:focus i {
  color: var(--primary) !important;
}

.nav-menu a:hover:not(.active),
.nav-menu li:hover > a:not(.active) {
  background: rgba(255, 255, 255, 0.06);
  border-left-color: transparent;
  color: #fff !important;
}

.nav-menu a:hover:not(.active) i,
.nav-menu li:hover > a:not(.active) i {
  color: #fff !important;
}

/* ── Hero ── */
#hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100svh;
  background-color: #0a1a28;
  background-image: none !important;
  background-attachment: scroll !important;
}

#hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: #0a1a28;
  background-image: url("../img/ilham_bg.551171daa218.JPG");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

#hero::before {
  z-index: 1;
  background: linear-gradient(
    160deg,
    rgba(1, 12, 20, 0.88) 0%,
    rgba(3, 28, 42, 0.72) 45%,
    rgba(0, 0, 0, 0.68) 100%
  );
}

#hero .hero-container,
.hero-scroll-down {
  position: relative;
  z-index: 2;
}

/* HP kecil: gambar utuh tanpa crop (atur lebar max di --hero-contain-max) */
@media (max-width: 480px) {
  #hero::after {
    background-size: contain;
    background-position: center center;
  }

  #hero::before {
    background: linear-gradient(
      180deg,
      rgba(1, 12, 20, 0.75) 0%,
      rgba(3, 28, 42, 0.55) 40%,
      rgba(0, 0, 0, 0.6) 100%
    );
  }
}

/* Tablet & desktop: gambar full cover */
@media (min-width: 481px) {
  #hero::after {
    background-size: cover;
    background-position: center center;
    background-attachment: scroll;
  }
}

@media (min-width: 1024px) {
  #hero::after {
    background-attachment: fixed;
  }
}

#hero .hero-container {
  padding: 0 20px;
  max-width: 820px;
}

#hero .hero-subtitle {
  color: rgba(255, 255, 255, 0.7) !important;
  font-family: "Poppins", sans-serif;
  font-size: 15px !important;
  font-weight: 400;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 14px !important;
}

#hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  line-height: 1.1;
  letter-spacing: -1px;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.45);
  margin-bottom: 18px;
}

#hero .hero-tagline {
  color: rgba(255, 255, 255, 0.92) !important;
  font-size: clamp(1.1rem, 3vw, 1.65rem) !important;
  margin-bottom: 36px !important;
}

#hero .hero-tagline .typed {
  color: #fff !important;
  font-weight: 600;
  border-bottom: 3px solid var(--primary);
  padding-bottom: 3px;
}

.hero-scroll-down {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255, 255, 255, 0.65);
  font-size: 30px;
  line-height: 1;
  animation: scrollPulse 2s ease-in-out infinite;
  transition: color 0.3s;
}

.hero-scroll-down:hover {
  color: var(--primary);
}

@keyframes scrollPulse {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.6; }
  50% { transform: translateX(-50%) translateY(8px); opacity: 1; }
}

/* ── Sections ── */
section {
  padding: 80px 0;
}

.section-title h2 {
  font-size: 36px;
  letter-spacing: -0.5px;
}

.section-title h2::after {
  width: 70px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.section-title p {
  color: #4a5568;
  font-size: 16px;
  max-width: 720px;
}

/* ── About ── */
.about-photo {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
}

.about-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  border: 2px solid rgba(20, 157, 221, 0.25);
  pointer-events: none;
}

.about-photo img {
  width: 100%;
  display: block;
  transition: transform 0.6s var(--ease);
}

.about-photo:hover img {
  transform: scale(1.03);
}

.about .content h3 {
  font-size: 28px;
}

.about .content ul li {
  background: var(--surface);
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 12px;
  border-left: 3px solid var(--primary);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.about .content ul li:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow);
}

/* ── Resume ── */
.resume-block {
  margin-bottom: 48px;
}

.resume-block:last-child {
  margin-bottom: 0;
}

.resume-block__header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid #e8eef5;
}

.resume-block__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  font-size: 22px;
  flex-shrink: 0;
}

.resume-block__header h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 4px;
  font-family: "Poppins", sans-serif;
}

.resume-block__header p {
  margin: 0;
  font-size: 14px;
  color: #6b7c93;
}

.resume-block__header--career .resume-block__icon {
  background: rgba(20, 157, 221, 0.12);
  color: var(--primary);
}

.resume-block__header--education .resume-block__icon {
  background: rgba(23, 59, 108, 0.1);
  color: var(--navy);
}

.resume-block__header--activities .resume-block__icon {
  background: rgba(33, 177, 202, 0.12);
  color: var(--accent);
}

.resume-block__body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.resume-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px 28px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(20, 157, 221, 0.08);
  transition: all 0.35s var(--ease);
}

.resume-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
  border-color: rgba(20, 157, 221, 0.2);
}

.resume-card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eef2f7;
}

.resume-card__top h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 6px;
  font-family: "Poppins", sans-serif;
  line-height: 1.35;
}

.resume-card__subtitle {
  margin: 0;
  font-size: 14px;
  color: var(--primary);
  font-weight: 600;
}

.resume-card__date {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
  color: #4a5568;
  background: linear-gradient(135deg, #e8f4fc, #dce8f8);
  padding: 6px 14px;
  border-radius: 50px;
  white-space: nowrap;
}

.resume-card__date--sm {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 12px;
  padding: 4px 12px;
}

.resume-card__text {
  margin: 0;
  font-size: 15px;
  color: #4a5568;
  line-height: 1.75;
}

.resume-card__list {
  margin: 0;
  padding-left: 18px;
}

.resume-card__list li {
  font-size: 14px;
  color: #4a5568;
  line-height: 1.7;
  margin-bottom: 8px;
}

.resume-card__list li:last-child {
  margin-bottom: 0;
}

.resume-subcard {
  background: #fff;
  border-radius: var(--radius);
  padding: 22px;
  height: 100%;
  box-shadow: var(--shadow);
  border: 1px solid rgba(20, 157, 221, 0.08);
  transition: all 0.35s var(--ease);
}

.resume-subcard:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
  border-color: rgba(20, 157, 221, 0.2);
}

.resume-subcard__label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--accent);
  background: rgba(33, 177, 202, 0.1);
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.resume-subcard h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 6px;
  font-family: "Poppins", sans-serif;
  line-height: 1.35;
}

@media (max-width: 768px) {
  .resume-card__top {
    flex-direction: column;
    gap: 10px;
  }

  .resume-card__date {
    align-self: flex-start;
  }
}

/* ── Portfolio ── */
.portfolio .portfolio-wrap {
  border-radius: var(--radius);
  overflow: visible;
  height: 100%;
  transition: transform 0.35s var(--ease);
}

.portfolio .portfolio-wrap:hover {
  transform: translateY(-4px);
}

.portfolio .portfolio-wrap::before {
  background: rgba(5, 13, 24, 0.52);
  pointer-events: none;
  opacity: 0;
  border-radius: var(--radius);
}

.portfolio .portfolio-wrap:hover::before {
  opacity: 1;
  transition: opacity 0.3s ease;
}

.portfolio .portfolio-wrap .card-body {
  position: relative;
}

.portfolio .portfolio-wrap .portfolio-links {
  position: absolute;
  left: 0 !important;
  right: 0 !important;
  top: 0 !important;
  bottom: 0 !important;
  opacity: 0 !important;
  visibility: hidden;
  transform: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  transition: opacity 0.3s ease, visibility 0.3s ease !important;
  z-index: 4;
  pointer-events: none;
}

.portfolio .portfolio-wrap:hover .portfolio-links {
  opacity: 1 !important;
  visibility: visible;
  pointer-events: auto;
}

.portfolio .portfolio-wrap .portfolio-links a {
  width: 46px;
  height: 46px;
  min-width: 46px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 4px 14px rgba(20, 157, 221, 0.35);
  transition: transform 0.2s ease, background 0.2s ease;
  flex: 0 0 auto;
}

.portfolio .portfolio-wrap .portfolio-links a + a {
  border-left: none;
}

.portfolio .portfolio-wrap .portfolio-links a:hover {
  transform: scale(1.08);
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
}

.portfolio #portfolio-flters {
  background: #fff;
  box-shadow: var(--shadow);
  border-radius: 50px;
  padding: 6px 12px;
}

.portfolio #portfolio-flters li {
  border-radius: 50px;
  transition: color 0.25s ease, background 0.25s ease;
  margin: 4px 2px;
}

.portfolio #portfolio-flters li:hover:not(.filter-active) {
  color: var(--primary) !important;
  background: rgba(20, 157, 221, 0.08);
}

.portfolio #portfolio-flters li.filter-active {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff !important;
}

.portfolio .portfolio-item {
  margin-bottom: 0;
}

.card-portofolio {
  border: 1px solid rgba(20, 157, 221, 0.08) !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
  background: #fff;
  height: 100% !important;
  min-height: 300px;
}

.card-portofolio .card-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 300px;
  padding: 20px 16px !important;
}

.portfolio .portfolio-wrap:hover .card-portofolio,
.card-portofolio:hover {
  box-shadow: var(--shadow-hover);
  border-color: rgba(20, 157, 221, 0.2) !important;
}

.card-portofolio .card-body > span:first-of-type {
  font-weight: 600;
  color: var(--navy);
  font-size: 15px;
  line-height: 1.4;
  margin-top: 8px;
}

.card-portofolio .card-body .text-muted {
  font-size: 13px;
  margin-bottom: 4px;
}

.card-portofolio img {
  max-height: 150px;
  width: 100%;
  object-fit: contain;
  flex-shrink: 0;
}

.portfolio-status {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  margin-top: 8px;
  letter-spacing: 0.03em;
  line-height: 1.2;
}

.portfolio-status--completed {
  background: #e8f5e9;
  color: #2e7d32;
}

.portfolio-status--development {
  background: #fff3e0;
  color: #e65100;
}

.portfolio-detail-list .portfolio-status {
  margin-top: 0;
}

.portfolio-item.pagination-hidden {
  display: none !important;
}

#pagination {
  margin-top: 32px;
  gap: 6px;
}

#pagination .page-item {
  margin: 0 2px;
}

#pagination .page-link {
  border-radius: 10px;
  color: var(--primary);
  min-width: 42px;
  height: 42px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  border: 1px solid #dce8f8;
  background: #fff;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

#pagination .page-link:hover:not(:disabled) {
  background: rgba(20, 157, 221, 0.1);
  border-color: var(--primary);
  color: var(--primary-dark);
}

#pagination .page-item.active .page-link {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-color: var(--primary-dark);
  color: #fff !important;
  cursor: default;
}

#pagination .page-item.disabled .page-link {
  color: #adb5bd;
  background: #f5f8fd;
  border-color: #e8eef5;
  cursor: not-allowed;
}

/* ── Skills ── */
.skill {
  background: var(--surface);
}

.skills-grid > [class*="col-"] {
  display: flex;
}

.skill-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(20, 157, 221, 0.08);
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.35s var(--ease), transform 0.35s var(--ease);
}

.skill-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
  border-color: rgba(20, 157, 221, 0.2);
}

.skill-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-size: 22px;
  margin-bottom: 18px;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(20, 157, 221, 0.3);
}

.skill-card__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 12px;
  font-family: "Poppins", sans-serif;
  line-height: 1.35;
}

.skill-card__desc {
  font-size: 14px;
  color: #4a5568;
  line-height: 1.75;
  margin: 0;
  flex: 1;
}

/* ── Contact ── */
.contact .info,
.contact .additional-content {
  border-radius: var(--radius);
  border: 1px solid rgba(20, 157, 221, 0.1);
}

.contact .info i {
  transition: all 0.3s var(--ease);
}

.contact .form-control {
  border-radius: 10px;
  border: 1px solid #dce8f8;
  padding: 12px 16px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.contact .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(20, 157, 221, 0.15);
}

.contact .btn-primary,
.additional-content .btn-primary {
  border-radius: 50px;
  padding: 12px 32px;
  font-weight: 600;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border: none;
  box-shadow: 0 6px 20px rgba(20, 157, 221, 0.35);
  transition: all 0.35s var(--ease);
}

.contact .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(20, 157, 221, 0.45);
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
}

/* ── Portfolio Details Page ── */
.breadcrumbs {
  background: var(--surface);
  padding: 20px 0;
  border-bottom: 1px solid #e8eef5;
}

.breadcrumbs h2 {
  font-size: 26px;
  font-weight: 700;
  color: var(--navy);
}

.portfolio-details {
  padding: 40px 0 80px;
}

.portfolio-details-slider {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(20, 157, 221, 0.08);
  overflow: hidden;
  padding-bottom: 40px;
}

.portfolio-slide-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
  padding: 24px;
  background: #f8fafc;
}

.portfolio-slide-frame img {
  max-height: 420px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}

.portfolio-details-slider .swiper-pagination {
  bottom: 12px !important;
}

.portfolio-details-slider .swiper-pagination-bullet {
  background: #dce8f8;
  opacity: 1;
  border: 1px solid var(--primary);
}

.portfolio-details-slider .swiper-pagination-bullet-active {
  background: var(--primary);
}

.portfolio-detail-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(20, 157, 221, 0.08);
  height: 100%;
  overflow: hidden;
}

.portfolio-detail-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  background: linear-gradient(135deg, #e8f4fc, #f5f8fd);
  border-bottom: 1px solid #e8eef5;
}

.portfolio-detail-card__header i {
  font-size: 22px;
  color: var(--primary);
}

.portfolio-detail-card__header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  font-family: "Poppins", sans-serif;
}

.portfolio-detail-list {
  list-style: none;
  margin: 0;
  padding: 16px 24px 24px;
}

.portfolio-detail-list li {
  padding: 14px 0;
  border-bottom: 1px solid #eef2f7;
}

.portfolio-detail-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.portfolio-detail-list .label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #6b7c93;
  margin-bottom: 4px;
}

.portfolio-detail-list .value {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.5;
  word-break: break-word;
}

.portfolio-detail-list .value a {
  color: var(--primary);
  text-decoration: none;
}

.portfolio-detail-list .value a:hover {
  text-decoration: underline;
}

.portfolio-detail-desc {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(20, 157, 221, 0.08);
  padding: 28px 32px;
}

.portfolio-detail-desc h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 16px;
  font-family: "Poppins", sans-serif;
  padding-bottom: 12px;
  border-bottom: 2px solid #e8eef5;
}

.portfolio-detail-desc p {
  margin: 0;
  font-size: 15px;
  color: #4a5568;
  line-height: 1.8;
}

@media (max-width: 991px) {
  .portfolio-slide-frame {
    min-height: 280px;
    padding: 16px;
  }

  .portfolio-slide-frame img {
    max-height: 300px;
  }
}

/* ── Misc ── */
.back-to-top {
  box-shadow: 0 6px 20px rgba(20, 157, 221, 0.4);
}

.mobile-nav-toggle {
  box-shadow: 0 4px 16px rgba(20, 157, 221, 0.4);
}


@media (max-width: 768px) {
  section {
    padding: 60px 0;
  }

  .portfolio #portfolio-flters li {
    font-size: 11px;
    padding: 8px 12px;
  }

  .portfolio #portfolio-flters {
    border-radius: var(--radius);
  }
}
