/* ============================================
   Academic Custom Styles - nurdyansa.com
   Extracted from inline <style> for caching
   ============================================ */

.badge-academic {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(255, 180, 0, 0.15);
  color: #ffb400;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

/* Publication Cards */
.pub-card {
  background: #252525;
  border-left: 3px solid #ffb400;
  padding: 18px 22px;
  border-radius: 8px;
  margin-bottom: 16px;
  transition: transform 0.3s ease, background 0.3s ease;
}
.pub-card:hover {
  transform: translateX(6px);
  background: #2b2b2b;
}
.pub-title {
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 6px;
}
.pub-meta {
  color: #aaa;
  font-size: 0.85rem;
}
.pub-year {
  color: #ffb400;
  font-weight: bold;
}

/* Skill Pills */
.skill-pill {
  display: inline-block;
  padding: 8px 16px;
  background: #252525;
  border: 1px solid #333;
  border-radius: 30px;
  color: #ddd;
  font-size: 0.85rem;
  margin: 4px;
  transition: all 0.3s;
}
.skill-pill:hover {
  border-color: #ffb400;
  color: #ffb400;
  background: #1e1e1e;
}

/* Hero Image Box */
.hero-img-box {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}
.hero-img-box img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}
.hero-img-box:hover img {
  transform: scale(1.03);
}

/* Modern Academic Mobile Photo Cards (Borderless & Balanced) */
.hero-mobile-photo-wrapper {
  max-width: 240px;
  margin: 42px auto 24px;
}
.hero-mobile-photo-card {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: #181818;
  border: none;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.75);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hero-mobile-photo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.85);
}
.hero-mobile-photo-card img {
  width: 100%;
  height: 295px;
  object-fit: cover;
  object-position: center 0%;
  padding-top: 14px;
  box-sizing: border-box;
  display: block;
}
.hero-mobile-photo-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(12, 12, 12, 0.95), rgba(12, 12, 12, 0.5) 75%, transparent);
  color: #ffb400;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 24px 10px 10px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-family: 'Poppins', sans-serif;
}

/* About Photo Card */
.about-photo-card {
  max-width: 220px;
  border-radius: 18px;
  overflow: hidden;
  background: #181818;
  border: none;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65);
  transition: transform 0.3s ease;
}
.about-photo-card:hover {
  transform: translateY(-3px);
}
.about-photo-card img {
  width: 100%;
  height: 265px;
  object-fit: cover;
  object-position: center 0%;
  padding-top: 10px;
  box-sizing: border-box;
  display: block;
}
.about-photo-caption {
  background: #151515;
  border-top: none;
  padding: 9px 12px 11px;
  text-align: center;
}
.about-photo-name {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
  line-height: 1.3;
}
.about-photo-sub {
  display: block;
  font-size: 0.73rem;
  font-weight: 600;
  color: #ffb400;
  letter-spacing: 0.4px;
  margin-top: 3px;
  font-family: 'Open Sans', sans-serif;
}

/* Mobile responsive adjustments */
@media (max-width: 420px) {
  .hero-mobile-photo-wrapper { max-width: 215px; margin: 34px auto 20px; }
  .hero-mobile-photo-card img { height: 265px; padding-top: 10px; }
  .about-photo-card { max-width: 200px; }
  .about-photo-card img { height: 245px; padding-top: 8px; }
}

/* Blog Section Modern Styling */
.blog-card {
  background: #222222;
  border: 1px solid #333333;
  border-radius: 16px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 36px rgba(0,0,0,0.5);
  border-color: rgba(255, 180, 0, 0.45);
}
.blog-thumb-box {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: #151515;
}
.blog-thumb-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.blog-card:hover .blog-thumb-box img {
  transform: scale(1.08);
}
.blog-category-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(18, 18, 18, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 180, 0, 0.45);
  color: #ffb400;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 30px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
  z-index: 2;
}
.blog-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.blog-meta-info {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.82rem;
  color: #8e8e8e;
  margin-bottom: 12px;
}
.blog-meta-info i {
  color: #ffb400;
  margin-right: 4px;
}
.blog-post-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 12px;
  min-height: 3.3rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-post-title a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.25s ease;
}
.blog-post-title a:hover {
  color: #ffb400;
}
.blog-post-desc {
  color: #a0a0a0;
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}
.blog-read-btn {
  margin-top: auto;
  color: #ffb400;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: gap 0.25s ease, color 0.25s ease;
}
.blog-read-btn:hover {
  color: #ffffff;
  gap: 12px;
  text-decoration: none;
}

/* ============================================
   Desktop Navigation Pill Styles
   Fix for navigation labels & hover animations
   ============================================ */
@media (min-width: 992px) {
  .header .icon-box h2,
  .header .icon-box span,
  .header .icon-box .nav-text {
    z-index: -1;
    position: absolute;
    top: 0;
    right: 0;
    opacity: 0;
    color: #fff;
    line-height: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 30px;
    text-transform: uppercase;
    padding: 0 25px 0 30px;
    height: 50px;
    display: block;
    background-color: #ffb400;
    pointer-events: none;
    white-space: nowrap;
    margin: 0;
    font-size: 15px;
  }

  .header .icon-box:hover h2,
  .header .icon-box:hover span,
  .header .icon-box:hover .nav-text,
  .header .icon-box div:hover h2,
  .header .icon-box div:hover span,
  .header .icon-box div:hover .nav-text {
    opacity: 1 !important;
    right: 27px !important;
    margin: 0 !important;
    text-align: center;
    border-radius: 30px 0 0 30px !important;
  }
}

/* ============================================
   Continuous Smooth Scroll Architecture
   One-page continuous layout with scrollspy
   ============================================ */
html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  overflow-y: auto !important;
  height: auto !important;
  min-height: 100vh;
}

.js .pages,
.pages {
  position: relative !important;
  width: 100% !important;
  height: auto !important;
  min-height: 100vh !important;
  overflow: visible !important;
  z-index: 1 !important;
}

.js .page,
.page {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  width: 100% !important;
  height: auto !important;
  min-height: auto !important;
  visibility: visible !important;
  opacity: 1 !important;
  z-index: 1 !important;
  display: block !important;
  overflow: visible !important;
}

/* Disable full-screen overlay curtain */
.revealer {
  display: none !important;
}

/* Desktop Fixed Header Positioning */
@media (min-width: 992px) {
  .header {
    position: fixed !important;
    right: 30px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    bottom: auto !important;
    height: auto !important;
    z-index: 999 !important;
  }
  .header ul.icon-menu {
    margin: 0 !important;
  }
  .header ul.icon-menu li.icon-box {
    margin: 16px 0 !important;
  }
}

/* Home Section Continuous Layout */
#home {
  min-height: 100vh;
  position: relative;
  overflow: hidden !important;
  display: flex;
  align-items: center;
}

.home {
  height: auto !important;
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden !important;
}

.home .color-block {
  position: absolute !important;
  height: 200%;
  width: 100%;
  transform: rotate(-15deg);
  left: -83%;
  top: -50%;
  z-index: 0;
  pointer-events: none;
}

.home .container-home {
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-desktop-wrapper {
  padding: 40px 20px 40px 50px;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-desktop-wrapper .hero-img-box {
  height: calc(100vh - 80px);
  max-height: 720px;
  width: 100%;
  max-width: 420px;
  border-radius: 30px;
  overflow: hidden;
  border: 4px solid #222;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
}

@media (min-width: 992px) {
  .home .home-details > div {
    max-width: 620px;
    margin-left: 20px;
  }
}

/* Section Spacing & Dividers */
#about,
#portfolio,
#contact,
#blog {
  position: relative;
  padding: 70px 0 100px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.title-section {
  padding: 25px 0 35px !important;
  margin-bottom: 25px;
}

.title-section h2 {
  font-size: 52px;
}

.title-bg {
  font-size: 96px;
}

@media (max-width: 768px) {
  #about,
  #portfolio,
  #contact,
  #blog {
    padding: 50px 0 80px;
  }
  .title-section {
    padding: 15px 0 25px !important;
  }
  .title-section h2 {
    font-size: 38px;
  }
  .title-bg {
    font-size: 60px;
  }
}

/* Footer Styling */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #0d0d0d;
  padding: 35px 20px;
  color: #777;
  font-size: 0.88rem;
}
