/* --------------------
   CSS VARIABLES
--------------------- */
:root {
  --bg: #FBF7EF;
  --text: #111111;
  --muted: #7a7a7a;

  --yellow: #FFCC00;
  --green: #34C759;
  --blue: #36529E;
}


/* --------------------
   DARK MODE
--------------------- */
body.dark {
  --bg: #0F0F10;
  --text: #F2F2F2;
  --muted: #9A9A9A;

  --yellow: #FFCC00; /* keep accent same */
  --green: #34C759;
  --blue: #7AA2FF;
}

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

body {
  font-family: "IBM Plex Sans", sans-serif;
  background-color: var(--bg);
  color: var(--text);
}



/* Navbar dark mode */
body.dark .navbar {
  background: rgba(15, 15, 16, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Navbar dark mode (scrolled) */
body.dark .navbar.scrolled {
  background: rgba(15, 15, 16, 0.9);
}

/* --------------------
   NAVBAR
--------------------- */
.navbar {
  position: relative;
  z-index: 1000;
  
  margin: 0 20px auto;
  padding: 8px 20px;

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

  
background: transparent;
}

/* Logo */
.nav-logo{
  height: 50px;
  width: auto;
  display: block;
}

/* Right nav */
.nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
  position: fixed;
  top: 18px;
   right: 40px;
  z-index: 1000;

  background: transparent;
}

.nav-right a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  position: relative;
}

/* Hover underline (ONLY on hover) */
.nav-right a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0%;
  height: 3px;
  background-color: var(--yellow);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.nav-right a:hover::after {
  width: 100%;
}

/* Prevent browser default colors */
.nav-right a:visited,
.nav-right a:active {
  color: var(--text);
}
.theme-toggle {

width:34px;
height:34px;

border-radius:50%;

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

border:1px solid rgba(0,0,0,.08); /* subtle outline */

background:#111;

color:#fff;

cursor:pointer;

transition:all .2s ease;

}

body.dark .theme-toggle {

background:#fff;

color:#0f0f10;

border:1px solid rgba(255,255,255,.08);

}

.theme-icon {
  width: 16px;
  height: 16px;
}

.nav-left {
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.navbar.compact .nav-left {
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
}

.navbar.compact {
  padding: 8px 20px;
}

/* --------------------
   HERO SECTION
--------------------- *//* --------------------
   HERO SECTION
--------------------- */

.hero {
  margin: 0 20px auto;
  padding: 80px 20px 30px;
}

.hero-content {
  max-width: 760px;
}

/* Location row */

.location {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 2px;
  font-family: "Urbanist", sans-serif;
  font-weight: 500;
  color: var(--green);
}

.location .dot {
  width: 10px;
  height: 10px;
  background-color: var(--green);
  border-radius: 50%;
}
#live-timezone{
  font-size: 20px;
}

/* Main hero heading */

.hero h1 {
  font-family: "Urbanist", sans-serif;
  font-size: clamp(28px, 4vw, 86px);
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: -0.2px;

}

.hero h1 strong {
  font-weight: 700;
}

/* Current role text */

.current {
  margin-top: 20px;

  font-family: "Urbanist", sans-serif;
  font-size: 22px;

  color: var(--muted);
}

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

.current a:visited,
.current a:hover,
.current a:focus {
  color: var(--text);
}

/* Company highlight */

.company {
  font-family: "Urbanist", sans-serif;
  font-weight: 600;
  color: var(--blue);
}

/* --------------------
   WORK SECTION
--------------------- */
.work-section {
  margin: 0 20px auto;
  padding: 80px 20px;
    padding-bottom: 40px; /* reduce from 80px */

}

.work-item {
  max-width: 800px;
  margin-bottom: 100px;
}

/* Year */
.year {
  font-size: 16px;
  color: #8a8a8a;
  display: block;
  margin-bottom: 12px;
}

/* Role + Company */
.work-item h3 {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 8px;
}

.work-item h3 a{
  text-decoration: none;
   color: var(--text);
   position: relative;
  display: inline-block;
}

.work-item h3 a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0%;
  height: 3px;
  background-color: var(--yellow);
  transition: width 0.3s ease;
  border-radius: 2px;
}

.work-item h3 a:hover::after {
  width: 100%;
}

.work-item h3 a:visited {
  color: var(--text);
}

.work-item h3 a:hover,
.work-item h3 a:focus {
  color: var(--text);
}

/* Description (Satoshi feel) */

.description {
  font-family: "Satoshi", "IBM Plex Sans", sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  letter-spacing: 1px;
  max-width: 700px;
  margin-bottom: 28px;
}

/* Default links inside description */

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

/* Highlight shipped product / brand references */

.brand-link {
  color: var(--blue);
}

/* Keep brand link blue even after click */

.brand-link:visited,
.brand-link:hover,
.brand-link:focus {
  color: var(--blue);
}

/* All OTHER links remain normal */

.description a:not(.brand-link):visited,
.description a:not(.brand-link):hover,
.description a:not(.brand-link):focus {
  color: var(--text);
}
.work-item:last-child {
  margin-bottom: 0;
}

.work-image img {
  width: 100%;
  display: block;
}

.work-image {
      transition: transform 0.45s ease;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 2px solid rgba(0, 0, 0, 0.10); /* subtle stroke */
}


.work-image:hover {
 transform: perspective(1200px) rotateZ(2.5deg) translateY(-4px);
}
/* --------------------
   SCROLL REVEAL
--------------------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.3s ease, transform 0.6s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
/* --------------------
   ILLUSTRATION SECTION
--------------------- */

.illustration-section {
  margin: 0 20px auto;
  padding: 20px;
}

/* Heading link */
.section-heading {
  display: inline-block;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 28px;
  font-weight: 600;
  color: #111;
  text-decoration: none;
  position: relative;
  margin-bottom: 12px;
}

/* Yellow underline hover effect */
.section-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0%;
  height: 3px;
  background-color: var(--yellow);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.section-heading:hover::after {
  width: 100%;
}

/* Description text */
.section-desc {
  font-family: "Satoshi", "IBM Plex Sans", sans-serif;
  font-size: 18px;
  color: var(--muted);
  letter-spacing: 1px;
  max-width: 520px;
  margin-bottom: 40px;
}


/* --------------------
   TIMELINE HEADER (shared layout)
--------------------- */

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.timeline-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.timeline-left h3{
  margin: 0;
}

.timeline-logo {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  object-fit: cover;
}

.role {
  font-size: 16px;
  color: #8a8a8a;

  position: relative;
  display: inline-block;
}

/* underline hidden initially */
.role::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;

  width: 0%;
  height: 3px;

  background-color: var(--yellow);
  border-radius: 2px;

  transition: width 0.3s ease;
}

/* show underline on hover */
.timeline-left:hover .role::after {
  width: 100%;
}

.timeline-right {
  text-align: right;
  font-size: 16px;
  color: #b1b1b1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}


/* --------------------
   ILLUSTRATION GRID
--------------------- */

.illustration-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  max-width: 800px;
  margin-top: 40px;
}

/* Illustration cards */

.illustration-card {
  display: block;
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(.22,.61,.36,1);
}

.illustration-card img {
  width: 100%;
  height: auto;
  display: block;
}

/* Hover motion (same language as project previews) */

.illustration-card:hover {
  transform: perspective(1200px) rotateZ(2deg) translateY(-6px);
}
/* =====================================================
   FOOTER
===================================================== */
.footer {
  margin: 0 0px auto;
  padding: 80px 0px 30px; /* reduced top + bottom spacing */
}


/* Main content */

.footer-main h2 {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.2;
  font-weight: 400;
  margin-bottom: 24px;
}

.footer-main h2 strong {
  font-family: "Rammetto One", cursive;
  font-weight: 400;
  letter-spacing: 0.3px;
}


/* Email link */

.footer-email {
  display: inline-flex;            /* fixes icon alignment */
  align-items: center;
  gap: 10px;

  font-size: 20px;
  color: var(--muted);

  text-decoration: none;
  border-bottom: 2px solid var(--yellow);
  padding-bottom: 4px;
  transition: color 0.2s ease;
}

.footer-email:hover {
  color: var(--text);
}


/* Email icon */

.email-icon {
  width: 18px;
  height: 18px;
  display: block;
}


/* Bottom row */

.footer-bottom {
  margin-top: 80px;                /* reduced from 120px */
  display: flex;
  justify-content: space-between;
  align-items: center;
}


/* Credit text */

.footer-credit {
  font-size: 18px;
  color: var(--muted);
}

.footer-credit a {
  text-decoration: none;
  color: var(--blue);
}

.footer-credit a:visited,
.footer-credit a:hover,
.footer-credit a:focus {
  color: var(--blue);
}

.footer-credit strong {
  color: var(--blue);
  font-weight: 900;
}
/* Scroll to top button */
/* ============================
   SCROLL TO TOP (FIXED)
============================ */
.scroll-top {

  width: 48px;
  height: 48px;

  border-radius: 50%;
  background: var(--text);
  border: none;

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

  cursor: pointer;

  color: var(--bg);

  transition: transform .2s ease;

}

.scroll-top:hover {
  transform: translateY(-3px);
}

.scroll-top svg {
  transition: transform .2s ease;
}

.scroll-top:hover svg {
  transform: translateY(-2px);
}

body.dark .scroll-top {
  background: #ffffff;
}

/* ============================
MOBILE RESPONSIVE FIX (FINAL)
============================ */

@media (max-width:768px){

/* GLOBAL SPACING */

.navbar,
.hero,
.work-section,
.illustration-section,
.footer{

margin-left:0;
margin-right:0;

padding-left:16px;
padding-right:16px;

}



/* NAVBAR */

.navbar{

padding:14px 16px;

display:flex;
justify-content:center;

}

.nav-left{

display:none;

}

/* floating quick links container */

.nav-right{

position:fixed;

top:14px;
right:12px;

padding:8px 14px;

gap:18px;

border-radius:999px;

/* Match desktop light mode navbar (transparent) */
/* restore soft beige blur */
background:rgba(251,247,239,.92);

backdrop-filter:blur(12px);
-webkit-backdrop-filter:blur(12px);

border:1px solid rgba(0,0,0,.06);


}

/* Dark mode: keep the glass dark background on mobile */
body.dark .nav-right{
background:rgba(15,15,16,.75);
backdrop-filter:blur(10px);
-webkit-backdrop-filter:blur(10px);
}

/* nav links */

.nav-right a{

font-size:14px;

white-space:nowrap;

}



/* HERO */

.hero{

padding-top:114px;
padding-bottom:32px;

}

.hero h1{

font-size:42px;

line-height:1.35;

}

.current{

font-size:16px;

}



/* WORK CARDS */

.work-item{

margin-bottom:56px;

}

/* timeline header stack */

.timeline-header{

flex-direction:column;

gap:8px;

}

.timeline-right{

align-items:flex-start;
text-align:left;

}

/* project title */

.work-item h3{

font-size:22px;

}

/* project description */

.description{

font-size:15.5px;

letter-spacing:.2px;

}



/* PROJECT IMAGE */

.work-image{

border-radius:6px;

}



/* ILLUSTRATIONS */

.illustration-grid{

grid-template-columns:1fr;

gap:12px;

}



/* FOOTER */

.footer{

padding: 0;
}

/* keep footer single row */

.footer-bottom{

display:flex;

flex-direction:row;

align-items:center;

justify-content:space-between;

margin-top:48px;

}

/* scroll button perfect center */


.scroll-top{

width:42px;
height:42px;

}

.scroll-top svg{

width:18px;
height:18px;

}




/* EMAIL LINK MOBILE */

.footer-email{

font-size:16px;

}

}
.work-item{

max-width:760px;

}