/* ==========================================================================
   PORTOFOLIO WEBSITE - NOVAL SANJAYA
   CSS Custom Styling built on Bootstrap 5.0.2
   ========================================================================== */

/* 1. Custom CSS Variables */
:root {
  --primary-color: #1e40af;       /* Royal Tech Blue */
  --primary-hover: #1d4ed8;
  --secondary-color: #0f172a;     /* Deep Slate */
  --accent-color: #0284c7;        /* Sky Blue Accent */
  --bg-light: #f8fafc;            /* Clean Slate White */
  --bg-card: #ffffff;             /* Pure White Card */
  --text-main: #334155;           /* Slate 700 */
  --text-muted: #64748b;          /* Slate 500 */
  --text-dark: #0f172a;           /* Slate 900 */
  --border-color: #e2e8f0;        /* Slate 200 */
  --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --card-shadow-hover: 0 12px 20px -3px rgba(30, 64, 175, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --transition-fast: all 0.25s ease-in-out;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* 2. Base & Typography */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: #ffffff;
  line-height: 1.6;
}

section {
  padding: 5rem 0;
  scroll-margin-top: 75px;
}

.section-bg-alt {
  background-color: var(--bg-light);
}

.section-title-badge {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--primary-color);
  background-color: rgba(30, 64, 175, 0.08);
  padding: 0.35rem 0.9rem;
  border-radius: 50rem;
  margin-bottom: 0.75rem;
}

.section-heading {
  font-weight: 800;
  color: var(--text-dark);
  font-size: 2.1rem;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

.section-subheading {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 650px;
  margin: 0 auto 3rem auto;
}

/* 3. Navigation Bar */
.navbar-custom {
  background-color: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  padding: 0.9rem 0;
  transition: var(--transition-fast);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-custom .navbar-brand {
  font-weight: 700;
  font-size: 1.25rem;
  color: #ffffff;
  letter-spacing: -0.3px;
}

.navbar-custom .navbar-brand span {
  color: #38bdf8;
}

.navbar-custom .nav-link {
  color: #cbd5e1;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0.9rem !important;
  transition: var(--transition-fast);
  border-radius: 6px;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.08);
}

.navbar-custom .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.2);
}

.navbar-custom .navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(56, 189, 248, 0.25);
}

/* 4. Hero Section */
.hero-section {
  padding-top: 8rem;
  padding-bottom: 6rem;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero-section::before,
.hero-section::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-section::before {
  background:
    radial-gradient(circle at 15% 25%, rgba(96, 165, 250, 0.17), transparent 18%),
    radial-gradient(circle at 72% 18%, rgba(34, 211, 238, 0.12), transparent 22%),
    radial-gradient(circle at 78% 72%, rgba(148, 163, 184, 0.12), transparent 20%),
    linear-gradient(rgba(15, 118, 110, 0.04), rgba(15, 118, 110, 0.04)),
    repeating-linear-gradient(
      90deg,
      rgba(148, 163, 184, 0.05) 0,
      rgba(148, 163, 184, 0.05) 1px,
      transparent 1px,
      transparent 72px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(148, 163, 184, 0.04) 0,
      rgba(148, 163, 184, 0.04) 1px,
      transparent 1px,
      transparent 72px
    );
  background-size: auto, auto, auto, auto, auto, auto;
  opacity: 0.9;
}

.hero-section::after {
  content: "const user = { role: 'IS' };\A if (ready) { learn(); }\A 01 10 01 10\A &lt;/&gt; // system\A 0 1 1 0\A { data, sync }";
  position: absolute;
  right: 9%;
  top: 12%;
  width: 24%;
  min-width: 180px;
  color: rgba(148, 163, 184, 0.32);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.72rem;
  line-height: 1.8;
  letter-spacing: 0.08em;
  text-align: left;
  white-space: pre-line;
  filter: blur(0.15px);
  transform: rotate(2deg);
  z-index: 0;
  opacity: 0.9;
}

.hero-section .container {
  position: relative;
  z-index: 1;
}

.hero-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
  font-size: 0.85rem;
  padding: 0.4rem 1rem;
  border-radius: 50rem;
  margin-bottom: 1.5rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: #22c55e;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px #22c55e;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -1px;
}

.hero-title span {
  background: linear-gradient(90deg, #38bdf8, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #94a3b8;
  font-weight: 500;
  margin-bottom: 1.25rem;
}

.hero-description {
  font-size: 1.05rem;
  color: #cbd5e1;
  max-width: 580px;
  margin-bottom: 2rem;
}

.hero-img-container {
  position: relative;
  display: inline-block;
}

.hero-img-container img {
  width: 320px;
  height: 320px;
  object-fit: cover;
  border-radius: 50%;
  border: 6px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
}

.hero-badge-tag {
  position: absolute;
  bottom: 15px;
  right: 15px;
  background-color: #1e40af;
  color: #ffffff;
  padding: 0.5rem 1rem;
  border-radius: 50rem;
  font-size: 0.85rem;
  font-weight: 600;
  border: 2px solid #0f172a;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.btn-custom-primary {
  background-color: #2563eb;
  color: #ffffff;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  border: none;
  transition: var(--transition-fast);
}

.btn-custom-primary:hover {
  background-color: #1d4ed8;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.btn-custom-outline {
  background-color: transparent;
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  transition: var(--transition-fast);
}

.btn-custom-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: #ffffff;
  transform: translateY(-2px);
}

/* 5. About Me Section */
.about-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2.25rem;
  box-shadow: var(--card-shadow);
  height: 100%;
}

.stat-box {
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 1.25rem;
  text-align: center;
  transition: var(--transition-fast);
}

.stat-box:hover {
  border-color: var(--primary-color);
  transform: translateY(-3px);
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-color);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 0.25rem;
}

/* 6. Education Section */
.timeline-item {
  position: relative;
  padding-left: 2rem;
  border-left: 2px solid var(--border-color);
  padding-bottom: 2.5rem;
}

.timeline-item:last-child {
  border-left: 2px solid transparent;
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -9px;
  top: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--primary-color);
  border: 3px solid #ffffff;
  box-shadow: 0 0 0 2px var(--primary-color);
}

.timeline-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
  transition: var(--transition-fast);
}

.timeline-card:hover {
  box-shadow: var(--card-shadow-hover);
  border-color: #cbd5e1;
}

.timeline-date {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-color);
  background-color: rgba(30, 64, 175, 0.08);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 0.5rem;
}

/* 7. Experience Section */
.experience-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.75rem;
  box-shadow: var(--card-shadow);
  transition: var(--transition-fast);
  height: 100%;
}

.experience-card:hover {
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-3px);
  border-color: #cbd5e1;
}

.experience-img-wrapper {
  height: 180px;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 1.25rem;
  background-color: var(--bg-light);
}

.experience-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-fast);
}

.experience-card:hover .experience-img-wrapper img {
  transform: scale(1.04);
}

.company-badge {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dark);
  background-color: #e2e8f0;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
}

/* 8. Organization Section */
.org-highlight-card {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  color: #ffffff;
  border-radius: 14px;
  padding: 2.5rem;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.25);
}

.org-highlight-card h4 {
  color: #ffffff;
  font-weight: 700;
}

.org-highlight-card .text-muted-custom {
  color: #94a3b8;
}

.duty-list {
  list-style: none;
  padding-left: 0;
  margin-top: 1.25rem;
}

.duty-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.65rem;
  color: #e2e8f0;
  font-size: 0.95rem;
}

.duty-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #38bdf8;
  font-weight: bold;
}

/* 9. Skills Section */
.skill-category-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
  height: 100%;
  transition: var(--transition-fast);
}

.skill-category-card:hover {
  border-color: var(--primary-color);
  box-shadow: var(--card-shadow-hover);
}

.skill-category-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.skill-badge {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dark);
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  margin-right: 0.4rem;
  margin-bottom: 0.5rem;
  transition: var(--transition-fast);
}

.skill-badge:hover {
  background-color: rgba(30, 64, 175, 0.08);
  color: var(--primary-color);
  border-color: rgba(30, 64, 175, 0.2);
}

/* 10. Projects Section */
.project-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: var(--transition-fast);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--card-shadow-hover);
  border-color: #cbd5e1;
}

.project-img-wrapper {
  position: relative;
  overflow: hidden;
  height: 200px;
  background-color: #0f172a;
}

.project-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-fast);
}

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

.project-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.project-description {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.project-features {
  font-size: 0.88rem;
  color: var(--text-main);
  padding-left: 1.2rem;
  margin-bottom: 1.25rem;
}

.project-features li {
  margin-bottom: 0.3rem;
}

.project-tech-stack {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.tech-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary-color);
  background-color: rgba(30, 64, 175, 0.08);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  margin-right: 0.3rem;
  margin-bottom: 0.3rem;
}

/* 11. Certifications Section */
.cert-card {
  background-color: var(--bg-card);
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  padding: 1.5rem;
  transition: var(--transition-fast);
  height: 100%;
}

.cert-card:hover {
  border-style: solid;
  border-color: var(--primary-color);
  box-shadow: var(--card-shadow);
}

.cert-img-wrapper {
  height: 180px;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 1.25rem;
  background-color: var(--bg-light);
}

.cert-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-fast);
}

.cert-card:hover .cert-img-wrapper img {
  transform: scale(1.04);
}

.cert-icon-placeholder {
  width: 48px;
  height: 48px;
  background-color: rgba(30, 64, 175, 0.08);
  color: var(--primary-color);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

/* 12. Activities Section */
.activity-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: var(--transition-fast);
  height: 100%;
}

.activity-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
}

.activity-img-wrapper {
  height: 180px;
  overflow: hidden;
}

.activity-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.activity-body {
  padding: 1.25rem;
}

/* 13. Interests Section */
.interest-pill-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: var(--card-shadow);
  transition: var(--transition-fast);
}

.interest-pill-card:hover {
  border-color: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: var(--card-shadow-hover);
}

.interest-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background-color: rgba(2, 132, 199, 0.1);
  color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* 14. Contact Section */
.contact-info-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.75rem;
  box-shadow: var(--card-shadow);
  height: 100%;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.contact-item:last-child {
  margin-bottom: 0;
}

.contact-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background-color: rgba(30, 64, 175, 0.08);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  flex-shrink: 0;
}

.contact-form-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--card-shadow);
}

.form-control-custom {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.7rem 1rem;
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.form-control-custom:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(30, 64, 175, 0.15);
}

/* 15. Footer */
.footer-custom {
  background-color: var(--secondary-color);
  color: #94a3b8;
  padding: 3rem 0 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-brand {
  color: #ffffff;
  font-weight: 700;
  font-size: 1.2rem;
}

.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
  margin-right: 1.25rem;
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: #38bdf8;
}

.back-to-top-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: var(--transition-fast);
}

.back-to-top-btn:hover {
  background-color: #2563eb;
  color: #ffffff;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
  .hero-title {
    font-size: 2.3rem;
  }
  .hero-img-container img {
    width: 260px;
    height: 260px;
    margin-top: 2rem;
  }
  section {
    padding: 3.5rem 0;
  }
}

@media (max-width: 575.98px) {
  .hero-title {
    font-size: 2rem;
  }
  .hero-subtitle {
    font-size: 1.1rem;
  }
  .section-heading {
    font-size: 1.75rem;
  }
}

/* Image Preview Clickable Cursor */
.img-preview-trigger {
  cursor: pointer;
  transition: var(--transition-fast);
}

.img-preview-trigger:hover {
  opacity: 0.92;
}

/* Image Preview Modal Sizing */
#imagePreviewModal .modal-dialog {
  max-width: 90vw;
  width: 90vw;
}

#imagePreviewModal #modalPreviewImage {
  max-height: 82vh;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}


