/* ==========================================================================
   LIQUID GLASS PORTFOLIO
   Base layout preserved from the original build; visual language rebuilt
   around translucent, refractive "liquid glass" panels floating over an
   ambient aurora backdrop.
   ========================================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: #050507;
  scrollbar-color: rgba(255, 255, 255, 0.16) rgba(5, 5, 7, 0.35);
  scrollbar-width: thin;
}

* {
  scrollbar-color: rgba(255, 255, 255, 0.16) rgba(5, 5, 7, 0.35);
  scrollbar-width: thin;
}

:root {
  /* Aurora palette — the color the glass refracts */
  --aurora-1: #5b8cff;
  --aurora-2: #8b5bff;
  --aurora-3: #2fd9c5;

  /* Glass material */
  --glass-fill: rgba(255, 255, 255, 0.055);
  --glass-fill-strong: rgba(255, 255, 255, 0.09);
  --glass-border: rgba(255, 255, 255, 0.16);
  --glass-border-bright: rgba(255, 255, 255, 0.45);
  --glass-shadow: rgba(0, 0, 0, 0.45);
  --glass-blur: 22px;
  --glass-blur-strong: 34px;

  --text-primary: #f5f5f5;
  --text-muted: #a9adb4;
  --text-faint: #6c7077;
}

body {
  position: relative;
  background: transparent;
  color: var(--text-primary);
  font-family: "Inter", sans-serif;
  text-shadow:
    0 0 8px rgba(255, 255, 255, 0.08),
    0 0 20px rgba(255, 255, 255, 0.04);
  overflow: hidden;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Custom scrollbars */

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-track {
  background: rgba(5, 5, 7, 0.35);
}

*::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  border: 2px solid rgba(5, 5, 7, 0.35);
}

*::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   AMBIENT AURORA BACKDROP
   Soft drifting color fields sitting behind every glass surface. This is
   what every panel's backdrop-filter refracts — flat black gives glass
   nothing to bend, color gives it life.
   ========================================================================== */

.bg-aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(
      ellipse 1400px 900px at 20% 0%,
      rgba(56, 95, 179, 0.08),
      transparent 58%
    ),
    radial-gradient(
      ellipse 1200px 900px at 100% 40%,
      rgba(98, 54, 180, 0.08),
      transparent 58%
    ),
    radial-gradient(
      ellipse 1100px 800px at 30% 100%,
      rgba(24, 128, 118, 0.06),
      transparent 58%
    ),
    #020205;
}

.bg-aurora::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.035) 1px,
    transparent 1px
  );
  background-size: 3px 3px;
  opacity: 0.5;
  mix-blend-mode: overlay;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  will-change: transform;
}

.blob-1 {
  width: 620px;
  height: 620px;
  top: -180px;
  left: -120px;
  background: radial-gradient(
    circle at 30% 30%,
    var(--aurora-1),
    transparent 70%
  );
  animation: drift1 26s ease-in-out infinite;
}

.blob-2 {
  width: 560px;
  height: 560px;
  top: 30%;
  right: -200px;
  background: radial-gradient(
    circle at 60% 40%,
    var(--aurora-2),
    transparent 70%
  );
  animation: drift2 32s ease-in-out infinite;
}

.blob-3 {
  width: 520px;
  height: 520px;
  bottom: -200px;
  left: 25%;
  background: radial-gradient(
    circle at 50% 50%,
    var(--aurora-3),
    transparent 70%
  );
  animation: drift3 38s ease-in-out infinite;
}

.blob-4 {
  width: 480px;
  height: 480px;
  top: 50%;
  left: 45%;
  background: radial-gradient(
    circle at 50% 50%,
    var(--aurora-1),
    transparent 70%
  );
  animation: drift2 30s ease-in-out infinite reverse;
  opacity: 0.4;
}

@keyframes drift1 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(80px, 60px) scale(1.12);
  }
}

@keyframes drift2 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-70px, 40px) scale(1.08);
  }
}

@keyframes drift3 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(50px, -70px) scale(1.1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .blob {
    animation: none;
  }
}

/* ==========================================================================
   GLASS MATERIAL SYSTEM
   ========================================================================== */

.glass-card,
.glass-card-inset,
.glass-pill,
.navbar,
.profile-photo-frame,
.profile,
.journey {
  position: relative;
  background: linear-gradient(
    155deg,
    var(--glass-fill-strong),
    var(--glass-fill) 60%
  );
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  border: 1px solid var(--glass-border);
  box-shadow:
    0 1px 0 0 var(--glass-border-bright) inset,
    0 -1px 0 0 rgba(0, 0, 0, 0.35) inset,
    0 20px 40px -16px var(--glass-shadow);
}

.glass-card,
.glass-card-inset,
.profile,
.journey,
.project {
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease,
    background 0.35s ease;
}

.glass-card:hover,
.glass-card-inset:hover,
.profile:hover,
.journey:hover,
.project:hover {
  transform: translateY(-10px);
  border-color: var(--glass-border-bright);
  box-shadow:
    0 1px 0 0 var(--glass-border-bright) inset,
    0 -1px 0 0 rgba(0, 0, 0, 0.25) inset,
    0 30px 70px -24px rgba(0, 0, 0, 0.45);
}

/* Top specular sheen, the "liquid" highlight every glass panel carries */
.glass-card::before,
.glass-card-inset::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.16) 0%,
    rgba(255, 255, 255, 0.04) 18%,
    rgba(255, 255, 255, 0) 38%
  );
  pointer-events: none;
}

.glass-card,
.glass-card-inset {
  border-radius: 22px;
  transition:
    transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.45s ease,
    border-color 0.45s ease;
}

/* ==========================================================================
   NAVBAR
   ========================================================================== */

.navbar {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 40px);
  height: 58px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 999px;
  z-index: 1000;
  padding: 0 12px;
}

.navbar ul {
  display: flex;
  gap: 6px;
  list-style: none;
}

.navbar a {
  display: block;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: 999px;
  transition:
    color 0.3s ease,
    background 0.3s ease;
}

.navbar a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.navbar a:focus-visible {
  outline: 2px solid var(--aurora-1);
  outline-offset: 2px;
}

/* ==========================================================================
   LAYOUT (preserved from original two-column build)
   ========================================================================== */

.container {
  display: flex;
  flex: 1;
  width: 100%;
  position: relative;
  margin-top: 90px;
}

.divider-line {
  position: fixed;
  top: 90px;
  left: 0;
  right: 0;
  height: 1px;
  background: transparent;
  z-index: 999;
  pointer-events: none;
}

.sidebar {
  padding: 40px 50px 60px;
  position: fixed;
  top: 50%;
  left: 0;
  width: 400px;
  transform: translateY(-50%);
  max-height: calc(100vh - 120px);
  overflow: hidden;
  z-index: 100;
}

.logo {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 30px;
  text-align: center;
  letter-spacing: -0.02em;
}

/* ==========================================================================
   PROFILE GLASS CARD
   ========================================================================== */

.profile {
  text-align: center;
  padding: 26px 18px 22px;
  border-radius: 26px;
}

.profile-photo-frame {
  display: inline-block;
  padding: 6px;
  border-radius: 20px;
  margin-bottom: 4px;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.profile-photo-frame:hover {
  transform: scale(1.03) rotate(-0.5deg);
}

.profile-photo-frame img {
  display: block;
  width: 100%;
  max-width: 178px;
  border-radius: 15px;
}

.name {
  margin-top: 18px;
  font-size: 1.35rem;
  font-weight: 600;
}

.role {
  color: var(--text-muted);
  margin-top: 6px;
  font-size: 0.9rem;
}

/* ==========================================================================
   JOURNEY GLASS PILL
   ========================================================================== */

.journey {
  margin-top: 22px;
  text-align: center;
  padding: 16px 18px;
  border-radius: 18px;
}

.journey-year {
  display: block;
  color: var(--aurora-3);
  font-size: 0.78rem;
  letter-spacing: 3px;
  margin-bottom: 8px;
  font-weight: 600;
}

.journey p {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.divider {
  width: 100%;
  border-top: 1px dashed rgba(255, 255, 255, 0.14);
  margin: 26px 0;
}

/* ==========================================================================
   MAIN CONTENT
   ========================================================================== */

main {
  flex: 1;
  margin-left: 400px;
  width: calc(100% - 400px);
  height: calc(100vh - 90px);
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
  padding: 40px 70px 90px 70px;
  z-index: 1;
}

.section {
  margin-bottom: 46px;
  scroll-margin-top: 110px;
  padding: 46px 50px;
  border-radius: 26px;
}

.section span {
  color: var(--aurora-3);
  display: block;
  margin-bottom: 14px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 2px;
}

.section h2 {
  font-size: 2.6rem;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--glass-border);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.section p {
  max-width: 750px;
  line-height: 1.9;
  color: var(--text-muted);
}

/* Inset glass: cards nested inside an already-glassy section. Slightly
   brighter fill so they read as a distinct, raised layer of glass on
   top of glass rather than disappearing into the parent panel. */
.glass-card-inset {
  border-radius: 18px;
  padding: 26px 28px;
  margin-top: 20px;
}

.item.glass-card-inset:first-child {
  margin-top: 0;
}

.item h4 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.item h4:not(:first-child) {
  margin-top: 20px;
}

.company {
  color: #fff;
  font-weight: 600;
}

.duration {
  color: var(--text-muted);
  margin-bottom: 18px;
  font-size: 0.9rem;
}

/* ==========================================================================
   SKILL / OTHERSKILL GLASS PILLS
   ========================================================================== */

.skills,
.otherskills {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.glass-pill {
  padding: 12px 22px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.92rem;
  transition:
    transform 0.3s ease,
    background 0.3s ease,
    border-color 0.3s ease;
}

.glass-pill:hover {
  transform: translateY(-3px);
  background: linear-gradient(
    155deg,
    rgba(255, 255, 255, 0.22),
    rgba(255, 255, 255, 0.08)
  );
  border-color: var(--glass-border-bright);
}

/* ==========================================================================
   CERTIFICATES
   ========================================================================== */

.section#certifications {
  padding: 48px 58px 62px;
}

.certificate-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(200px, 1fr));
  gap: 18px;
  margin-top: 24px;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}

.certificate-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
  min-height: 220px;
  padding: 14px 16px;
  width: 100%;
  border-radius: 20px;
}

.certificate-thumb {
  display: none;
}

.certificate-info {
  text-align: center;
  margin-top: 0;
}

.certificate-info h3 {
  text-align: center;
  margin-bottom: 8px;
  font-size: 1rem;
}

.certificate-topic {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 20px;
  display: block;
  font-size: 0.92rem;
}

.certificate-description {
  text-align: center;
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: 14px;
  font-size: 0.92rem;
}

.certificate-open {
  margin-top: 15px;
  padding-top: 15px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease;
}

.certificate-open:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--glass-border-bright);
}

.certificate-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 7, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 2000;
}

.certificate-overlay.active {
  display: flex;
}

.certificate-fullscreen {
  width: min(1100px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 32px;
  position: relative;
}

.certificate-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
}

.certificate-fullscreen-image {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px;
}

.certificate-fullscreen-image img {
  width: 50%; /* Makes it smaller on desktop */
  max-width: 800px; /* Prevents it from becoming too large */
  height: auto;
  display: block;
  border-radius: 16px;
}

.certificate-fullscreen-meta h3 {
  text-align: center;
  margin-bottom: 12px;
}

.certificate-fullscreen-meta p {
  text-align: center;
  color: var(--text-muted);
  line-height: 1.8;
}


/* ==========================================================================
   ESSENTIALS — INVITATION CARD
   The teaser panel inside the essentials section. Sizing is fluid via
   clamp() so it never needs a breakpoint to stay readable.
   ========================================================================== */

.explore-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(14px, 3vw, 20px);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.14),
    rgba(255, 255, 255, 0.08)
  );
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: clamp(28px, 5vw, 40px) clamp(20px, 5vw, 36px);
  border-radius: 26px;
  overflow: hidden;
}

.explore-card-art {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.explore-card-art-pip {
  position: absolute;
  font-size: clamp(3rem, 10vw, 5rem);
  opacity: 0.07;
  line-height: 1;
  filter: blur(0.2px);
}

.explore-card-art-pip--1 {
  top: -10px;
  left: 4%;
  transform: rotate(-12deg);
  color: var(--aurora-1);
}

.explore-card-art-pip--2 {
  bottom: -18px;
  right: 10%;
  transform: rotate(8deg);
  color: var(--aurora-2);
}

.explore-card-art-pip--3 {
  top: 30%;
  right: -2%;
  transform: rotate(-6deg);
  color: var(--aurora-3);
}

.explore-card-header {
  position: relative;
  max-width: 480px;
}

.explore-card-header h3 {
  font-size: clamp(1.1rem, 3vw, 1.3rem);
  margin-bottom: 10px;
}

.explore-card-header p {
  color: var(--text-muted);
  line-height: 1.75;
  font-size: clamp(0.9rem, 2.2vw, 1rem);
}

.explore-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: min(100%, 280px);
  padding: clamp(14px, 3vw, 16px) clamp(22px, 5vw, 28px);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-weight: 700;
  font-size: clamp(0.95rem, 2.5vw, 1rem);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition:
    transform 0.28s ease,
    background 0.28s ease,
    border-color 0.28s ease;
}

.explore-button .explore-button-label {
  display: inline;
  color: inherit;
  margin-bottom: 0;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: normal;
}

.explore-button::after {
  content: "▸";
  display: inline-block;
  transition: transform 0.28s ease;
}

.explore-button:hover,
.explore-button:focus-visible {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.4);
}

.explore-button:hover::after,
.explore-button:focus-visible::after {
  transform: translateX(3px);
}

.explore-button:active {
  transform: translateY(0);
  background: rgba(255, 255, 255, 0.22);
}

/* ==========================================================================
   ESSENTIALS — DECK OVERLAY
   A single fluid layout for the fullscreen deck, identical on every
   device: phone, tablet, or desktop. No layout-altering breakpoints —
   every dimension below is a clamp() or viewport-relative value, so the
   modal simply scales instead of switching structure.
   ========================================================================== */

.explore-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  background: rgba(5, 5, 7, 0.96);
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(0px, 3vw, 20px);
  z-index: 99999;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.explore-overlay[hidden] {
  display: none !important;
}

.explore-overlay.active,
.explore-overlay[aria-hidden="false"] {
  display: flex;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.explore-modal {
  width: min(720px, 100%);
  height: min(100%, 880px);
  max-height: calc(100dvh - clamp(0px, 3vw, 40px));
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: clamp(16px, 4vw, 32px);
  border-radius: clamp(0px, 3vw, 26px);
  position: relative;
  overflow: hidden;
  container-type: size;
  container-name: modal;
}

.explore-close {
  position: absolute;
  top: clamp(12px, 3vw, 18px);
  right: clamp(12px, 3vw, 18px);
  width: clamp(36px, 8vw, 42px);
  height: clamp(36px, 8vw, 42px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-radius: 50%;
  font-size: clamp(1.1rem, 3vw, 1.3rem);
  line-height: 1;
  cursor: pointer;
  z-index: 5;
  flex-shrink: 0;
}

.explore-overlay-title {
  text-align: center;
  flex-shrink: 0;
  padding: 0 clamp(36px, 9vw, 48px);
  margin-bottom: clamp(10px, 2.5vw, 18px);
}

.explore-overlay-title h3 {
  font-size: clamp(1.2rem, 4vw, 1.7rem);
  margin-bottom: 6px;
}

.explore-overlay-title p {
  color: var(--text-muted);
  font-size: clamp(0.82rem, 2.4vw, 0.95rem);
  line-height: 1.5;
}

/* As the modal gets vertically tight (e.g. landscape phones), give the
   card stage priority: shrink then drop the descriptive copy first,
   since the deck itself is still fully operable without it. */
@container modal (max-height: 420px) {
  .explore-overlay-title p {
    display: none;
  }

  .explore-overlay-title {
    margin-bottom: 6px;
  }

  .explore-overlay-title h3 {
    font-size: 1.05rem;
    margin-bottom: 0;
  }
}

@container modal (max-height: 300px) {
  .explore-overlay-title {
    display: none;
  }

  .explore-hint {
    display: none;
  }
}

.explore-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(6px, 2vw, 18px);
}

.explore-nav {
  flex-shrink: 0;
  width: clamp(34px, 8vw, 44px);
  height: clamp(34px, 8vw, 44px);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: clamp(1.2rem, 4vw, 1.5rem);
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    opacity 0.2s ease,
    transform 0.2s ease;
}

.explore-nav:hover,
.explore-nav:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.36);
}

.explore-nav:active {
  transform: scale(0.94);
}

.explore-nav[disabled] {
  opacity: 0.25;
  cursor: default;
  pointer-events: none;
}

.explore-deck {
  position: relative;
  flex: 1;
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: grid;
  place-items: center;
  perspective: 1600px;
  overflow: hidden;
  touch-action: none;
  container-type: size;
  container-name: deck;
}

.explore-card-face {
  position: absolute;
  width: min(92%, 320px, 75cqh);
  aspect-ratio: 3 / 4;
  min-height: 0;
  overflow: hidden;
  container-type: size;
  container-name: card;
  border-radius: clamp(10px, 6cqw, 24px);
  background: linear-gradient(180deg, #ffffff 0%, #f8f5ee 30%, #f1ece5 100%);
  border: 1px solid rgba(40, 40, 40, 0.12);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
  padding: clamp(8px, 6cqh, 20px) clamp(10px, 6cqw, 20px);
  color: #1b1b1b;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform-origin: center center;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  will-change: transform, opacity;
}

.explore-card-face.dragging {
  cursor: grabbing;
  transition: none !important;
}

.explore-card-face:not(.dragging) {
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.35s ease;
}

.explore-card-face::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image:
    radial-gradient(
      circle at 30% 35%,
      rgba(255, 255, 255, 0.2),
      transparent 34%
    ),
    linear-gradient(120deg, rgba(255, 255, 255, 0.3), transparent 48%);
  pointer-events: none;
}

.explore-card-face.black {
  color: #111;
}

.explore-card-face.red {
  color: #981c20;
}

.explore-card-face .card-corner {
  position: absolute;
  font-size: clamp(0.7rem, 7cqw, 0.95rem);
  font-weight: 700;
  line-height: 1;
}

.explore-card-face .card-corner .suit {
  display: inline-block;
  margin-left: 2px;
}

.explore-card-face .card-corner.top {
  top: clamp(8px, 6cqh, 18px);
  left: clamp(8px, 6cqw, 18px);
}

.explore-card-face .card-corner.bottom {
  bottom: clamp(8px, 6cqh, 18px);
  right: clamp(8px, 6cqw, 18px);
  transform: rotate(180deg);
}

.explore-card-face .card-center {
  display: grid;
  gap: clamp(2px, 3cqh, 16px);
  justify-items: center;
  text-align: center;
  margin-top: clamp(2px, 2cqh, 12px);
  min-height: 0;
}

.explore-card-face .card-suit-large {
  font-size: clamp(1rem, 16cqh, 3.4rem);
  opacity: 0.12;
  line-height: 1;
}

.explore-card-face.red .card-suit-large {
  color: #b12127;
}

.explore-card-face.black .card-suit-large {
  color: #1a1a1a;
}

.explore-card-face .card-title {
  font-size: clamp(0.7rem, 9cqh, 1.3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.explore-card-face .card-subtitle {
  font-size: clamp(0.55rem, 5.5cqh, 0.92rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.55);
  line-height: 1.2;
}

.explore-card-face .card-content {
  flex: 1;
  min-height: 0;
  margin-top: clamp(2px, 2cqh, 12px);
  padding-bottom: clamp(10px, 10cqh, 22px);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.explore-card-face .card-text {
  line-height: 1.4;
  color: rgba(27, 27, 27, 0.92);
  font-size: clamp(0.5rem, 5.5cqh, 0.92rem);
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.explore-card-face .card-text ul {
  padding-left: 1rem;
  margin: 0.6rem 0 0;
}

.explore-card-face .card-text li {
  margin-bottom: 0.4rem;
}

/* Stack depth — only the back two siblings peek out, scaled fractionally
   so the offset always reads correctly regardless of card size. */
.explore-card-face[data-depth="0"] {
  transform: translate(0, 0) rotate(0deg) scale(1);
  z-index: 5;
}

.explore-card-face[data-depth="1"] {
  transform: translate(2.5%, 3%) rotate(3deg) scale(0.96);
  z-index: 4;
  opacity: 0.92;
}

.explore-card-face[data-depth="2"] {
  transform: translate(5%, 6%) rotate(6deg) scale(0.92);
  z-index: 3;
  opacity: 0.7;
}

.explore-card-face[data-leaving="prev"] {
  transform: translate(-130%, 6%) rotate(-22deg) scale(0.88) !important;
  opacity: 0 !important;
}

.explore-card-face[data-leaving="next"] {
  transform: translate(130%, 6%) rotate(22deg) scale(0.88) !important;
  opacity: 0 !important;
}

.explore-card-face[data-entering="prev"] {
  transform: translate(-130%, 6%) rotate(-22deg) scale(0.88) !important;
  opacity: 0 !important;
}

.explore-card-face[data-entering="next"] {
  transform: translate(130%, 6%) rotate(22deg) scale(0.88) !important;
  opacity: 0 !important;
}

.explore-progress {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: clamp(10px, 2.5vw, 16px);
}

.explore-progress-dot {
  width: clamp(5px, 1.4vw, 7px);
  height: clamp(5px, 1.4vw, 7px);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  transition: background 0.25s ease, transform 0.25s ease;
}

.explore-progress-dot.active {
  background: var(--aurora-3);
  transform: scale(1.3);
}

.explore-hint {
  flex-shrink: 0;
  margin-top: clamp(6px, 2vw, 10px);
  text-align: center;
  color: var(--text-muted);
  font-size: clamp(0.78rem, 2.2vw, 0.92rem);
}

@media (prefers-reduced-motion: reduce) {
  .explore-card-face {
    transition: none !important;
  }
}

@media (hover: none) {
  .explore-card-face {
    cursor: default;
  }
}


/* ==========================================================================
   PROJECT CARDS
   ========================================================================== */

.project.glass-card-inset {
  margin-bottom: 18px;
}

.project.glass-card-inset:hover {
  transform: translateY(-6px);
  box-shadow:
    0 1px 0 0 var(--glass-border-bright) inset,
    0 -1px 0 0 rgba(0, 0, 0, 0.35) inset,
    0 28px 50px -18px var(--glass-shadow);
  border-color: var(--glass-border-bright);
}

.project h3 {
  margin-bottom: 12px;
  font-weight: 600;
}

.project-button {
  display: inline-block;
  margin-top: 14px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-weight: 600;
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease;
}

.project-button:hover,
.project-button:focus-visible {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--glass-border-bright);
}

/* ==========================================================================
   EXPERIENCE LIST
   ========================================================================== */

.experience-list {
  padding-left: 20px;
}

.experience-list li {
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.8;
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */

#contact ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 8px;
}

#contact a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

#contact a:hover,
#contact a:focus-visible {
  border-bottom-color: #fff;
}

footer {
  width: 100%;
  margin: 24px 0 0;
  padding: 18px 0 10px;
  color: var(--text-faint);
  font-size: 0.85rem;
  text-align: center;
}

/* ==========================================================================
   WHOLE-SECTION HOVER LIFT
   Applies the same lift used on project cards to top-level section panels,
   so every glass surface in the page feels consistently liquid.
   ========================================================================== */

.section.glass-card:hover {
  border-color: var(--glass-border-bright);
}

/* ==========================================================================
   SCROLL REVEAL
   ========================================================================== */

.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.fade-up.show {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .fade-up {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ==========================================================================
   FOCUS VISIBILITY
   ========================================================================== */

a:focus-visible,
.glass-pill:focus-visible {
  outline: 2px solid var(--aurora-3);
  outline-offset: 2px;
}

/* ==========================================================================
   RESPONSIVE
   Desktop layout/design above is fully preserved. Below this point, the
   same panels, colors, spacing rhythm, and glass material are reflowed for
   narrower viewports — sidebar drops above the content and scrolling moves
   from the inner main panel to the page itself. No visual language changes.
   ========================================================================== */

/* ----- Large laptop / tight desktop: shrink the fixed columns a bit ----- */
@media (max-width: 1200px) {
  .sidebar {
    width: 340px;
    padding: 36px 36px 50px;
  }

  main {
    margin-left: 340px;
    width: calc(100% - 340px);
    padding: 40px 44px 90px 44px;
  }
}

/* ----- Tablet and below: stack sidebar above content, page scrolls ----- */
@media (max-width: 980px) {
  body {
    overflow: visible;
    height: auto;
    min-height: 100vh;
    display: block;
  }

  .navbar {
    max-width: calc(100% - 24px);
    overflow-x: visible;
    justify-content: center;
    padding: 12px 14px;
    height: auto;
  }

  .navbar ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .navbar a {
    white-space: nowrap;
  }

  .container {
    flex-direction: column;
    margin-top: 118px;
  }

  .divider-line {
    top: 118px;
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.02) inset;
    pointer-events: none;
  }

  .sidebar {
    position: static;
    top: auto;
    left: auto;
    width: 100%;
    max-height: none;
    overflow: visible;
    transform: none;
    padding: 0 24px 30px;
  }

  .logo {
    font-size: 2.4rem;
    margin-bottom: 22px;
  }

  .profile {
    max-width: 420px;
    margin: 0 auto;
  }

  .journey {
    max-width: 420px;
    margin: 22px auto 0;
  }

  .divider {
    max-width: 420px;
    margin: 26px auto;
  }

  main {
    margin-left: 0;
    width: 100%;
    height: auto;
    overflow: visible;
    padding: 8px 24px 70px;
  }

  .section {
    padding: 36px 32px;
    scroll-margin-top: 140px;
  }

  .section h2 {
    font-size: 2.1rem;
  }

  .certificate-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .certificate-card {
    min-height: 220px;
    padding: 14px 16px;
  }
}

/* ----- Mobile: full single-column reflow ----- */
@media (max-width: 640px) {
  .navbar {
    top: 12px;
    height: auto;
    padding: 12px 14px;
  }

  .navbar a {
    padding: 9px 13px;
    font-size: 0.85rem;
  }

  .container {
    margin-top: 130px;
  }

  .divider-line {
    top: 130px;
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    pointer-events: none;
  }

  .section {
    scroll-margin-top: 150px;
  }
  .divider-line {
    top: 76px;
  }

  .sidebar {
    padding: 0 16px 24px;
  }

  .logo {
    font-size: 2rem;
    margin-bottom: 18px;
  }

  .profile {
    padding: 28px 18px 24px;
  }

  .profile-photo-frame img {
    max-width: 150px;
  }

  main {
    padding: 6px 16px 60px;
  }

  .section {
    margin-bottom: 30px;
    padding: 28px 20px;
    border-radius: 20px;
  }

  .section h2 {
    font-size: 1.7rem;
    margin-bottom: 16px;
    padding-bottom: 14px;
  }

  .section p {
    max-width: 100%;
    line-height: 1.75;
  }

  .glass-card-inset {
    padding: 20px 18px;
  }

  .skills,
  .otherskills {
    gap: 10px;
  }

  .glass-pill {
    padding: 10px 16px;
    font-size: 0.86rem;
  }

  .certificate-grid {
    grid-template-columns: 1fr;
  }

  .certificate-card {
    min-height: 0;
  }

  .certificate-fullscreen {
    padding: 22px;
  }

  .certificate-close {
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
  }
}

/* ----- Very small phones ----- */
@media (max-width: 380px) {
  .navbar a {
    padding: 8px 11px;
    font-size: 0.8rem;
  }

  .logo {
    font-size: 1.7rem;
  }

  .section h2 {
    font-size: 1.45rem;
  }
}
