/* ==========================================================================
   SUSHANT NAVLE — HIGH-END RESPONSIVE EDITORIAL PORTFOLIO
   Cleaned, Modular, and Optimized Design System
   ========================================================================== */

/* =========================================
   DESIGN TOKENS & RESET
   ========================================= */
:root {
  --black: #080808;
  --black-soft: #121212;
  --white: #ffffff;
  --off-white: #fbfbfa;
  --paper: #f4f4f2;
  --ink: #0a0a0a;
  --muted: #888888;
  --line-light: rgba(255, 255, 255, 0.12);
  --line-dark: rgba(0, 0, 0, 0.1);
  --nav-height: 70px;
  --max-width: 1440px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  background: var(--black);
  color: var(--white);
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  font-family: inherit;
}


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

#nav {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 70px;

    padding: 0 60px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background: rgba(11, 12, 14, 0.65);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    border-bottom: 1px solid rgba(255, 255, 255, 0.08);

    z-index: 1000;
    transition: background 0.35s ease, border-color 0.35s ease;
}


/* =========================
   LOGO
========================= */

#Logo {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

#Logo img {
    width: 45px;
    height: 45px;

    object-fit: contain;
    border: 2px solid #ffffff;
    border-radius: 50%;
    transition: border-color 0.35s ease;
}

#Logo h3 {
    margin: 0;

    font-size: 20px;
    font-weight: 500;

    letter-spacing: 1px;

    color: #ffffff;
    transition: color 0.35s ease;
}

#Logo h3 b {
    font-weight: 800;
}


/* =========================
   NAVIGATION
========================= */

#nav-items {
    position: absolute;

    left: 50%;
    transform: translateX(-50%);
}

#nav-items ul {
    display: flex;
    align-items: center;

    gap: 40px;

    margin: 0;
    padding: 0;

    list-style: none;
}

#nav-items ul li {
    position: relative;

    font-size: 15px;
    font-weight: 500;

    color: #ffffff;

    cursor: pointer;

    transition: color 0.3s ease;
}


/* Hover */

#nav-items ul li:hover {
    color: #a0a5b2;
}


/* Underline */

#nav-items ul li::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -8px;

    width: 0;
    height: 2px;

    background: #ffffff;

    transition: width 0.3s ease, background 0.35s ease;
}

#nav-items ul li:hover::after,
#nav-items ul li.active::after {
    width: 100%;
}

#nav-items ul li.active {
    color: #ffffff;
}

#nav.nav-light-mode #nav-items ul li.active {
    color: #111111;
}

.mobile-nav-items li.active a {
    display: inline-block;
    width: fit-content;
    border-bottom: 2px solid currentColor;
    padding-bottom: 2px;
}

#nav-items ul li a,
.mobile-nav-items li a {
    color: inherit;
    text-decoration: none;
    display: block;
    width: 100%;
    height: 100%;
}


/* =========================
   NAV ACTIONS (BUTTON & HAMBURGER)
========================= */

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 2;
}

.nav-contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    border: none;
    border-radius: 30px;
    background: #ffffff;
    color: #111111;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-decoration: none;
}

.nav-contact-btn:hover {
    background: #eaeaea;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(255, 255, 255, 0.2);
}

/* Hamburger Button (Exact Squircle with Crisp White Border matching user reference) */
.nav-hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 1.8px solid #ffffff;
    background: #000000;
    cursor: pointer;
    padding: 0;
    gap: 4.5px;
    transition: transform 0.2s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    box-sizing: border-box;
    flex-shrink: 0;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.nav-hamburger-btn:hover {
    border-color: #ffffff;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.35);
    transform: scale(1.04);
}

.nav-hamburger-btn:active {
    transform: scale(0.96);
}

.nav-hamburger-btn .hamburger-bar {
    display: block;
    width: 18px;
    height: 2.5px;
    border-radius: 999px;
    background-color: #ffffff;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
    transform-origin: center;
}

.nav-hamburger-btn.is-active .hamburger-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-hamburger-btn.is-active .hamburger-bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-hamburger-btn.is-active .hamburger-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ========================================================
   MOBILE DROPDOWN MENU
   ======================================================== */

.mobile-nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #080808;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.75);
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    visibility: hidden;
    transition: max-height 0.32s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, visibility 0.25s ease;
    z-index: 999;
}

.mobile-nav-menu.is-open {
    max-height: 320px;
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

.mobile-nav-items {
    list-style: none;
    padding: 22px 24px 26px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.mobile-nav-items li {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #ffffff;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
    padding: 2px 0;
}

.mobile-nav-items li:hover,
.mobile-nav-items li:active {
    color: #a0a0a0;
    transform: translateX(4px);
}

/* ========================================================
   NAVBAR DYNAMIC THEMES (Black Background vs White Background)
   ======================================================== */

/* When over black / dark background */
#nav.nav-dark-mode {
    background: rgba(11, 12, 14, 0.65);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

#nav.nav-dark-mode #Logo img {
    border-color: #ffffff;
}

#nav.nav-dark-mode #Logo h3 {
    color: #ffffff;
}

#nav.nav-dark-mode #nav-items ul li {
    color: #ffffff;
}

#nav.nav-dark-mode #nav-items ul li:hover {
    color: #a0a5b2;
}

#nav.nav-dark-mode #nav-items ul li::after {
    background: #ffffff;
}

#nav.nav-dark-mode .nav-contact-btn {
    background: #ffffff;
    color: #111111;
}

#nav.nav-dark-mode .nav-contact-btn:hover {
    background: #e2e4e9;
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.15);
}

#nav.nav-dark-mode .nav-hamburger-btn {
    background: #000000;
    border: 1.8px solid #ffffff;
}

#nav.nav-dark-mode .nav-hamburger-btn .hamburger-bar {
    background-color: #ffffff;
}

#nav.nav-dark-mode .mobile-nav-menu {
    background: rgba(11, 12, 14, 0.96);
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

#nav.nav-dark-mode .mobile-nav-items li {
    color: #ffffff;
}

#nav.nav-dark-mode .mobile-nav-contact-btn {
    background: #ffffff;
    color: #111111;
}

/* When over white / light background (e.g. contact CTA & portfolio footer) */
#nav.nav-light-mode {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

#nav.nav-light-mode #Logo img {
    border-color: #111111;
}

#nav.nav-light-mode #Logo h3 {
    color: #111111;
}

#nav.nav-light-mode #nav-items ul li {
    color: #111111;
}

#nav.nav-light-mode #nav-items ul li:hover {
    color: #666666;
}

#nav.nav-light-mode #nav-items ul li::after {
    background: #111111;
}

#nav.nav-light-mode .nav-contact-btn {
    background: #111111;
    color: #ffffff;
}

#nav.nav-light-mode .nav-contact-btn:hover {
    background: #2a2b2f;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

#nav.nav-light-mode .nav-hamburger-btn {
    background: #ffffff;
    border: 1.8px solid #111111;
}

#nav.nav-light-mode .nav-hamburger-btn .hamburger-bar {
    background-color: #111111;
}

#nav.nav-light-mode .mobile-nav-menu {
    background: rgba(255, 255, 255, 0.96);
    border-bottom-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

#nav.nav-light-mode .mobile-nav-items li {
    color: #111111;
}

#nav.nav-light-mode .mobile-nav-items li:hover,
#nav.nav-light-mode .mobile-nav-items li:active {
    background: rgba(0, 0, 0, 0.05);
    color: #000000;
}

#nav.nav-light-mode .mobile-nav-contact-btn {
    background: #111111;
    color: #ffffff;
}
/* ==========================================================================
   SECTION COMMON STYLES
   ========================================================================== */
.dark-section {
  background: var(--black);
  color: var(--white);
  position: relative;
  isolation: isolate;
}

.light-section {
  background: var(--white);
  color: var(--ink);
  position: relative;
  isolation: isolate;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: inherit;
  margin-bottom: 16px;
}

.section-label b {
  font-size: 12px;
  font-weight: 700;
}

.section-label i {
  height: 1px;
  width: 28px;
  background: currentColor;
  opacity: 0.55;
}

.section-label span {
  font-family: "DM Mono", monospace;
  font-weight: 500;
  letter-spacing: 0.12em;
}

.dot {
  color: #888888;
}

/* ==========================================================================
   01 HERO / ABOUT ME SECTION
   ========================================================================== */
.hero {
  min-height: 600px;
  padding: calc(var(--nav-height) + 40px) clamp(20px, 5.5vw, 6%) 100px;
  position: relative;
  background: radial-gradient(ellipse at 70% 38%, #1c1c1c 0%, #0c0c0c 45%, #060606 85%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  overflow: hidden;
}

.hero-grain {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.14;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.28'/%3E%3C/svg%3E");
}

/* Left Column */
.hero-left {
  position: relative;
  z-index: 4;
  width: 52%;
  max-width: 640px;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.meta-line {
  height: 1px;
  width: 32px;
  background: rgba(255, 255, 255, 0.45);
}

.meta-text {
  font-family: "DM Mono", monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: #d0d0d0;
}

/* Title */
.title-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(34px, 4.6vw, 62px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 700;
  color: #ffffff;
}

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

.ideas-container em {
  font-family: "Playfair Display", serif;
  font-weight: 500;
  font-style: italic;
  letter-spacing: -0.02em;
}

.ideas-orbit {
  position: absolute;
  left: -12px;
  top: -6px;
  width: 140px;
  height: 65px;
  pointer-events: none;
}

.spark-ideas-top {
  position: absolute;
  right: -10px;
  top: -12px;
  font-size: 17px;
  color: #ffffff;
}

.spark-exp-right {
  position: absolute;
  right: -28px;
  bottom: 4px;
  font-size: 18px;
  color: #ffffff;
}

.sparkle {
  position: absolute;
  color: #ffffff;
  pointer-events: none;
  user-select: none;
  animation: pulseSparkle 4s ease-in-out infinite;
}

@keyframes pulseSparkle {
  0%, 100% { opacity: 0.65; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.15); }
}

/* Intro block */
.intro-block {
  display: flex;
  align-items: flex-start;
  margin-bottom: 24px;
}

.intro-accent-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-right: 18px;
  flex-shrink: 0;
  padding-top: 4px;
}

.accent-line-top {
  width: 1px;
  height: 80px;
  background: rgba(255, 255, 255, 0.4);
}

.accent-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
  margin: 3px 0 7px;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.9);
}

.accent-line-bottom {
  width: 1px;
  height: 12px;
  background: rgba(255, 255, 255, 0.4);
}

.intro {
  color: #c8c8c8;
  font-size: clamp(13px, 1.2vw, 14.5px);
  line-height: 1.62;
  max-width: 480px;
  font-weight: 400;
  margin: 0;
}

/* Signature & Stats */
.sig-and-stats-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 20px;
}

.sig-block {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  transform: rotate(-8deg);
  margin-left: 2px;
}

.signature {
  font-family: "Caveat", cursive;
  font-size: clamp(28px, 3.2vw, 34px);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.02em;
  line-height: 1;
}

.sig-lines {
  width: 155px;
  height: 22px;
  margin-top: -2px;
  overflow: visible;
}

.stats {
  display: flex;
  align-items: center;
  gap: 0;
}

.stat-item {
  padding: 0 16px;
  border-left: 1px solid rgba(255, 255, 255, 0.22);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.stat-item:first-child {
  border-left: none;
  padding-left: 0;
}

.stat-item strong {
  font-size: 19px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
}

.stat-item small {
  font-size: 9.5px;
  color: #9c9c9c;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

/* Hero Visual Art (Avatar Showcase) */
.hero-art {
  position: relative;
  z-index: 3;
  width: 48%;
  max-width: 580px;
  height: 490px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Wireframe Sacred Geometry behind halo */
.hero-geometry {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(340px, 45vw, 460px);
  height: clamp(340px, 45vw, 460px);
  pointer-events: none;
  z-index: 0;
}

/* Orbit Ellipses */
.orbit {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.orbit-one {
  width: 460px;
  height: 230px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  top: 250px;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-22deg);
  z-index: 1;
}

.orbit-two {
  width: 420px;
  height: 310px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  top: 250px;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-46deg);
  z-index: 1;
}

/* Circular Halo */
.avatar-halo {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  top: 90px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle at 45% 32%, #555555 0%, #202020 48%, #111111 72%, #080808 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 12px 45px rgba(0, 0, 0, 0.85), inset 0 1px 2px rgba(255, 255, 255, 0.28);
  z-index: 2;
}

.spark-halo-top {
  position: absolute;
  top: 80px;
  left: 51%;
  font-size: 17px;
  color: #ffffff;
  z-index: 4;
}

/* 3D Avatar */
.avatar-wrapper {
  position: absolute;
  top: 50px;
  left: 50%;
  transform: translateX(-50%);
  width: 310px;
  height: 410px;
  z-index: 3;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  pointer-events: none;
}

.avatar {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.85));
  transition: transform 0.4s ease;
}

.hero-art:hover .avatar {
  transform: scale(1.02) translateY(-4px);
}

/* Developer Designer Problem Solver Note */
.dev-note-wrap {
  position: absolute;
  top: 55px;
  left: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
}

.dev-note {
  font-family: "Caveat", cursive;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.15;
  color: #dedede;
  transform: rotate(-10deg);
  white-space: nowrap;
}

.note-arrow {
  width: 72px;
  height: 78px;
  margin-left: 42px;
  margin-top: -6px;
  pointer-events: none;
}

/* Right Side Column */
.hero-tag-column {
  position: absolute;
  right: 6px;
  top: 55px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.spark-build {
  font-size: 22px;
  color: #ffffff;
  margin-bottom: -4px;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.8));
}

.build-list {
  font-family: "DM Sans", sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.55;
  color: #c0c0c0;
}

.double-slash {
  font-family: "DM Sans", sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  transform: skew(-15deg);
  letter-spacing: -0.05em;
  margin-top: 2px;
}

/* Mountain Polaroid Card */
.polaroid {
  position: absolute;
  right: 0;
  bottom: 20px;
  width: 142px;
  height: 195px;
  background: #ebebe9;
  border-radius: 6px;
  padding: 7px 7px 14px;
  transform: rotate(11deg);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7), 0 2px 6px rgba(0, 0, 0, 0.25);
  z-index: 6;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  cursor: pointer;
}

.polaroid:hover {
  transform: rotate(6deg) scale(1.05);
}

.polaroid-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 4px;
  overflow: hidden;
}

.polaroid-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.1);
}

.polaroid-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.85) 100%);
}

.polaroid-copy {
  position: absolute;
  bottom: 8px;
  left: 10px;
  right: 10px;
  color: #ffffff;
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 13px;
  line-height: 1.15;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

.card-arrow-icon {
  font-family: "DM Sans", sans-serif;
  font-style: normal;
  font-size: 16px;
  opacity: 0.9;
}

/* Bottom Curved Wave */
.hero-bottom-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: clamp(60px, 8vw, 105px);
  z-index: 4;
  pointer-events: none;
}

.hero-bottom-wave svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ==========================================================================
   02 MY STORY & 03 MY JOURNEY (Light Section)
   ========================================================================== */
.story-journey-section {
  padding: 60px clamp(20px, 5.5vw, 6%) 70px;
  position: relative;
  overflow: hidden;
}

.ghost-number {
  position: absolute;
  top: 15px;
  left: 1%;
  font-size: clamp(90px, 12vw, 150px);
  font-weight: 800;
  color: #ebebe9;
  letter-spacing: -0.1em;
  line-height: 1;
  pointer-events: none;
  z-index: 1;
  user-select: none;
}

/* Story left circular architectural photo */
.story-circle-photo {
  position: absolute;
  left: -40px;
  top: 50%;
  transform: translateY(-50%);
  width: 140px;
  height: 130px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid #d2d2d0;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  z-index: 2;
  background: #e0e0e0;
}

.story-circle-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
}

/* Grid Layout */
.story-journey-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.48fr 1fr;
  gap: 36px;
  align-items: center;
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
}

.story-card {
  padding-left: clamp(10px, 4vw, 55px);
  position: relative;
}

.story-card h2,
.journey-card h2 {
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin: 0 0 16px;
  font-weight: 700;
  color: #0c0c0c;
}

.story-card p,
.journey-card p {
  font-size: clamp(12.5px, 1.1vw, 13.5px);
  line-height: 1.62;
  color: #555555;
  margin: 0;
  max-width: 440px;
}

/* Micro CTA */
.micro-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
}

.round-arrow {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #090909;
  color: #ffffff;
  font-size: 15px;
  transition: transform 0.25s ease;
}

.micro-cta:hover .round-arrow {
  transform: rotate(45deg);
}

.cta-text {
  font-size: 11px;
  line-height: 1.35;
  color: #111111;
}

/* Center Skyscraper Photo Card */
.center-photo-card {
  height: 360px;
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  background: #dededc;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.center-photo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.16);
}

.center-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.1);
}

.photo-overlay-text {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-family: "DM Sans", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: #383838;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.75);
}

/* Journey Card */
.journey-card {
  position: relative;
  padding-right: 10px;
}

.more-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  font-size: 11.5px;
  font-weight: 600;
  color: #111111;
  transition: color 0.25s ease;
}

.round-arrow-outline {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid #111111;
  color: #111111;
  font-size: 15px;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.more-link:hover .round-arrow-outline {
  background: #111111;
  color: #ffffff;
  transform: rotate(45deg);
}

/* 3D Chrome Torus Floating Object */
.chrome-torus-float {
  position: absolute;
  right: -25px;
  top: 25px;
  width: 140px;
  height: 140px;
  pointer-events: none;
  z-index: 2;
  transition: transform 0.4s ease;
}

.story-journey-section:hover .chrome-torus-float {
  transform: rotate(12deg) scale(1.05);
}

.chrome-torus-float img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Bottom Scribble */
.scribble-story {
  position: absolute;
  left: 2%;
  bottom: 8px;
  width: 200px;
  pointer-events: none;
  opacity: 0.65;
}

/* ==========================================================================
   04 EDUCATION SECTION (Dark Glassmorphic Editorial)
   ========================================================================== */
.education {
  padding: 65px clamp(20px, 5.5vw, 6%) 85px;
  background: var(--black);
  position: relative;
  overflow: hidden;
}

.edu-top-wave {
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: clamp(40px, 5vw, 60px);
  pointer-events: none;
  z-index: 1;
}

.edu-top-wave svg {
  width: 100%;
  height: 100%;
  display: block;
}

.edu-glow-bar {
  position: absolute;
  left: 0;
  top: 130px;
  height: 160px;
  width: 3px;
  background: linear-gradient(180deg, transparent, #ffffff 50%, transparent);
  box-shadow: 0 0 25px #ffffff, 0 0 50px rgba(255, 255, 255, 0.6);
  opacity: 0.8;
}

/* Header */
.edu-header {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: flex-end;
  gap: 36px;
  margin-bottom: 38px;
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

.edu-title-group h2 {
  font-size: clamp(30px, 3.8vw, 46px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin: 0;
  font-weight: 700;
  color: #ffffff;
}

.edu-intro-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.edu-intro {
  font-size: clamp(12.5px, 1.1vw, 13.5px);
  line-height: 1.6;
  color: #bbbbbb;
  max-width: 380px;
  margin: 0;
}

.edu-hand-note-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.edu-arrow {
  width: 42px;
  height: 22px;
}

.edu-note {
  font-family: "Caveat", cursive;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.1;
  color: #e5e5e5;
  transform: rotate(-6deg);
  white-space: nowrap;
}

/* Education Cards Grid (Clean 2x2 Grid on Desktop) */
.education-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
}

.education-card {
  position: relative;
  min-height: 210px;
  padding: 24px 24px 26px;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.education-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.35);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 100%);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6), inset 0 0 15px rgba(255, 255, 255, 0.03);
}

.edu-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.icon-badge {
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge-num {
  font-family: "DM Mono", monospace;
  font-size: 11px;
  font-weight: 500;
  color: #888888;
}

.badge-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: grid;
  place-items: center;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.25s, background 0.25s;
}

.education-card:hover .badge-icon {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.edu-period {
  font-family: "DM Mono", monospace;
  font-size: 11px;
  color: #a0a0a0;
  letter-spacing: 0.02em;
}

.education-card h3 {
  font-size: clamp(14.5px, 1.4vw, 16.5px);
  font-weight: 600;
  line-height: 1.25;
  color: #ffffff;
  margin: 0 0 8px;
}

.education-card .school {
  font-size: 12px;
  line-height: 1.42;
  color: #999999;
  margin: 0 0 12px;
}

.edu-desc {
  font-size: 12px;
  line-height: 1.55;
  color: #cccccc;
  margin: 0 0 16px;
  padding-right: 36px;
}

.card-arrow {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: grid;
  place-items: center;
  font-size: 15px;
  color: #ffffff;
  transition: all 0.25s ease;
}

.education-card:hover .card-arrow {
  border-color: #ffffff;
  background: #ffffff;
  color: #000000;
  transform: rotate(45deg);
}

/* ==========================================================================
   05 ACHIEVEMENTS SECTION (Refined Editorial)
   ========================================================================== */
.achievements {
  padding: 65px clamp(20px, 5.5vw, 6%) 75px;
  background: var(--off-white);
  color: var(--ink);
  position: relative;
}

.achieve-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.achieve-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
}

.achieve-heading h2 {
  font-size: clamp(30px, 3.6vw, 42px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin: 0;
  color: #0c0c0c;
  font-weight: 700;
}

.achievements-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.achievement-card {
  background: #ffffff;
  border: 1px solid #e2e2dd;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
}

.achievement-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  border-color: #c4c4bf;
}

.achievement-card .certificate-frame {
  margin: 0;
  width: 100%;
  height: clamp(170px, 20vw, 210px);
  position: relative;
  overflow: hidden;
  background: #141414;
  cursor: pointer;
  border-bottom: 1px solid #e8e8e4;
}

.achievement-card .certificate-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transition: transform 0.4s ease;
}

.achievement-card:hover .certificate-frame img {
  transform: scale(1.03);
}

.achievement-card .certificate-frame::after {
  content: "🔍 View";
  position: absolute;
  top: 10px;
  right: 10px;
  font-family: "DM Sans", sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 4px 9px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  opacity: 0;
  transform: translateY(-3px);
  transition: all 0.2s ease;
  pointer-events: none;
  z-index: 2;
}

.achievement-card:hover .certificate-frame::after {
  opacity: 1;
  transform: translateY(0);
}

.achievement-card .certificate-frame figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px 14px 8px;
  color: #ffffff;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 1;
}

.achievement-card:hover .certificate-frame figcaption {
  opacity: 1;
}

.achievement-card .achievement-item {
  flex: 1;
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  background: transparent;
}

.achieve-card-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.achieve-card-header .trophy-badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f4f4f1;
  border: 1px solid #e5e5e0;
  display: grid;
  place-items: center;
  font-size: 17px;
  flex-shrink: 0;
}

.achieve-header-text {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.achieve-header-text h3 {
  font-size: 14.5px;
  font-weight: 700;
  margin: 0;
  color: #111111;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.achieve-header-text time {
  font-family: "DM Mono", monospace;
  font-size: 10px;
  font-weight: 500;
  background: #f0f0ed;
  border: 1px solid #e2e2dd;
  border-radius: 10px;
  padding: 3px 8px;
  color: #222222;
  white-space: nowrap;
  flex-shrink: 0;
}

.achieve-desc {
  font-size: 12px;
  line-height: 1.55;
  color: #555555;
  margin: 0;
}

.achieve-learning {
  background: #f7f7f4;
  border: 1px solid #e8e8e4;
  border-left: 3px solid #111111;
  padding: 9px 12px;
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.learning-tag {
  font-family: "DM Mono", monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #888888;
}

.achieve-learning p {
  font-size: 11px;
  line-height: 1.48;
  color: #2b2b2b;
  margin: 0;
}

/* ==========================================================================
   06 CERTIFICATIONS SECTION (Black Theme)
   ========================================================================== */
.certifications {
  padding: 70px clamp(20px, 5.5vw, 6%) 85px;
  background: #080808;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.certifications .achieve-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.certifications .achieve-heading h2 {
  color: #ffffff;
}

.certifications .section-label {
  color: #a0a0a0;
}

.certifications .dot {
  color: #666666;
}

.certifications-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.cert-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #111111;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  height: 220px;
  cursor: pointer;
  display: flex;
}

.cert-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 25px rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.38);
}

.cert-card .certificate-frame {
  margin: 0;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  background: #0e0e0e;
}

.cert-card .certificate-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  transition: transform 0.4s ease;
}

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

.cert-card .certificate-frame::after {
  content: "🔍 View";
  position: absolute;
  top: 10px;
  right: 10px;
  font-family: "DM Sans", sans-serif;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  opacity: 0;
  transform: translateY(-3px);
  transition: all 0.2s ease;
  pointer-events: none;
  z-index: 2;
}

.cert-card:hover .certificate-frame::after {
  opacity: 1;
  transform: translateY(0);
}

.cert-card .certificate-frame figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 24px 14px 10px;
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.35;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.95));
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 1;
}

.cert-card:hover .certificate-frame figcaption {
  opacity: 1;
}

/* ==========================================================================
   CERTIFICATE LIGHTBOX ZOOM MODAL
   ========================================================================== */
.cert-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.cert-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.cert-modal-content {
  position: relative;
  z-index: 2;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: modalPop 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes modalPop {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.cert-modal-content img {
  max-width: 86vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.cert-modal-caption {
  margin-top: 14px;
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  color: #e5e5e5;
  text-align: center;
  letter-spacing: 0.02em;
}

.cert-close-btn {
  position: absolute;
  top: -44px;
  right: 0;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s, transform 0.2s;
}

.cert-close-btn:hover {
  background: #ffffff;
  color: #000000;
  transform: rotate(90deg);
}

/* ==========================================================================
   CONTACT CTA SECTION
   ========================================================================== */
#contact-cta {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 340px;
  padding: 48px clamp(18px, 4vw, 40px);
  overflow: hidden;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.98) 0%, rgba(244, 244, 242, 0.92) 48%, #e9e9e6 100%);
  border-top: 1px solid #e2e2df;
  border-bottom: 1px solid #dededb;
}

#contact-cta .cta-card {
  position: relative;
  z-index: 2;
  width: min(100%, 620px);
  padding: 32px 30px;
  text-align: center;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(25, 25, 25, 0.18);
  border-radius: 20px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

#contact-cta .cta-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 13px;
  color: #444;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 2.5px;
}

#contact-cta .cta-eyebrow span {
  display: inline-block;
  width: 24px;
  height: 1px;
  background: #a5a5a0;
}

#contact-cta .cta-heading {
  margin: 0 0 12px;
  color: #111;
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.04em;
}

#contact-cta .cta-moving-line {
  display: block;
  width: 100%;
  overflow: hidden;
  color: transparent;
  -webkit-text-stroke: 1px #222;
  white-space: nowrap;
  line-height: 1.3;
}

#contact-cta .cta-moving-line > span {
  display: inline-block;
  padding: 0 10px;
  color: transparent;
  -webkit-text-stroke: 1px #222;
  animation: cta-text-motion 4s ease-in-out infinite alternate;
}

@keyframes cta-text-motion {
  from { transform: translateX(-8px); }
  to { transform: translateX(8px); }
}

#contact-cta .cta-description {
  max-width: 440px;
  margin: 0 auto 20px;
  color: #666;
  font-size: 12.5px;
  line-height: 1.65;
}

#contact-cta .cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-width: 175px;
  padding: 12px 24px;
  border: 1px solid #111;
  border-radius: 50px;
  background: #111;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.8px;
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

#contact-cta .cta-button span {
  font-size: 17px;
  transition: transform 0.3s ease;
}

#contact-cta .cta-button:hover {
  transform: translateY(-2px);
  background: transparent;
  color: #111;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

#contact-cta .cta-button:hover span {
  transform: translate(3px, -3px);
}

/* Background decorations */
#contact-cta .cta-decoration {
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

#contact-cta .cta-decoration-one {
  top: 50%;
  left: calc(50% + 240px);
  width: 180px;
  height: 180px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 50%;
  transform: translateY(-50%);
}

#contact-cta .cta-decoration-two {
  top: 50%;
  left: calc(50% - 320px);
  width: 95px;
  height: 95px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff, rgba(130, 130, 130, 0.13));
  box-shadow: 10px 20px 50px rgba(0, 0, 0, 0.08);
  transform: translateY(-50%);
}

#contact-cta .cta-decoration-three {
  top: 50%;
  left: 8%;
  width: 84%;
  height: 1px;
  background: rgba(0, 0, 0, 0.1);
  transform: rotate(-20deg);
}

#contact-cta .cta-dot {
  position: absolute;
  z-index: 1;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #222;
}

#contact-cta .cta-dot-one {
  top: 23%;
  left: 20%;
}

#contact-cta .cta-dot-two {
  top: 35%;
  right: 19%;
  width: 10px;
  height: 10px;
}

#contact-cta .cta-dot-three {
  bottom: 20%;
  left: 29%;
  width: 6px;
  height: 6px;
  background: #999;
}

#contact-cta .cta-cross {
  position: absolute;
  top: 24%;
  right: 26%;
  color: #555;
  font-size: 20px;
  font-weight: 300;
}

/* ==========================================================================
   PORTFOLIO FOOTER
   ========================================================================== */
#portfolio-footer {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #ffffff;
  color: #111;
}

#portfolio-footer a {
  color: #666;
  transition: color 0.25s ease;
}

#portfolio-footer a:hover {
  color: #111;
}

/* Marquee */
#portfolio-footer .footer-marquee {
  overflow: hidden;
  padding: 8px 0 12px;
  border-bottom: 1px solid #dedede;
  background: #f1f1f1;
  font-family: 'Times New Roman', Times, serif;
}

#portfolio-footer .marquee-track {
  display: flex;
  align-items: center;
  gap: 35px;
  width: max-content;
  animation: footer-name-scroll 28s linear infinite;
  will-change: transform;
}

#portfolio-footer .marquee-track span {
  flex-shrink: 0;
  color: #111;
  font-size: clamp(50px, 8.5vw, 120px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -3px;
  white-space: nowrap;
}

#portfolio-footer .marquee-track .outlined-name {
  color: transparent;
  -webkit-text-stroke: 1.5px #111;
}

@keyframes footer-name-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-33.333%); }
}

/* Social links (3 equal cards matching main columns below) */
#portfolio-footer .footer-socials {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid #dedede;
  background: #fff;
  width: 100%;
}

#portfolio-footer .footer-socials a {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  overflow: hidden;
  padding: 18px clamp(20px, 3vw, 44px);
  border-right: 1px solid #dedede;
  color: #111;
  font-size: 13.5px;
  font-weight: 600;
  transition: color 0.3s ease;
}

#portfolio-footer .footer-socials a::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: #111;
  transform: translateY(101%);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

#portfolio-footer .footer-socials a:last-child {
  border-right: none;
}

#portfolio-footer .footer-socials a span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(17, 17, 17, 0.2);
  border-radius: 50%;
  font-size: 16px;
  line-height: 1;
  transition: color 0.3s ease, background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

#portfolio-footer .footer-socials a:hover,
#portfolio-footer .footer-socials a:focus-visible {
  color: #fff;
}

#portfolio-footer .footer-socials a:hover::before,
#portfolio-footer .footer-socials a:focus-visible::before {
  transform: translateY(0);
}

#portfolio-footer .footer-socials a:hover span,
#portfolio-footer .footer-socials a:focus-visible span {
  color: #111;
  background: #fff;
  border-color: #fff;
  transform: translate(2px, -2px) rotate(45deg);
}

/* Footer Main 3 Columns */
#portfolio-footer .footer-main {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background-color: #fff;
  width: 100%;
}

#portfolio-footer .footer-navigation,
#portfolio-footer .footer-about,
#portfolio-footer .footer-contact {
  min-width: 0;
  padding: 38px clamp(20px, 3vw, 44px);
}

#portfolio-footer .footer-navigation,
#portfolio-footer .footer-about {
  border-right: 1px solid #dedede;
}

/* Navigation */
#portfolio-footer .footer-navigation {
  display: grid;
  grid-template-columns: repeat(2, minmax(110px, 160px));
  justify-content: start;
  align-content: center;
  gap: 18px clamp(20px, 3vw, 48px);
}

#portfolio-footer .footer-navigation a {
  font-size: 13.5px;
  font-weight: 500;
}

/* About / Connect */
#portfolio-footer .footer-section-label {
  margin-bottom: 12px;
  color: #858585;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
}

#portfolio-footer .footer-about h3 {
  margin-bottom: 12px;
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 600;
  letter-spacing: -0.5px;
}

#portfolio-footer .footer-about > p:not(.footer-section-label) {
  margin-bottom: 16px;
  color: #666;
  font-size: 12.5px;
  line-height: 1.7;
  max-width: 460px;
}

#portfolio-footer .footer-email-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 420px;
  padding: 12px 18px;
  border: 1px solid #bdbdbd;
  border-radius: 6px;
  color: #111 !important;
  font-size: 13px;
  font-weight: 500;
}

#portfolio-footer .footer-email-link span {
  font-size: 19px;
  transition: transform 0.25s ease;
}

#portfolio-footer .footer-email-link:hover {
  background: #111;
  border-color: #111;
  color: #fff !important;
}

#portfolio-footer .footer-email-link:hover span {
  transform: translateX(4px);
}

/* Contact Details */
#portfolio-footer .footer-contact {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

#portfolio-footer .footer-contact .footer-section-label {
  margin-bottom: 0;
}

#portfolio-footer .contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

#portfolio-footer .contact-item .material-symbols-outlined {
  display: inline-block;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  font-size: 22px !important;
  color: #111;
}

#portfolio-footer .contact-item span,
#portfolio-footer .contact-item a {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  font-size: 12.5px;
  line-height: 1.6;
}

/* Copyright Bar */
#portfolio-footer .footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px clamp(20px, 3vw, 44px);
  border-top: 1px solid #dedede;
  background: #111;
  color: #fff;
}

#portfolio-footer .footer-bottom p,
#portfolio-footer .footer-bottom a {
  margin: 0;
  color: #fff;
  font-size: 12px;
  line-height: 1.6;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */

/* Large Tablets & Small Laptops (<= 1100px) */
@media (max-width: 1100px) {
  .hero {
    flex-direction: column;
    align-items: flex-start;
    padding-top: calc(var(--nav-height) + 30px);
    padding-bottom: 90px;
    gap: 48px;
  }

  .hero-left {
    width: 100%;
    max-width: 100%;
  }

  .hero-art {
    width: 100%;
    max-width: 520px;
    height: 460px;
    margin: 0 auto;
  }

  .story-journey-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .story-card {
    padding-left: 0;
  }

  .story-circle-photo {
    display: none;
  }

  .center-photo-card {
    height: 250px;
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
  }

  .chrome-torus-float {
    display: none;
  }

  .edu-header {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .certifications-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  #portfolio-footer .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #portfolio-footer .footer-navigation {
    border-bottom: 1px solid #dedede;
  }

  #portfolio-footer .footer-about {
    border-right: none;
    border-bottom: 1px solid #dedede;
  }

  #portfolio-footer .footer-contact {
    grid-column: 1 / -1;
  }
}

/* Tablets & Mobile (<= 992px): Show Hamburger, Dropdown & Mobile Logo */
@media (max-width: 992px) {
  #nav-items {
    display: none;
  }

  .nav-hamburger-btn {
    display: flex;
  }

  .navle-text {
    display: none;
  }

  #nav {
    height: 64px;
    --nav-height: 64px;
  }

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

  .achievements-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Medium Tablets & Large Phones (<= 768px) */
@media (max-width: 768px) {
  .certifications-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cert-card {
    height: 200px;
  }

  #portfolio-footer .footer-socials a {
    padding: 14px 12px;
    font-size: 12px;
  }
}

/* Mobile Phones (<= 600px) */
@media (max-width: 600px) {
  #nav {
    height: 60px;
    --nav-height: 60px;
    padding: 0 16px;
  }

  #Logo img {
    width: 34px;
    height: 34px;
  }

  #Logo h3 {
    font-size: 16px;
  }

  .nav-right {
    gap: 8px;
  }

  .nav-right .nav-contact-btn {
    padding: 7px 15px;
    font-size: 12.5px;
    display: inline-flex;
  }

  .hero {
    padding-top: calc(var(--nav-height) + 20px);
    padding-bottom: 75px;
    gap: 36px;
  }

  .hero h1 {
    font-size: clamp(28px, 8.2vw, 38px);
  }

  .spark-exp-right {
    display: none;
  }

  .desktop-break {
    display: none;
  }

  .sig-and-stats-row {
    gap: 20px;
  }

  .signature {
    font-size: 26px;
  }

  .sig-lines {
    width: 130px;
  }

  .stat-item strong {
    font-size: 17px;
  }

  .stat-item small {
    font-size: 9px;
  }

  /* Compact Hero Art on Mobile */
  .hero-art {
    max-width: 340px;
    height: 360px;
  }

  .hero-geometry {
    width: 320px;
    height: 320px;
  }

  .orbit-one,
  .orbit-two {
    transform: scale(0.65) translate(-50%, -50%);
  }

  .avatar-halo {
    width: 240px;
    height: 240px;
    top: 65px;
  }

  .spark-halo-top {
    top: 56px;
  }

  .avatar-wrapper {
    width: 240px;
    height: 310px;
    top: 40px;
  }

  .dev-note-wrap {
    top: 15px;
    left: -4px;
  }

  .dev-note {
    font-size: 15px;
  }

  .note-arrow {
    width: 48px;
    height: 52px;
    margin-left: 24px;
  }

  .hero-tag-column {
    top: 15px;
    right: 0;
  }

  .build-list {
    font-size: 7.5px;
  }

  .polaroid {
    width: 108px;
    height: 148px;
    right: -5px;
    bottom: 5px;
    padding: 5px 5px 10px;
  }

  .polaroid-copy {
    font-size: 11px;
    bottom: 6px;
    left: 7px;
    right: 7px;
  }

  .card-arrow-icon {
    font-size: 13px;
  }

  /* Story & Journey */
  .story-journey-section {
    padding: 45px 18px 55px;
  }

  .story-card h2,
  .journey-card h2 {
    font-size: clamp(24px, 7vw, 32px);
  }

  .center-photo-card {
    height: 220px;
  }

  /* Education */
  .education {
    padding: 50px 18px 65px;
  }

  .edu-title-group h2 {
    font-size: clamp(26px, 7vw, 34px);
  }

  .edu-intro-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .edu-hand-note-wrap {
    align-self: flex-start;
  }

  .education-card {
    padding: 18px 16px 20px;
  }

  /* Achievements */
  .achievements {
    padding: 45px 18px 55px;
  }

  .achieve-heading h2 {
    font-size: clamp(24px, 7vw, 32px);
  }

  .achievement-card .certificate-frame {
    height: 180px;
  }

  .achievement-card .achievement-item {
    padding: 14px 16px 16px;
  }

  /* Certifications */
  .certifications {
    padding: 50px 18px 65px;
  }

  .certifications-row {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  .cert-card {
    height: 210px;
  }

  /* Contact CTA */
  #contact-cta {
    min-height: 300px;
    padding: 35px 16px;
  }

  #contact-cta .cta-card {
    padding: 24px 16px;
    border-radius: 16px;
  }

  #contact-cta .cta-heading {
    font-size: clamp(24px, 7vw, 32px);
  }

  #contact-cta .cta-description {
    font-size: 11.5px;
  }

  #contact-cta .cta-button {
    min-width: 150px;
    padding: 10px 18px;
    font-size: 9.5px;
    gap: 12px;
  }

  /* Footer */
  #portfolio-footer .marquee-track span {
    font-size: 52px;
    letter-spacing: -2px;
  }

  #portfolio-footer .footer-socials {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  #portfolio-footer .footer-socials a {
    padding: 12px 8px;
    gap: 6px;
    font-size: 11px;
  }

  #portfolio-footer .footer-socials a span {
    width: 22px;
    height: 22px;
    font-size: 13px;
  }

  #portfolio-footer .footer-main {
    grid-template-columns: 1fr;
  }

  #portfolio-footer .footer-navigation,
  #portfolio-footer .footer-about,
  #portfolio-footer .footer-contact {
    padding: 22px 18px;
    border-right: none;
    border-bottom: 1px solid #dedede;
  }

  #portfolio-footer .footer-contact {
    grid-column: auto;
    border-bottom: none;
  }

  #portfolio-footer .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 14px 18px;
  }
}

/* Very Small Mobile Screens (<= 380px) */
@media (max-width: 380px) {
  #Logo h3 {
    font-size: 13.5px;
  }

  #portfolio-footer .footer-socials {
    grid-template-columns: 1fr;
  }

  #portfolio-footer .footer-socials a {
    border-right: none;
    border-bottom: 1px solid #dedede;
  }

  #portfolio-footer .footer-socials a:last-child {
    border-bottom: none;
  }
}

/* ==========================================================================
   ACCESSIBILITY: PREFERS REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  #portfolio-footer .marquee-track,
  #contact-cta .cta-moving-line > span,
  .sparkle {
    animation: none !important;
  }
}
