:root {
  --font-display: 'Syne', sans-serif;
  --font-body: 'General Sans', sans-serif;
  --font-serif: 'Instrument Serif', serif;

  --radius: 12px;
  --nav-h: 64px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);

  --phone-bezel: #1c1d24;
  --phone-bg: #13141a;
  --phone-text: #ffffff;
  --phone-text-muted: rgba(255, 255, 255, 0.7);
  --phone-tag-bg: rgba(255, 255, 255, 0.06);
  --phone-tag-border: rgba(255, 255, 255, 0.12);
  --phone-link-bg: rgba(255, 255, 255, 0.08);
  --phone-border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] {
  --bg: #0b0c10;
  --bg-card: #13141a;
  --bg-input: #1a1b23;
  --border: #2a2b35;
  --accent: #7fffb2;
  --accent2: #ff7eb3;
  --text: #e8e9f0;
  --text-muted: #6e7080;
  --nav-bg: rgba(11, 12, 16, 0.82);
  --shadow: 0 4px 40px rgba(0, 0, 0, 0.55);
  --hero-bg: radial-gradient(circle at 50% 45%, rgba(127, 255, 178, 0.22) 0%, rgba(127, 255, 178, 0.08) 35%, rgba(11, 12, 16, 0) 70%), linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px), var(--bg);
  --border-green: rgba(127, 255, 178, 0.22);
}

[data-theme="light"] {
  --bg: #f4f3ef;
  --bg-card: #ffffff;
  --bg-input: #eeede9;
  --border: #d9d8d3;
  --accent: #1a7a3c;
  --accent2: #c4276b;
  --text: #18181b;
  --text-muted: #71717a;
  --nav-bg: rgba(244, 243, 239, 0.85);
  --shadow: 0 4px 32px rgba(0, 0, 0, 0.10);
  --hero-bg: radial-gradient(circle at 50% 45%, rgba(196, 249, 68, 0.45) 0%, rgba(221, 252, 140, 0.3) 30%, rgba(243, 255, 213, 0.15) 60%, rgba(244, 243, 239, 0) 100%), linear-gradient(rgba(0, 0, 0, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 0, 0, 0.06) 1px, transparent 1px), var(--bg);
  --border-green: rgba(26, 122, 60, 0.22);

  --phone-bezel: #e2e8f0;
  --phone-bg: #ffffff;
  --phone-text: #0f172a;
  --phone-text-muted: #475569;
  --phone-tag-bg: #f1f5f9;
  --phone-tag-border: #cbd5e1;
  --phone-link-bg: #f1f5f9;
  --phone-border-color: #cbd5e1;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.7;
  transition: background var(--transition), color var(--transition);
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
}


a:hover {
  text-decoration: underline;
  color: var(--accent) !important;
}

h1, h2, h3, h4, h5, h6, p, span, li, button, label, .section-label, .tag, .tl-date {
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

h1:hover, h2:hover, h3:hover, h4:hover, h5:hover, h6:hover, p:hover, li:hover, label:hover, .section-label:hover, .tl-date:hover {
  color: var(--accent) !important;
}

p span:hover, h1 span:hover, h2 span:hover, h3 span:hover, h4 span:hover, .footer-left:hover, .footer-right:hover {
  color: var(--accent) !important;
}

section {
  padding: 100px 0 80px;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px;
}

.section-label {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 48px;
}

#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--accent);
  z-index: 2000;
  width: 0%;
  transition: width 0.1s linear;
}

nav#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
}

nav#navbar.nav-scrolled {
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  font-family: 'General Sans', sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--text);
  white-space: nowrap;
}

.nav-logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  flex-wrap: wrap;
}

.nav-links a {
  font-family: 'General Sans', sans-serif;
  font-size: 15.5px;
  letter-spacing: 0.01em;
  color: var(--text-muted);
  padding: 5px 11px;
  border-radius: 30px;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent) !important;
  background: var(--bg-input);
  text-decoration: none;
}


.theme-toggle {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 6px 14px;
  cursor: pointer;
  font-family: 'General Sans', sans-serif;
  font-size: 14.5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 7px;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.theme-toggle:hover {
  color: var(--text);
  background: var(--border);
}

.theme-toggle .icon {
  font-size: 14px;
}

#hero {
  height: 100vh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  position: relative;
  overflow: hidden;
  background: var(--hero-bg);
  background-size: auto, 48px 48px, 48px 48px, auto;
  background-position: center center;
  transition: background var(--transition);
}

#hero .container {
  max-width: 1240px;
  width: 100%;
}

/* Hide legacy elements */
.hero-grid-bg,
.hero-glow {
  display: none !important;
}

/* Layout Grid */
.hero-grid-layout {
  display: grid;
  grid-template-columns: 1fr clamp(400px, 44vw, 520px) 1fr;
  align-items: center;
  gap: 40px;
  width: 100%;
  position: relative;
  z-index: 2;
}

.hero-side-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: clamp(520px, 46vw, 580px);
  position: relative;
  z-index: 10;
}

.hero-left-col {
  align-items: flex-start;
  text-align: left;
}

.hero-right-col {
  align-items: flex-end;
  text-align: right;
}

.hero-center-col {
  position: relative;
  z-index: 5;
  width: clamp(400px, 44vw, 520px);
}

/* Center Group and Typography */
.hero-center-group {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: clamp(520px, 46vw, 580px);
}

.hero-headline {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  max-width: 960px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  margin: 0;
  line-height: 1;
  pointer-events: none;
  z-index: 10; /* Put headline in front of the image */
}

.line-top {
  font-family: 'Plus Jakarta Sans', var(--font-display), sans-serif;
  font-size: clamp(2.8rem, 5.8vw, 5.2rem);
  font-weight: 800;
  color: #18181b;
  letter-spacing: -0.03em;
  z-index: 10;
  transition: color var(--transition);
}

[data-theme="dark"] .line-top {
  color: #ffffff;
}

.line-bottom {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(3.6rem, 7.2vw, 6.6rem);
  font-weight: 400;
  color: #18181b;
  letter-spacing: -0.01em;
  margin-top: -10px;
  z-index: 10;
  transition: color var(--transition);
}

[data-theme="dark"] .line-bottom {
  color: #ffffff;
}

/* Portrait Card (Transparent, Larger) */
.hero-portrait-wrap {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: clamp(450px, 48vw, 540px);
  z-index: 2; /* Put image behind the text */
  border: none;
  background: transparent;
  box-shadow: none;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.4s ease;
}

.hero-portrait-wrap:hover {
  transform: translateX(-50%) translateY(-6px) scale(1.03);
  filter: grayscale(0%);
  box-shadow: none;
}

.hero-portrait-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(100%) contrast(1.1) brightness(0.95);
  transition: filter 0.4s ease;
}

.hero-portrait-wrap:hover .hero-portrait-img {
  filter: grayscale(0%) contrast(1.02) brightness(1.02);
}

/* Status Pill */
.hero-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #cbd5e1;
  border: 1.5px solid #94a3b8;
  border-radius: 30px;
  padding: 12px 24px;
  font-family: 'General Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, background-color var(--transition), border-color var(--transition), color var(--transition);
}

.hero-status-pill:hover {
  transform: translateY(-2px);
}

[data-theme="dark"] .hero-status-pill {
  background: #1e293b;
  border: 1.5px solid #334155;
  color: #f8fafc;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  position: relative;
}



@keyframes pulse-ring {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }

  100% {
    transform: scale(3);
    opacity: 0;
  }
}

/* Left Column Details */
.hero-left-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 240px;
}

.tech-avatars {
  display: flex;
  align-items: center;
}

.tech-avatars .avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  margin-left: -10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s, border-color var(--transition);
}

.tech-avatars .avatar:hover {
  transform: translateY(-4px) scale(1.1);
  z-index: 10;
}

.tech-avatars .avatar:first-child {
  margin-left: 0;
}

.detail-text {
  font-family: 'General Sans', sans-serif;
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--text-muted);
}

/* Right Column Details */
.hero-right-desc {
  font-family: 'General Sans', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 280px;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}

/* Premium Redesigned Pill Buttons */
.hero-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #18181b;
  color: #ffffff;
  padding: 12px 28px;
  border-radius: 30px;
  font-family: 'General Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  transition: transform 0.2s, background-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-decoration: none;
}

.hero-btn-primary:hover {
  background: #000000;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  color: #ffffff;
  text-decoration: none;
}

[data-theme="dark"] .hero-btn-primary {
  background: #e8e9f0;
  color: #0b0c10;
}

[data-theme="dark"] .hero-btn-primary:hover {
  background: #ffffff;
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.1);
}

.hero-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 12px 28px;
  border-radius: 30px;
  font-family: 'General Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  transition: transform 0.2s, background-color 0.2s, border-color var(--transition);
  text-decoration: none;
}

.hero-btn-secondary:hover {
  background: var(--bg-card);
  transform: translateY(-2px);
  text-decoration: none;
  color: var(--text);
}

.btn-arrow {
  font-size: 14px;
  transition: transform 0.2s ease;
}

.hero-btn-primary:hover .btn-arrow {
  transform: translateX(4px);
}

.hero-btn-secondary:hover .btn-arrow {
  transform: translateY(3px);
}

/* General button back-compat support to not break other components */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
  border: none;
  transition: transform 0.18s, box-shadow 0.18s, background 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #0b0c10;
}

.btn-primary:hover {
  box-shadow: 0 8px 28px rgba(127, 255, 178, 0.28);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  background: var(--bg-card);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 12px;
}

/* Responsive Media Queries */
@media (max-width: 1023px) {
  #hero {
    padding-top: calc(var(--nav-h) + 30px);
    padding-bottom: 60px;
  }

  .hero-grid-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-side-col {
    height: auto;
    align-items: center !important;
    text-align: center !important;
    gap: 20px;
  }

  .hero-left-col {
    order: 3;
  }

  .hero-center-col {
    order: 1;
  }

  .hero-right-col {
    order: 2;
  }

  .hero-center-group {
    min-height: auto;
  }

  .hero-headline {
    gap: 20px;
  }

  .hero-portrait-wrap {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none !important;
    margin: 20px auto 0;
    width: 240px;
    height: 310px;
  }

  .hero-portrait-wrap:hover {
    transform: translateY(-6px) scale(1.02) !important;
  }

  .hero-right-desc {
    max-width: 460px;
  }

  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    align-items: center;
  }

  .about-layout-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .about-image-card {
    transform: none !important;
    max-width: 420px;
    margin: 0 auto;
  }

  .about-card-footer {
    max-width: 420px;
    margin: 20px auto 0;
  }

  .about-facts-list {
    padding-left: 20px;
  }
}

#about {
  background: var(--bg);
  padding: 50px 0 90px;
}

.about-header {
  text-align: center;
  margin-bottom: 35px;
}

/* Make sure text header itself is visible, but the split words inside animate */
.about-header.reveal-on-scroll {
  opacity: 1;
  transform: none;
}

.about-section-label {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 4px;
}

.about-title-large {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 auto;
}

.about-title-large .serif-text {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--text-muted);
}

/* Text Splitting Reveal Animation */
.anim-word-wrapper {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  margin-right: 0.18em; /* space between words */
}

.anim-word {
  display: inline-block;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
              opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              color 0.25s ease-out;
  will-change: transform, opacity;
  cursor: default;
}

.revealed .anim-word {
  transform: translateY(0);
  opacity: 1;
}

.anim-word:hover {
  color: var(--accent) !important;
}

/* Override reveal-on-scroll default animations to prevent double translation */
.reveal-text-anim {
  transform: none !important;
  opacity: 1 !important;
}

.about-layout-grid {
  display: grid;
  grid-template-columns: minmax(320px, 450px) 1fr;
  gap: 75px;
  align-items: start;
}

/* Photo Column Card */
.about-photo-column {
  display: flex;
  flex-direction: column;
}

/* Ambient Accent Glow behind Card */
.about-card-wrapper {
  width: 100%;
  position: relative;
  animation: floatAboutCard 6s ease-in-out infinite;
  transform-style: preserve-3d;
}

.about-card-wrapper::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 15px;
  right: 15px;
  bottom: 15px;
  background: var(--accent);
  filter: blur(45px);
  opacity: 0;
  z-index: -1;
  border-radius: 20px;
  transition: opacity 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}

.about-card-wrapper:hover::before {
  opacity: 0.15;
  transform: scale(1.04);
}

/* Gently Floating Card Keyframes */
@keyframes floatAboutCard {
  0% {
    transform: translateY(0px) rotate(-2.5deg);
  }
  50% {
    transform: translateY(-8px) rotate(-1.5deg);
  }
  100% {
    transform: translateY(0px) rotate(-2.5deg);
  }
}

.about-image-card {
  position: relative;
  background: #111216;
  border-radius: 20px;
  border: 1px solid var(--border-green);
  padding: 24px 24px 12px;
  transform: rotate(-2.5deg);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.4s;
  aspect-ratio: 1.4;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

/* Hover Glare Effect */
.about-image-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.08) 0%, transparent 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 2;
}

.about-image-card:hover::after {
  opacity: 1;
}

.about-image-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(100%) contrast(1.1);
  transition: filter 0.4s ease, transform 0.4s ease;
  transform: translateZ(10px); /* 3d depth layer */
}

/* Handled by JS Tilt, fallback hover */
.about-image-card:hover {
  border-color: var(--accent);
}

.about-image-card:hover img {
  filter: grayscale(0%);
}

.about-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 28px;
  padding: 0 10px;
}

.about-socials {
  display: flex;
  gap: 18px;
}

.social-link {
  color: var(--text-muted);
  transition: color 0.2s, transform 0.2s;
  display: inline-flex;
  align-items: center;
}

.social-link:hover {
  color: var(--text);
  transform: translateY(-3px) scale(1.1);
}

.about-card-meta {
  text-align: right;
  font-family: 'General Sans', sans-serif;
}

.meta-name {
  font-weight: 500;
  font-size: 14.5px;
  color: var(--text);
}

.meta-title {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 1px;
}

/* Content Column (Bio & Facts) */
.about-content-column {
  display: flex;
  flex-direction: column;
}

.about-bio-text {
  font-family: 'General Sans', sans-serif;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 45px;
}

.about-bio-text p {
  margin-bottom: 20px;
}

.about-bio-text p:last-child {
  margin-bottom: 0;
}

.about-bio-text strong {
  color: var(--text);
  font-weight: 600;
}

/* Staggered Facts List & Drawing Borders */
.about-facts-list {
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--border-green);
  padding-left: 28px;
}

.about-fact-item {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  align-items: center;
  padding: 20px 0;
  position: relative;
  font-family: 'General Sans', sans-serif;
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.8s cubic-bezier(0.21, 0.6, 0.35, 1), 
              transform 0.8s cubic-bezier(0.21, 0.6, 0.35, 1),
              color 0.3s ease;
}

.about-fact-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--border-green);
  transition: width 0.8s cubic-bezier(0.21, 0.6, 0.35, 1), background-color 0.3s ease;
}

/* Revealed Staggered Animation */
.about-facts-list.revealed .about-fact-item {
  opacity: 1;
  transform: translateX(0);
}

.about-facts-list.revealed .about-fact-item::after {
  width: 100%;
}

.about-facts-list.revealed .about-fact-item:nth-child(1) { transition-delay: 0.1s; }
.about-facts-list.revealed .about-fact-item:nth-child(2) { transition-delay: 0.2s; }
.about-facts-list.revealed .about-fact-item:nth-child(3) { transition-delay: 0.3s; }
.about-facts-list.revealed .about-fact-item:nth-child(4) { transition-delay: 0.4s; }

.about-facts-list.revealed .about-fact-item:nth-child(1)::after { transition-delay: 0.2s; }
.about-facts-list.revealed .about-fact-item:nth-child(2)::after { transition-delay: 0.3s; }
.about-facts-list.revealed .about-fact-item:nth-child(3)::after { transition-delay: 0.4s; }
.about-facts-list.revealed .about-fact-item:nth-child(4)::after { transition-delay: 0.5s; }

/* Fact Item Hover Styling */
.about-facts-list.revealed .about-fact-item:hover {
  transform: translateX(8px);
}

.about-facts-list.revealed .about-fact-item:hover .fact-label-col {
  color: var(--accent);
}

.about-facts-list.revealed .about-fact-item:hover::after {
  background: var(--accent);
}

.fact-label-col {
  font-weight: 500;
  font-size: 14.5px;
  color: var(--text);
  transition: color 0.3s ease;
}

.fact-value-col {
  color: var(--text-muted);
  font-size: 14px;
}

.fact-extra-col {
  font-weight: 400;
  font-size: 14px;
  color: var(--text);
  text-align: right;
}

/* Pulsing Status Pill */
.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.25);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: #22c55e;
  transition: background-color 0.3s, border-color 0.3s;
}

.status-indicator:hover {
  background: rgba(34, 197, 94, 0.18);
  border-color: rgba(34, 197, 94, 0.4);
}

[data-theme="dark"] .status-indicator {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.3);
}

.status-indicator .pulse-dot {
  width: 7px;
  height: 7px;
  background: #22c55e;
  border-radius: 50%;
  position: relative;
}

/* Scroll Reveal Animation Classes */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.85s cubic-bezier(0.21, 0.6, 0.35, 1), transform 0.85s cubic-bezier(0.21, 0.6, 0.35, 1);
  will-change: transform, opacity;
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}


#skills {
  background: var(--bg-card);
  overflow: hidden;
  transition: background var(--transition);
}

.skills-grid-wrapper {
  position: relative;
  width: 100%;
  padding: 40px 0;
}

.skills-svg-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 50px;
  row-gap: 90px;
  position: relative;
  z-index: 2;
}

@media (max-width: 1023px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 40px;
    row-gap: 70px;
  }
}

@media (max-width: 640px) {
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.skill-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px 28px;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  
  /* Initial hidden state for entrance animation */
  opacity: 0;
  transform: translateY(24px) rotate(var(--rotation, 0deg));
  
  transition: opacity 0.5s ease-out, 
              transform 0.5s ease-out, 
              border-color 0.4s, 
              box-shadow 0.4s,
              background-color var(--transition);
}

/* Define organic layout variables for staggered manual offsets and rotation angles on large screens */
@media (min-width: 1024px) {
  .skill-card:nth-child(1) { --offsetX: -12px; --offsetY: 30px; --rotation: -1.5deg; }
  .skill-card:nth-child(2) { --offsetX: 15px; --offsetY: -40px; --rotation: 1.8deg; }
  .skill-card:nth-child(3) { --offsetX: -18px; --offsetY: 20px; --rotation: -1deg; }
  .skill-card:nth-child(4) { --offsetX: 20px; --offsetY: -20px; --rotation: 1.2deg; }
  .skill-card:nth-child(5) { --offsetX: -10px; --offsetY: 50px; --rotation: -2deg; }
  .skill-card:nth-child(6) { --offsetX: 12px; --offsetY: -10px; --rotation: 0.8deg; }
}

@media (max-width: 1023px) and (min-width: 768px) {
  .skill-card:nth-child(1) { --offsetX: -8px; --offsetY: 20px; --rotation: -1deg; }
  .skill-card:nth-child(2) { --offsetX: 8px; --offsetY: -25px; --rotation: 1deg; }
  .skill-card:nth-child(3) { --offsetX: -12px; --offsetY: 15px; --rotation: -0.8deg; }
  .skill-card:nth-child(4) { --offsetX: 12px; --offsetY: -15px; --rotation: 0.8deg; }
  .skill-card:nth-child(5) { --offsetX: -8px; --offsetY: 30px; --rotation: -1.5deg; }
  .skill-card:nth-child(6) { --offsetX: 8px; --offsetY: -10px; --rotation: 0.5deg; }
}

@media (max-width: 767px) {
  .skill-card {
    --offsetX: 0px;
    --offsetY: 0px;
    --rotation: 0deg;
  }
}

/* Active visible state triggered by JS IntersectionObserver sequence */
.skill-card.card-visible {
  opacity: 1;
  transform: translate(var(--offsetX, 0), var(--offsetY, 0)) rotate(var(--rotation, 0deg));
}

.skill-card.card-visible:hover {
  transform: scale(1.04) rotate(0deg) translate(0) !important;
  border-color: var(--accent);
  box-shadow: inset 0 0 12px var(--border-green), 0 12px 36px var(--border-green);
  background: var(--bg-card);
}

/* Sequential internal text elements reveal setup */
.skill-card .skill-number,
.skill-card .skill-icon,
.skill-card .skill-name,
.skill-card .skill-desc,
.skill-card .skill-tags {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
              transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.skill-card.content-visible .skill-number {
  opacity: 0.9;
  transform: translateY(0);
  transition-delay: 0s;
}

.skill-card.content-visible .skill-icon {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.08s;
}

.skill-card.content-visible .skill-name {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.16s;
}

.skill-card.content-visible .skill-desc {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.24s;
}

.skill-card.content-visible .skill-tags {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.32s;
}

.skill-number {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--text);
  opacity: 0.9;
  line-height: 1;
  margin-bottom: 24px;
}

.skill-icon {
  font-size: 32px;
  margin-bottom: 8px;
}

.skill-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  margin-bottom: 12px;
  transition: color var(--transition);
}

.skill-desc {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 16px;
  transition: color var(--transition);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.tag {
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 10.5px;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.05em;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

/* Connector Lines SVG styles */
.skill-connector-path {
  stroke: var(--accent);
  stroke-width: 1.75px;
  stroke-linecap: round;
  fill: none;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  transition: stroke 0.3s ease;
  animation: draw-path-single 1s cubic-bezier(0.42, 0, 0.58, 1) forwards;
}

.skill-connector-dot {
  fill: var(--bg);
  stroke: var(--accent);
  stroke-width: 2px;
  opacity: 0;
  transition: fill 0.3s ease, stroke 0.3s ease;
}

.skill-connector-dot.dot-start {
  animation: fade-in-dot-single 0.2s ease-out forwards;
}

.skill-connector-dot.dot-end {
  animation: fade-in-dot-single 0.2s ease-out forwards;
  animation-delay: 1s; /* Fades in when line drawing is complete */
}

@keyframes draw-path-single {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes fade-in-dot-single {
  to {
    opacity: 1;
  }
}


.projects-ticker-section {
  background: var(--bg);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
  transition: background var(--transition);
}

/* Marquee / Ticker Layout */
.projects-marquee-container {
  overflow-x: auto;
  overflow-y: hidden;
  width: 100%;
  position: relative;
  display: flex;
}







.projects-marquee-track {
  display: flex;
  width: max-content;
  animation-name: marquee-scroll;
  animation-duration: 38s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-play-state: running;
}

/* Pause scroll on hover */
.projects-marquee-track:hover,
.projects-marquee-track:has(.project-marquee-card:hover),
.projects-marquee-container:hover .projects-marquee-track,
.projects-marquee-container:has(.project-marquee-card:hover) .projects-marquee-track {
  -webkit-animation-play-state: paused !important;
  animation-play-state: paused !important;
}

.projects-marquee-group {
  display: flex;
  gap: 32px;
  padding: 24px 16px;
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Card Styling */
.project-marquee-card {
  position: relative;
  width: 320px;
  height: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 16px;
  transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), 
              border-color 0.35s, 
              box-shadow 0.35s,
              background-color var(--transition);
  overflow: hidden;
  cursor: pointer;
}

.project-marquee-card:hover {
  transform: scale(1.04);
  border-color: var(--accent);
  box-shadow: 0 12px 40px var(--border-green);
  z-index: 10;
}

.project-marquee-card:hover > *:not(.project-card-overlay) {
  opacity: 0;
  pointer-events: none;
}

.project-card-thumb,
.project-card-title,
.project-card-desc,
.project-card-tags {
  transition: opacity 0.3s ease;
}

/* Card Thumbnail/Icon Placeholder */
.project-card-thumb {
  width: 100%;
  height: 140px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--border-green), rgba(255, 126, 179, 0.1));
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: opacity 0.3s ease, border-color var(--transition);
}

.project-card-thumb::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, var(--border-green) 0%, transparent 65%);
}

.project-card-icon {
  font-size: 44px;
  position: relative;
  z-index: 1;
}

.project-card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  margin: 0;
  line-height: 1.35;
  transition: opacity 0.3s ease, color var(--transition);
}

.project-card-desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: opacity 0.3s ease, color var(--transition);
}

.project-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.project-card-tag {
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 20px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

/* Expanded overlay overlay */
.project-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-card); /* Solid background to prevent bleed-through */
  border: 1px solid var(--border);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: opacity 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), 
              transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
              background-color var(--transition),
              border-color var(--transition);
  border-radius: 20px;
  z-index: 5;
  overflow-y: auto;
}

.project-card-overlay::-webkit-scrollbar {
  width: 4px;
}

.project-card-overlay::-webkit-scrollbar-thumb {
  background: var(--border-green);
  border-radius: 10px;
}

.project-marquee-card:hover .project-card-overlay {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.overlay-image {
  width: 100%;
  height: 90px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--border-green), rgba(255, 126, 179, 0.15)) !important;
  border: 1px solid var(--border);
  margin-bottom: 4px;
  transition: border-color var(--transition);
}

.overlay-icon {
  font-size: 32px;
}

.overlay-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text);
  margin: 0;
  line-height: 1.35;
  transition: color var(--transition);
}

.overlay-desc {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
  transition: color var(--transition);
}

.overlay-links {
  display: flex;
  gap: 10px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  transition: border-color var(--transition);
}

.overlay-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 600;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.overlay-btn-github {
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text) !important;
}

.overlay-btn-github:hover {
  background: var(--border);
}

.overlay-btn-live {
  background: var(--accent);
  color: var(--bg) !important;
}

.overlay-btn-live:hover {
  filter: brightness(1.1);
  box-shadow: 0 4px 15px var(--border-green);
}

/* Responsive Overrides */
@media (max-width: 768px) {
  .projects-ticker-section {
    padding: 60px 0;
  }
  
  .projects-marquee-group {
    gap: 20px;
    padding: 16px 10px;
  }
  
  .project-marquee-card {
    width: 260px;
    height: 380px;
    padding: 18px;
    gap: 12px;
  }
  
  .project-card-thumb {
    height: 110px;
  }
  
  .project-card-icon {
    font-size: 36px;
  }
  
  .project-card-title {
    font-size: 1.05rem;
  }
  
  .project-card-desc {
    font-size: 12px;
  }
  
  .project-card-tag {
    font-size: 9px;
    padding: 2.5px 7px;
  }
  
  .overlay-image {
    height: 80px;
  }
  
  .overlay-icon {
    font-size: 28px;
  }
}


#scholarship {
  background: var(--bg-card);
}

.scholarship-intro {
  color: var(--text-muted);
  font-size: 13.5px;
  max-width: 680px;
  margin-bottom: 40px;
  line-height: 1.8;
}

.scholarship-intro strong {
  color: var(--text);
}


.sh-form-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  margin-bottom: 48px;
}

.sh-form-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 28px;
}

.sh-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 28px;
}

#sh-form-msg {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--accent);
  display: none;
}

#sh-form-msg.visible {
  display: block;
}

#sh-form-msg.error {
  color: #ff5050;
  display: block;
}


.scholarship-results {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sch-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 28px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  transition: border-color 0.2s, transform 0.18s, box-shadow 0.18s;
  animation: fadeSlide 0.35s ease both;
}

.sch-card:hover {
  border-color: var(--accent);
  transform: translateX(4px);
  box-shadow: var(--shadow);
}

.sch-badge {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
}

.sch-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.sch-desc {
  color: var(--text-muted);
  font-size: 12.5px;
  margin-bottom: 10px;
}

.sch-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 11.5px;
  color: var(--text-muted);
}

.sch-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.sch-meta .hl {
  color: var(--accent);
  font-weight: 600;
}

.sch-apply {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: #0b0c10;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s, box-shadow 0.15s;
  text-decoration: none;
}

.sch-apply:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(127, 255, 178, 0.25);
  text-decoration: none;
}

.sch-results-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: var(--text);
}

.sch-no-results {
  text-align: center;
  padding: 48px 0;
  color: var(--text-muted);
  font-size: 13px;
}

.sch-no-results .icon {
  font-size: 36px;
  margin-bottom: 14px;
}


#experience {
  background: var(--bg);
  padding-bottom: 180px; /* Extra room for cards to stack at the bottom of the section */
}

.timeline {
  position: relative;
  padding-left: 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  height: var(--line-progress, 0%); /* Dynamically updated by JS scroll tracker */
  width: 2px;
  background: var(--accent);
  transition: height 0.15s ease-out;
}

.timeline-item {
  position: sticky;
  margin-bottom: 64px; /* Space between cards so user scrolls through them */
  background: var(--bg);
  border-radius: 16px;
}

.timeline-item:nth-child(1) {
  top: 90px;
  z-index: 3;
}

.timeline-item:nth-child(2) {
  top: 130px;
  z-index: 2;
}

.timeline-item:nth-child(3) {
  top: 170px;
  z-index: 1;
}

/* Dots get scale-in spring and ripples */
.timeline-item::before {
  content: '';
  position: absolute;
  left: -35px;
  top: 12px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
  transform: scale(0);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 10;
}

.timeline-item.item-active::before {
  transform: scale(1);
}

/* Expanding sonar glow ring */
.timeline-item::after {
  content: '';
  position: absolute;
  left: -35px;
  top: 12px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  transform: scale(0);
  opacity: 0;
  z-index: 9;
  pointer-events: none;
}

.timeline-item.item-active::after {
  animation: sonar-ping 1s cubic-bezier(0.21, 0.6, 0.35, 1) forwards;
}

@keyframes sonar-ping {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(3.5);
    opacity: 0;
  }
}

.tl-date {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.timeline-item.item-active .tl-date {
  opacity: 1;
  transform: translateX(0);
}

/* Stacking Card Box */
.tl-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.18), 0 12px 32px rgba(0, 0, 0, 0.12); /* shadow on top edge and bottom shadow */
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out, border-color 0.3s, box-shadow 0.3s;
}

.timeline-item.item-active .tl-card {
  opacity: 1;
  transform: translateY(0);
}

.tl-card:hover {
  border-color: var(--accent);
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.22), 0 16px 40px rgba(0, 0, 0, 0.2);
}

/* Stagger entrance of internal text */
.tl-role,
.tl-company,
.tl-desc {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.timeline-item.item-active .tl-role {
  opacity: 1;
  transform: translateY(0);
}

.timeline-item.item-active .tl-company {
  opacity: 1;
  transform: translateY(0);
}

.timeline-item.item-active .tl-desc {
  opacity: 1;
  transform: translateY(0);
}

/* FIRST ITEM DELAY (waits for timeline line drawing) */
.timeline-item:nth-child(1).item-active::before { transition-delay: 0.6s; }
.timeline-item:nth-child(1).item-active::after { animation-delay: 0.9s; }
.timeline-item:nth-child(1).item-active .tl-date { transition-delay: 0.8s; }
.timeline-item:nth-child(1).item-active .tl-card { transition-delay: 1.0s; }
.timeline-item:nth-child(1).item-active .tl-role { transition-delay: 1.2s; }
.timeline-item:nth-child(1).item-active .tl-company { transition-delay: 1.3s; }
.timeline-item:nth-child(1).item-active .tl-desc { transition-delay: 1.4s; }

/* SUBSEQUENT ITEMS DELAYS */
.timeline-item:not(:nth-child(1)).item-active::before { transition-delay: 0s; }
.timeline-item:not(:nth-child(1)).item-active::after { animation-delay: 0.3s; }
.timeline-item:not(:nth-child(1)).item-active .tl-date { transition-delay: 0.1s; }
.timeline-item:not(:nth-child(1)).item-active .tl-card { transition-delay: 0.2s; }
.timeline-item:not(:nth-child(1)).item-active .tl-role { transition-delay: 0.35s; }
.timeline-item:not(:nth-child(1)).item-active .tl-company { transition-delay: 0.45s; }
.timeline-item:not(:nth-child(1)).item-active .tl-desc { transition-delay: 0.55s; }

.tl-role {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 6px;
  color: var(--text);
}

.tl-company {
  color: var(--text-muted);
  font-size: 13.5px;
  margin-bottom: 12px;
}

.tl-desc {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
  max-width: 620px;
}


#contact {
  background: var(--bg-card);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info p {
  color: var(--text-muted);
  font-size: 13.5px;
  margin-bottom: 28px;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--text-muted);
  font-size: 13px;
}

.contact-detail .icon {
  color: var(--accent);
  font-size: 16px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(127, 255, 178, 0.1);
}

.form-group textarea {
  min-height: 120px;
}

select option {
  background: var(--bg-card);
}

#form-status {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 12.5px;
  display: none;
}

#form-status.success {
  background: rgba(127, 255, 178, 0.1);
  border: 1px solid var(--accent);
  color: var(--accent);
  display: block;
}

#form-status.error {
  background: rgba(255, 80, 80, 0.1);
  border: 1px solid #ff5050;
  color: #ff5050;
  display: block;
}


#admin {
  background: var(--bg);
  min-height: 340px;
  display: none;
}

body.admin-enabled #admin {
  display: block;
}

#admin-login-panel {
  display: block;
}

#admin-responses-panel {
  display: none;
}

body.admin-authed #admin-login-panel {
  display: none;
}

body.admin-authed #admin-responses-panel {
  display: block;
}

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

.admin-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
}

.admin-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.admin-card p {
  color: var(--text-muted);
  font-size: 12.5px;
  margin-bottom: 28px;
}

#login-error {
  color: #ff5050;
  font-size: 12px;
  margin-top: 10px;
  display: none;
}

#login-error.visible {
  display: block;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 36px;
  flex-wrap: wrap;
  gap: 16px;
}

.admin-header>div>p {
  color: var(--text-muted);
  font-size: 12.5px;
}

.responses-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.response-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  transition: border-color 0.2s;
  animation: fadeSlide 0.4s ease both;
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.response-card:hover {
  border-color: var(--accent);
}

.response-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 8px;
}

.response-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
}

.response-time {
  font-size: 10.5px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.response-email {
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 6px;
}

.response-subject {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.response-msg {
  color: var(--text-muted);
  font-size: 12.5px;
  line-height: 1.6;
  white-space: pre-wrap;
}

.response-count-badge {
  display: inline-block;
  background: var(--accent);
  color: #0b0c10;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  margin-left: 8px;
  vertical-align: middle;
}

.empty-state {
  text-align: center;
  padding: 48px 0;
  color: var(--text-muted);
}

.empty-state .big-icon {
  font-size: 40px;
  margin-bottom: 16px;
}

.empty-state p {
  font-size: 13px;
}


footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-left {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
}

.footer-left span {
  color: var(--accent);
}

.footer-right {
  font-size: 11.5px;
  color: var(--text-muted);
}

@media (max-width: 860px) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-photo-wrap {
    order: -1;
  }

  .hero-photo-ring {
    width: 200px;
    height: 200px;
  }
}

@media (max-width: 720px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

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

  .sh-form-grid {
    grid-template-columns: 1fr;
  }

  .sch-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .nav-links {
    display: none;
  }

  .hero-ctas {
    flex-direction: column;
  }

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


/* Contact Hub Modal styles */
.contact-hub-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.4s, opacity 0.4s;
}

.contact-hub-overlay.active {
  visibility: visible;
  opacity: 1;
}

.contact-hub-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 11, 14, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: background var(--transition);
}

[data-theme="light"] .contact-hub-backdrop {
  background: rgba(244, 243, 239, 0.75);
}

.contact-hub-card {
  position: relative;
  z-index: 2;
  width: 480px;
  max-width: 90%;
  max-height: 85vh;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 32px;
  padding: 40px 32px 32px 32px;
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
  transform: scale(0.9) translateY(24px);
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), background var(--transition), border-color var(--transition);
  scrollbar-width: thin;
}

.contact-hub-overlay.active .contact-hub-card {
  transform: scale(1) translateY(0);
}

.contact-hub-close {
  position: absolute;
  top: 24px;
  right: 24px;
  border: none;
  background: var(--bg-card);
  color: var(--text);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.3s, color 0.3s, transform 0.3s;
  border: 1px solid var(--border);
}

.contact-hub-close:hover {
  background: var(--accent);
  color: #0b0c10;
  transform: rotate(90deg);
}

.contact-hub-profile {
  text-align: center;
  margin-bottom: 20px;
}

.contact-hub-avatar-wrap {
  position: relative;
  width: 96px;
  height: 96px;
  margin: 0 auto 16px auto;
}

.contact-hub-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
  padding: 4px;
  background: var(--bg);
  transition: border-color var(--transition);
}

.online-status-dot {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #2ed573;
  border: 2.5px solid var(--bg);
  box-shadow: 0 0 8px #2ed573;
  transition: border-color var(--transition);
}

.contact-hub-name {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.contact-hub-title {
  font-size: 13px;
  color: var(--text-muted);
}

.contact-hub-socials {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 20px 0;
}

.hub-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  background: var(--bg-card);
}

.hub-social-icon svg {
  width: 18px;
  height: 18px;
}

.hub-social-icon:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-3px);
  box-shadow: inset 0 0 8px var(--border-green), 0 4px 12px var(--border-green);
}

.contact-hub-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 24px 0 16px 0;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact-hub-divider::before,
.contact-hub-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px dashed var(--border);
}

.contact-hub-divider::before {
  margin-right: 14px;
}

.contact-hub-divider::after {
  margin-left: 14px;
}

.contact-hub-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hub-link-btn {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  border-radius: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  cursor: pointer;
  text-align: left;
}

.hub-link-icon {
  font-size: 22px;
  margin-right: 18px;
  flex-shrink: 0;
}

.hub-link-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.hub-link-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  transition: color 0.3s ease;
}

.hub-link-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.hub-link-arrow {
  font-size: 14px;
  color: var(--text-muted);
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), color 0.3s ease;
  margin-left: 12px;
}

.hub-link-btn:hover {
  border-color: var(--accent);
  background: var(--bg);
  transform: translateY(-2px);
  box-shadow: inset 0 0 6px var(--border-green), 0 8px 24px var(--border-green);
}

.hub-link-btn:hover .hub-link-arrow {
  transform: translateX(4px);
  color: var(--accent);
}

.hub-link-btn:hover .hub-link-text {
  color: var(--accent);
}

/* Specific Highlight for Call to Action / Resume Button */
.hub-btn-highlight {
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(100, 255, 218, 0.04) 100%);
  border-color: var(--border);
}

.hub-btn-highlight:hover {
  background: linear-gradient(135deg, var(--bg) 0%, rgba(100, 255, 218, 0.08) 100%);
}

[data-theme="light"] .hub-btn-highlight {
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(25, 135, 84, 0.04) 100%);
}

[data-theme="light"] .hub-btn-highlight:hover {
  background: linear-gradient(135deg, var(--bg) 0%, rgba(25, 135, 84, 0.08) 100%);
}

/* Prevent body scrolling when modal is open */
body.modal-open {
  overflow: hidden;
  height: 100vh;
}

/* Contact Page Layout classes */
.contact-page-wrapper {
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: 60px 16px;
  position: relative;
  overflow: hidden;
  transition: background var(--transition);
}

.contact-page-header {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 10;
}

.contact-page-footer {
  margin-top: 32px;
  text-align: center;
  font-size: 11.5px;
  color: var(--text-muted);
  position: relative;
  z-index: 5;
}

/* ==========================================
   CERTIFICATES SECTION (WALL OF WINS)
   ========================================== */
#certificates {
  background-color: #111008;
  background-image: 
    radial-gradient(circle at 50% 50%, rgba(25, 24, 15, 0.4), rgba(17, 16, 8, 1)),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.045'/%3E%3C/svg%3E");
  padding: 100px 0 120px;
  position: relative;
  overflow: hidden;
  transition: background var(--transition);
}

[data-theme="light"] #certificates {
  background-color: #f7f5ef;
  background-image: 
    radial-gradient(circle at 50% 50%, rgba(255, 254, 250, 0.45), rgba(247, 245, 239, 1)),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.035'/%3E%3C/svg%3E");
}

#certificates .container {
  text-align: center;
  margin: 16px auto;
  z-index: 2;
  position: relative;
}

#certificates .section-subtitle {
  color: var(--text-muted);
  font-size: 15px;
  margin-top: -36px;
  margin-bottom: 0px;
  font-family: var(--font-body);
}

.certificates-board {
  display: flex;
  flex-direction: column;
  gap: 36px;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: 24px 0;
  overflow: hidden;
  transform-style: preserve-3d;
}

/* -------------------------------------------------------------
   REDESIGNED CERTIFICATES SECTION (GALLERY & SIDEBAR)
   ------------------------------------------------------------- */
.cert-section-container {
  display: flex;
  gap: 48px;
  align-items: flex-start;
  padding: 60px 0;
  position: relative;
}

.cert-sidebar {
  width: 260px;
  flex-shrink: 0;
  position: sticky;
  top: 100px;
}

/* Subtle divider line between panels */
.cert-sidebar::after {
  content: '';
  position: absolute;
  top: 0;
  right: -24px;
  width: 1px;
  height: 100%;
  background: var(--border);
}

.cert-main-panel {
  flex-grow: 1;
  position: relative;
  height: 75vh;
  display: flex;
  flex-direction: column;
}

.cert-scroll-area {
  flex-grow: 1;
  overflow-y: auto;
  scrollbar-width: none;
  overscroll-behavior-y: auto;
  padding-bottom: 40px;
}

.cert-scroll-area::-webkit-scrollbar {
  display: none;
}

.cert-scroll-hint {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: linear-gradient(to top, #111008 10%, transparent);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 16px;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 10;
}

[data-theme="light"] .cert-scroll-hint {
  background: linear-gradient(to top, #f7f5ef 10%, transparent);
}

.cert-scroll-hint span {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  animation: bounceHint 2s infinite;
}

@keyframes bounceHint {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

.cert-scroll-hint.hidden {
  opacity: 0;
}

.cert-filters {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 32px 0;
}

.filter-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 8px;
  transition: color 0.2s, background-color 0.2s;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.filter-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.filter-btn.active {
  color: var(--accent);
  font-weight: 600;
  background: rgba(127, 255, 178, 0.08);
}

.filter-count {
  font-size: 11px;
  opacity: 0.6;
}

.cert-sidebar-footer {
  margin-top: 48px;
  font-size: 12px;
  color: var(--text-muted);
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  width: 100%;
}

/* Entrance Animation / Scroll into view styles */
.cert-grid-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
  transition-delay: var(--delay, 0s);
}

#certificates.revealed .cert-grid-item {
  opacity: 1;
  transform: translateY(0);
}

/* Certificate Card */
.cert-card {
  position: relative;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0;
  margin: 0;
  cursor: pointer;
  display: block;
  border-radius: 8px;
}

.cert-thumb {
  width: 100%;
  aspect-ratio: 4/3;
  background: none;
  border: none;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.cert-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.cert-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
}

.cert-icon {
  font-size: 26px;
  opacity: 0.65;
}

/* Hover overlay container */
.cert-info-block {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
  z-index: 2;
  border-radius: 8px;
}

.cert-card:hover .cert-info-block {
  opacity: 1;
}

.cert-card-title {
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 6px 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cert-card-category {
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
}

/* Lightbox Overlay */
.cert-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, padding 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cert-lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

@media (min-width: 769px) {
  .cert-lightbox.active {
    padding-right: 400px;
  }
}

@media (max-width: 768px) {
  .cert-lightbox.active {
    padding-bottom: 50vh;
  }
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0.9);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.cert-lightbox.active .lightbox-content {
  transform: scale(1);
  opacity: 1;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* Details Panel */
.cert-details-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 400px;
  height: 100vh;
  background: #0f0f12;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.8);
  z-index: 10000;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  padding: 32px;
  overflow-y: auto;
}

.cert-details-panel.active {
  transform: translateX(0);
}

.panel-close-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 32px;
  cursor: pointer;
  z-index: 10;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.panel-close-btn:hover {
  opacity: 1;
}

.panel-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 40px;
}

.panel-thumb-container {
  width: 100%;
  aspect-ratio: 4/3;
  background: #111;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.panel-thumb-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.panel-tag {
  color: var(--accent);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
  font-family: var(--font-body);
}

.panel-title {
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  margin: 8px 0 16px 0;
  line-height: 1.3;
}

.panel-detail-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 14px;
}

.detail-label {
  color: var(--text-muted);
}

.detail-value {
  color: #ffffff;
  font-weight: 500;
}

.panel-description-section {
  margin-top: 16px;
}

.desc-heading {
  color: #ffffff;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  font-weight: 600;
}

.panel-description {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

/* RESPONSIVE LAYOUTS */
@media (max-width: 768px) {
  .cert-section-container {
    flex-direction: column;
    gap: 32px;
  }
  .cert-sidebar {
    width: 100%;
    position: relative;
    top: 0;
  }
  .cert-sidebar::after {
    display: none;
  }
  .cert-filters {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0;
  }
  .filter-btn {
    width: auto;
    justify-content: center;
  }
  .cert-sidebar-footer {
    margin-top: 16px;
  }
  .cert-details-panel {
    width: 100%;
    height: 50vh;
    top: auto;
    bottom: 0;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    transform: translateY(100%);
    border-radius: 20px 20px 0 0;
    padding: 24px;
  }
  .cert-details-panel.active {
    transform: translateY(0);
  }
}

/* ==========================================
   CONTACT CTA SECTION
   ========================================== */
.contact-cta-section {
  position: relative;
  overflow: hidden;
  padding: 160px 0 140px;
  text-align: center;
  background: var(--bg);
  transition: background var(--transition);
}

.cta-gradient-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 350px;
  background: linear-gradient(to bottom, rgba(179, 255, 126, 0.2), transparent);
  z-index: 1;
  pointer-events: none;
}

[data-theme="light"] .cta-gradient-bg {
  background: linear-gradient(to bottom, rgba(196, 249, 68, 0.6), transparent);
}

.cta-container {
  position: relative;
  z-index: 2;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.cta-title {
  font-family: 'Plus Jakarta Sans', var(--font-display), sans-serif;
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  color: var(--text);
  margin-bottom: 20px;
  line-height: 1.1;
  transition: color var(--transition);
}

[data-theme="light"] .cta-title {
  color: #18181b;
}

.cta-subtitle {
  font-family: 'General Sans', sans-serif;
  font-size: 16px;
  color: var(--text-muted);
  max-width: 550px;
  margin-bottom: 48px;
  line-height: 1.6;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #18181b;
  color: #ffffff;
  padding: 14px 32px;
  border-radius: 40px;
  font-family: 'General Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.2s, background-color 0.2s, box-shadow 0.2s, color 0.2s;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.cta-btn:hover {
  transform: translateY(-2px);
  background: #000000;
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  text-decoration: none;
}

[data-theme="dark"] .cta-btn {
  background: #e8e9f0;
  color: #0b0c10;
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .cta-btn:hover {
  background: #ffffff;
  color: #000000;
  box-shadow: 0 12px 30px rgba(255, 255, 255, 0.1);
}


/* Progress Bar */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--accent);
  z-index: 9999;
  width: 0%;
  transition: width 0.1s ease-out;
}

/* Heading shimmer */
.section-title {
  position: relative;
  overflow: hidden;
  display: inline-block;
}
.section-title::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}
.section-title:hover::after {
  left: 150%;
}
[data-theme="light"] .section-title::after {
  background: linear-gradient(90deg, transparent, rgba(0,0,0,0.1), transparent);
}

.cursor-trail-dot { position: fixed; top: 0; left: 0; width: 8px; height: 8px; background: var(--accent); border-radius: 50%; pointer-events: none; z-index: 9999; transition: opacity 0.4s ease; transform-origin: center center; margin-top: -4px; margin-left: -4px; filter: blur(1px); }

/* Project Card Images */
.project-card-thumb {
  padding: 0;
  overflow: hidden;
  background: var(--bg-card); /* Hide existing gradient when using images */
}

.project-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--bg-card);
  display: block;
  border-radius: 12px;
}

.img-fallback {
  width: 100%;
  height: 100%;
  background: var(--bg-input);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 48px;
  font-weight: bold;
}

.projects-marquee-container::-webkit-scrollbar { display: none; }
.projects-marquee-container { -ms-overflow-style: none; scrollbar-width: none; }
.mega-footer {
  position: relative;
  width: 100%;
  padding-top: 100px;
  overflow: hidden;
  background: var(--bg);
}

.mega-footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 80px;
}

.mega-footer-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.mega-footer-links a {
  font-family: 'General Sans', sans-serif;
  font-size: 16.5px;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}

.mega-footer-links a:hover {
  color: var(--accent) !important;
}

.mega-footer-copyright {
  font-family: 'General Sans', sans-serif;
  font-size: 13.5px;
  color: var(--text-muted);
}

.mega-footer-giant {
  font-family: 'Instrument Serif', serif;
  font-size: 20vw;
  line-height: 0.75;
  color: var(--text);
  white-space: nowrap;
  text-align: center;
  margin-bottom: -3.5vw;
  letter-spacing: -0.02em;
}

.mega-footer-giant i {
  font-style: italic;
  padding-right: 0.05em;
}

@media (max-width: 860px) {
  .mega-footer-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* Project Details Page Styles */
.project-details-page { padding-top: 100px; }
.pd-hero { padding: 40px 0 100px; }
.pd-back-btn { display: inline-flex; align-items: center; font-family: var(--font-body); font-size: 14px; color: var(--text-muted); text-decoration: none; margin-bottom: 40px; transition: color 0.2s ease; }
.pd-back-btn:hover { color: var(--accent); }
.pd-header { max-width: 800px; margin-bottom: 40px; }
.pd-tags { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.pd-tag { background: var(--bg-card); color: var(--accent); padding: 6px 14px; border-radius: 20px; font-size: 12px; font-weight: 600; border: 1px solid var(--border); }
.pd-title { font-family: var(--font-display); font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 800; line-height: 1.1; margin-bottom: 20px; color: var(--text); }
.pd-subtitle { font-family: var(--font-body); font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--text-muted); line-height: 1.6; }
.pd-image-wrapper { width: 100%; height: 60vh; min-height: 400px; border-radius: 20px; overflow: hidden; margin-bottom: 60px; background: var(--bg-card); border: 1px solid var(--border); }
.pd-main-image { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-main-fallback { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 100px; color: var(--accent); background: var(--bg-card); }
.pd-content { display: grid; grid-template-columns: 2fr 1fr; gap: 60px; }
.pd-main-text h2 { font-family: var(--font-display); font-size: 2rem; margin-bottom: 24px; color: var(--text); }
.pd-main-text p { font-family: var(--font-body); font-size: 1.1rem; line-height: 1.8; color: var(--text-muted); }
.pd-sidebar { display: flex; flex-direction: column; gap: 40px; }
.pd-sidebar h3 { font-family: var(--font-body); font-size: 14px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text); margin-bottom: 20px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.pd-links { display: flex; flex-direction: column; gap: 16px; }
.pd-links .cta-btn { width: 100%; justify-content: space-between; }
.btn-outline { background: transparent !important; color: var(--text) !important; border: 1px solid var(--border) !important; box-shadow: none !important; }
.btn-outline:hover { background: var(--bg-card) !important; border-color: var(--accent) !important; }
.pd-tech-list { display: flex; flex-wrap: wrap; gap: 10px; }
.pd-tech-item { background: var(--bg-input); color: var(--text-muted); padding: 8px 16px; border-radius: 8px; font-size: 14px; }
@media (max-width: 900px) { .pd-content { grid-template-columns: 1fr; } }

/* Mega Footer */
.mega-footer { position: relative; width: 100%; padding-top: 100px; overflow: hidden; background: var(--bg); }
.mega-footer-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; margin-bottom: 80px; }
.mega-footer-links { display: flex; gap: 28px; flex-wrap: wrap; }
.mega-footer-links a { font-family: 'General Sans', sans-serif; font-size: 16.5px; color: var(--text); text-decoration: none; transition: color 0.2s; }
.mega-footer-links a:hover { color: var(--accent) !important; }
.mega-footer-copyright { font-family: 'General Sans', sans-serif; font-size: 13.5px; color: var(--text-muted); }
.mega-footer-giant { font-family: 'Instrument Serif', serif; font-size: 20vw; line-height: 0.75; color: var(--text); white-space: nowrap; text-align: center; margin-bottom: -3.5vw; letter-spacing: -0.02em; }
.mega-footer-giant i { font-style: italic; padding-right: 0.05em; }
@media (max-width: 860px) { .mega-footer-top { flex-direction: column; align-items: center; text-align: center; } }

/* ==========================================================================
   EDITORIAL & ASYMMETRIC REDESIGN OVERRIDES (PROJECTS & SKILLS)
   ========================================================================== */

/* Global Typography Polish */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.12 !important;
}
.section-label, 
.about-section-label, 
.subtitle, 
.cta-subtitle, 
.about-bio-text, 
.project-card-desc, 
.skill-desc {
  text-align: left !important;
  font-weight: 300 !important;
  letter-spacing: 0.04em !important;
}
.about-header {
  text-align: left !important;
}

/* Projects Section Redesign */
.projects-ticker-section .container {
  max-width: 100% !important;
  padding-left: 6% !important;
  text-align: left !important;
}
.projects-ticker-section .section-title {
  text-align: left !important;
  font-size: clamp(4.5rem, 9.5vw, 10rem) !important;
  font-weight: 900 !important;
  letter-spacing: -0.04em !important;
  line-height: 0.85 !important;
  text-transform: uppercase !important;
  margin-left: -20px !important;
  width: 120% !important;
  margin-top: 15px !important;
  margin-bottom: 50px !important;
}

/* Massive & Asymmetric Project Cards */
.project-marquee-card {
  width: 640px !important;
  height: 600px !important;
  border-radius: 4px !important;
  padding: 40px !important;
  gap: 24px !important;
  border: 1px solid var(--border) !important;
}
.projects-marquee-group {
  gap: 48px !important;
  padding: 60px 24px !important;
  align-items: center !important;
}
/* Staggered alternating heights for wave layout */
.projects-marquee-track .project-marquee-card:nth-child(even),
.projects-marquee-group .project-marquee-card:nth-child(even) {
  height: 640px !important;
  margin-top: -20px !important;
}
.project-card-thumb {
  height: 340px !important;
  border-radius: 2px !important;
}
.project-card-title {
  font-size: 2.3rem !important;
  font-weight: 900 !important;
  letter-spacing: -0.03em !important;
  line-height: 1.1 !important;
  margin-top: 10px !important;
}
.project-card-tag {
  background: transparent !important;
  border: 1px solid var(--border) !important;
  color: var(--text-muted) !important;
  font-size: 9px !important;
  font-weight: 700 !important;
  padding: 4px 8px !important;
  border-radius: 2px !important;
  letter-spacing: -0.01em !important;
  text-transform: uppercase !important;
}
/* Corner design slash */
.project-marquee-card::before {
  content: '' !important;
  position: absolute !important;
  top: 15px !important;
  right: -25px !important;
  width: 80px !important;
  height: 1px !important;
  background: var(--accent) !important;
  transform: rotate(45deg) !important;
  z-index: 5 !important;
}

/* Skills Section Redesign */
.outlined-text {
  color: transparent !important;
  -webkit-text-stroke: 1.5px var(--text) !important;
}
[data-theme="light"] .outlined-text {
  -webkit-text-stroke: 1.5px var(--text) !important;
}

/* Varied widths for Skills Cards */
.skill-card {
  justify-self: center !important;
  width: 100% !important;
  border: none !important;
  border-radius: 8px !important;
  box-shadow: 6px 10px 28px rgba(0, 0, 0, 0.35), -1px -1px 8px rgba(255, 255, 255, 0.01) !important;
  position: relative !important;
  overflow: hidden !important;
}
[data-theme="light"] .skill-card {
  box-shadow: 6px 10px 28px rgba(0, 0, 0, 0.08), -1px -1px 8px rgba(0, 0, 0, 0.01) !important;
  background: #ffffff !important;
}
.skill-card:nth-child(3n+1) {
  width: 110% !important;
}
.skill-card:nth-child(3n+2) {
  width: 90% !important;
}
.skill-card:nth-child(3n) {
  width: 100% !important;
}

/* More dramatic scattered positioning */
@media (min-width: 1024px) {
  .skill-card:nth-child(1) { --offsetX: -15px !important; --offsetY: 50px !important; --rotation: -3deg !important; }
  .skill-card:nth-child(2) { --offsetX: 20px !important; --offsetY: -60px !important; --rotation: 4deg !important; }
  .skill-card:nth-child(3) { --offsetX: -25px !important; --offsetY: 35px !important; --rotation: -2.5deg !important; }
  .skill-card:nth-child(4) { --offsetX: 30px !important; --offsetY: -45px !important; --rotation: 3.5deg !important; }
  .skill-card:nth-child(5) { --offsetX: -15px !important; --offsetY: 60px !important; --rotation: -3.5deg !important; }
  .skill-card:nth-child(6) { --offsetX: 20px !important; --offsetY: -20px !important; --rotation: 2deg !important; }
}
@media (max-width: 1023px) and (min-width: 768px) {
  .skill-card:nth-child(1) { --offsetX: -10px !important; --offsetY: 35px !important; --rotation: -2.5deg !important; }
  .skill-card:nth-child(2) { --offsetX: 12px !important; --offsetY: -45px !important; --rotation: 3deg !important; }
  .skill-card:nth-child(3) { --offsetX: -18px !important; --offsetY: 30px !important; --rotation: -2deg !important; }
  .skill-card:nth-child(4) { --offsetX: 18px !important; --offsetY: -30px !important; --rotation: 2.5deg !important; }
  .skill-card:nth-child(5) { --offsetX: -12px !important; --offsetY: 50px !important; --rotation: -3deg !important; }
  .skill-card:nth-child(6) { --offsetX: 12px !important; --offsetY: -15px !important; --rotation: 1.5deg !important; }
}

/* Semi-transparent watermark number behind content */
.skill-card .skill-number {
  position: absolute !important;
  bottom: -20px !important;
  right: 0px !important;
  font-size: 110px !important;
  font-weight: 900 !important;
  color: var(--text) !important;
  opacity: 0.05 !important;
  line-height: 1 !important;
  margin: 0 !important;
  z-index: 1 !important;
  pointer-events: none !important;
  transform: none !important;
  transition: none !important;
}
.skill-card.content-visible .skill-number {
  opacity: 0.05 !important;
  transform: none !important;
}

/* Projects Hover Overlay Redesign */
.project-marquee-card .project-card-overlay {
  background: rgba(10, 10, 10, 0.85) !important;
  backdrop-filter: blur(6px) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 24px !important;
  overflow: hidden !important;
  text-align: center !important;
}

.project-marquee-card .overlay-hint {
  font-family: var(--font-sans), sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35); /* Elegant semi-transparent font */
  transition: color 0.3s ease;
  pointer-events: none;
}
.project-marquee-card:hover .overlay-hint {
  color: rgba(255, 255, 255, 0.75);
}

