/* ======================
   Reset & Base Styles
====================== */
:root {
  --layout-side: 1vw;
  --navbar-width: 180px; /* width of navbar column */
  --font-heading: clamp(2.5rem, 3vw + 1rem, 5rem);;      /* for main headings */
  --font-subheading: clamp(.8rem, 1.5vw + 0.8rem, 3.5rem);   /* for subheadings */
  --font-boxheading: clamp(.4rem, 1.25vw + 0.8rem, 3.5rem);
  --font-body: clamp(0.2rem, 1vw + 0.1rem, 1.6rem);  /* for normal text */
  --font-nav: clamp(0.2rem, .9vw + 0.1rem, 1.6rem);
  --font-mobile:clamp(.8rem, 1vw + .9rem, 2.2rem);
  --font-mobile-about:clamp(.8rem, 1vw + .5rem, 2rem);
  --font-moblie-boxheading: clamp(.8rem, 1vw + 0.9rem, 3.5rem);
  --font-mobile-boxtitle: clamp(1.5rem, 1vw + 0.8rem, 5.5rem);
  --font-weight: 700;

  /* Fonts */
  --font-header-family: 'Inter', sans-serif;
  --font-body-family: 'Inter', sans-serif;
  --font-title-family: 'Inter', sans-serif;
  
  /* Colors */
  --color-red: #ff3b3b;     /* bright red */
  --color-maroon: #632b2b;
  --color-background-main: #121212;   /* orange */
  --color-background-alt: #1e1e1e;  /* dark grey background */
  --color-text: #e0e0e0;        /* main text */
  --color-muted: #b0b0b0;       /* lighter text */
}

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

html, body {
  height: 100%;
  background-color: var(--color-background-main);
  font-family: var(--font-body-family);
  color: #e0e0e0;
  scroll-behavior: smooth;
  line-height: 1.6;
  font-size: 75%;
}

h1, h2 {
  font-family: var(--font-header-family);
  font-weight: var(--font-weight); /* bold */
}

body, p, span, li, a:not(.desktop-nav a) {
  font-family: var(--font-body-family);
}

/* Container */
.container {
  margin: auto;   /* center horizontally */
}

.page-container {
  margin-top: 0px;  /* adjust vertical offset from top */
}

.page-container > section {
  flex: 1; /* take remaining width */
  margin-left: auto; /* ensures content doesn’t overlap navbar */
  margin-right: auto;
  display: flex;
  justify-content: center; /* horizontally center content */
}

.page-container > section .container {
  width: calc(100% - 16vw); /* full width minus navbar safe margins */
  padding: 0 15vw;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#about .container {
  justify-content: flex-start;  /* allow inner flexbox to control spacing */
  height: 100%;
}

/* Base Sections */
section {
  height: 100%;
  min-height: 100vh; /* 100% of viewport height */
  width: 100%;
  display: block;
  background-color: #121212;
  position: relative;
}

.section{
  position: relative;
  overflow: hidden;
}

.section .container{
  position: relative;
  z-index: 2;
}

/* Section Header */
.section-header {
  text-align: center;
  font-size: var(--font-heading);
  color: var(--color-text);
  margin-bottom: 4vh;
}

/* Subheader */
.section-subheader {
  text-align: center;
  font-size: var(--font-subheading);
  color: var(--color-text);
  margin-top: 5px;
  margin-bottom: 5px;
}

.section.about {
  position: relative;   /* container for absolute wave */
  overflow: hidden;
  min-height: 60vh;
  padding-top: 20vh; /* gives breathing room between waves and content */
  padding-bottom: 30vh;
}

.about-inner {
  display: flex;            /* REQUIRED */
  flex-direction: column;
  justify-content: space-between;
  height: 100%;             /* let it fill the container */
}

.section.work {
  position: relative;   /* container for absolute wave */
  overflow: hidden;
  min-height: 100vh;
}

/* Two-layer wave colors */
.top-wave-image {
  display: block;
  position: absolute;   /* stick to top of section */
  top: 0;
  left: 0;
  width: 100%;          /* full width */
  height: auto;         /* maintain aspect ratio */
  z-index: 0;           /* above section content */
  pointer-events: none; /* ignore clicks */
  shape-rendering: geometricPrecision; /* improves curve smoothness */
  image-rendering: optimizeQuality;    /* if it falls back to raster in some browsers */
}

.bottom-wave-image {
  display: block;
  position: absolute;   /* stick to top of section */
  bottom: 0;
  left: 0;
  width: 100%;          /* full width */
  height: auto;         /* maintain aspect ratio */
  z-index: 0;           /* above section content */
  pointer-events: none; /* ignore clicks */
  shape-rendering: geometricPrecision; /* improves curve smoothness */
  image-rendering: optimizeQuality;    /* if it falls back to raster in some browsers */
}

/* Alternating background colors */
.section:nth-child(odd) {
  background-color: var(--color-background-main); /* dark grey, your GPT grey */
}

.section:nth-child(even) {
  background-color: var(--color-background-alt); /* slightly lighter grey */
}

.page-container > section:nth-child(odd) {
  background-color: var(--color-background-main); /* About, Experience, etc. */
}

.page-container > section:nth-child(even) {
  background-color: var(--color-background-alt); /* Work, etc. */
}

#headshot.clicked {
  animation: clickPulse 0.1s ease-out;
}

@keyframes clickPulse {
  0% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.04); filter: brightness(1.4); }
  100% { transform: scale(1); filter: brightness(1); }
}

/* Desktop Navbar */
.desktop-navbar {
  position: fixed;
  top: var(--layout-side);
  left: var(--layout-side);
  z-index: 1000;
  max-width: 20vw;

  display: flex;
  align-items: center;
  gap: .75em;
  font-weight: var(--font-weight);
}

.desktop-nav {
  display: flex;
}

.desktop-nav li {
  list-style: none;
}

.desktop-nav a {
  white-space: nowrap;  /* prevents text from breaking into multiple lines */
  text-decoration: none;
  color: #e0e0e0;
  padding: 0.6em 0.6em;
  transition: all 0.3s ease;
  font-family: var(--font-header-family);
  font-size: var(--font-nav);
}

.highlight-name {
color: var(--color-red); /* or any red you prefer */
}

.desktop-nav a:hover {
  background-color: #292929;
  transform: translateY(-2px);
}

.landing-btn img {
  width: 2vw;
  height: 2vw;
  cursor: pointer;
}

.landing-buttons-row {
  display: flex;
  justify-content: flex-start; 
  margin-top: 1rem;     
  margin-left: 1rem;       
  width: 100%;
}

.landing-buttons {
  display: flex;
  gap: 2rem;
}

.landing-buttons a {
  padding: clamp(0.5rem, 1vw, 1.5rem) clamp(1.8rem, 2vw, 3rem); ;
  border-radius: 12px;
  font-size:  var(--font-body);
  font-weight: var(--font-weight);
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
  border: 2px solid transparent;
}

.btn-contact {
  background: var(--color-text);
  color: #1e1e1e;
}

.btn-contact:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 25px rgba(255, 15, 15, 0.2);
}

.btn-resume {
  background: #1e1e1e;
  color: var(--color-text);
  border-color: #ffffff;
}

.btn-resume:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 25px rgba(252, 14, 14, 0.1);
}



/* Skills Grid */

.skills-wrapper{
  margin-left: 2vh;
  margin-right: 2vh;
}
.skills-divider {
  width: 50%;
  border: 1px solid var( --color-text);
  margin: 0 auto 40px; /* auto left & right centers it */
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3vw;
  width: 100%;   /* fills the safe section width */
  justify-items: stretch;
  margin-bottom: 50px;
}

.skill-tile {
  perspective: 1000px; /* required for 3D flip effect */
  width: 100%;      /* fixed width matches the grid column */
  aspect-ratio: 1.5 / 1; /* makes it a square */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s, box-shadow 0.3s;
  background: none; /* remove outer background */
}

/* Inner tile that flips */
.skill-tile-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transition: transform 0.6s;
  transform-style: preserve-3d;
  cursor: pointer;
}

.skill-tile:hover .skill-tile-inner{
  box-shadow: 0 0 25px rgba(255,59,59,0.6);
}

/* Flip on click */
.skill-tile-inner.flipped {
  transform: rotateY(180deg);
}

.skill-tile-front,
.skill-tile-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
  padding: 15px;
  color: #e0e0e0;
  background-color: #121212;
}

.skill-tile-back {
  transform: rotateY(180deg);
  font-size: var(--font-body);
  text-align: center;
  line-height: 1.4;
}

.skill-tile img {
  width: clamp(20px, 3.5vw, 80px);   /* min 40px, grows with viewport, max 80px */
  height: clamp(20px, 3.5vw, 80px);  /* keep height proportional */
  margin-bottom: clamp(8px, 1vw, 15px); /* optional: scale margin too */
  filter: invert(22%) sepia(95%) saturate(6000%) hue-rotate(350deg) brightness(100%) contrast(90%);
  user-select: none;
}

.skill-tile p {
  color: #e0e0e0;
  font-weight: var(--font-weight);
  font-size: var(--font-body);
  text-align: center;
  user-select: none;
}



/* Tags */
.modules-normal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;      /* space from title */
  margin-bottom: 0.5rem;
}

/* Module tags */
.module-normal-tag {
  background-color: var(--color-maroon);
  color: var(--color-text);
  padding: 0.5rem 1.2rem; /* a bit more vertical and horizontal padding */
  white-space: nowrap;
  border-radius: 999px;
  font-size: clamp(.7rem, .5vw + 0.7rem, 2.2rem);
  text-decoration: none;
  font-weight: var(--font-weight);
  border: 1px solid #ff3b3b;   /* add 'solid' */
}

.site-footer {
  background-color: var(--color-background-main);
  text-align: center;
  padding-bottom: 2rem;
  color: var(--color-text);
}

.footer-icons {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-icon {
  position: relative;
  display: inline-block;
  z-index: 2333;
}

.footer-icon img {
  width: 40px;
  height: 40px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.footer-icon:hover img {
  transform: scale(1.15);
}

/* Tooltip */
.footer-icon .tooltip {
  position: absolute;
  bottom: -35px;
  left: 50%;
  transform: translateX(-50%);
  background: #757575;
  color: #ffffff;
  padding: 6px 6px;
  border-radius: 6px;
  font-size: var(--font-body);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.35);
}

.footer-icon:hover .tooltip {
  opacity: 1;
}

.footer-contact{
  margin: 0.4rem 0;
  font-size: var(--font-body);
  color: var(--color-red);
}

.footer-tech,
.footer-name,
.footer-email,
.footer-phone {
  margin: 0.4rem 0;
  font-size: var(--font-body);
}

.footer-name{
  margin-bottom: 2rem;
}
.footer-email a {
    color: inherit;
    text-decoration: none;
}

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

.footer-email a:hover {
    text-decoration: underline;
}

.github-icon {
  filter: brightness(0) invert(1);
}

/* ======================
   Mobile Navbar / Overlay
====================== */
.mobile-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background-color: #121212;
  display: flex;
  align-items: center;
  padding: 0 20px;
  z-index: 1001;
  box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.nav-toggle {
  font-size: var(--font-mobile);
  cursor: pointer;
  color: #e0e0e0;
}

.mobile-overlay {
  position: fixed;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background-color: #121212;
  color: #e0e0e0;
  z-index: 21002;
  transition: left 0.4s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.mobile-overlay.active {
  left: 0;
}

.overlay-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 100px;
  gap: 20px;
  font-size: 2rem;
}

.overlay-landing-btn img {
  width: 12vw;
  height: 12vw;
  cursor: pointer;
}

.overlay-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: center;
}

.overlay-links a {
  color: #e0e0e0;
  text-decoration: none;
  font-size: 1.8rem;
  transition: background 0.3s;
}

.overlay-links a:hover {
  background-color: #292929;
  border-radius: 8px;
  padding: 10px 0;
}

.overlay-close {
  font-size: 1.8rem;
  color: #e0e0e0;
  background: none;
  border: none;
  cursor: pointer;
  margin-bottom: 40px;
}

.landing-flex,
.landing-text {
  position: relative;
  z-index: 10;
}

#secret-wrapper {
  position: absolute;
  left: 70%;
  transform: translateX(-70%);
  background: #fff;
  color: #000;
  padding: 20px 25px;
  border-radius: 20px;
  font-weight: bold;
  box-shadow: 0 15px 20px rgba(0, 0, 0, 0.4); /* bigger, softer shadow */
  min-width: 160px;
  text-align: center;
  display: none;
  z-index: 1000333333330;
  overflow: visible;  
  border: 3px solid #fff; /* ensures no grey border */
}

#secret-wrapper::after {
  content: "";
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-top: 18px solid #fff;
  overflow: visible;  
}

#secret-text {
  font-size: var(--font-body);
  font-weight: var(--font-weight);
}

@media (max-width: 768px) {
  .desktop-navbar,
  .timeline,
  .skills-grid{
  display: none;
  }

 #secret-wrapper {
    display: none !important;
  }

  #headshot.clicked {
    animation: none !important;
  }
  
  .page-container > section .container {
    width: 100%;
    padding: 0 0;
  }

  .page-container > section .container {
    width: calc(100% - 10vw); /* full width minus navbar safe margins */
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .section{
    min-height: auto;
    scroll-margin-top: 180px;
  }

  .section.about{
    scroll-margin-top: 60px;
  }

  .section.work{
    scroll-margin-top: 120px;
  }

  .section-header {
    text-align: center;
    font-size: var(--font-heading);
    margin-bottom: 2vh;
  }

  .landing {
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 16.5vh;
    margin-bottom: 3vh;
  }

  /* Landing Image as circle */
  .landing-image img {
    width: clamp(200px, 50vw + 0rem, 70vw);   /* Scales with screen, but stays reasonable */
    height: clamp(200px, 50vw + 0rem, 70vw);   /* Keep it a perfect circle */
    border-radius: 50%;     /* makes it circular */
    background: linear-gradient(
    to top,
    rgba(255, 0, 0, 0.9) 0%,
    rgba(255, 0, 0, 0.6) 15%,
    rgba(255, 0, 0, 0.2) 35%,
    transparent 75%
  );
    border: 2px solid #ffffff; /* white border */
    object-fit: cover;
    margin-bottom: 1rem;
  }

  .landing-text {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;   /* keeps the title centered */
  }

  /* Name / main heading */
  .landing-text h3 {
    font-size: var(--font-heading);
    text-align: center;
  }

  .landing-text h4 {
    display: none;
  }

  /* Subdivider spanning width */
  .landing-divider {
    width: 100%;            /* almost full width */
    border: 1px solid #e0e0e0;
    margin: 0 auto;
    margin-bottom: 1vh;
  }

  /* Subheading / intro text */
  .landing-text p {
    font-size: 1rem;
    color: var(--color-muted);
    line-height: 1.5;
    text-align: justify;      
    text-align-last: left;
    text-justify: inter-word; /* default in most browsers */
    hyphens: auto;
  }

  .landing-buttons-row {
    display: flex;
    justify-content: center;   /* center the whole button row */
    width: 100%;
    margin-top: 1rem;
    margin-left: 0rem;   
  }

  .landing-buttons {
    display: flex;
    justify-content: center;   /* center the buttons inside */
    gap: 2rem;
    width: 100%;               /* stretch the full container */
  }

  .landing-buttons a {
    font-size:  var(--font-mobile);
    padding: 1rem 1.2rem;   /* tighter mobile-friendly spacing */
    width: 100%;            /* stretch full width if desired */
    text-align: center;
  } 

  .landing-box-parent {
      display: flex;
      flex-direction: column;
      align-items: center;
  }

  /* Shared width for text, divider, and buttons */
  .landing-mobile-column {
    width: 100%;
  }

  /* Make divider match exactly */
  .landing-divider {
    width: 100%;
  }

/* =================
      ABOUT
===================*/
.section.about {
  position: relative;   /* container for absolute wave */
  overflow: hidden;
  padding-top: 8vh; /* gives breathing room between waves and content */
  padding-bottom: 10vh;
}

.about-inner {
  display: flex;            /* REQUIRED */
  flex-direction: column;
  justify-content: space-between;
  height: 100%;             /* let it fill the container */
  max-width: 95vw;
}
/* ==================
        SKILLS
===================*/

.skills-divider {
  width: 100%;
  border: 1px solid var( --color-text);
  margin: 0 auto 10px; /* auto left & right centers it */
}

.skills-mobile{
  margin-bottom: 20px;
}

/* ================
    Education Mobile
   ================ */

.education-divider {
  width: 100%;
  border: 1px solid var( --color-text);
  margin: 0 auto 30px; /* auto left & right centers it */
}

.timeline-mobile {
  max-width: 95vw;
  --line-left: 4vw;     /* fixed anchor — does not scale */
  --dot-size: 6vw;
  position: relative;
  padding-left: calc(var(--line-left) + var(--dot-size));
}

/* Vertical line */
.timeline-mobile::before {
  content: "";
  position: absolute;
  left: var(--line-left);
  top: 0;
  bottom: 0;
  width: 2px;
  background: #e0e0e0;
  z-index: 1;
}

/* Each item */
.timeline-mobile-item {
  display: flex;
  margin-bottom: 2rem;
}

.timeline-mobile-content {
  margin-top: -10px; /* adjust the 0.4rem if needed */
}

/* The dot */
.timeline-mobile-circle {
  position: absolute;
  left: calc(var(--line-left) - (var(--dot-size) / 2) + 1px);
  width: var(--dot-size);
  height: var(--dot-size);
  background: var(--color-red);
  border-radius: 50%;
  z-index: 3;
}

/* The date — now flex aligned with the dot */
.timeline-mobile-date {
  font-size: var(--font-mobile);
  white-space: nowrap;
  font-weight: var(--font-weight);
}

/* Details box */
.timeline-mobile-details {
  padding: 1rem;
  border-radius: 14px;
}

.timeline-title{
  display: block;
  font-size: var(--font-moblie-boxheading);
  font-weight: var(--font-weight);
  color: white;
}

.timeline-college{
  display: block;
  font-size: var(--font-mobile);
  font-weight: var(--font-weight);
}

.timeline-mobile-content .modules-normal {
  display: flex;
  flex-wrap: wrap;
  justify-content: left;
  gap: 0.5rem;
  margin-top: 0.5rem;      /* space from title */
  margin-bottom: 0.5rem;
}

/* Work Grid */

.work-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr); /* 2 columns */
  grid-auto-rows: 1fr;                  /* rows same height as columns */
  gap: 15vw;;                             /* space between tiles */
  width: 100%;
  margin: 0 auto;
  padding-bottom: 10vw;
}

/* Each work tile */
.work-tile {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;                  /* make it square */
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

.work-tile::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 30%;            /* height of fade */
  pointer-events: none;
  z-index: 2;

  /* Fade from transparent → solid background color */
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0) 0%,
    rgba(87, 87, 87, 0.6) 100%
  );
}

/* Logos not in capsule */
.tile-logo {
  width: clamp(35vw, 8vw, 60vh);
  height: auto;
  display: block;
  margin: 1rem auto 0 auto;  /* top margin + horizontal center */
}

.work-tile h3 {
  text-align: center;
  margin: 0.5rem 0;
  font-size: var(--font-mobile-boxtitle);                   /* bigger title */
  font-weight: var(--font-weight);
  color: #ffffff;                    /* reddish tint */
  text-shadow: 0 2px 5px rgba(0,0,0,0.6);
}

.work-tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(255,59,59,0.5);
}
/* Background image stretched */
.tile-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform 0.5s;
}

.work-tile:hover .tile-background {
  transform: scale(1.05); /* subtle zoom on hover */
}

/* Clickable content container */
.work-tile a {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* stack content from top */
  align-items: center;         /* horizontally center all content */
  height: 100%;
  position: relative;
  z-index: 1;
  padding: 0.5rem;
}

/* =================
  EXPERIENCE MOBILE
===================*/

#experience .section-header {
  margin-bottom: -2vh;
}

.section.experience{
  position: relative;   /* container for absolute wave */
  min-height: 100vh;
}

/* Container for all experience cards */
.experience .container {
    display: flex;
    flex-direction: column;
    gap: 3rem; /* space between each exp card */
    z-index: 1;
}

#experience {
    padding-top: 20vw;   /* big padding above the section */
    padding-bottom: 20vw; /* big padding below the section */
    z-index: 1;
}

/* Main card layout */
 .exp-card {
    display: grid;
    grid-template-rows: auto auto 1fr auto auto; /* title / company / description box / bullets / modules */
    gap: 1rem;
    padding: 1rem;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.6);
    min-height: 70vh; /* adjust if needed */
  }

  .exp-header {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
  }

  .exp-title,
  .exp-company-date {
    margin: 0;
    font-size: var(--font-mobile);
  }

  /* Make only the description scrollable */
  .exp-description-wrapper {
    position: relative;
    background: #222;       /* matches card background */
    border-radius: 12px;
    padding-right: 6px;     /* space to push scrollbar inward */
    padding-top: 6px;     /* space to push scrollbar inward */
    padding-bottom: 6px;
    height: 30vh;           /* match your previous max-height */
    overflow: hidden;       /* hide overflow outside wrapper */
  }

  /* Scrollable content */
  .exp-description {
      height: 100%;
      overflow-y: auto;
      padding-right: 2px;        /* no extra padding here */
      padding-left: 6px;
  }

  .exp-description::-webkit-scrollbar {
    width: 4px;               /* width of scrollbar */
  }

  .exp-description::-webkit-scrollbar-track {
      border-radius: 12px;
  }

  .exp-description::-webkit-scrollbar-thumb {
      background: #8f8f8f;       /* bright red thumb */
      border-radius: 12px;
  }

  .exp-description::-webkit-scrollbar-thumb:hover {
      background: #818181;       /* lighter red on hover */
  }

.exp-description p {
    margin-bottom: 3rem; /* space after each paragraph */
    line-height: 1.6;
    font-size: var(--font-mobile);
}

.exp-description h4 {
    margin-top: .15rem;   /* space before each heading */
    margin-bottom: .15rem; /* space after heading before next paragraph */
    color: #ffffff;
    font-size: var(--font-mobile);
}

  /* Bullets and modules below scrollable box */
  .exp-bullets,
  .modules-normal {
    margin: 0;
  }

  /* Add spacing above bullets and prevent overflow */
  .exp-bullets {
      padding-left: 1.5rem;   /* give room for bullet points */
      margin-top: 1rem;       /* gap between description and bullets */
      list-style: disc;
      font-size: var(--font-mobile);
  }

  /* Optional: give a little breathing room between individual bullets */
  .exp-bullets li {
      margin-bottom: 0.75rem;
  }

  .modules-normal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }

  /* ================
     Footer
  ==================*/

  .footer-tech,
  .footer-name,
  .footer-email,
  .footer-phone,
  .footer-contact {
    margin: 0.4rem 0;
    font-size: var(--font-mobile);
  }
}

/* ======================
   Desktop Styles
====================== */
@media (min-width: 769px) {

/* Hide mobile elements on desktop */
.mobile-header,
.timeline-mobile,
.skills-mobile,
.mobile-overlay {
  display: none;
}

.section{
  min-height: auto;
  scroll-margin-top: 180px;
}

.section.about{
  scroll-margin-top: -60px;
}

.section.work{
  scroll-margin-top: 120px;
}

.section.experience{
  scroll-margin-top: -1020px;
  
}
.landing-box {
  position: relative;
  width: 100%;
  margin: 0 auto;
  padding-top: 10rem;
  padding-left: 1rem;
  border-radius: 30px;
  overflow: hidden;

  backdrop-filter: blur(10px);    /* optional glass effect */

  display: flex;
  justify-content: flex-start;
  align-items: flex-end;          /* aligns content bottom */
}

/* Landing Section */
.landing {
  justify-content: flex-start;
  align-items: left;
  height: 100vh;       /* full viewport height */
  text-align: left;
}

.landing-flex {
  display: flex;
  flex-direction: row;      /* horizontal layout */
  align-items: center;      /* vertical centering of text & image */
  justify-content: space-between;
  gap: 50px;
}

.landing-image {
  position: absolute;
  bottom: 0;
  right: 0;
  width: clamp(15vw, 15.5vw, 60vw);
  z-index: 1;         /* behind the text if needed */
}

.landing-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}
/* Landing Text */
.landing-text {
  width: 60%;
  display: flex;
  flex-direction: column;    /* name, divider, intro stacked */
  justify-content: flex-start;
}

.landing-text h3 {
  font-size: var(--font-heading);
  margin-bottom: 0px;
  font-family: var(--font-title-family);
  font-weight: var(--font-weight); /* bold */
}

.landing-text h4 {
  font-size: var(--font-subheading);
  margin-bottom: 0px;
  margin-top: -10px;
  font-family: var(--font-title-family);
  font-weight: var(--font-weight); /* bold */
}

.landing-divider {
  width: 100%;
  border: 1px solid #e0e0e0;
  margin: 0px 0;     /* space above and below */
}

.landing-text p {
  font-size: var(--font-body);
  line-height: 1.5;          /* nicer readability */
  margin: 10px 0;   
  color: #b0b0b0;
  text-align: justify;      
  text-align-last: left;
}



/* ======================
   Education Timeline
====================== */

.timeline {
  position: relative;
  flex-grow: 1; /* make timeline fill the vertical space between top/bottom */
}

.education-divider {
  width: 50%;
  border: 1px solid var( --color-text);
  margin: 0 auto 40px; /* auto left & right centers it */
}

/* Central vertical line */
.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background-color: #e0e0e0;
  transform: translateX(-50%);
  z-index: 1;
}

/* Individual timeline item */
.timeline-item {
  position: relative;
  width: 50%;
  box-sizing: border-box;
  z-index: 2;
}

/* Alternating sides */
.timeline-item.left {
  left: 0;
  text-align: right;
  padding-right: 2rem;
}

.timeline-item.right {
  left: 50%;
  text-align: left;
  padding-left: 2rem;
}

/* Dot */
.timeline-dot {
  position: absolute;
  top: 0; /* aligns dot at the top of the line */
  width: clamp(30px, 2vw, 50px);
  height: clamp(30px, 2vw, 50px);
  background-color: var(--color-red);
  border-radius: 50%;
  z-index: 3;
}

/* Align dot center on the line */
.timeline-item.left .timeline-dot {
  right: calc(clamp(30px, 2vw, 50px) / 2 * -1); /* half of dot width to center over line */
}

.timeline-item.right .timeline-dot {
  left: calc(clamp(30px, 2vw, 50px) / 2 * -1);;
}

/* Timeline content box */
.timeline-content {
  background-color: var(--color-background-alt);
  padding: 1rem 1rem;
  border-radius: 18px;
  display: inline-block;
  max-width: 100%;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* Course title and date inline with dot */
/* Titles and Dates */
.timeline-title {
  font-weight: var(--font-weight);
  display: block;
  margin-bottom: 0.2rem;
  font-size: var(--font-boxheading);
}

.timeline-college {
  display: block;
  font-size: var(--font-body);
  color: var(--color-muted);
  margin-bottom: 0.2rem;
}

.timeline-date {
  display: block;
  font-size: var(--font-body);
  color: var(--color-muted);
  margin-bottom: 0.5rem;
}

.timeline-date {
  font-size: 1rem;
  color: var(--color-muted);
}

/* Modules list below the title, alternating sides */
.timeline-item.left .modules-normal {
  justify-content: flex-end; /* right-justify modules for left items */
  text-align: right;
}

.timeline-item.right .modules-normal {
  justify-content: flex-start; /* left-justify modules for right items */
  text-align: left;
}

.timeline-item.in-view {
  opacity: 1;
  transform: translateY(0);
}


/* ================
      My Work
==================*/

/* Work Grid */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 columns */
  grid-auto-rows: 1fr;                  /* rows same height as columns */
  gap: 4vw;;                             /* space between tiles */
  width: 100%;
  margin: 0 auto;
}

/* Each work tile */
.work-tile {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;                  /* make it square */
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

/* Logos not in capsule */
.tile-logo {
  width: clamp(10vh, 8vw, 60vh);
  height: auto;
  display: block;
  margin: 1rem auto 0 auto;  /* top margin + horizontal center */
}

.work-tile h3 {
  text-align: center;
  margin: 0.5rem 0;
  font-size: var(--font-boxheading);                   /* bigger title */
  font-weight: var(--font-weight);
  color: #ffffff;                    /* reddish tint */
  text-shadow: 0 2px 5px rgba(0,0,0,0.6);
}

.work-tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(255,59,59,0.5);
}
/* Background image stretched */
.tile-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform 0.5s;
}

.work-tile:hover .tile-background {
  transform: scale(1.05); /* subtle zoom on hover */
}

/* Clickable content container */
.work-tile a {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* stack content from top */
  align-items: center;         /* horizontally center all content */
  height: 100%;
  position: relative;
  z-index: 1;
  padding: 0.5rem;
}

/* ================
Experience Section
==================*/

/* Experience Section */
#experience .section-header {
  margin-bottom: -2vh;
}

.section.experience{
  position: relative;   /* container for absolute wave */
  min-height: 100vh;
}

/* Container for all experience cards */
.experience .container {
    display: flex;
    flex-direction: column;
    gap: 3rem; /* space between each exp card */
    z-index: 1;
}

#experience {
    padding-top: 30vh;   /* big padding above the section */
    padding-bottom: 30vh; /* big padding below the section */
    z-index: 1;
}

/* Main card layout */
.exp-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* top -> middle -> bottom layout */
  min-height: 300px; /* make it taller */
  padding: 2rem; /* adjust for breathing room */
  background: #1a1a1a;
  border-radius: 1.5rem;
  border: 0.1rem solid rgba(255,255,255,0.15);
  box-shadow: 0 8px 20px rgba(0,0,0,0.6); /* black shadow */  
}

/* Header section */

.exp-title {
    font-size: var(--font-boxheading);
    font-weight: var(--font-weight);
    margin: 0;
}

.exp-company-date {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: var(--font-weight);
}

.exp-separator {
    font-weight: var(--font-weight);
    opacity: 0.7;
}
.exp-company-date {
    font-size: var(--font-body);
    opacity: 0.9;
}

.exp-body {
    height: 40vh; /* relative height */
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.exp-description-wrapper{
    flex: 1;                 /* take remaining space inside exp-body */
    overflow-y: auto;        /* enable vertical scroll */
    padding-right: 0.5rem;   /* optional: space for scrollbar */
    font-size: var(--font-body);
    line-height: 1.6;
    color: #e0e0e0;
    background: #222;       /* matches card background */
    overflow: hidden;       /* hide overflow outside wrapper */
    border-radius: 12px;
    padding-right: 6px;     /* space to push scrollbar inward */
    padding-top: 6px;     /* space to push scrollbar inward */
    padding-bottom: 6px;
}

/* Description text */

  .exp-description {
      height: 100%;
      overflow-y: auto;
      padding-right: 1.5rem;        /* no extra padding here */
      padding-left: 1rem;
  }
.exp-description::-webkit-scrollbar {
    width: 12px;               /* width of scrollbar */
}

.exp-description::-webkit-scrollbar-track {
    background: #632b2b;       /* maroon track */
    border-radius: 10px;
}

.exp-description::-webkit-scrollbar-thumb {
    background: #ff3b3b;       /* bright red thumb */
    border-radius: 10px;
    border: 3px solid #632b2b; /* maroon border around thumb */
}

.exp-description::-webkit-scrollbar-thumb:hover {
    background: #ff5c5c;       /* lighter red on hover */
}

.exp-description h4 {
    font-size: var(--font-body);
    font-weight: var(--font-weight);
    margin-top: .75rem;
    margin-bottom: 0.75rem;
    color: #ffffff;
}

.exp-description p {
    margin-bottom: 5rem;
}

/* Bullet list */
.exp-bullets {
    padding-left: 1.2rem;
    list-style: disc;
    font-size: var(--font-body);
}

.exp-bullets li {
    margin-bottom: 1rem;
}

/* Two-column desktop layout */
  .exp-body {
      display: grid;
      grid-template-columns: 1fr 20vw;
      gap: 3vw;
      margin-bottom: 10vh;
  }

  /* Desktop description scroll limit */
  .exp-desc {
      max-height: 40vh;
      overflow-y: auto;
      padding-right: 1rem;
  }
}