/* ================================================================
   INSIDE CYBER DEFENSE — Direction 3: Structured Authority
   ----------------------------------------------------------------
   Palette  : Off-white #FAFAF8 · Navy #1D2D4A · Gold #B8860B
   Type     : Inter (body / UI) · Lora (display / headings)
   Rhythm   : 8px base unit · 1100px max-width · 100–120px sections
   ================================================================ */

/* ----------------------------------------------------------------
   GOOGLE FONTS
---------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Lora:ital,wght@0,400;0,600;0,700;1,400&display=swap');


/* ----------------------------------------------------------------
   DESIGN TOKENS
---------------------------------------------------------------- */
:root {
  --navy:               #1D2D4A;
  --navy-dark:          #0F1E33;
  --navy-mid:           #243659;
  --gold:               #B8860B;
  --gold-hover:         #9A710A;
  --gold-pale:          rgba(184, 134, 11, 0.10);
  --gold-border:        rgba(184, 134, 11, 0.32);
  --off-white:          #FAFAF8;
  --white:              #FFFFFF;
  --text-main:          #1C1C1E;
  --text-body:          #374151;
  --text-muted:         #6B7280;
  --text-light:         #9CA3AF;
  --text-on-navy:       #F0EDE8;
  --text-on-navy-muted: rgba(240, 237, 232, 0.58);
  --border:             rgba(28, 28, 30, 0.12);
  --border-strong:      rgba(28, 28, 30, 0.20);
  --border-navy:        rgba(240, 237, 232, 0.12);
  --shadow-sm:          0 1px 4px rgba(0, 0, 0, 0.07);
  --shadow-md:          0 4px 18px rgba(0, 0, 0, 0.10);
  --shadow-lg:          0 8px 32px rgba(0, 0, 0, 0.13);
  --radius:             8px;
  --radius-lg:          12px;
}


/* ----------------------------------------------------------------
   RESET / BASE
---------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  /* kill the blanket all-property transition from old custom.css */
  transition: none;
}

html { overflow-x: hidden; }

body {
  background: var(--off-white) !important;
  color: var(--text-body);
  font-family: 'Inter', 'Source Sans Pro', sans-serif !important;
  font-size: 16px !important;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Lora', Georgia, serif !important;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

p {
  font-family: 'Inter', sans-serif !important;
  font-size: 16px !important;
  color: var(--text-body);
  line-height: 1.75;
}

a {
  transition: color 0.18s ease, opacity 0.18s ease;
}

a:hover { text-decoration: none; }

ul, ol { list-style: none; margin: 0; padding: 0; }
ul li, ol li { list-style: none; }

.section-padding { padding: 100px 0; }


/* ----------------------------------------------------------------
   SHARED SECTION TYPOGRAPHY
---------------------------------------------------------------- */
.section-title {
  font-family: 'Lora', Georgia, serif !important;
  font-size: 36px !important;
  font-weight: 700 !important;
  color: var(--text-main) !important;
  text-align: center;
  letter-spacing: -0.3px;
  line-height: 1.2;
  margin-bottom: 12px !important;
  padding: 0;
  position: static;
}

.section-title::after { display: none !important; }

.section-title-dark { color: var(--text-on-navy) !important; }

.section-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 16px !important;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 56px !important;
  display: block;
}

.section-subtitle-light {
  font-family: 'Inter', sans-serif;
  font-size: 16px !important;
  color: var(--text-on-navy-muted);
  text-align: center;
  margin-top: -4px;
  margin-bottom: 52px;
  display: block;
}


/* ----------------------------------------------------------------
   GLOBAL BUTTON OVERRIDES
---------------------------------------------------------------- */
.btn-common {
  background-color: var(--navy) !important;
  color: var(--text-on-navy) !important;
  font-family: 'Inter', sans-serif;
  font-size: 14px !important;
  font-weight: 600 !important;
  letter-spacing: 0.2px;
  border-radius: var(--radius) !important;
  padding: 11px 26px !important;
  border: 1.5px solid var(--navy) !important;
  box-shadow: none !important;
  text-transform: none !important;
  transition: background-color 0.18s ease, border-color 0.18s ease !important;
}

.btn-common:hover,
.btn-common:focus {
  background-color: var(--navy-dark) !important;
  border-color: var(--navy-dark) !important;
  color: var(--text-on-navy) !important;
  box-shadow: none !important;
}

.controls .filter.active,
.btn-common.active {
  background-color: var(--gold) !important;
  border-color: var(--gold) !important;
  color: #fff !important;
}


/* ================================================================
   NAVBAR
================================================================ */
.navbar.indigo,
.navbar.indigo.top-nav-collapse,
.top-nav-collapse {
  background: var(--navy) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.22) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0 !important;
}

.navbar-brand img { height: 38px; width: auto; transform: translateZ(0); }

.navbar-expand-lg .navbar-nav .nav-link {
  color: rgba(240, 237, 232, 0.68) !important;
  font-family: 'Inter', sans-serif;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  letter-spacing: 0.1px;
  padding: 22px 14px !important;
  text-transform: none !important;
  border-bottom: 2px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease !important;
}

.navbar-expand-lg .navbar-nav .nav-link:hover,
.navbar-expand-lg .navbar-nav li a:hover,
.navbar li.active a.nav-link,
.top-nav-collapse .navbar-nav .nav-link:hover,
.top-nav-collapse .navbar-nav li.active a.nav-link,
.navbar-nav .nav-item .nav-link.active {
  color: #fff !important;
  border-bottom-color: var(--gold) !important;
}

.navbar-nav .dropdown-menu {
  background-color: var(--navy-dark);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-top: 2px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 180px;
  right: 0;
  left: auto;
  margin-top: 0;
}

/* Suppress main.css arrow — positioned for light menus, wrong here */
.navbar-nav .dropdown-menu::before {
  display: none;
}

/* Projects dropdown — wider for longer labels */
.navbar-nav .dropdown-menu.dropdown-projects {
  min-width: 230px;
}

.dropdown-item {
  color: rgba(240, 237, 232, 0.92);
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  padding: 9px 20px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background-color: rgba(255, 255, 255, 0.07);
  color: var(--gold);
}

/* Current page indicator inside dropdown */
.dropdown-item.active,
.dropdown-item.active:hover,
.dropdown-item.active:focus {
  /*background-color: rgba(184, 134, 11, 0.12);*/
  color: var(--gold);
  font-weight: 600;
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.30) !important;
}

@media (max-width: 991px) {
  .navbar-header { width: 100%; }
  .slicknav_menu { display: block !important; }
}

/* ---- Slicknav mobile menu — Direction 3 ---- */

/* Hamburger button */
.slicknav_btn {
  background-color: transparent !important;
  border-color: rgba(255, 255, 255, 0.30) !important;
}
.slicknav_menu .slicknav_icon-bar {
  background-color: rgba(240, 237, 232, 0.85) !important;
}

/* Menu container + all sub-menu backgrounds */
.slicknav_menu,
.slicknav_nav ul {
  background-color: var(--navy-dark) !important;
}
.slicknav_nav {
  background-color: var(--navy-dark) !important;
  max-height: calc(100vh - 70px) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  overscroll-behavior: contain !important;
}

/* Divider between items */
.slicknav_nav li {
  border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
}
.slicknav_nav li:first-child {
  border-top: none !important;
}

/* All links */
.slicknav_nav a,
.slicknav_nav .slicknav_item a,
.slicknav_nav .slicknav_parent-link a {
  color: rgba(240, 237, 232, 0.92) !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  padding: 11px 20px !important;
  margin: 0 !important;
  transition: background-color 0.15s ease, color 0.15s ease !important;
}

/* Parent row (has expand arrow) — match regular link height */
.slicknav_nav .slicknav_item {
  padding: 0 !important;
  margin: 0 !important;
}
.slicknav_nav .slicknav_row {
  padding: 11px 20px !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
}
.slicknav_nav .slicknav_row a {
  padding: 0 !important;
  flex: 1 !important;
}

/* Expand / collapse arrow */
.slicknav_nav .slicknav_arrow {
  background: transparent !important;
  color: rgba(240, 237, 232, 0.45) !important;
  font-size: 12px !important;
}

/* Hover & focus */
.slicknav_nav a:hover,
.slicknav_nav a:focus,
.slicknav_nav .slicknav_row:hover,
.slicknav_nav .slicknav_row:hover a {
  background-color: rgba(255, 255, 255, 0.07) !important;
  color: var(--gold) !important;
}
.slicknav_nav a:hover .slicknav_arrow,
.slicknav_nav .slicknav_row:hover .slicknav_arrow {
  color: var(--gold) !important;
}

/* Active / current page */
.slicknav_nav a.active,
.slicknav_nav .active > a,
.slicknav_nav .slicknav_nav .active a {
  color: var(--gold) !important;
  font-weight: 600 !important;
  background-color: transparent !important;
}

/* Sub-menu indentation */
.slicknav_nav ul {
  margin: 0 0 0 16px !important;
  border-left: 2px solid rgba(184, 134, 11, 0.30) !important;
}
.slicknav_nav ul a {
  font-size: 13px !important;
  color: rgba(240, 237, 232, 0.75) !important;
  padding: 9px 20px !important;
}

/* Remove old dark-mode theme switch */
.nav-item-theme-toggle,
.theme-switch,
.theme-switch-thumb,
.theme-switch-track,
.theme-switch-dot {
  display: none !important;
}


/* ================================================================
   HERO
================================================================ */
#hero-area,
.hero-area-bg {
  background: var(--navy) !important;
  background-image: none !important;
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

/* Subtle noise texture */
#hero-area::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px;
  opacity: 0.028;
  pointer-events: none;
  z-index: 1;
}

#hero-area .overlay { display: none; }

#hero-area .container {
  position: relative;
  z-index: 2;
  max-width: 1100px;
}

#hero-area .row {
  min-height: 100vh;
  align-items: center;
}

/* Left-align the hero content column */
#hero-area .hero-content-col {
  text-align: left !important;
}

/* ----------------------------------------------------------------
   HERO GLOBE — right-column 3D Earth (Spline)
---------------------------------------------------------------- */
.hero-globe-col {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-globe-wrap {
  position: relative;
  width: 560px;
  height: 560px;
  max-width: 100%;
  /* Layer 1 — alpha mask: dissolves all four edges to transparency */
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 32%, transparent 68%);
          mask-image: radial-gradient(ellipse at 50% 50%, black 32%, transparent 68%);
}

/* Layer 2 — colour vignette: fills dissolved edges with exact hero navy */
.hero-globe-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    transparent          34%,
    rgba(29, 45, 74, 0.18) 52%,
    rgba(29, 45, 74, 0.58) 68%,
    #1D2D4A              84%
  );
  pointer-events: none;
  z-index: 4;
}

/* Drag-boundary guards */
.hero-globe-guard {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}
.hero-globe-guard span {
  position: absolute;
  pointer-events: auto;
}
.hero-globe-guard span:nth-child(1) { top: 0;    left: 0;   right: 0;    height: 18%; }
.hero-globe-guard span:nth-child(2) { bottom: 0; left: 0;   right: 0;    height: 18%; }
.hero-globe-guard span:nth-child(3) { top: 18%;  left: 0;   bottom: 18%; width: 18%;  }
.hero-globe-guard span:nth-child(4) { top: 18%;  right: 0;  bottom: 18%; width: 18%;  }

.hero-globe-wrap iframe {
  position: absolute;
  inset: -7.5%;
  width: 115%;
  height: 115%;
  border: none;
  display: block;
}

/* Orbit ring overlay — wider than globe-wrap so horizontal ring arcs aren't clipped.
   R = min(W,H)×0.365 = 560×0.365 = 204px; main ring reaches 1.52×204 = 310px from
   centre, so canvas needs ≥ 340px each side → 740px total width clears it comfortably. */
#hero-cyber-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 740px;
  height: 560px;
  pointer-events: none;
  z-index: 5;
}

.contents {
  max-width: 660px;
  padding: 120px 0 80px;
}

/* Hide old "Hi, I'm" */
.contents h5.script-font,
.contents .script-font:first-child {
  display: none !important;
}

/* Name */
.head-title {
  font-family: 'Lora', Georgia, serif !important;
  font-size: 62px !important;
  font-weight: 700 !important;
  color: var(--text-on-navy) !important;
  line-height: 1.06 !important;
  letter-spacing: -0.5px !important;
  margin-bottom: 0 !important;
  text-transform: none !important;
}

/* Gold rule */
.hero-rule {
  width: 56px;
  height: 2px;
  background-color: var(--gold);
  margin: 22px 0 20px;
}

/* Role tagline (was the Shadows Into Light p) */
.contents p.script-font {
  font-family: 'Inter', sans-serif !important;
  font-size: 17px !important;
  font-weight: 500 !important;
  color: var(--text-on-navy-muted) !important;
  letter-spacing: 0 !important;
  margin-bottom: 36px !important;
}

/* Social icons */
.social-icon {
  display: flex;
  gap: 10px;
  margin-bottom: 36px !important;
}

.social-icon li { display: inline-flex; }

.social-icon li a {
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  background: transparent !important;
  color: rgba(240, 237, 232, 0.60) !important;
  border: 1.5px solid rgba(240, 237, 232, 0.26) !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-size: 15px !important;
  line-height: 1 !important;
  transition: border-color 0.18s ease, color 0.18s ease !important;
}

.social-icon li a:hover {
  border-color: var(--gold) !important;
  color: var(--text-on-navy) !important;
  background: var(--gold-pale) !important;
}

/* CTA button — outlined gold style */
.header-button .btn-common {
  background-color: transparent !important;
  border: 1.5px solid var(--gold) !important;
  color: var(--gold) !important;
  padding: 12px 32px !important;
}

.header-button .btn-common:hover {
  background-color: var(--gold) !important;
  color: #fff !important;
}


/* ================================================================
   ABOUT
================================================================ */
#about {
  background: var(--off-white) !important;
  padding: 100px 0;
}

.about-photo-wrap {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 100%;
  margin-bottom: 0;
}

/* Clean frame — no brackets, no scan line */
.about-img-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-img-frame::before,
.about-img-frame::after { display: none !important; }

.about-photo {
  width: 100%;
  display: block;
  border-radius: var(--radius-lg);
}

/* ----------------------------------------------------------------
   ABOUT FLIP CARD — scroll-triggered Y-axis flip
   Face B (about-2.jpg) is visible by default.
   Face A (About_flip_image.png) is revealed when .is-flipped is
   added by the IntersectionObserver as the About section enters
   the viewport. Reversed when the user scrolls back to the hero.
---------------------------------------------------------------- */
.about-flip-card {
  width: 100%;
  perspective: 1100px;
}

.about-flip-inner {
  position: relative;
  width: 100%;
  transform-style: preserve-3d;
  transition: transform 700ms cubic-bezier(0.4, 0.0, 0.2, 1);
  will-change: transform;
}

.about-flip-card.is-flipped .about-flip-inner {
  transform: rotateY(180deg);
}

/* Both faces share the same visual treatment as the original frame */
.about-flip-face {
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

/* Face A: pre-rotated 180deg, overlaid absolutely, revealed on flip */
.about-flip-face--a {
  position: absolute;
  inset: 0;
  transform: rotateY(180deg);
}

/* Honour reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  .about-flip-inner { transition: none; }
}

.about-scan-line    { display: none !important; }
.about-role-badge   { display: none !important; }
.about-chip         { display: none !important; }

.about-content-wrap { padding: 0 0 0 48px; }

.about-name {
  font-family: 'Lora', Georgia, serif !important;
  font-size: 40px !important;
  font-weight: 700 !important;
  color: var(--text-main) !important;
  margin-bottom: 6px !important;
  line-height: 1.1 !important;
}

.about-role {
  font-family: 'Inter', sans-serif;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--gold) !important;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 20px !important;
}

.about-bio {
  font-family: 'Inter', sans-serif;
  font-size: 15px !important;
  color: var(--text-body) !important;
  line-height: 1.70 !important;
  margin-bottom: 10px !important;
}

.about-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin: 20px 0 24px;
}

.about-info-tile {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 11px 14px;
  transition: border-color 0.18s ease;
}

.about-info-tile:hover { border-color: var(--gold-border); }

.about-info-tile > i {
  font-size: 13px;
  color: var(--gold) !important;
  flex-shrink: 0;
  width: 16px;
  margin-top: 3px;
  text-align: center;
}

.about-info-tile > div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.info-label {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-light);
  margin-bottom: 3px;
}

.info-value {
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.info-value a {
  color: inherit;
  text-decoration: none;
}

/* Languages tile — spans both columns */
.about-info-tile--languages {
  grid-column: 1 / -1;
  align-items: center;
}

.about-info-tile--languages .info-value {
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
}

.about-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.about-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--navy);
  color: var(--text-on-navy) !important;
  border-radius: var(--radius);
  padding: 12px 26px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid var(--navy);
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.about-btn-primary:hover {
  background: var(--navy-dark);
  border-color: var(--navy-dark);
  color: var(--text-on-navy) !important;
  text-decoration: none;
  transform: none;
  box-shadow: none;
}

.about-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text-main) !important;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 11px 22px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.18s ease, color 0.18s ease;
}

.about-btn-outline:hover {
  border-color: var(--navy);
  color: var(--navy) !important;
  text-decoration: none;
  transform: none;
}

/* Watch Intro button — gold accent, sits first in the action row */
.about-btn-video {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: #fff !important;
  border: 1.5px solid var(--gold);
  border-radius: var(--radius);
  padding: 12px 26px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}
.about-btn-video:hover,
.about-btn-video:focus {
  background: var(--gold-hover);
  border-color: var(--gold-hover);
  color: #fff !important;
  outline: none;
}
.about-btn-video i { font-size: 16px; }

/* ================================================================
   WATCH INTRO MODAL
================================================================ */
.intro-modal-content {
  background: #fff;
  border: none;
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.intro-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 22px 28px 16px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.intro-modal-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  font-family: 'Lora', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
}

.intro-modal-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

.intro-modal-close {
  background: none;
  border: none;
  color: var(--text-body);
  font-size: 18px;
  padding: 4px 8px;
  cursor: pointer;
  line-height: 1;
  transition: color 0.15s ease;
  flex-shrink: 0;
  margin-top: 2px;
}
.intro-modal-close:hover { color: var(--navy); }

.intro-modal-body {
  padding: 0;
  background: #000;
}

.intro-video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
}
.intro-video-wrapper iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

/* Modal backdrop */
#introModal .modal-backdrop,
.modal-backdrop { background-color: var(--navy-dark) !important; }

@media (max-width: 991px) {
  .about-content-wrap { padding: 40px 0 0; }
  .about-photo-wrap   { max-width: 100%; }
}
@media (max-width: 575px) {
  .about-name       { font-size: 30px !important; }
  .about-info-grid  { grid-template-columns: 1fr; }
  .about-actions    { flex-direction: column; }
  .about-btn-primary,
  .about-btn-outline,
  .about-btn-video   { justify-content: center; width: 100%; }
}


/* ================================================================
   SERVICES
================================================================ */
section.services {
  background: var(--white) !important;
  position: relative;
  overflow: visible;
  padding: 100px 0;
}

section.services::before { display: none !important; }

section.services .section-title { color: var(--text-main) !important; }
section.services .section-title::after { display: none !important; }

section.services .row { align-items: stretch; }
section.services .col-lg-3,
section.services .col-md-6 { display: flex; flex-direction: column; }
section.services .services-item { flex: 1; }

.svc-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 16px !important;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 56px;
  display: block;
}

.services-item {
  background: var(--off-white) !important;
  border: 1px solid var(--border) !important;
  border-top: 3px solid var(--gold) !important;
  border-radius: var(--radius-lg) !important;
  padding: 36px 28px 32px !important;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm) !important;
  transition: box-shadow 0.22s ease, border-color 0.22s ease !important;
}

.services-item::after { display: none !important; }

.services-item.svc-1,
.services-item.svc-2,
.services-item.svc-3,
.services-item.svc-4 {
  --svc-icon-bg:     var(--navy);
  --svc-icon-border: var(--gold-border);
  --svc-icon-color:  var(--gold);
}

.services-item:hover {
  transform: translateY(-4px) !important;
  box-shadow: var(--shadow-md) !important;
  border-color: var(--gold-border) !important;
  border-top-color: var(--gold) !important;
}

.services-item.svc-1:hover,
.services-item.svc-2:hover,
.services-item.svc-3:hover,
.services-item.svc-4:hover {
  border-color: var(--gold-border) !important;
  border-top-color: var(--gold) !important;
  box-shadow: var(--shadow-md) !important;
}

.svc-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  background: var(--navy);
  border: 1px solid var(--gold-border);
  color: var(--gold);
}

.svc-icon-wrap i {
  font-size: 20px !important;
  color: var(--gold) !important;
  background: none !important;
  margin: 0 !important;
  line-height: 1 !important;
  display: inline !important;
  width: auto !important;
  height: auto !important;
}

.services-item.svc-1:hover .svc-icon-wrap,
.services-item.svc-2:hover .svc-icon-wrap,
.services-item.svc-3:hover .svc-icon-wrap,
.services-item.svc-4:hover .svc-icon-wrap { box-shadow: none; }

.svc-number {
  position: absolute;
  top: 16px;
  right: 20px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.8px;
  color: var(--text-light);
  opacity: 1;
  transition: color 0.18s ease;
}

.services-item:hover .svc-number { color: var(--text-muted); }

.services-item .services-content h3,
.services-item .services-content h3 a {
  font-family: 'Lora', Georgia, serif !important;
  font-size: 16.5px !important;
  font-weight: 700 !important;
  color: var(--text-main) !important;
  text-transform: none !important;
  text-decoration: none;
  margin-bottom: 10px !important;
  margin-top: 0 !important;
}

.services-item .services-content h3 a:hover { color: var(--gold) !important; }

.services-item .services-content p {
  font-family: 'Inter', sans-serif;
  font-size: 14px !important;
  color: var(--text-muted) !important;
  line-height: 1.70 !important;
  margin-bottom: 0;
}

@media (max-width: 767px) { .services-item { margin-bottom: 20px; } }


/* ================================================================
   CIA TRIAD SECTION
================================================================ */
.cia-triad-section {
  background: #1B2D4A;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

/* Ambient glow — echoes the globe's blue light on the right */
.cia-triad-section::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 600px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(60, 120, 255, 0.07) 0%, transparent 68%);
  pointer-events: none;
}

/* ── Section header ── */
.cia-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--gold) !important;
  margin-bottom: 10px !important;
  line-height: 1 !important;
}

.cia-title {
  font-family: 'Lora', Georgia, serif !important;
  font-size: 38px !important;
  font-weight: 700 !important;
  color: var(--text-on-navy) !important;
  line-height: 1.16 !important;
  margin-bottom: 18px !important;
  letter-spacing: -0.3px;
}

.cia-intro {
  font-family: 'Inter', sans-serif;
  font-size: 15px !important;
  color: var(--text-on-navy-muted) !important;
  line-height: 1.80 !important;
  margin-bottom: 40px !important;
  max-width: 460px;
}

/* ── CIA pillar cards ── */
.cia-pillars {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cia-pillar {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-left: 3px solid rgba(240, 237, 232, 0.22);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  transition: background-color 0.20s ease, border-color 0.20s ease;
}

.cia-pillar:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.12);
  border-left-color: rgba(240, 237, 232, 0.50);
}

/* ── Pillar icons ── */
.cia-pillar-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: rgba(96, 165, 250, 0.12);
  border: 1px solid rgba(96, 165, 250, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: rgb(96, 165, 250);
  flex-shrink: 0;
  margin-top: 1px;
}

.cia-pillar-icon--teal {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.28);
  color: rgb(56, 189, 248);
}

.cia-pillar-icon--amber {
  background: rgba(129, 140, 248, 0.12);
  border-color: rgba(129, 140, 248, 0.28);
  color: rgb(129, 140, 248);
}

/* ── Pillar text ── */
.cia-pillar-body { flex: 1; min-width: 0; }

.cia-pillar-title {
  font-family: 'Lora', Georgia, serif !important;
  font-size: 15.5px !important;
  font-weight: 700 !important;
  color: var(--text-on-navy) !important;
  margin-bottom: 5px !important;
  margin-top: 0 !important;
  line-height: 1.2 !important;
}

.cia-pillar-desc {
  font-family: 'Inter', sans-serif;
  font-size: 13.5px !important;
  color: var(--text-on-navy-muted) !important;
  line-height: 1.68 !important;
  margin-bottom: 0 !important;
}

/* ── Globe column ── */
.cia-globe-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

@media (max-width: 991px) {
  .cia-globe-col { padding-top: 52px; }
}

.cia-globe-wrap {
  position: relative;
  width: min(60vh, 500px);
  height: min(60vh, 500px);
  min-width: 260px;
  min-height: 260px;
  max-width: 100%;
  filter: drop-shadow(0 0 56px rgba(60, 120, 255, 0.16))
          drop-shadow(0 0 110px rgba(40, 80, 200, 0.08));
}

#cia-globe-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* ── Globe footer: badge + legend ── */
.cia-globe-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
}

.cia-badge {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .45rem 1rem;
  background: rgba(15, 25, 44, 0.78);
  border: 1px solid rgba(201, 151, 58, 0.30);
  border-radius: 5px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: .70rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(200, 215, 235, 0.72);
  backdrop-filter: blur(8px);
  white-space: nowrap;
  user-select: none;
}

.cia-badge__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #ff3a3a;
  box-shadow: 0 0 8px #ff3a3a;
  animation: cia-blink 1.4s ease-in-out infinite;
}

@keyframes cia-blink {
  0%, 100% { opacity: 1;   }
  50%       { opacity: .20; }
}

/* Globe legend */
.cia-legend {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.cia-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(200, 215, 235, 0.50);
  white-space: nowrap;
}

.cia-legend-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── Row layout ── */
.cia-row { row-gap: 0; }

/* ── Responsive ── */
@media (max-width: 991px) {
  .cia-title  { font-size: 30px !important; }
  .cia-intro  { max-width: 100%; }
  .cia-globe-wrap { width: min(50vw, 360px); height: min(50vw, 360px); }
}

@media (max-width: 575px) {
  .cia-triad-section { padding: 64px 0; }
  .cia-title { font-size: 26px !important; }
  .cia-globe-wrap { width: min(85vw, 300px); height: min(85vw, 300px); }
  .cia-legend { gap: 10px; }
}


/* ================================================================
   SKILLS
================================================================ */
#skills {
  background-color: var(--off-white) !important;
  padding: 100px 0;
}

#skills .section-title  { color: var(--text-main) !important; }
#skills .section-subtitle { color: var(--text-muted) !important; }

.skills-category {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 22px 20px 18px;
  margin-bottom: 22px;
  transition: box-shadow 0.18s ease;
}

.skills-category:hover { box-shadow: var(--shadow-md); }

.skills-category-title {
  font-family: 'Inter', sans-serif;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  color: var(--gold) !important;
  margin-bottom: 12px !important;
  border-bottom: 1px solid var(--border);
  padding-bottom: 9px;
}

.skill-tag {
  display: inline-block;
  background-color: var(--off-white);
  color: var(--text-body);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 4px 10px;
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  margin: 3px 3px 3px 0;
  cursor: default;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.skill-tag:hover {
  background-color: var(--navy);
  border-color: var(--navy);
  color: var(--text-on-navy);
}


/* Skills show-more / show-less (mobile only) */
.skills-toggle-controls {
  display: none !important;
}

@media (min-width: 768px) {
  .skills-toggle-controls {
    display: none !important;
  }
}

@media (max-width: 767px) {
  .skill-card-extra {
    display: none;
  }

  .skill-card-extra.visible {
    display: block;
  }

  .skills-toggle-controls {
    display: -webkit-flex !important;
    display: flex !important;
    -webkit-justify-content: center;
    justify-content: center;
    gap: 10px;
    margin-top: 32px;
    margin-bottom: 16px;
  }
}

.skills-toggle-btn {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.2px;
  text-transform: none;
  padding: 11px 26px;
  border-radius: var(--radius);
  border: 1.5px solid var(--navy);
  background-color: var(--navy);
  color: var(--text-on-navy);
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.skills-toggle-btn:hover {
  background-color: var(--navy-dark);
  border-color: var(--navy-dark);
  color: var(--text-on-navy);
}

/* ================================================================
   RESUME
================================================================ */
#resume {
  background-color: var(--white) !important;
  padding: 100px 0;
}

#resume .section-title { color: var(--text-main) !important; }

.resume-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: var(--text-muted);
  text-align: center;
  margin-top: -4px;
  margin-bottom: 56px;
  display: block;
}

/* Section header icons */
.education .timeline li:first-child i {
  background: var(--navy) !important;
  box-shadow: none;
}

.experience .timeline li:first-child i {
  background: var(--navy) !important;
  box-shadow: none;
}

.timeline .timelin-title {
  font-family: 'Lora', Georgia, serif !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  color: var(--text-main) !important;
}

/* Vertical connector line */
.education .timeline li,
.experience .timeline li { border-left-color: var(--border) !important; }

/* Dot marker */
.education .timeline li:before,
.experience .timeline li:before {
  border-color: var(--gold) !important;
  background: var(--white) !important;
  box-shadow: none !important;
  animation: none !important;
}

/* Entry card */
.timeline li .content-text {
  background: var(--off-white) !important;
  border-radius: var(--radius) !important;
  padding: 18px 20px 16px 18px !important;
  box-shadow: none !important;
  border-left: 3px solid var(--gold) !important;
  border-top: 1px solid var(--border) !important;
  border-right: 1px solid var(--border) !important;
  border-bottom: 1px solid var(--border) !important;
  transition: box-shadow 0.18s ease;
}

.timeline li .content-text:hover {
  box-shadow: var(--shadow-md) !important;
  transform: none;
}

.education .timeline li .content-text,
.experience .timeline li .content-text { border-left-color: var(--gold) !important; }

.timeline li .line-title {
  font-family: 'Lora', Georgia, serif !important;
  font-size: 14.5px !important;
  font-weight: 700 !important;
  color: var(--text-main) !important;
  line-height: 1.4 !important;
  margin-bottom: 5px !important;
}

.timeline li .content-text > p:not(.line-text) {
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 4px;
  font-weight: 500;
}

.timeline li span {
  display: inline-block !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 10.5px !important;
  font-weight: 600 !important;
  letter-spacing: 0.5px !important;
  padding: 3px 10px !important;
  border-radius: 4px !important;
  margin-bottom: 8px !important;
}

.education .timeline li span,
.experience .timeline li span {
  background: var(--gold-pale);
  color: var(--gold-hover);
  border: 1px solid var(--gold-border);
}

.timeline li .line-text {
  font-family: 'Inter', sans-serif;
  color: var(--text-muted) !important;
  font-size: 13.5px !important;
  line-height: 1.68 !important;
  margin-bottom: 0 !important;
}

/* Education logo */
.edu-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 6px;
}

.edu-card-header .line-title { flex: 1; line-height: 1.35; margin-bottom: 0; }

.edu-logo {
  max-height: 50px;
  max-width: 80px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 4px;
  opacity: 0.82;
}

/* ---------------------------------------------------------------
   TIMELINE SCROLL — fixed 3-card viewport, cards-only scroll
   The header (icon + title) lives OUTSIDE .timeline-scroll-area
   so overflow clipping never touches the large-margin icon.
--------------------------------------------------------------- */

/* Header row — always visible, never inside the scroll container */
.timeline-header {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.timeline-header-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  border-radius: 50%;
  background: #1D2D4A; /* Safari fallback */
  background: var(--navy);
  color: #fff;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  flex-shrink: 0;
  -webkit-flex-shrink: 0;
  box-sizing: border-box;
}

.timeline-header-icon i {
  color: #fff !important;
  font-size: 16px !important;
  line-height: 1 !important;
  margin: 0 !important;
  float: none !important;
  width: auto !important;
  height: auto !important;
  background: none !important;
  border-radius: 0 !important;
  text-align: center;
  display: block;
}

.timeline-header .timelin-title {
  font-family: 'Inter', sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 1.1px !important;
  text-transform: uppercase !important;
  color: var(--text-main) !important;
  margin-bottom: 0 !important;
}

/* Cards-only scrollable area — padding-left gives the absolute-
   positioned dot markers (at ~-5px from ul edge) room to render */
.timeline-scroll-area {
  max-height: 700px;
  overflow-y: scroll; /* explicit scroll — avoids Safari overflow-x/y conflict */
  padding-left: 8px;
  margin-left: -8px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(184,134,11,0.35) transparent;
  -webkit-overflow-scrolling: touch;
}

.timeline-scroll-area::-webkit-scrollbar { width: 3px; }
.timeline-scroll-area::-webkit-scrollbar-track { background: transparent; }
.timeline-scroll-area::-webkit-scrollbar-thumb {
  background: rgba(184,134,11,0.4);
  border-radius: 2px;
}
.timeline-scroll-area::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

/* Stack Education above Experience on mobile */
@media (max-width: 991px) {
  .experience { margin-top: 48px; }
}

/* Widen the gutter between Education and Experience on desktop */
@media (min-width: 992px) {
  #resume .row > .col-lg-6:first-child { padding-right: 40px; }
  #resume .row > .col-lg-6:last-child  { padding-left: 40px;  }
}

/* The first card li is now li:first-child — restore its dot
   (normally suppressed because header used li:first-child) */
.timeline-scroll-area .timeline li:first-child:before {
  border: solid 2px var(--gold) !important;
  background: var(--white) !important;
  position: absolute !important;
  width: 8px;
  height: 8px;
  border-radius: 50px;
  content: "";
  margin-left: -35px;
  margin-top: 18px;
  box-shadow: none !important;
  animation: none !important;
}


/* ================================================================
   CERTIFICATIONS
================================================================ */
#certifications {
  background-color: var(--navy) !important;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

/* Subtle grid overlay */
#certifications::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

#certifications .section-title {
  color: var(--text-on-navy) !important;
  position: relative;
}

#certifications .section-title::after {
  content: '' !important;
  display: block !important;
  width: 44px;
  height: 2px;
  background: var(--gold);
  margin: 14px auto 0;
  border-radius: 1px;
  box-shadow: none;
}

#certifications .section-subtitle-light {
  color: var(--text-on-navy-muted);
}

.cert-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 28px 20px 24px;
  text-align: center;
  margin-bottom: 24px;
  position: relative;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.cert-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  border-top-color: var(--gold);
  transform: none;
  box-shadow: none;
}

.cert-card::before { display: none !important; }

.cert-logo-wrap {
  width: 60px;
  height: 60px;
  border-radius: var(--radius);
  margin: 0 auto 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  background: rgba(184, 134, 11, 0.12);
  border: 1px solid rgba(184, 134, 11, 0.28);
  color: var(--gold);
}

.cert-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 6px;
}

.cert-name {
  font-family: 'Lora', Georgia, serif !important;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-on-navy) !important;
  margin-bottom: 4px;
  line-height: 1.35;
}

.cert-issuer {
  font-family: 'Inter', sans-serif;
  font-size: 10.5px;
  color: var(--text-on-navy-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.cert-status {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 3px 10px;
  border-radius: 4px;
}

.cert-status-planned,
.cert-status-in-progress {
  background: var(--gold-pale);
  color: var(--gold);
  border: 1px solid var(--gold-border);
}

.cert-status-completed {
  background: rgba(74, 222, 128, 0.12);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.28);
}

.certs-footer-note {
  font-family: 'Inter', sans-serif;
  text-align: center;
  color: var(--text-on-navy-muted);
  font-size: 14px;
  font-style: italic;
  margin-top: 16px;
  margin-bottom: 0;
}

@media (max-width: 575px) {
  #certifications { padding: 64px 0; }
  .cert-card { padding: 22px 14px 18px; }
}

/* Equal-height cert cards on desktop */
@media (min-width: 992px) {
  #certifications .row > [class*="col-"] {
    display: flex;
  }
  #certifications .cert-card {
    width: 100%;
  }
}


/* ================================================================
   PORTFOLIO / PROJECTS
================================================================ */
#portfolios {
  background: var(--off-white) !important;
  padding: 100px 0;
}

#portfolios .section-title  { color: var(--text-main) !important; }
#portfolios .section-subtitle { color: var(--text-muted) !important; }

/* Filter buttons */
.controls { margin-bottom: 40px; }

.controls .filter {
  background: transparent !important;
  border: 1.5px solid var(--border) !important;
  color: var(--text-muted) !important;
  font-family: 'Inter', sans-serif;
  font-size: 13px !important;
  font-weight: 500 !important;
  padding: 7px 18px !important;
  border-radius: var(--radius) !important;
  margin: 4px;
  text-transform: none !important;
  letter-spacing: 0;
  transition: border-color 0.16s ease, color 0.16s ease, background-color 0.16s ease !important;
}

.controls .filter:hover {
  border-color: var(--navy) !important;
  color: var(--navy) !important;
  background: transparent !important;
}

.controls .filter.active {
  background: var(--navy) !important;
  border-color: var(--navy) !important;
  color: #fff !important;
}

#portfolio .col-sm-6,
#portfolio .col-md-4,
#portfolio-extra .col-sm-6,
#portfolio-extra .col-md-4,
#portfolio-unified .col-sm-6,
#portfolio-unified .col-md-4 { margin-bottom: 24px; }

/* Centre items when a filter returns 1–3 cards (< 1 full row) */
#portfolio.portfolio-centered,
#portfolio-unified.portfolio-centered {
  justify-content: center;
}

/* Fade-in stagger for unified grid items */
#portfolio-unified > [class*="col-"] {
  animation: portfolioFadeIn 0.25s ease both;
}
#portfolio-unified > [class*="col-"]:nth-child(1) { animation-delay: 0.00s; }
#portfolio-unified > [class*="col-"]:nth-child(2) { animation-delay: 0.06s; }
#portfolio-unified > [class*="col-"]:nth-child(3) { animation-delay: 0.12s; }
#portfolio-unified > [class*="col-"]:nth-child(4) { animation-delay: 0.18s; }
#portfolio-unified > [class*="col-"]:nth-child(5) { animation-delay: 0.24s; }
#portfolio-unified > [class*="col-"]:nth-child(6) { animation-delay: 0.30s; }
@keyframes portfolioFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Projects section footer — two buttons + note */
.portfolio-footer {
  margin-top: 28px;
  text-align: center;
}

.portfolio-footer-btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.portfolio-footer-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
}

/* Toggle button — same shape as btn-common, gold colour scheme */
.portfolio-toggle-btn {
  display: inline-block;
  background: transparent;
  border: 1.5px solid var(--gold);
  color: var(--gold);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.2px;
  border-radius: var(--radius);
  padding: 11px 26px;
  cursor: pointer;
  text-transform: none;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.portfolio-toggle-btn:hover {
  background-color: var(--gold);
  border-color: var(--gold);
  color: #fff;
}

.portfolio-toggle-btn i { margin-right: 6px; }

#portfolio .portfolio-item { width: 100%; height: 100%; }

.portfolio-item .shot-item { display: none; }

.portfolio-item .mini-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.18s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.portfolio-item .mini-card:hover {
  box-shadow: var(--shadow-md);
  transform: none;
}

.mini-card-img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
}

.mini-card-body {
  padding: 16px 18px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.mini-card-title {
  font-family: 'Lora', Georgia, serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 10px;
  line-height: 1.3;
}

.mini-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 14px;
  flex: 1;
}

.mini-tag {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 4px;
  background-color: var(--off-white);
  color: var(--text-body);
  border: 1px solid var(--border);
  letter-spacing: 0.1px;
}

.mini-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.mini-card-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold) !important;
  text-decoration: none;
  transition: color 0.16s ease;
}

.mini-card-link i { font-size: 11px; }

.mini-card-link:hover {
  color: var(--gold-hover) !important;
  text-decoration: none;
}

.mini-card-github {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: var(--off-white);
  color: var(--text-muted);
  border: 1px solid var(--border);
  font-size: 14px;
  text-decoration: none;
  flex-shrink: 0;
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.mini-card-github:hover {
  background-color: var(--text-main);
  color: #fff;
  border-color: var(--text-main);
  text-decoration: none;
}

#portfolios .text-muted { color: var(--text-muted) !important; }


/* ================================================================
   LABS TEASER
================================================================ */
#labs-teaser {
  background-color: var(--navy) !important;
  padding: 100px 0;
  position: relative;
}

/* Subtle grid overlay */
#labs-teaser::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

#labs-teaser .container { position: relative; z-index: 1; }

#labs-teaser .section-title { color: var(--text-on-navy) !important; }

#labs-teaser .section-title::after {
  content: '' !important;
  display: block !important;
  width: 44px;
  height: 2px;
  background: var(--gold);
  margin: 14px auto 0;
  border-radius: 1px;
  box-shadow: none;
}

#labs-teaser .section-subtitle,
#labs-teaser .section-subtitle-light { color: var(--text-on-navy-muted) !important; }

.lab-card {
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 24px;
  color: #fff;
  position: relative;
  overflow: hidden;
  height: 100%;
  transition: box-shadow 0.18s ease;
}

.lab-card:hover { box-shadow: var(--shadow-lg); }

.lab-card-htb {
  background-color: #0d1117;
  border: 1px solid rgba(159, 239, 0, 0.15);
  border-top: 3px solid #9FEF00;
}

.lab-card-thm {
  background-color: #1c1212;
  border: 1px solid rgba(193, 17, 17, 0.22);
  border-top: 3px solid #C11111;
}

.lab-card-ctf {
  background-color: #1a1508;
  border: 1px solid rgba(184, 134, 11, 0.22);
  border-top: 3px solid var(--gold);
}

.lab-card-platform {
  font-family: 'Inter', sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 4px;
}

.lab-card-htb .lab-card-platform { color: #9FEF00; }
.lab-card-thm .lab-card-platform { color: #C11111; }
.lab-card-ctf .lab-card-platform { color: var(--gold); }

.lab-card-title {
  font-family: 'Lora', Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 22px;
  color: #fff;
  line-height: 1.3;
}

.lab-stat-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.lab-stat { text-align: center; min-width: 64px; }

.lab-stat-value {
  font-family: 'Lora', Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  display: block;
  line-height: 1;
  margin-bottom: 4px;
}

.lab-card-htb .lab-stat-value { color: #9FEF00; }
.lab-card-thm .lab-stat-value { color: #ff8a80; }
.lab-card-ctf .lab-stat-value { color: var(--gold); }

.lab-stat-label {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.42);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.lab-api-notice {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
  font-style: italic;
  margin-bottom: 22px;
}

.lab-card-btn {
  display: inline-block;
  padding: 9px 22px;
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.16s ease;
}

.lab-card-htb .lab-card-btn  { background-color: #9FEF00; color: #0d1117; }
.lab-card-thm .lab-card-btn  { background-color: #C11111; color: #fff; }
.lab-card-ctf .lab-card-btn  { background-color: var(--gold); color: #fff; }
.lab-card-btn:hover           { opacity: 0.84; text-decoration: none; color: inherit; }

@media (max-width: 991px) {
  #labs-teaser .row > [class*="col-"] { margin-bottom: 24px; }
}
@media (min-width: 992px) {
  #labs-teaser .lab-card       { padding: 26px; }
  #labs-teaser .lab-card-title { font-size: 17px; }
  #labs-teaser .lab-stat-row   { gap: 14px; }
  #labs-teaser .lab-stat       { min-width: 52px; }
  #labs-teaser .lab-stat-value { font-size: 20px; }
}


/* ================================================================
   CONTACT
================================================================ */
#contact {
  background-color: var(--navy) !important;
  overflow: hidden;
  position: relative;
  padding: 100px 0;
}

#contact::before { display: none !important; }

#contact .section-title { color: var(--text-on-navy) !important; }

#contact .section-title::after {
  content: '' !important;
  display: block !important;
  width: 44px;
  height: 2px;
  background: var(--gold);
  margin: 14px auto 0;
  border-radius: 1px;
  box-shadow: none;
}

.contact-message-panel { padding: 10px 0 32px; }

/* Availability badge */
.contact-avail-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(74, 222, 128, 0.08);
  border: 1px solid rgba(74, 222, 128, 0.22);
  border-radius: 4px;
  padding: 5px 12px;
  font-family: 'Inter', sans-serif;
  font-size: 10.5px;
  font-weight: 600;
  color: #4ade80;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 22px;
}

.avail-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  display: inline-block;
  flex-shrink: 0;
  animation: avail-pulse 2.2s ease-out infinite;
}

@keyframes avail-pulse {
  0%   { box-shadow: 0 0 0 0   rgba(74, 222, 128, 0.5); }
  70%  { box-shadow: 0 0 0 7px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0   rgba(74, 222, 128, 0); }
}

.contact-panel-title {
  font-family: 'Lora', Georgia, serif;
  font-size: 34px;
  font-weight: 700;
  color: var(--text-on-navy);
  line-height: 1.2;
  margin-bottom: 16px;
}

.contact-panel-text {
  font-family: 'Inter', sans-serif;
  color: var(--text-on-navy-muted);
  font-size: 15px;
  line-height: 1.78;
  margin-bottom: 32px;
}

.contact-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.contact-cv-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: #fff !important;
  border-radius: var(--radius);
  padding: 12px 26px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid var(--gold);
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.contact-cv-btn:hover {
  background: var(--gold-hover);
  border-color: var(--gold-hover);
  text-decoration: none;
  color: #fff !important;
  transform: none;
  box-shadow: none;
}

.contact-socials { display: flex; gap: 10px; }

.contact-social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: transparent;
  border: 1.5px solid rgba(240, 237, 232, 0.24);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  color: rgba(240, 237, 232, 0.52);
  text-decoration: none;
  transition: border-color 0.18s ease, color 0.18s ease;
}

.contact-social-link svg { width: 1em; height: 1em; }

.contact-social-link:hover {
  border-color: var(--gold);
  color: var(--text-on-navy);
  text-decoration: none;
  transform: none;
}

.contact-details-panel { display: flex; flex-direction: column; gap: 12px; }

.contact-detail-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-navy);
  border-radius: var(--radius);
  padding: 17px 20px;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.contact-detail-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(184, 134, 11, 0.30);
  transform: none;
  box-shadow: none;
}

.contact-detail-card:hover .contact-detail-icon { box-shadow: none; }

.contact-detail-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  background: var(--gold-pale);
  border: 1px solid var(--gold-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--gold);
  flex-shrink: 0;
}

.contact-detail-label {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-on-navy-muted);
  display: block;
  margin-bottom: 3px;
}

.contact-detail-value {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-on-navy);
  margin: 0;
  line-height: 1.4;
}

.contact-detail-value a {
  color: var(--text-on-navy);
  text-decoration: none;
  transition: color 0.16s ease;
}

.contact-detail-value a:hover {
  color: var(--gold);
  text-decoration: none;
}

@media (max-width: 767px) {
  .contact-panel-title { font-size: 26px; }
  .contact-message-panel { padding: 0 0 32px; }
  .contact-detail-card { padding: 14px 16px; }
}


/* ================================================================
   FOOTER
================================================================ */
footer.footer-area {
  background: var(--navy-dark) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 48px 0;
}

.footer-area .footer-text p {
  font-family: 'Inter', sans-serif;
  color: rgba(240, 237, 232, 0.36);
  font-size: 13px;
}

.footer-area .footer-text p a { color: var(--gold); }

.footer-area .social-icon li a {
  background: rgba(255, 255, 255, 0.05) !important;
  color: rgba(240, 237, 232, 0.52) !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  transition: border-color 0.18s ease, color 0.18s ease !important;
}

.footer-area .social-icon li a:hover {
  border-color: var(--gold) !important;
  color: var(--text-on-navy) !important;
  background: var(--gold-pale) !important;
}


/* ================================================================
   BACK TO TOP
================================================================ */
a.back-to-top i {
  background: var(--navy) !important;
  color: var(--gold) !important;
  border: 1px solid rgba(184, 134, 11, 0.40) !important;
  border-radius: var(--radius) !important;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease !important;
}

a.back-to-top:hover i,
a.back-to-top:focus i {
  background: var(--gold) !important;
  border-color: var(--gold) !important;
  color: #fff !important;
}


/* ================================================================
   LABS PAGES (hackthebox.html / tryhackme.html)
================================================================ */
.hero-htb { background-color: #0d1117 !important; }
.hero-thm { background-color: #1a0a0a !important; }

.lab-stats-section {
  padding: 60px 0 40px;
  background-color: var(--off-white);
}

.lab-stat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}

.lab-stat-card .stat-number {
  font-family: 'Lora', Georgia, serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 6px;
}

.lab-stat-card .stat-label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-number-htb { color: #9FEF00; }
.stat-number-thm { color: #C11111; }

/* HTB page — dark stat cards */
.page-htb .lab-stat-card {
  background: #1A2744;
  border: 1px solid rgba(159,239,0,0.25);
  border-top: 3px solid #9FEF00;
}
.page-htb .lab-stat-card .stat-label { color: rgba(240,237,232,0.55); }

.activity-section { padding: 50px 0; background-color: var(--white); }

/* ================================================================
   AI SECURITY RESEARCH SECTION
   ================================================================ */

.ai-research-section { background-color: var(--white); }

.ai-research-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.ai-atlas-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--navy);
  border: 1px solid var(--gold-border);
  border-radius: 20px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  color: var(--gold);
  text-decoration: none;
  transition: border-color .2s;
}
.ai-atlas-badge:hover {
  border-color: rgba(184,134,11,0.7);
  color: var(--gold);
  text-decoration: none;
}
.ai-atlas-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

.ai-last-updated {
  font-size: 12px;
  font-family: 'Inter', sans-serif;
  color: var(--text-muted);
  font-style: italic;
}

/* Research card grid */
.ai-research-grid { row-gap: 24px; }

.ai-research-card {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  padding: 22px 22px 18px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, border-top-color .2s;
}
.ai-research-card:hover {
  box-shadow: var(--shadow-md);
  border-top-color: var(--gold-hover);
}

.ai-research-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ai-research-status {
  font-size: 11px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: .3px;
}
.ai-status-published {
  background: rgba(74,222,128,.12);
  color: #16a34a;
  border: 1px solid #16a34a;
}
.ai-status-progress {
  background: rgba(251,191,36,.14);
  color: #b45309;
  border: 1px solid rgba(251,191,36,.6);
}
.ai-status-planned {
  background: rgba(29,45,74,.06);
  color: var(--text-muted);
  border: 1px solid var(--border-strong);
}

.ai-research-date {
  font-size: 11px;
  font-family: 'Inter', sans-serif;
  color: var(--text-muted);
}

.ai-research-title {
  font-family: 'Lora', Georgia, serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
  line-height: 1.35;
}

.ai-research-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
  flex: 1;
}

.ai-research-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.ai-tag {
  font-size: 11px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 4px;
  background: var(--gold-pale);
  color: var(--gold);
  border: 1px solid var(--gold-border);
}

.ai-research-footer {
  padding-top: 12px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.ai-research-link {
  font-size: 12.5px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color .15s;
}
.ai-research-link:hover {
  color: var(--gold-hover);
  text-decoration: none;
}
.ai-research-link i { font-size: 11px; }

.machine-card, .room-card {
  background: var(--off-white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 16px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: none;
}

.machine-card-name, .room-card-name {
  font-family: 'Lora', Georgia, serif;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 4px;
  color: var(--text-main);
}

.machine-card-meta, .room-card-meta {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: var(--text-muted);
}

.machine-card-thumb,
.room-card-thumb {
  width: 72px; height: 72px;
  border-radius: var(--radius);
  object-fit: cover;
  background-color: var(--off-white);
  flex-shrink: 0;
}

.machine-card-thumb-placeholder,
.room-card-thumb-placeholder {
  width: 72px; height: 72px;
  border-radius: var(--radius);
  background-color: var(--off-white);
  border: 1px solid var(--border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 24px;
}

.writeups-section { padding: 50px 0; background-color: var(--off-white); }

.writeup-table th {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  border-top: none;
}

.writeup-table td {
  font-family: 'Inter', sans-serif;
  vertical-align: middle;
  font-size: 14px;
}

.api-notice {
  background: var(--gold-pale);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius);
  padding: 12px 18px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--gold-hover);
  margin-bottom: 20px;
}

.badge-easy   { background-color: #166534; color: #bbf7d0; }
.badge-medium { background-color: #92400e; color: #fde68a; }
.badge-hard   { background-color: #7f1d1d; color: #fecaca; }
.badge-insane { background-color: #4a1d96; color: #e9d5ff; }

.path-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 20px 24px;
  margin-bottom: 20px;
}

.path-card-title {
  font-family: 'Lora', Georgia, serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
}

.path-card-rooms {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: var(--text-muted);
}

.path-progress-bar {
  height: 6px;
  border-radius: 3px;
  background-color: var(--off-white);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 6px;
}

.path-progress-fill { height: 100%; border-radius: 3px; background-color: #C11111; transition: width 0.4s ease; }
.path-progress-fill-htb { background-color: #9FEF00; }

.skill-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  margin: 3px;
}

.skill-badge-htb { background: #1A2744; color: #9FEF00; border: 1px solid rgba(159,239,0,0.4); }
.skill-badge-thm { background: rgba(193,17,17,0.10);  color: #c11111; border: 1px solid rgba(193,17,17,0.25); }

.skill-category-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
}
.skill-category { flex: 1 1 220px; }
.skill-category-title {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--navy);
  margin-bottom: 10px;
}

.badge-grid { display: flex; flex-wrap: wrap; gap: 14px; padding: 10px 0; }

.badge-circle {
  width: 80px; height: 80px;
  border-radius: 50%;
  background-color: var(--off-white);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 26px;
}


/* ================================================================
   WOW.JS ANIMATIONS — Reduced and restrained
================================================================ */
@media (prefers-reduced-motion: reduce) {
  .wow { animation: none !important; visibility: visible !important; }
}


/* ================================================================
   RESPONSIVE
================================================================ */
@media (max-width: 1199px) {
  .contents { max-width: 600px; }
  .head-title { font-size: 52px !important; }
}

@media (max-width: 991px) {
  .section-padding { padding: 80px 0; }
  #hero-area .hero-content-col { text-align: left !important; }
  .hero-globe-wrap { width: 440px; height: 440px; }
  #hero-cyber-overlay { width: 580px; height: 440px; }
  .contents { padding: 100px 0 64px; }
  .head-title { font-size: 44px !important; }
}

@media (max-width: 767px) {
  .section-padding { padding: 64px 0; }
  .head-title { font-size: 36px !important; }
  .contents { padding: 88px 0 56px; }
  .hero-rule { margin: 18px 0 16px; }
  .section-title { font-size: 28px !important; }
  .lab-card { padding: 24px 20px; }
  .machine-card, .room-card { flex-direction: column; text-align: center; }
  /* Hide globe on mobile — stacks awkwardly and reduces hero clarity */
  .hero-globe-col { display: none !important; }
}

@media (max-width: 575px) {
  .head-title { font-size: 30px !important; }
  .mini-card-img { height: auto; }
  .lab-stat-row { gap: 12px; }
  .lab-stat-value { font-size: 18px; }
}

/* ================================================================
   HackTheBox Page — Live Badge, Cert Cards, GitHub Panel
   ================================================================ */

/* ── Live badge hero ── */
.htb-badge-hero {
  text-align: center;
  padding: 28px 0 18px;
}
.htb-live-badge {
  max-width: 480px;
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(159,239,0,.15);
  border: 1px solid rgba(159,239,0,.2);
  transition: box-shadow .3s;
}
.htb-live-badge:hover { box-shadow: 0 6px 32px rgba(159,239,0,.28); }
.htb-badge-live-note {
  margin-top: 10px;
  font-size: 12px;
  color: rgba(240,237,232,.45);
}
.htb-badge-live-note a { color: #9FEF00; text-decoration: none; }
.htb-badge-live-note a:hover { text-decoration: underline; }
.htb-setup-hint {
  margin-top: 10px;
  font-size: 12px;
  color: rgba(240,237,232,.35);
}
.htb-setup-hint code { color: #9FEF00; font-size: 11px; background: none; }

/* ── Certification cards ── */
.htb-cert-row { margin-top: 28px; row-gap: 20px; }
.htb-cert-card {
  background: #1A2744;
  border: 1px solid rgba(159,239,0,.25);
  border-radius: 12px;
  padding: 22px 16px 18px;
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  transition: border-color .2s, box-shadow .2s;
}
.htb-cert-card:hover {
  border-color: rgba(159,239,0,.38);
  box-shadow: 0 4px 20px rgba(159,239,0,.1);
}
.htb-cert-abbr {
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #9FEF00;
  letter-spacing: 1px;
}
.htb-cert-full {
  font-size: 11.5px;
  color: rgba(240,237,232,.55);
  line-height: 1.45;
  flex: 1;
}
.htb-cert-status {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 11px;
  border-radius: 20px;
  letter-spacing: .4px;
}
.htb-cert-status--earned      { background: rgba(74,222,128,.16);  color: #4ade80; border: 1px solid #4ade80; }
.htb-cert-status--in-progress { background: rgba(251,191,36,.14);  color: #FBBF24; border: 1px solid #FBBF24; }
.htb-cert-status--planned     { background: rgba(240,237,232,.06); color: rgba(240,237,232,.38); border: 1px solid rgba(240,237,232,.14); }
.htb-cert-link-wrap { min-height: 20px; }
.htb-cert-verify {
  display: inline-block;
  font-size: 11px;
  color: #9FEF00;
  text-decoration: none;
  transition: opacity .2s;
}
.htb-cert-verify:hover { opacity: .7; text-decoration: underline; color: #9FEF00; }
.htb-cert-verify--dim { color: rgba(159,239,0,.45); }

/* ── GitHub writeup repository section ── */
.htb-github-section {
  background: var(--navy-dark, #0A1628);
  padding: 60px 0;
}
.htb-github-section .section-title  { color: #F0EDE8; }
.htb-github-section .section-title::after { background: #9FEF00; }
.htb-github-panel {
  max-width: 580px;
  margin: 0 auto;
  background: rgba(159,239,0,.04);
  border: 1px solid rgba(159,239,0,.15);
  border-radius: 12px;
  padding: 28px 32px;
}
.htb-github-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}
.htb-github-icon { font-size: 38px; color: #9FEF00; flex-shrink: 0; line-height: 1; }
.htb-github-repo-name {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: #9FEF00;
  margin: 0 0 5px;
}
.htb-github-repo-desc { font-size: 13px; color: rgba(240,237,232,.55); margin: 0; }
.htb-github-stats-row {
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 16px 0;
  border-top: 1px solid rgba(159,239,0,.1);
  border-bottom: 1px solid rgba(159,239,0,.1);
  margin-bottom: 22px;
}
.htb-github-stat { text-align: center; }
.htb-github-stat-value {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: #9FEF00;
}
.htb-github-stat-label {
  font-size: 10px;
  color: rgba(240,237,232,.45);
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

@media (max-width: 575px) {
  .htb-live-badge  { max-width: 100%; }
  .htb-cert-abbr   { font-size: 17px; }
  .htb-github-panel { padding: 20px 18px; }
  .htb-github-stats-row { gap: 20px; }
  .htb-github-stat-value { font-size: 20px; }
}
