:root {
  --black:       #0a0a0a;
  --dark:        #111111;
  --dark2:       #1a1a1a;
  --dark3:       #222222;
  --yellow:      #f5c518;
  --yellow2:     #e0b000;
  --yellow-dim:  rgba(245, 197, 24, 0.12);
  --yellow-glow: rgba(245, 197, 24, 0.25);
  --white:       #f0ece0;
  --gray:        #888888;
  --gray2:       #555555;

  --font-display: 'Bebas Neue', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --font-mono:    'Space Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

.accent { color: var(--yellow); }

.custom-navbar {
  background: rgba(10, 10, 10, 0.88) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(245, 197, 24, 0.12);
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 2px;
  color: var(--white);
}

.custom-nav-link {
  color: var(--gray) !important;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: color 0.3s;
}

.custom-nav-link:hover {
  color: var(--yellow) !important;
}

.btn-warning {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 1px;
  border: none;
  transition: background 0.3s, transform 0.2s;
}

.btn-warning:hover {
  background-color: var(--yellow2) !important;
  transform: translateY(-1px);
}

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero-bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: clamp(5rem, 18vw, 20rem);
  color: rgba(245, 197, 24, 0.03);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  letter-spacing: 0.05em;
  z-index: 0;
}

.hero-row {
  position: relative;
  z-index: 1;
  min-height: 70vh;
  align-items: center;
}

.hero-greeting {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--yellow);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero-greeting::before {
  content: '';
  display: inline-block;
  width: 2.5rem;
  height: 1px;
  background: var(--yellow);
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 7vw, 7rem);
  line-height: 0.95;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  color: var(--white);
}

.hero-sub {
  color: var(--gray);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.9;
  margin-bottom: 1rem;
}

.custom-badge {
  display: inline-block;
  border: 1px solid var(--yellow);
  color: var(--yellow);
  padding: 0.3rem 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: var(--yellow-dim);
  transition: background 0.3s;
  cursor: default;
}

.custom-badge:hover {
  background: var(--yellow-glow);
}

.hero-photo-wrap {
  position: relative;
  display: inline-block;
}

.photo-frame {
  width: clamp(200px, 26vw, 340px);
  aspect-ratio: 3/4;
  overflow: hidden;
  position: relative;
  border: 2px solid var(--yellow);
  z-index: 1;
}

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(20%);
  transition: filter 0.4s;
}

.profile-img:hover {
  filter: grayscale(0%);
}

.photo-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--dark3);
  text-align: center;
  padding: 1rem;
  gap: 0.75rem;
  pointer-events: none;
  z-index: -1;
}

.placeholder-icon {
  font-size: 3rem;
  opacity: 0.4;
}

.photo-placeholder p {
  font-size: 0.75rem;
  color: var(--gray);
  font-family: var(--font-mono);
  line-height: 1.6;
}

.photo-deco {
  position: absolute;
  border: 2px solid var(--yellow);
  opacity: 0.25;
  z-index: 0;
}

.deco-1 {
  width: 60%;
  height: 60%;
  bottom: -1.5rem;
  right: -1.5rem;
}

.deco-2 {
  width: 35%;
  height: 35%;
  top: -1rem;
  left: -1rem;
  opacity: 0.12;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 5%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 2px;
  color: var(--gray2);
  text-transform: uppercase;
  z-index: 1;
}

.scroll-line {
  width: 3rem;
  height: 1px;
  background: var(--gray2);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%, 100% { width: 1.5rem; opacity: 0.4; }
  50%       { width: 3rem;   opacity: 1;   }
}

.about {
  padding: 8rem 0;
  background: var(--dark);
  position: relative;
  overflow: hidden;
}

.about::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--yellow), transparent);
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--yellow);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.about-desc {
  color: var(--gray);
  margin-bottom: 1.2rem;
  line-height: 1.9;
  font-size: 0.95rem;
}

.exp-card {
  background: var(--dark2);
  border-left: 3px solid var(--yellow);
  transition: background 0.3s;
}

.exp-card:hover {
  background: var(--dark3);
}

.exp-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.exp-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--white);
  margin-bottom: 0.2rem;
}

.exp-org {
  font-size: 0.8rem;
  color: var(--yellow);
  font-family: var(--font-mono);
}

.skills-title {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 2rem;
}

.skill-header {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--white);
}

.skill-pct {
  color: var(--yellow);
}

.custom-progress {
  background: var(--dark3) !important;
  border-radius: 0 !important;
  height: 6px !important;
}

.custom-progress-bar {
  background: linear-gradient(90deg, var(--yellow2), var(--yellow)) !important;
  border-radius: 0 !important;
  transition: width 1.5s ease !important;
  position: relative;
}

.custom-progress-bar::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  background: var(--yellow);
  border-radius: 50%;
}

.certificates {
  padding: 8rem 0;
  background: var(--black);
  position: relative;
  overflow: hidden;
}

.certificates::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--yellow), transparent);
}

.cert-intro {
  color: var(--gray);
  font-size: 0.95rem;
  max-width: 500px;
  margin-bottom: 3rem;
  margin-top: 0.5rem;
}

.cert-card {
  background: var(--dark) !important;
  border: 1px solid var(--dark3) !important;
  border-radius: 0 !important;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  position: relative;
}

.cert-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid var(--yellow);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.cert-card:hover {
  transform: translateY(-6px);
  border-color: transparent !important;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 30px var(--yellow-glow) !important;
}

.cert-card:hover::after {
  opacity: 1;
}

.cert-img-wrap {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--dark2);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cert-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}

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

.cert-img-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dark2);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--gray2);
  z-index: 1;
}

.cert-img[src] {
  position: relative;
  z-index: 2;
}

.cert-info {
  background: var(--dark);
}

.cert-tag {
  display: inline-block;
  background: var(--yellow-dim);
  color: var(--yellow);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
}

.cert-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.4rem;
  line-height: 1.4;
}

.cert-issuer {
  font-size: 0.75rem;
  color: var(--gray);
  font-family: var(--font-mono);
  line-height: 1.6;
  margin: 0;
}

.footer {
  background: var(--dark);
  padding: 3rem 5%;
  border-top: 1px solid var(--dark3);
}

.footer-top p {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gray);
  letter-spacing: 1px;
  margin: 0;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 2.5rem;
  margin-bottom: 0.4rem;
}

.footer-divider {
  height: 1px;
  background: var(--dark3);
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--gray2);
  margin: 0;
}

@media (max-width: 991px) {
  .hero-greeting {
    justify-content: center;
  }

  .hero-name {
    text-align: center;
  }

  .hero-sub {
    text-align: center;
  }

  .d-flex.flex-wrap.gap-2 {
    justify-content: center;
  }

  .photo-frame {
    width: 220px;
  }
}

@media (max-width: 575px) {
  .hero-name {
    font-size: 3rem;
  }

  .hero-bg-text {
    font-size: 5rem;
  }

  .section-title {
    font-size: 2.5rem;
  }
}