:root {
  --bg-dark: #f8f9fa;
  --bg-timeline: #e9ecef;
  --accent: #6c757d;
  --accent-timeline: #495057;
  --text-main: #212529;
  --cube-size: 500px;
  --cube-blur: 0px;
  --tab-switcher-bg: #dee2e6;
  --tab-btn-active: #ced4da;
}

body {
  background: var(--bg-dark);
  color: var(--text-main);
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
}

*, *::before, *::after {
  font-family: inherit;
}

.cube-bg {
  position: fixed;
  top: 50%;
  left: 50%;
  width: var(--cube-size);
  height: var(--cube-size);
  z-index: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
  filter: blur(var(--cube-blur));
  transition: filter 0.5s cubic-bezier(.25,1,.5,1);
}
.cube {
  position: relative;
  width: var(--cube-size);
  height: var(--cube-size);
  transform-style: preserve-3d;
  transform: rotateX(-20deg) rotateY(20deg);
  transition: transform 0.2s cubic-bezier(.25,1,.5,1);
}
.face {
  position: absolute;
  width: var(--cube-size);
  height: var(--cube-size);
  background: linear-gradient(135deg,rgb(229, 208, 167, 0.8) 60%, #d6ccc7 100%);
  border:1.5px solid #ddcfb9;
  box-shadow: 0 0 64px 4px #d3cbb655, 0 0 0 1px #e9ecef inset;


   border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}
.front  { transform: translateZ(calc(var(--cube-size) / 2)); }
.back   { transform: rotateY(180deg) translateZ(calc(var(--cube-size) / 2)); }
.right  { transform: rotateY(90deg) translateZ(calc(var(--cube-size) / 2)); }
.left   { transform: rotateY(-90deg) translateZ(calc(var(--cube-size) / 2)); }
.top    { transform: rotateX(90deg) translateZ(calc(var(--cube-size) / 2)); }
.bottom { transform: rotateX(-90deg) translateZ(calc(var(--cube-size) / 2)); }

.content {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: 0 8vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 100vh;
}

header {
  margin-top: 10vh;
  text-align: center;
}
.subtitle {
  color: var(--accent);
  font-size: 1.2em;
  margin-top: 0.4em;
  letter-spacing: 0.1em;
}
.intro {
  margin: 6vh auto 12vh;
  font-size: 1.3em;
  text-align: center;
  max-width: 520px;
  color: #495057;
}

.intro-content {
  background: rgba(255, 255, 255, 0.9);
  padding: 2em;
  border-radius: 16px;
  box-shadow: 0 4px 16px 0 #e2e4e633;
}
.scroll-arrow {
  font-size: 2em;
  margin-top: 2em;
  color: var(--accent);
  animation: bounce 1.2s infinite alternate cubic-bezier(.5,0,1,1);
}
@keyframes bounce {
  0%   { transform: translateY(0); }
  100% { transform: translateY(16px); }
}

/* TAB SWITCHER */
.tabs-section {
  width: 100vw;
  max-width: 1200px;
  margin: 0 auto;
  margin-top: 10vh;
  margin-bottom: 10vh;
  background: var(--bg-timeline);
  border-radius: 2vw;
  box-shadow: 0 6px 32px 0 #6c757d44;
  position: relative;
  padding: 3em 0 4em 0;
}
.tab-switcher {
  width: 360px;
  max-width: 95vw;
  margin: 0 auto 2.8em auto;
  background: var(--tab-switcher-bg);
  border-radius: 2em;
  display: flex;
  align-items: center;
  position: relative;
  box-shadow: 0 2px 16px 0 #6c757d33;
  overflow: hidden;
}
.tab-btn {
  flex: 1;
  padding: 0.9em 0;
  border: none;
  outline: none;
  background: none;
  color: #495057;
  font-size: 1.09em;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  z-index: 1;
  transition: color 0.25s;
  position: relative;
}
.tab-btn.active,
.tab-btn:focus-visible {
  color: var(--accent);
  background: var(--tab-btn-active);
}
.tab-indicator {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, #ced4da 60%, var(--accent-timeline) 100%);
  border-radius: 2em;
  z-index: 0;
  transition: left 0.33s cubic-bezier(.6,.1,.3,1);
}

/* TAB CONTENT */
.tab-content {
  display: none;
  opacity: 0;
  transform: translateY(40px) scale(0.97);
  pointer-events: none;
  transition: opacity 0.65s cubic-bezier(.25,1,.5,1), transform 0.7s cubic-bezier(.25,1,.5,1);
}
.tab-content.visible {
  display: block;
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

/* TIMELINE */
.timeline-title {
  font-size: 1.35em;
  font-weight: bold;
  color: #495057;
  margin-left: 2vw;
  margin-bottom: 2.8em;
  margin-top: 0;
  letter-spacing: 0.02em;
}
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 98%;
  margin: 0 auto;
}
.timeline-row {
  display: grid;
  grid-template-columns: 1fr 54px 1fr;
  grid-template-rows: auto;
  min-height: 180px;
  align-items: center;
  position: relative;
}
.timeline-row:not(:last-child) {
  margin-bottom: 10px;
}
.timeline-item {
  z-index: 2;
}
.timeline-item.left {
  grid-column: 1;
  justify-self: end;
}
.timeline-item.right {
  grid-column: 3;
  justify-self: start;
}
.timeline-content {
  background: #ffffff;
  color: #212529;
  border-radius: 14px;
  padding: 2em 2.2em 1.1em 2.2em;
  min-width: 275px;
  max-width: 410px;
  box-shadow: 0 2px 24px 0 #6c757d99;
  font-size: 1.07em;
  display: flex;
  flex-direction: column;
  gap: .4em;
}
.timeline-date {
  font-size: 1em;
  color: #6c757d;
  margin-bottom: .1em;
}
.timeline-role {
  font-size: 1.3em;
  font-weight: bold;
  color: #212529;
  margin-bottom: .5em;
}
.timeline-org {
  font-weight: bold;
  font-size: 1.07em;
  color: var(--accent-timeline);
  margin-bottom: .4em;
}
.timeline-content ul {
  margin: 0.7em 0 0 1em;
  padding: 0;
  color: #495057;
}
.timeline-content li a {
  color: var(--accent-timeline);
  text-decoration: underline;
  font-weight: 500;
}
.timeline-content li a:hover {
  text-shadow: 0 0 4px var(--accent-timeline);
}
.timeline-point {
  grid-column: 2;
  justify-self: center;
  align-self: center;
  z-index: 3;
  position: relative;
  width: 22px;
  height: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.timeline-point:before {
  content: "";
  display: block;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--accent-timeline), transparent 98%);
  border-radius: 2px;
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  z-index: 1;
}
.timeline-point:after {
  content: "";
  display: block;
  border-radius: 50%;
  background: var(--bg-timeline);
  border: 4px solid var(--accent-timeline);
  width: 22px;
  height: 22px;
  box-shadow: 0 0 0 6px #6c757d77;
  position: absolute;
  top: 25px;
  left: 0;
  z-index: 2;
}

@media (max-width: 900px) {
  .timeline-content { min-width: 0; max-width: 94vw; padding: 1em 0.9em 0.7em 0.9em;}
}
@media (max-width: 700px) {
  .tabs-section { padding: 0.8em 0.2em 2.5em 0.2em; }
  .timeline-row { display: block; min-height: unset; }
  .timeline-item.left, .timeline-item.right {
    margin-bottom: 1.7em;
    justify-self: unset;
  }
  .timeline-content {
    margin-left: 0;
    min-width: unset;
    max-width: 95vw;
    font-size: 1em;
    margin-bottom: 1em;
  }
  .timeline-point { display: none; }
  
  /* Mobile cube adjustments */
  :root {
    --cube-size: 350px;
  }
  
  .cube-bio, .cube-info, .cube-contact, .cube-title, .cube-experience {
    padding: 15px;
  }

  .cube-bio {
    max-width: 40%;
  }
  
  .cube-bio h2, .cube-info h2, .cube-contact h2, .cube-experience h2 {
    font-size: 1.2em;
  }
  
  .cube-title h1 {
    font-size: 1.5em;
  }
  
  .cube-bio p, .cube-contact p, .cube-experience p {
    font-size: 0.8em;
  }
  
  .cube-info li {
    font-size: 0.8em;
  }
}

/* PROJECTS TAB */
.projects-title,
.awards-title {
  font-size: 1.3em;
  font-weight: bold;
  color: #495057;
  margin-left: 2vw;
  margin-bottom: 2em;
  margin-top: 0;
  letter-spacing: 0.02em;
}
.projects-list,
.awards-list {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5em 3em;
  justify-content: center;
}
.project-card, 
.award-card{
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 6px 32px 0 #6c757d44;
  border: 1.2px solid var(--accent);
  min-width: 220px;
  max-width: 300px;
  padding: 2em 1.2em 1.6em 1.2em;
  font-size: 1em;
  color: #495057;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5em;
  transition: box-shadow 0.3s, transform 0.3s;
  position: relative;
}
.project-card:hover,
.award-card:hover {
  box-shadow: 0 16px 54px 0 #6c757dcc;
  transform: translateY(-2px) scale(1.03);
}
.project-title,
.award-title
 {
  font-size: 1.18em;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: .3em;
}
.project-meta,
.award-meta {
  font-size: .98em;
  color: #6c757d;
  margin-bottom: .4em;
}
.project-desc,
.award-desc {
  font-size: 1em;
  color: #495057;
  margin-bottom: 1.1em;
}
.project-link,
.award-link  {
  color: var(--accent-timeline);
  font-weight: 500;
  text-decoration: underline;
  margin-top: auto;
}
.project-link:hover {
  text-shadow: 0 0 6px var(--accent-timeline);
}

.profile-pic {
  width: 300px;
  height: auto;
  display: inline-block;

  border-radius: 16px;

}

.intro {
  margin-top: 8rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2em;
  align-items: center;  
  justify-content: center;
  
  
}

.scroll-arrow {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 4rem;
}

.about-me {
  width: 400px;
  font-size: 1.1em;
  line-height: 1.6;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 0 3em;
  border-radius: 16px;
  box-shadow: 0 4px 16px 0 #6c757d33;
}

/* Cube Content Styles */
.cube-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 4px 16px 0 rgba(0, 0, 0, 0.2);
}

.cube-bio {
  color: #212529;
  text-align: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 14px;
  box-shadow: 0 4px 16px 0 rgba(0, 0, 0, 0.1);
  max-width: 100%;
  box-sizing: border-box;
}

.cube-bio h2 {
  font-size: 1.4em;
  margin-bottom: 0.8em;
  color: var(--accent);
  font-weight: bold;
}

.cube-bio p {
  font-size: 0.9em;
  line-height: 1.5;
  margin-bottom: 0.8em;
  color: #495057;
}

.cube-bio p:last-child {
  margin-bottom: 0;
  font-weight: 600;
  color: var(--accent-timeline);
}

.cube-info, .cube-location, .cube-title, .cube-experience {
  color: #212529;
  text-align: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 14px;
  box-shadow: 0 4px 16px 0 rgba(0, 0, 0, 0.1);
  max-width: 100%;
  box-sizing: border-box;
}

.cube-info h2, .cube-contact h2, .cube-title h1, .cube-experience h2 {
  font-size: 1.4em;
  margin-bottom: 0.8em;
  color: var(--accent);
  font-weight: bold;
}

.cube-title h1 {
  font-size: 1.8em;
  margin-bottom: 0.5em;
  color: var(--accent);
}

.cube-info ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cube-info li {
  font-size: 0.9em;
  line-height: 1.6;
  margin-bottom: 0.5em;
  color: #495057;
  padding: 0.3em 0;
  border-bottom: 1px solid #e9ecef;
}

.cube-info li:last-child {
  border-bottom: none;
}

.cube-contact p, .cube-experience p {
  font-size: 0.9em;
  line-height: 1.5;
  margin-bottom: 0.6em;
  color: #495057;
}

.cube-contact p:last-child, .cube-experience p:last-child {
  margin-bottom: 0;
}

.cube-title p {
  font-size: 1.1em;
  color: var(--accent-timeline);
  font-weight: 600;
  margin: 0;
}

/* Scroll prompt */
.scroll-prompt{
  position:fixed; left:50%; bottom:clamp(16px,4vh,40px);
  transform:translateX(-50%);
  width:44px; height:44px; display:flex; align-items:center; justify-content:center;
  color:#666; opacity:.9; z-index:1000; cursor:pointer;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.25));
  transition:opacity .25s ease, transform .25s ease;
}
.scroll-prompt:hover{ opacity:1; transform:translateX(-50%) translateY(2px); }

@keyframes bounce {
  0%,20%,50%,80%,100% { transform: translateY(0); }
  40% { transform: translateY(6px); }
  60% { transform: translateY(3px); }
}
.scroll-prompt .chev{ animation:bounce 1.5s infinite; }

/* Hide state once user scrolls */
.scroll-prompt.is-hidden{ opacity:0; pointer-events:none; }
.socials.is-hidden {opacity: 0; pointer-events: none;}

.socials {
  transition: 0.25s ease;
}
/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  .scroll-prompt .chev{ animation:none; }
}

.left {
  font-size: 1.4rem;
}

.experience {
  display: grid;
  grid-template-columns: minmax(320px,1fr) 5px minmax(320px,1fr);
  align-items: stretch;

}

body {
  background: radial-gradient(circle at center, #b9b6b6, #ffffff);
}


.experience-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 1rem;
  padding: 1rem;
  border: #6c757d33 1px solid;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.776);
}

#TA {
  grid-column: 1;
  grid-row: 1;
}

#monke { grid-column: 1; grid-row: 3; } 

#tutor {
  grid-column: 3;
  grid-row: 2;
}
.experience::before {
  content: "";
  grid-column: 2;
  grid-row: 1 / span 5;
  background: linear-gradient(to bottom, var(--accent-timeline), transparent 98%);
  border-radius: 2px;
}

.logo {
  display: inline;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  
  
}

.award-title, 
.experience-name {
  display: flex;
  align-items: center;
  gap: 0.6em;
  padding: 8px 0;
}

.experience-name {
  font-size: 1.3rem;
  
}


.experience-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.12);
  border-color: #cfd5db;
}

.experience-card {
  --card-bg: rgba(255,255,255,0.92);
  --card-br: 16px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 10px;
  padding: 16px 18px 18px 18px;
  background: var(--card-bg);
  border-radius: var(--card-br);
  border: 1px solid #d7dce1;
  box-shadow: 0 8px 28px rgba(0,0,0,0.06);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  backdrop-filter: saturate(1.1) blur(2px);
}


.socials {
 position: fixed;
 left: 50%;
 transform: translateX(-50%);
 z-index: 1001;
 top: clamp(16px,4vh,40px);
  
}

a svg {
  color: rgb(128, 128, 128, 0.8);
}


