
/* =========================================================
   1. RESET & BASE
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
    scroll-behavior: auto;
    scrollbar-gutter: stable;
}

body {
    font-family: "Source Sans 3", system-ui, sans-serif;
    color: #222;
    min-height: 100svh;
    overscroll-behavior-y: contain;
    
}

body.ui-locked {
    pointer-events: none;
    cursor: progress;
}

body.ui-locked .app-header,
body.ui-locked #sidePanel {
    pointer-events: auto; /* allow visual hover, block clicks via JS */
}


:root {
  --accent-primary: #009688;
  --header-height: clamp(68px, 62px + 1.5vw, 80px);
  
  --meta-font: clamp(0.7rem, 0.65rem + 0.2vw, 0.8rem);

  /* font-size × line-height + padding */
  --meta-h: calc(
    var(--meta-font) * 1.8 + 20px
  );
}


/* =========================================================
   SITE HEADER (HIDDEN ON HERO)
========================================================= */
/* Header shell */
.app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;

  height: var(--header-height);
  z-index: 1500;

  display: flex;
  align-items: center;

  background: rgba(248,249,247,0.75);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);

  border-bottom: 1px solid rgba(0,0,0,0.06);

  box-shadow:
  0 1px 0 rgba(255,255,255,0.6) inset,
  0 3px 10px rgba(0,0,0,0.3);

  opacity: 0;
  pointer-events: none;
  transform: translateY(-100%);
  transition:
    transform 0.35s cubic-bezier(.22,.61,.36,1),
    opacity 0.25s ease;
}


/* Visible after hero */
.app-header.header-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* =========================================================
   INNER LAYOUT
========================================================= */

.header-inner {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0 clamp(14px, 2vw, 20px);
}

/* =========================================================
   IDENTITY
========================================================= */

.identity {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  margin-left: clamp(5px, 1vw, 10px);
}

.identity .name {
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: clamp(1rem, 0.9rem + 0.7vw, 1.45rem);
  font-weight: 700;
  letter-spacing: 0.4px;
  color: #111;
  position: relative;
  cursor: pointer;
  transition: color 0.25s ease;
}

.identity a {
  text-decoration: none;
  color: inherit;
}

/* underline */
.identity .name::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0px;
  width: 100%;
  height: 2px;
  background: var(--accent-primary);

  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

/* hover state */
.identity .name:hover {
  color: var(--accent-primary);
}

/*
.identity .name:hover::after {
  transform: scaleX(1);  // this will implement a animating underline for the header identity.
}
*/

.identity .role {
  font-size: clamp(0.65rem, 0.6rem + 0.25vw, 0.75rem);
  font-weight: 500;
  color: #777;
  letter-spacing: 0.35px;
}

/* =========================================================
   RIGHT SIDE
========================================================= */

.header-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 24px);
}

/* Nav links */
.header-nav {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 18px);
}

.header-nav a {
  font-size: clamp(0.8rem, 0.75rem + 0.35vw, 1rem);
  font-weight: 600;
  text-decoration: none;
  color: #222;
  position: relative;
  letter-spacing: 0.03rem;
  padding-bottom: 6px;
  transition: color 0.25s ease
}

.nav-separator {
  font-size: 1rem;
  font-weight: 600;
  padding-bottom: 10px;
  opacity: 0.75;
  color: var(--accent-primary);
  user-select: none;
  pointer-events: none;
}

.header-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 5px;
  width: 100%;
  height: 2px;
  background: var(--accent-primary);
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.header-nav a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

/* Social icons */
.social-head {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.5vw, 16px);
  padding-bottom: 5px;
}

.social-head img {
  width: clamp(25px, 25px + 0.6vw, 33px);
  height: clamp(25px, 25px + 0.6vw, 33px);
  opacity: 0.75;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.social-head a:hover img {
  opacity: 1;
  transform: translateY(-2px);
}


.header-nav a.active::after {
  opacity: 1;
  transform: scaleX(1);
}

/* =========================================================
   MOBILE RULES (INTENTIONAL REDUCTION)
========================================================= */

@media (max-width: 570px) {
  .header-nav {
    display: none;
  } 

  .social-head{
    padding-top: 10px;
  } 
}

@media (max-width: 370px) {
  .social-head{
    display: none;
  } 
}

/* =========================================================
   5. HAMBURGER MENU
========================================================= */
.hamburger {
    position: relative;

    width: clamp(40px, 1vw, 44px);
    height: clamp(40px, 1vw, 44px);

    background: transparent;
    border: none;
    cursor: pointer;
    
    align-items: center;
    justify-content: center;

    border-radius: 15%;
    transition: background 0.25s ease;
}

.hero-hamburger {
    top: clamp(13.2px, 2.5vw, 20px);;
    left:  clamp(14px, 2vw, 20px);
    position: fixed;
    width: clamp(40px, 1vw, 44px);
    height: clamp(40px, 1vw, 44px);
    background: transparent;
    border: none;
    cursor: pointer;
    
    align-items: center;
    justify-content: center;

    border-radius: 15%;
    transition: background 0.25s ease;
}

.hero-hamburger span {
    display: block;
    width: clamp(22px, 2.5vw, 30px);
    height: clamp(3.3px, 0.4vw, 4.3px);

    background: var(--accent-primary);
    margin: clamp(5px, 0.5vw, 7px) auto;
    border-radius: 2px;
    transition: background 0.25s ease;
}

.hero-hamburger:hover {
    background: var(--accent-primary);
}

.hero-hamburger:hover span {
    background: #ffffff;
}

.hamburger span {
    display: block;
    width: clamp(22px, 2.5vw, 30px);
    height: clamp(3.3px, 0.4vw, 4.3px);

    background: var(--accent-primary);
    margin: clamp(5px, 0.5vw, 7px) auto;
    border-radius: 2px;
    transition: background 0.25s ease;
}

.hamburger:hover {
    background: var(--accent-primary);
}

.hamburger:hover span {
    background: #ffffff;
}

/* =========================================================
   NAV ACCESS WHILE PROJECT PAGE IS OPEN
========================================================= */

.app-stage.is-project-open .hamburger {
    z-index: 3100;
}

.app-stage.is-project-open .side-panel {
    z-index: 3200;
}

.app-stage.is-project-open .overlay {
    z-index: 3000;
}

.page-main [id] {
scroll-margin-top: calc(var(--header-height));
}


/* =========================================================
   PREVENT CONTENT JUMP
========================================================= */

.header-spacer {
    pointer-events: none;
}


/* reduced motion safety */
@media (prefers-reduced-motion: reduce) {
    .site-header {
        transition: opacity 0.2s ease;
        transform: none;
    }
}


/* ===== APP STAGE ===== */
.app-stage {
    position: relative;
    width: 100%;
    overflow-x: hidden;   /* allow horizontal animations */
    overflow-y: visible; /* allow normal scroll */
}


/* ===== PAGES ===== */
.page {
    width: 100%;
    min-height: 100dvh;
    transition: transform 0.7s ease;
}

/* MAIN PAGE */
.page-main {
    position: relative; /* normal document flow */
}

/* Portfolio card title — NEVER affected by project pages */
.page-main .project-title {
    position: static;
    display: inline-block;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.02em;
}

/* PROJECT PAGE (hidden to right) */
.page-project {
    position: fixed;
    inset: 0;
    background: #fff;
    transform: translateX(100%);
    z-index: 2000;
    overflow-y: auto;
}

/* ===== ACTIVE PROJECT MODE ===== */
.app-stage.is-project-open .page-main {
    transform: translateX(-100%);
}

.app-stage.is-project-open .page-project {
    transform: translateX(0);
}

body.no-scroll {
    overflow: hidden;
    height: 100dvh;
}

/* Freeze project card internals during page transitions */
.page-transitioning .project-card *,
.page-transitioning .project-card {
    transition: none !important;
    animation: none !important;
}



/* =========================================================
   2. HERO SECTION
========================================================= */

.hero-greeting {
    font-size: clamp(1rem, 0.9rem + 0.4vw, 1.2rem);
    color: white;
    margin-bottom: 10px;
    font-weight: 600;
	
}

.hero-name {
    font-size: clamp(2.2rem, 1.6rem + 3vw, 4.5rem);
    font-family: "Montserrat", system-ui, sans-serif;
    font-weight: 700;
    letter-spacing: 2px;
    color: white;
    margin-bottom: 15px;
}


.hero-roles {
    font-size: clamp(1.1rem, 1rem + 0.6vw, 1.5rem);
    font-family: "Montserrat", system-ui, sans-serif;
    font-weight: 500;
    color: white;
	opacity: 0.9;
    min-height: 1.4em;
}


.hero {
    --parallax: 0px;
    height: calc(var(--vh) * 100);
    background:
        linear-gradient(rgba(8,12,20,0.4), rgba(8,12,20,0.4)),
        url("./assets/icons/hero.webp") center / cover no-repeat;

    background-position: center calc(35% + var(--parallax));
    position: relative;
    display: flex;
    
    will-change: background-position;
}


.hero-roles #typewriter {
    font-weight: 600;
    letter-spacing: 0.3px;
}


.hero-center {
    margin: auto;
    padding: clamp(80px, 12dvh, 140px) 15px 0px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.caret {
	color: white;
    opacity: 1;
    margin-left: 2px;
    font-weight: 600;
}

.caret.blink {
    opacity: 1;
    animation: blinkCaret 1s steps(1) infinite;
}

@keyframes blinkCaret {
    0%, 50%, 100% { opacity: 1; }
    25%, 75% { opacity: 0; }
}

.hero-btn {
    margin-top: 35px;
    padding: 14px 40px;
    font-size: 1rem;
    letter-spacing: 0px;
}


/* =========================================================
   3. BUTTONS & INTERACTIONS
========================================================= */

.primary-btn {
    width: 200px; 
    background: var(--accent-primary);
    border: none;
    color: white;
    font-weight: 600;
    cursor: pointer;
    font-size: clamp(1rem, 0.9rem + 0.3vw, 1.2rem);
    font-family: "Montserrat", system-ui, sans-serif;
    text-decoration: none;
    border-radius: 4px;
    letter-spacing: 0.02em;
    padding: 12px 0px; /* slightly more horizontal than vertical */
}


/* =========================================================
   4. GLOBAL HOVER EFFECTS
========================================================= */

.hover-lift {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hover-lift:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.15);
}

@media (hover: none) {
    .hover-lift:hover {
        transform: none;
        box-shadow: none;
    }
}

/* =========================================================
   Scroll Reveal – Fade In (Play Once)
========================================================= */


.reveal,
.heading-reveal,
.content-reveal {
opacity: 0;
   will-change: opacity, transform;
}

.reveal {
    opacity: 0;
    transition: opacity 0.8s ease;
    will-change: opacity;
}

.reveal.is-visible {
    opacity: 1;
}

.heading-reveal {
  opacity: 0;
  transition: opacity 0.8s ease;
  will-change: opacity;
}

.heading-reveal.is-visible {
  opacity: 1;
}

.content-reveal {
  opacity: 0;
  will-change: opacity, transform;
}

.content-reveal.is-visible {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

/* Vertical (default for center / stacked content) */
.reveal-up {
  transform: translateY(18px);
}

/* Horizontal – left to right */
.reveal-side {
  transform: translateX(18px);
}


/* Mobile: slightly faster feel */
@media (max-width: 768px) {
    .reveal {
        transition-duration: 0.8s;
    }
}

/* Accessibility: respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1 !important;
        transition: none !important;
    }
}




/* =========================================================
   6. SIDE PANEL NAVIGATION
========================================================= */

.side-panel {
    position: fixed;
    left: -280px;
    top: 0;
    width: 250px;
    height: 100dvh;
    background: var(--accent-primary);
    color: white;
    transition: transform 0.35s ease;
    transform: translateX(0);
    z-index: 3100;
    padding: 28px 22px;
    overflow: hidden; /* IMPORTANT */
    display: flex;
    flex-direction: column;
	box-shadow:
        inset -3px 0 0 rgba(255, 255, 255, 0.15),
        2px 0 18px rgba(0, 0, 0, 0.25);
}

/* Glow layer */
.side-panel::after {
    content: "";
    position: absolute;
    top: 0;
    right: -20px;
    width: 20px;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255,255,255,0.25),
        transparent
    );
    opacity: 0;
    pointer-events: none;
}

/* Animate glow when panel opens */
.side-panel.active::after {
    animation: sideGlow 0.6s ease-out forwards;
}

@keyframes sideGlow {
    0% {
        opacity: 0;
        transform: translateX(-8px);
    }
    30% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateX(0);
    }
}

.side-panel.active {
    transform: translateX(280px);
}

/* ================= PROFILE ================= */

.profile {
    text-align: center;
    margin-bottom: 20px;
	margin-top: -10px;
}

.profile img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
	box-shadow: 0px 10px 5px rgba(0,0,0,0.18);
    border: 3px solid rgba(255,255,255,0.25);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile img:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 24px rgba(0,0,0,0.25);
}

.profile h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.profile p {
    font-size: 1rem;
    opacity: 0.85;
}

/* ================= NAVIGATION ================= */

.side-divider {
    width: 100%;
    height: 1px;
    margin: 20px auto 0px;
    background: linear-gradient(
        rgba(255, 255, 255, 0.35),
        rgba(255, 255, 255, 0.35),
        rgba(255, 255, 255, 0.35),
        rgba(255, 255, 255, 0.35)
    );
}


.side-nav {
    flex: 1;                     /* takes remaining height */
    display: flex;
    flex-direction: column;
    gap: 2px; /* was 6px */
    overflow-y: auto;
    overflow-x: hidden;   /* 🔥 THIS FIXES IT */
    padding-bottom: 16px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.45) transparent;
    padding-right: 15px; /* 👈 creates space for scrollbar */
    scrollbar-gutter: stable;
    
}

.side-nav::-webkit-scrollbar {
    width: 8px;
}

.side-nav::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.4);
    border-radius: 6px;
}

.side-nav::-webkit-scrollbar-track {
    background: transparent;
}

/* Nav links */
.side-nav .nav-link {
    position: relative;
    padding: 11px 16px;
    border-radius: 10px;
    color: white;
    text-decoration: none;
    font-size: 1rem;
    
    font-weight: 500;
    opacity: 0.9;

    transition:
        background 0.25s ease,
        transform 0.25s ease,
        opacity 0.25s ease;
}


/* Hover effect */
.side-nav .nav-link:hover {
    background: color-mix(
        in srgb,
        white 18%,
        transparent
    );
    opacity: 1;
    transform: translateX(7px);
}

/* Active section (optional JS can toggle this) */
.side-nav .nav-link.active {
    background: color-mix(
        in srgb,
        white 18%,
        transparent
    );
    font-weight: 500;
    opacity: 1;
	transform: translateX(7px);
}

/* Subtle indicator bar */
.side-nav .nav-link::before {
    content: "";
    position: absolute;
    left: 1px;
    top: 50%;
    width: 3px;
    height: 35%;              /* NEW default */
    background: white;
    border-radius: 2px;
    transform: translateY(-50%);
    transition: height 0.25s ease;
    opacity: 0.25;            /* NEW */
}


.side-nav .nav-link:hover::before,
.side-nav .nav-link.active::before {
    height: 60%;
    opacity: 0.7;
}


/* =========================================================
   7. OVERLAY
========================================================= */

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
    z-index: 2900;
}

.overlay.active {
    opacity: 1;
    pointer-events: all;
}


/* =========================================================
   8. ICON GRID (GENERIC)
========================================================= */

.icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(200px,1fr));
    gap: 30px;
}

.icon-box {
    padding: 40px;
    background: white;
    text-align: center;
}


/* =========================================================
   9. PROLOGUE / OVERVIEW
========================================================= */

.overview-container {
    max-width: 1500px;
    margin: 0 auto;
    margin-top: 50px;
    margin-bottom: 20px;
}

.prologue {
    text-align: center;
}

.prologue-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 80px;
}

.prologue-item {
    max-width: 320px;
    margin: auto;
    padding-left: 20px;
    padding-right: 20px;
}

.prologue-icon {
    width: 90px;
    height: 90px;
    background: var(--accent-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    cursor: default;
    
}

.prologue-icon img {
    filter: invert(1);
    width: 50px;
    height: 50px;
    margin-top: 8px;
}

.prologue-item h3 {
    font-family: "Montserrat", system-ui, sans-serif;
    font-size: 1.5rem;
    font-weight:700;
    margin-bottom: 14px;
    color: #222;
}

.prologue-item p {
    font-size: clamp(0.9rem, 0.85rem + 0.2vw, 1rem);
    line-height: 1.5;
    color: #666;
    max-width: 320px;
  margin: 0 auto;
}


/* =========================================================
   10. PORTFOLIO
========================================================= */

.portfolio-container {
    max-width: 1400px;
    padding: 20px;
    margin: 0 auto;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}


/* Mobile */
@media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: minmax(0, 500px);
    justify-content: center;
  }
}

/* Tablet */
@media (min-width: 768px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.project-card {
    background: #ffffff;
    border-radius: 5px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
	transition:
        opacity 0.8s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.project-card.reveal {
    opacity: 0;
}

.project-card.reveal.is-visible {
    opacity: 1;
}

.section.gray {
    text-align: center;
    background: #f2f2f2;
}

.project-card,
.prologue-icon {
    cursor: pointer;    
}

.project-media {
    position: relative;
    flex: 0 0 auto;
    aspect-ratio: 5 / 4;
    overflow: hidden;
    height: auto;
}

.project-media video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: transparent;
    display: block;    
}

/* Background fill */
.project-media img.bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(3px) brightness(1);
  pointer-events: none;
  transition: transform 0.6s cubic-bezier(.2,.8,.2,1);
}

/* VIDEO — LANDSCAPE CROPPING (YOUR INTENT PRESERVED) */
.project-media video.fg.portrait {
  position: absolute;
  top: 0;
  height: 100%;
  width: 45%;                
  
  transition: transform 0.35s cubic-bezier(.4,0,.2,1);
  object-fit: cover;
  
  background: transparent;
  border-radius: 7px;
  display: flex;
  align-items: stretch;

}

.fg-wrap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: var(--meta-h); 
  top: 0;
  display: flex;
  align-items: flex-end; 
  justify-content: center;
  pointer-events: none; 
}

.project-media video.fg {
  width: 100%;
  height: auto;            /* let height be natural */
  max-height: 100%;        /* never cross into meta */
  object-fit: contain;
  z-index: 2;
  transition: transform 0.35s cubic-bezier(.4,0,.2,1);
}

/* Foreground focus */
.project-card:hover .project-media video.fg {
  transform: scale(1.08);
}

.project-card:hover .project-media video.fg.portrait {
  transform: scale(1.08);
}

/* Background breathes slightly */
.project-card:hover .project-media img.bg {
  transform: scale(1.08);
}

.project-card[data-card-orientation="portrait"] .fg-wrap {
  bottom: 0;               /* remove meta offset */
  align-items: stretch;    /* fill full height */
}

.project-info {
    padding: 10px 15px;
    text-align: left;
}

.project-info h3 {
    margin-bottom: 3px;
    font-weight: normal;
    color: inherit;
}

.project-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.project-heading .project-title {
    font-size: clamp(1.15rem, 1rem + 0.4vw, 1.3rem);
    font-weight: 700;
    color: black;
    letter-spacing: 0.02em;
    line-height: 1;
    transition: 
        color 0.2s ease,
        text-decoration-color 0.2s ease;
}

.project-year {
    font-size: clamp(0.9rem, 0.85rem + 0.2vw, 1rem);
    font-weight: 500;
    color: #999;
	padding-bottom: 0px;
    letter-spacing: 0.02em;
}

.project-card:hover .project-title {
    color: var(--accent-primary);
    text-decoration-color: var(--accent-primary);
}

.project-arrow-circle {
    width: 20px;
    height: 20px;
	margin-left: auto;
	margin-bottom:7px;
    opacity: 0.5;
	color: #555;          /* default color */
    transform: translateY(1px);
    
    transition: 
		color 0.2s ease,
        transform 0.25s cubic-bezier(.4,0,.2,1),
        opacity 0.2s ease;
}

.project-card:hover .project-arrow-circle {
    opacity: 1;
    transform: translate(7px, 1px);
	color: var(--accent-primary);
}


.project-info p {
    font-size: clamp(0.9rem, 0.85rem + 0.2vw, 1rem);
    line-height: 1.5;
    color: #666;
    position: relative;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-card:hover {
    box-shadow:
        0 10px 25px rgba(0,0,0,0.08),
        0 0 0 1px rgba(0, 180, 160, 0.3),
        0 0 18px rgba(0, 180, 160, 0.3);
}

.project-icons {
    width: 17px;
    height: 17px;
    max-width: 17px;
    max-height: 17px;
    display: inline-block;
    filter: invert(1);
}

.platform {
    width: 17px;
    height: 17px;
    max-width: 17px;
    max-height: 17px;
    display: inline-block;
    filter: invert(1);
}


.project-meta .meta-tag {
    padding: 3px 7px;
    
    border-radius: 10px;
    font-size: clamp(0.7rem, 0.65rem + 0.2vw, 0.8rem);
    font-weight: 600;
    letter-spacing: 0.05em;
	background: rgba(255,255,255,0.3);
}

.platform-wrap {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}


.project-meta {
    position: absolute;
    bottom: 0px;
    left: 0;
    right: 0;
    height: var(--meta-h);
    z-index: 4;
    display: flex;
    gap: 12px;
    align-items: center;
    background: rgba(0, 0, 0, 0.6);
    

    padding: 10px 12px 10px;
    border-radius: 0px;

    font-size: var(--meta-font);
    
    color: #fff;
}


.project-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
	font-weight:600;
    white-space: nowrap;
}

.meta-team-wrap {
  display: none;
}

@media (max-width: 1300px) and (min-width: 1200px),
       (max-width: 850px) and (min-width: 768px),
       (max-width: 400px) {
  .meta-team-wrap {
    opacity: 0;
    width: 0;
    margin-left: -12px;
    display: none;
  }
}

/* =========================================================
  11. RESUME SECTION (CV STYLE)
========================================================= */

.Resume-container {
    max-width: 1200px;
	border-radius: 10px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 60px;
	margin-bottom:10px;
	background: white;

}

.ResumeBg {
	background: #f2f2f2;
	padding-bottom: 50px;
}

.section {
	position: relative;
    padding: 50px 0;
}


/* Major section divider */
.section--major {
    position: relative;
	text-align: center;
}

.section--major::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.12),
        rgba(0, 0, 0, 0.12),
        rgba(0, 0, 0, 0.12)
    );
}

/* Resume / internal divider */
.section--resume {
    position: relative;
	padding: 40px;
}

/* Resume / internal divider */
.section--interest {
    position: relative;
	padding: 40px;
}

.section--resume::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1.5px;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.12),
        rgba(0, 0, 0, 0.12),
        rgba(0, 0, 0, 0.12)   /*change this to transparent for a solid right and fade left */
    );
}


.section-title {
    font-size: clamp(2.4rem, 2rem + 2vw, 3rem);
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 10px;
    font-family: "Montserrat", system-ui, sans-serif;
    position: relative;
    display: inline-block;
    text-align: center;
}

/* vertical indicator (hidden by default) */
.section-title::before {
    content: "";
    position: absolute;
    left: -30px;              /* distance from text */
    top: 50%;
    transform: translateY(-50%);

    width: 15px;
    height: 60%;

    background: var(--accent-primary);
    opacity: 0;

    transition: opacity 0.6s ease 0.2s;
}

/* active section */
.section-title.section-active::before {
    opacity: 0.75;            /* 🔧 tweak: 0.08 – 0.15 */
}

/* mobile tuning */
@media (max-width: 768px) {
    .section-title::before {
        width: 15px;
        height: 60%;
    }
}

.section-subtitle {
    font-style: italic;
    color: #777;
    margin-bottom: 25px;
    padding-left: 10px;
    padding-right: 10px;
    font-size: clamp(0.9rem, 0.85rem + 0.2vw, 1rem);
}

.section-center {
    text-align: center;
}

.section-left {
    text-align: left;
}

/* ===============================
   ABOUT – PHOTO LEFT / TEXT RIGHT
================================ */

/* Grid layout */
.about-grid {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 40px;
    align-items: start;
}

/* LEFT COLUMN */
.about-left {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-right {
    padding-top: 5px;
}

.about-actions {
    margin-top: 22px;
    text-align: right;
}

.resume-download {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #222;
    text-decoration: none;
    transition: color 0.25s ease;
}

.download-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1.5px solid currentColor;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease;
}

.resume-download:hover {
    color: var(--accent-primary); /* teal */	
	text-decoration: underline;
}

.resume-download:hover .download-icon {
    transform: translateY(-2.5px);
	
}

/* Profile photo */
.about-photo {
    width: 230px;
    height: 230px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0px 10px 5px rgba(0,0,0,0.18);
    margin-bottom: 40px;
	margin-top: 13px;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	border: 3px solid white;
}

.about-identity img:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 24px rgba(0,0,0,0.25);
}

/* Social icons */
.about-socials {
    display: flex;
    gap: 14px;
}


.about-socials img {
    width: 37px;
    opacity: 0.75;
	border-radius: 6px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.about-socials a:hover img {
    opacity: 1;
    transform: translateY(-2px) scale(1.03);
	box-shadow: 0 5px 5px rgba(0,0,0,0.2);
}

.about-name-link {
    display: inline-flex;
    align-items: baseline;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.about-name-link:hover {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
    text-decoration-color: color-mix(
    in srgb,
    var(--accent-primary) 85%,
    transparent
);
}


.about-title {
    font-size: clamp(0.8rem, 0.75rem + 0.2vw, 0.9rem);
    font-family: "Montserrat", system-ui, sans-serif;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #666;
    margin-bottom: 15px;
}


.about-text p {
    margin-bottom: 10px;
}

/* Body text */
.about-text {
    font-size: clamp(0.9rem, 0.85rem + 0.2vw, 1rem);
    color: #444;
    line-height: 1.5;
}

.about-name {
    font-size: clamp(1.4rem, 1.4rem + 3vw, 3.5rem);
    font-family: "Montserrat", system-ui, sans-serif;
    font-weight: 700;
    line-height: 1.05;
    margin: 0;
}

.about-name .about-surname {
    color: #222; /* or your dark text */
}

.about-name {
    color: var(--accent-primary); /* first name color */
}


@media (max-width: 820px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        justify-items: center;
    }

    .about-title {
        max-width: 90%;
        margin-inline: auto;
        margin-top: 5px;
    }

    .about-right {
        margin: 0 auto;
        text-align: center;
    }

    .about-text {
        text-align: left;
        margin-top: 20px;
        margin-inline: auto;
    }

    .about-name-link {
        flex-direction: column;
        align-items: center;
        gap: 2px;
        text-align: center;
        
    }

    .about-socials {
        justify-content: center;
    }
}

/* ===============================
   EXPERIENCE Section Aesthetic Testing
================================ */

.section-heading::after {
    content: "";
    position: absolute;
    left: 3px;
    
    bottom: -2px;

    height: 3px;
    width: 0;

    background: var(--accent-primary);
    opacity: 0.7;
    border-radius: 2px;
    transition: width 0.6s ease-out 0.15s;
}

.section-heading.underline-active::after {
    width: 50%;
}

/* ===============================
   EXPERIENCE SECTION
================================ */

#experience {
    margin-top: -60px;
}

.section-heading {
    position: relative;
    display: inline-block;
    font-size: clamp(2rem, 2rem + 1.5vw, 2.5rem);
    font-family: "Montserrat", system-ui, sans-serif;
    font-weight: 700;
    margin-bottom: 40px;
}

/* Experience list */
.experience-list {
    align-items: stretch;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.experience-content {
    max-width: 900px;       /* constrain text only */
}

.role-title {
    font-size: clamp(1.2rem, 1.2rem + 1vw, 2rem);
    font-weight: 600;
}

.section-space {
padding-bottom: 20px;
}

.role-duration {	
	font-style:italic;
    font-size: 0.85rem;
    color: var(--accent-primary);
    white-space: nowrap;
    font-weight: 500;
}

/* Company line */
.company-line {
    font-size: 0.85rem;
    color: #6e6c6c;
    font-weight: 500;
    margin: 0px 0 14px;
}

/* Summary */
.role-summary {
    font-size: clamp(0.9rem, 0.85rem + 0.2vw, 1rem);
    line-height: 1.5;
    margin-bottom: 6px;
    color: #333;
    font-weight: 400;
}

.experience-item {
    position: relative;
}

.experience-header {
    position: relative;
    padding-left: 0px; /* space for grey block */
}

/* Grey block — auto height */
.experience-header::before {
    content: "";
    position: absolute;
    left: -40px;             /* aligns with resume container edge */
    top: 10px;
    bottom: 5px;               /* AUTO height based on content */
    width: 25px;
    
    background: rgba(59, 58, 58, 0.25);
    border-radius: 0 3.5px 3.5px 0;
}

@media (max-width: 820px) {

    .experience-header::before {
        left: clamp(-40px, -5vw, -36px);
        width: clamp(30px, 4vw, 35px);
        border-radius: 3px;
        background: rgba(59, 58, 58, 0.25);
    }

    .company-line 
    {    
        margin: 0px 0 5px;
    }

    .role-title {
        padding-top: 2px;
    }

    .role-duration {
        position: static;
        margin: 0 0 15px;
    }
}

/* Desktop positioning */
@media (min-width: 769px) {
    .role-duration {
        position: absolute;
        top: 16px;
        right: 0;
        white-space: nowrap;
    }
}

/* ===============================
   EXPERIENCE PROJECT BLOCK
================================ */

.experience-project-title::before {
    content: "";
    position: absolute;
    left: -20px;
    top: 0.52em;
    width: 6px;
    height: 6px;
    background: rgba(0,0,0,0.35);
    opacity: 1;
    border-radius: 1px;
}

.experience-project {
    margin-top: 20px;
}

/* Project title */
.experience-project-title {
    font-size: clamp(0.9rem, 1rem + 0.4vw, 1.3rem);
    font-weight: 600;
    margin-bottom: 6px;
    position: relative;
    color: #222;
}

/* Project bullets */
.project-points {
    padding-left: 18px;
}


.project-points li {
    font-size: clamp(0.9rem, 0.85rem + 0.2vw, 1rem);
    line-height: 1.5;
    color: #333;
}

.project-points li::marker {
    font-size: 1.2em;           /* bigger bullet */
}

@media (max-width: 820px) {

    .experience-project-title::before {
        left: clamp(-20px, -2vw, -11px);
        width: 6px;
        border-radius: 1px;
        background: rgba(0,0,0,0.35);
    }
    
    .project-points {
        padding-left: clamp(15px, 2.2vw, 18px);
    }
}

/* ===============================
   EDUCATION SECTION
================================ */
.education-degree::before {
    content: "";
    position: absolute;
    left: -20px;
    top: 0.52em;
    width: 6px;
    height: 6px;
    background: rgba(0,0,0,0.35);
    opacity: 1;
    border-radius: 1px;
}

@media (max-width: 820px) {

    .education-degree::before {
        left: clamp(-20px, -2vw, -11px);
        background: rgba(0,0,0,0.35);
        width: 6px;
        border-radius: 1px;
    }
}

#education {
    margin-top: -60px;
}

.education-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.education-item {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Degree row */
.education-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 20px;
}

.education-degree {
    position: relative;
    font-size: clamp(0.9rem, 1rem + 0.4vw, 1.3rem);
    font-weight: 600;
}

.education-score {
    font-size: 0.85rem;
	font-weight: 500;
    color: var(--accent-primary);
	font-style: italic;
}


/* Institution + stream */
.education-details {
    font-size: 0.85rem;
    color: #6e6c6c;
    font-weight: 500;    
}

/* Desktop only: pull score to top-right */
@media (min-width: 769px) {
    
    .education-item {
        position: relative;
    }

    .education-score {
        position: absolute;
        top: 6px;
        right: 0;
        white-space: nowrap;
    }
}

/* Mobile: natural flow */
@media (max-width: 768px) {
    .education-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
}

.education-coursework {
    color: #555;
    margin-top: 10px;
    font-size: clamp(0.9rem, 0.85rem + 0.2vw, 1rem);
    max-width: 90%;
}


/* ===============================
   INTERESTS SECTION
================================ */

#interests {
    margin-top: -60px;
}

.interests-content {
    max-width: 100%;
}

.interests-content p {
    font-size: clamp(0.9rem, 0.85rem + 0.2vw, 1rem);
    line-height: 1.5;
    margin-bottom: 6px;
    color: #333;
}

/* ===============================
   SKILLS SECTION – VISUAL
================================ */

#skills{
    margin-top: -60px;
}


.skills-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    max-width: 1100px;
}

/* Card */
.skill-card {
    padding: 22px 24px;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 10px;
    background: #fff;
    transition:
        opacity 0.8s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.skill-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(0,0,0,0.08);
}

/* Category title */
.skill-card h3 {
    font-size: clamp(0.9rem, 1rem + 0.4vw, 1.3rem);
    font-weight: 600;
    margin-bottom: 12px;
    color: #222;
}

/* Skill tags */
.skill-tags {
    font-weight: 400;
    display: flex;
    flex-wrap: wrap;
    gap: clamp(8px, 2vw, 10px);
}

.skill-tags span {
    font-size: clamp(0.8rem, 0.85rem + 0.2vw, 0.9rem);
    padding: clamp(7px, 1.6vw, 10px) clamp(12px, 3vw, 15px);
    border-radius: 20px;
    background: #f2f4f6;
    color: #333;
    white-space: nowrap;
}

.skill-card:hover .skill-tags span {
    background: color-mix(
        in srgb,
        var(--accent-primary) 15%,
        white
    );
}

.skill-card.reveal {
    opacity: 0;
}

.skill-card.reveal.is-visible {
    opacity: 1;
}

/* Mobile */
@media (max-width: 768px) {
    .skills-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
  .skill-card {
    padding: clamp(16px, 2.8vw, 22px) clamp(18px, 3vw, 24px);
  }
  .skills-cards {
        gap: clamp(16px, 3vw, 25px);
    }
}


/* =========================================================
   12. CONTACTS
========================================================= */

.contacts {
    text-align: center;
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 40px;
}

.contacts-container {
    margin-top: 0;
    margin: 40px auto;
    display: grid;
    grid-template-columns: minmax(100px, 1.4fr) 1.6fr;
    gap: 40px;
    align-items: flex-start;
}

.section.contacts {
    position: relative;
    padding-top: 40px;
}

.section-divider {
    width: 100%;
    height: 2px;
    background: linear-gradient(
        to right,
        rgba(0,0,0,0.12),
        rgba(0,0,0,0.12),
        rgba(0,0,0,0.12)
    );
}


/* =========================================================
   13. CONTACT – PROFILE & SOCIAL
========================================================= */

.contact-profile {
    text-align: center;
}

.contact-profile img {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.social-links {
    display: flex;
    gap: 14px;
    margin-top: 30px;
}

.social-links img {
    width: 37px;
    height: 37px;
	opacity: 0.75;
    border-radius: 6px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.social-links a:hover img {
	opacity: 1;
    transform: translateY(-2px) scale(1.03);
	box-shadow: 0 5px 5px rgba(0,0,0,0.2);
}

/* =========================================================
   14. CONTACT FORM
========================================================= */

.contact-form {
    width: 100%;
    background: transparent;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Inputs & Textarea (neutral, readable) */
.contact-form input,
.contact-form textarea {
    border: 1.5px solid transparent;
    border-radius: 12px;
    padding: 15px 22px;
    font-size: 1rem;
    background: #f1f3ff;
    color: #111827;
    outline: none;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

/* Textarea */
.contact-form textarea {
    min-height: 143px;
    resize: none;
    background: #e8ebff;
}

/* Placeholder text */
.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #6b7280;
    font-weight: 500;
    font-size: 1rem;
}

/* Focus state = theme color */
.contact-form input:focus,
.contact-form textarea:focus {
    background: #ffffff;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(68, 70, 126, 0.15);
}

/* Submit button */
.contact-form button {
    width: clamp(150px, 20vw, 200px);
    padding: 14px 0;
    margin-top: 5px;
    border-radius: 30px;
    border: none;
	opacity: 0.75;
    background: var(--accent-primary);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.contact-form button:hover {
	opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

/* Success note */
.form-success {
    
    font-family: 'Source Sans 3', sans-serif;
    font-size: clamp(1rem, 0.9rem + 1vw, 1.3rem);
    color: #059669;
    opacity: 0;
    transition: opacity 0.4s ease;

    margin-top: 0;   /* remove previous margin */
    line-height: 1;
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.form-success::before {
    content: "✓";
    margin-right: 3px;
    font-weight: 700;
}


/* =========================================================
   15. CONTACT DETAILS
========================================================= */

.contact-details {
    text-align: left;
    color: #555;
    margin-top: -5px;
}

.contact-details .intro {
    font-size: clamp(0.9rem, 0.85rem + 0.2vw, 1rem);
    line-height: 1.5;
    margin-bottom: 6px;
    color: #333;
}

/* Contact info row */
.contact-info {
    display: flex;
    gap: clamp(30px, 4vw, 40px);
    margin: 25px 0 30px;
    flex-wrap: wrap;
    font-size: clamp(0.9rem, 0.85rem + 0.2vw, 1rem);
}

/* Email / Phone links */
.info-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #555;
    transition: color 0.2s ease;
    cursor: pointer;
}

.info-link:hover {
    color: var(--accent-primary);
}

/* Icon circle */
.info-link .icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    opacity: 0.75;
    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.info-link .icon img {
    width: 20px;
    height: 20px;
}

/* Icon hover */
.info-link:hover .icon {
    opacity: 1;
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 5px 10px rgba(0,0,0,0.25);
}


@media (max-width: 820px) {
    .shrink {
        padding-left: clamp(15px, 3.5vw, 25px);
        padding-right: clamp(15px, 3.5vw, 25px);
    }
}


/* =========================================================
   16. QUOTE
========================================================= */

.contact-quote {
    margin: 80px auto 20px;
    text-align: center;
}

.quote-wrap {
    display: inline-block;   /* key: width = quote width */
    text-align: right;       /* aligns footer to quote edge */
    max-width: 750px;
}

.quote-text {
    font-style: italic;
    font-size: clamp(0.9rem, 0.85rem + 0.2vw, 1rem);
    line-height: 1.5;
    color: #6b6b6b;
    text-align: center;        /* keep quote readable */
    margin: 0;
}

.quote-author {
    margin-top: 6px;
    font-style: normal;
    font-size: clamp(0.9rem, 0.85rem + 0.2vw, 1rem);
    font-weight: 600;
    color: #555;
}

/* =========================================================
   17. FOOTER
========================================================= */

.site-footer {
    background: #f2f2f2;
    margin-top: 70px;
    text-align: center;
    padding: 20px 15px;
    color: #555;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.2);
}

.footer-message {
    font-size: clamp(0.75rem, 0.7rem + 0.2vw, 0.8rem);
    margin-bottom: 6px;
    color: #777;
    line-height: 1.5;
    font-style: italic;
}

.footer-copy {
    font-size: clamp(0.65rem, 0.6rem + 0.2vw, 0.7rem);
    color: #666;
}


/* =========================================================
   18. GO TO TOP BUTTON
========================================================= */

#goTopBtn {
    position: fixed;
    bottom: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    border: none;
    border-radius: 4px;
    background: var(--accent-primary);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
    transition: transform 0.2s ease, opacity 0.2s ease;
    z-index: 1000;
}

#goTopBtn:hover {
    transform: translateY(-3px);
}


/* =========================================================
   19. RESPONSIVE
========================================================= */

@media (max-width: 900px) {
    .prologue-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .contacts-container {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    #goTopBtn {
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 400px) {
    .form-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}

/* ================================
   Bauer Project Layout (Clean)
================================ */

.role-summary {
    max-width: 900px;
}

/* Remove width limit ONLY for Bauer */
.experience-bauer .experience-content {
    max-width: none;
}

.experience-bauer-project {
  margin-top: 1.2rem;
}

.bauer-project-body {
  overflow: hidden; /* clears float */
}

/* Text column */
.bauer-project-body .project-points {
  flex: 1;
  margin: 0;
  padding-left: 1.1rem;
}

.bauer-image-wrap {
  overflow: hidden;
  float: right;
  width: clamp(200px, 28vw, 240px);
  margin: 0 0 20px 30px;  /* space between text & image */
  cursor: zoom-in;
  border-radius: 10px;
}

.bauer-image-wrap img {
  width: 100%;
  display: block;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: center center;
}

@media (hover: hover) {
  .bauer-image-wrap:hover img {
    transform: scale(1.07);
  }
}

@media (max-width: 600px) {

  .bauer-image-wrap {
    float: none;
    width: 100%;
    margin: 12px 0;
    background: #f2f2f2;
    text-align: center;   /* ← THIS was missing */
    border-radius: 10px;
  }

  .bauer-image-wrap img {
    width: clamp(170px, 40vw, 200px);
    display: inline-block;  /* ensures proper centering */
  }

}

/* ==================================
   Bauer Main Image Viewer
================================== */

.bauer-viewer {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
  z-index: 9999;
}

.bauer-viewer.active {
  opacity: 1;
  visibility: visible;
}

.bauer-viewer img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 12px;
}

.bauer-viewer-close {
  position: absolute;
  top: 25px;
  right: 35px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}



/* ===========================
   MEDIA MODAL
=========================== */

.media-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 5dvh 5vw; /* 👈 breathing room */

  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.35s ease 0.15s; /* delay backdrop fade */
}

.media-modal.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.media-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}

.media-modal-content {
  position: relative;
  z-index: 1;
  cursor: zoom-out;

  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;

  opacity: 0;
  transition: 
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.3s ease;
}

.media-modal.active .media-modal-content {
  transform: scale(1);
  opacity: 1;
}

/* Media wrapper blocks clicks */
.media-modal-content > * {
  pointer-events: auto;
}

.media-modal-content img,
.media-modal-content video {
  display: block;
  /*max-width: 85vw;   
  max-height: 85vh;    check this later on*/ 
  width: auto;
  height: auto;
  border-radius: 10px;
  object-fit: contain;
}

.media-modal-backdrop {
  background: rgba(0, 0, 0, 0.82);
}

.media-modal-close {
  position: absolute;
  top: 22px;
  right: 28px;

  display: flex;
  align-items: center;
  gap: 8px;

  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);

  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;

  padding: 6px 14px;

  color: white;
  font-size: 0.9rem;
  font-weight: 500;

  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10001;   /* ensure above media */
}

.media-modal-close:hover {
  background: rgba(0,0,0,0.75);
  transform: translateY(-2px);
}

.media-modal-close .close-icon {
  font-size: 18px;
  line-height: 1;
}

/* ================================
   PROJECT CARD – HIGHLIGHT TAGS
================================ */

.project-highlights {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;

  display: flex;
  flex-direction: column;
  gap: 7px;

  pointer-events: none; /* purely informational */
}

.project-highlight-tag {
  font-size: clamp(0.65rem, 0.6rem + 0.2vw, 0.75rem);
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;

  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  color: #fff;
  white-space: nowrap;

  opacity: 1; /* subtle */
}

/* MEDIA LOADER */
/* ==================================
   MEDIA LOADER (Clean Portfolio Style)
================================== */

.media-loader {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    z-index: 3;
    pointer-events: none;
}

/* subtle center ring */
.media-loader::before {
    content: "";
    position: absolute;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 3px solid rgba(0, 0, 0, 0.1);
}

/* animated accent arc */
.media-loader::after {
    content: "";
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: var(--accent-primary);
    border-right-color: var(--accent-primary);

    animation: media-spin 0.8s linear infinite;
}

@keyframes loaderFade {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes media-spin {
    to { transform: rotate(360deg); }
}


/* ==============================
PROJECT SKELETON
============================== */

.loading-project .heading-fade,
.loading-project .content-fade,
.loading-project .about-text,
.loading-project .feature-list li,
.loading-project .achievement-list li {

  position: relative;

  color: transparent !important;

  user-select: none;
}

/* skeleton bars */

.loading-project .heading-fade::after,
.loading-project .content-fade::after,
.loading-project .about-text::after,
.loading-project .feature-list li::after,
.loading-project .achievement-list li::after {

  content: "";

  display: block;

  width: 100%;
  height: 14px;

  margin-top: 6px;

  border-radius: 4px;

  background: linear-gradient(
    90deg,
    #e5e5e5 25%,
    #f5f5f5 37%,
    #e5e5e5 63%
  );
    
  background-size: 400% 100%;

  animation: skeleton-loading 1.4s ease infinite;
}

@keyframes skeleton-loading {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

.project-page-loading {
  visibility: hidden;
}