*,
*::before,
*::after {
  box-sizing: border-box;
}
/* ─── TOP BAR ───────────────────────────────────────────────────────── */
#top-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 2rem;
  background: #000000;
  overflow: hidden;
  z-index: 1001;
}

#ticker {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.ticker-wrapper {
  display: flex;
  will-change: transform;
}

.ticker-item {
  font-family: "Orbitron", sans-serif;
  font-weight: 100;
  font-style: normal;
  white-space: nowrap;
  color: #ffffff;
  font-size: 0.9rem;
  line-height: 2rem;
  padding-left: 1rem;
  flex-shrink: 0;
}
nav {
  position: fixed;
  top: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: 4px;
}
nav a {
  color: #fff;
  margin: 0 1rem;
  text-decoration: none;
  white-space: nowrap;
}
nav a:hover {
  text-decoration: underline;
}
body {
  margin-top: 5rem;
}
@media (max-width: 768px) {
  #top-bar {
    height: 1.5rem;
  }
  .ticker-item {
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.7rem;
    line-height: 1.5rem;
    padding-left: 0.5rem;
  }
  nav {
    background: none;
    top: 1.5rem;
    margin-top: 1.5rem;
    width: 100%;
    padding: 0.25rem 1.5rem;
  }
  body {
    margin-top: calc(1.5rem + 5rem);
  }
}

body {
  margin: 0;
  font-family: "SF Compact Display", sans-serif;
  font-weight: 200;
  background: #000;
  color: #fff;
  overflow-x: hidden;
}

h1 {
  font-size: 4rem;
  font-weight: 100;
  margin: 2rem 0;
  margin-bottom: 50px;
  text-align: center;
}
button {
  font-family: "SF Compact Display", sans-serif;
  font-weight: 200;
}

nav {
  position: fixed;
  top: 2rem;
  left: 50%;
  right: 0;
  width: 100vw;
  height: 10vh;
  display: flex;
  justify-content: center;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0));
  padding: 0.5rem 0; /* vertical padding only */
  z-index: 100; /* above canvas, below ticker */
}

nav a {
  color: #fff;
  padding-top: 2%;
  margin: 0 1.5rem;
  text-decoration: none;
  white-space: nowrap;
}

nav a:hover {
  text-decoration: underline;
}
@media (max-width: 768px) {
  nav {
    top: 0rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.25rem 0.5rem;
    flex-wrap: wrap;
    max-width: 100vw;
  }

  nav a {
    padding-top: 1rem;
    margin: 0 0.5rem;
    font-size: 0.9rem;
  }
  .flip-card {
    width: 200px;
    height: 300px;
  }
}

section {
  padding: 4rem 2rem;
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.6s ease;
}
section.show {
  opacity: 1;
  transform: translateY(0);
}

#intro,
#work-text,
#game-text,
#ar-text,
#hardware,
#about,
#contact {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* ─── Chat Bubbles ────────────────────────────────────────────────────── */

.chat-window {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 2rem 0;
}

.message {
  max-width: 400px;
  padding: 1rem;
  border-radius: 20px;
  margin: 0.5rem 0;
  position: relative;
  line-height: 1.4;
}

/* ─── Base Styles (Desktop & Tablet) ───────────────────────────────── */
.bot {
  background: #278eff;
  align-self: flex-start;
  margin-left: 33%;
  margin-bottom: 3%;
}
.user {
  background: #0a0;
  color: #fff;
  border: none;
  cursor: pointer;
  align-self: flex-end;
  margin-right: 33%;
}

/* ─── Mobile Overrides (screens ≤ 600px) ───────────────────────────── */
@media (max-width: 600px) {
  .bot,
  .user {
    max-width: 90%;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 0.75rem;
  }

  .bot {
    align-self: flex-start;
  }
  .user {
    align-self: flex-end;
  }
}

.grid {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 2rem;
}

.project-card,
.about-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  pointer-events: auto;
  user-select: none;
}

.placeholder {
  background: #333;
  border-radius: 12px;
}

.project-card .placeholder {
  width: 350px;
  height: 230px;
}
.project-card img {
  object-fit: cover;
}

.project-card h2 {
  margin: 1rem 0 0.5rem;
}

.project-card p {
  margin: 0;
}

.game-embed .placeholder.large {
  width: 600px;
  height: 320px;
  font-size: 4rem;
  color: #555;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ar-projects .project-card .placeholder {
  width: 200px;
  height: 120px;
}
.about-grid {
  width: 90%;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.about-card.placeholder {
  width: 150px;
  height: 100px;
}

/* ─── Contact List ─────────────────────────────────────────────────────── */

.contact-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  text-align: center;
}
.contact-list li {
  margin: 0.5rem 0;
  cursor: pointer;
}
.contact-list li:hover {
  color: #0a0;
}

/* ─── Base (desktop) behavior: show full 700×700 ────────────────── */

.game-embed {
  width: 700px;
  height: 700px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  justify-content: center;
}

.game-embed iframe {
  width: 700px;
  height: 700px;
  border: 0;
  transform-origin: 0 0;
}

@media (max-width: 700px) {
  .game-embed {
    justify-content: center;
    width: 100vw;
    height: calc(100vw);
  }
  .game-embed iframe {
    transform: scale(0.5);
  }
}

/* ─── Overlay Container ─────────────────────────────────────────────────── */

.project-detail {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 2rem 1rem;
  box-sizing: border-box;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  visibility: hidden;
}

.project-detail.active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.project-detail .close-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 30px;
  height: 30px;
  background: none;
  border: none;
  color: #000000;
  font-size: 1.25rem;
  cursor: pointer;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.close-btn img {
  width: 30px;
  height: 100%;
}

.detail-container-wrapper {
  opacity: 0;
  transform: translateY(50px) scale(0.95);
  transition: opacity 0.35s ease-out 0.15s, transform 0.35s ease-out 0.15s;
}

.project-detail.active .detail-container-wrapper {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.detail-container {
  max-width: 1400px;
  margin: 2rem auto;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.3);
  max-height: calc(100vh - 4rem);
  position: relative;
}

/* ─── Header Section ────────────────────────────────────────────────────── */
.detail-header {
  padding: 2.5rem 3rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

.detail-title {
  font-size: 2.5rem;
  margin: 0 0 0.5rem 0;
  color: #222;
  font-weight: 300;
  letter-spacing: -0.5px;
}

.detail-subtitle {
  font-size: 1.2rem;
  margin: 0 0 1.5rem 0;
  color: #666;
  font-weight: 300;
}

/* Metadata Grid */
.detail-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  row-gap: 1rem;
  column-gap: 2rem;
  margin-top: 1.5rem;
}

.meta-row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.meta-label {
  font-weight: 600;
  color: #333;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.meta-value {
  color: #666;
  font-size: 0.95rem;
}

.detail-meta a {
  color: #0066cc;
  text-decoration: none;
  transition: color 0.2s ease;
}

.detail-meta a:hover {
  color: #0052a3;
  text-decoration: underline;
}

/* ─── Content Area (Scrollable) ─────────────────────────────────────────── */
.detail-content-wrapper {
  display: flex;
  flex: 1;
  overflow: hidden;
  min-height: 0;
}

/* ─── Left Column (Content) ─────────────────────────────────────────────── */
.detail-left {
  flex: 1 1 45%;
  padding: 2.5rem 3rem;
  background: #ffffff;
  box-sizing: border-box;
  overflow-y: auto;
  overflow-x: hidden;
}

.detail-section {
  margin-bottom: 2.5rem;
}

.detail-section:last-child {
  margin-bottom: 0;
}

.detail-section h2 {
  font-size: 1.5rem;
  margin: 0 0 1rem 0;
  color: #222;
  font-weight: 400;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #f0f0f0;
}

.detail-section p {
  color: #444;
  line-height: 1.8;
  font-size: 1rem;
  margin: 0;
}

/* ─── Right Column (Images) ────────────────────────────────────────────── */
.detail-right {
  flex: 1 1 55%;
  position: relative;
  background: #fff;
  overflow: hidden;
  border-left: 1px solid rgba(0, 0, 0, 0.08);
  min-height: 0;
}
.detail-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #fff;
}

/* ─── Image Carousel ─────────────────────────────────────────────────────── */
.image-carousel-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.image-carousel {
  position: relative;
  width: 100%;
  flex: 1;
  overflow: hidden;
  background: #fff;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: translateX(30px) scale(0.95);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.carousel-slide.active {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
  z-index: 2;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Mobile: Keep carousel functionality but allow scrolling through entire page */
@media (max-width: 992px) {
  .image-carousel {
    position: relative;
  }
  
  .carousel-slide {
    position: relative;
    width: 100%;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    display: block;
  }
  
  .carousel-slide:not(.active) {
    display: none;
  }
  
  .carousel-slide.active {
    transform: none;
    display: block;
  }
  
  .carousel-slide img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
  }
}

/* Arrow buttons positioned on sides */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 2.5rem;
  font-weight: 300;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  line-height: 1;
  padding: 0;
  z-index: 20;
  user-select: none;
}

.carousel-prev {
  left: 1.5rem;
}

.carousel-next {
  right: 1.5rem;
}

.carousel-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-50%) scale(1.1);
}

.carousel-btn:active {
  transform: translateY(-50%) scale(0.95);
}

/* Dots container at bottom */
.carousel-dots-container {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 2rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0));
  z-index: 10;
  display: flex;
  justify-content: center;
}

.carousel-dots {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
}

.carousel-dot:hover {
  background: rgba(255, 255, 255, 0.5);
  transform: scale(1.3);
}

.carousel-dot.active {
  background: #fff;
  border-color: #fff;
  width: 12px;
  height: 12px;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
}

/* ─── Responsive Adjustments ───────────────────────────────────────────── */
@media (max-width: 992px) {
  .project-detail {
    padding: 1rem;
  }
  
  .detail-container {
    max-height: none;
    height: auto;
    margin: 1rem auto;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
  }
  
  .detail-header {
    padding: 1.5rem 1.5rem;
    flex-shrink: 0;
  }
  
  .detail-title {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
  }
  
  .detail-subtitle {
    font-size: 1rem;
    margin-bottom: 1rem;
  }
  
  .detail-content-wrapper {
    flex-direction: column;
    flex: 1;
    overflow: visible;
  }
  
  .detail-left {
    flex: none;
    padding: 1.5rem;
    max-height: none;
    height: auto;
    order: 2;
    overflow: visible;
  }
  
  .detail-right {
    flex: none;
    border-left: none;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    min-height: auto;
    max-height: none;
    height: auto;
    order: 1;
    overflow: visible;
  }
  
  .image-carousel-container {
    min-height: auto;
    height: auto;
    position: relative;
  }
  
  .image-carousel {
    min-height: auto;
    height: auto;
  }
  
  .carousel-slide {
    min-height: 50vh;
    position: relative;
  }
  
  .carousel-slide img {
    min-height: 50vh;
    object-fit: contain;
  }
  
  .carousel-btn {
    width: 48px;
    height: 48px;
    font-size: 2rem;
  }
  
  .carousel-prev {
    left: 0.75rem;
  }
  
  .carousel-next {
    right: 0.75rem;
  }
  
  .carousel-dots-container {
    padding: 1rem 1.25rem;
  }
  
  .detail-meta {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-top: 1rem;
  }
  
  .meta-label {
    font-size: 0.75rem;
  }
  
  .meta-value {
    font-size: 0.9rem;
  }
  
  .detail-section {
    margin-bottom: 1.5rem;
  }
  
  .detail-section h2 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
  }
  
  .detail-section p {
    font-size: 0.9rem;
    line-height: 1.6;
  }
}

@media (max-width: 600px) {
  .project-detail {
    padding: 0.75rem;
  }
  
  .detail-container {
    margin: 0.75rem auto;
    border-radius: 8px;
    max-height: none;
    height: auto;
  }
  
  .detail-header {
    padding: 1.25rem 1.25rem;
  }
  
  .detail-title {
    font-size: 1.5rem;
  }
  
  .detail-subtitle {
    font-size: 0.95rem;
  }
  
  .detail-left {
    padding: 1.25rem;
    max-height: none;
    height: auto;
    overflow: visible;
  }
  
  .detail-right {
    min-height: auto;
    max-height: none;
    height: auto;
    overflow: visible;
  }
  
  .image-carousel-container {
    min-height: auto;
    height: auto;
  }
  
  .image-carousel {
    min-height: auto;
    height: auto;
  }
  
  .carousel-slide {
    min-height: 40vh;
    position: relative;
  }
  
  .carousel-slide img {
    min-height: 40vh;
    object-fit: contain;
  }
  
  /* Larger buttons for mobile - easier to tap */
  .carousel-btn {
    width: 56px;
    height: 56px;
    font-size: 2.25rem;
    background: rgba(255, 255, 255, 0.2);
    border-width: 3px;
  }
  
  .carousel-prev {
    left: 0.5rem;
  }
  
  .carousel-next {
    right: 0.5rem;
  }
  
  .carousel-btn:hover {
    background: rgba(255, 255, 255, 0.3);
  }
  
  .carousel-dots-container {
    padding: 0.75rem 1rem;
  }
  
  .carousel-dot {
    width: 10px;
    height: 10px;
    border-width: 2px;
  }
  
  .carousel-dot.active {
    width: 12px;
    height: 12px;
  }
  
  .detail-section h2 {
    font-size: 1.1rem;
  }
  
  .detail-section p {
    font-size: 0.85rem;
  }
}

@media (max-width: 400px) {
  .project-detail {
    padding: 0.5rem;
  }
  
  .detail-container {
    margin: 0.5rem auto;
  }
  
  .detail-header {
    padding: 1rem;
  }
  
  .detail-title {
    font-size: 1.25rem;
  }
  
  .detail-subtitle {
    font-size: 0.85rem;
  }
  
  .detail-left {
    padding: 1rem;
    max-height: none;
    height: auto;
    overflow: visible;
  }
  
  .detail-right {
    min-height: auto;
    max-height: none;
    height: auto;
    overflow: visible;
  }
  
  .image-carousel-container {
    min-height: auto;
    height: auto;
  }
  
  .image-carousel {
    min-height: auto;
    height: auto;
  }
  
  .carousel-slide {
    min-height: 35vh;
    position: relative;
  }
  
  .carousel-slide img {
    min-height: 35vh;
    object-fit: contain;
  }
  
  .carousel-btn {
    width: 48px;
    height: 48px;
    font-size: 2rem;
  }
  
  .carousel-prev {
    left: 0.25rem;
  }
  
  .carousel-next {
    right: 0.25rem;
  }
  
  .detail-meta {
    gap: 0.5rem;
  }
  
  .meta-label {
    font-size: 0.7rem;
  }
  
  .meta-value {
    font-size: 0.8rem;
  }
}

/* The floating label that follows the cursor */
#hover-cursor,
#hover-cursor2 {
  position: fixed;
  top: 0;
  left: 0;
  padding: 0.4rem 0.8rem;
  background: rgba(255, 255, 255, 0.95);
  color: #222;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -120%);
  transition: opacity 0.15s ease;
  white-space: nowrap;
  z-index: 2000;
}

#hover-cursor.visible,
#hover-cursor2.visible {
  opacity: 1;
}

.project-card {
  position: relative;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.flip-card {
  cursor: none;
}

/* ─── ABOUT INTRO ─────────────────────────────────────────────────────────── */
.about-intro {
  max-width: 1100px;
  margin: 0 auto 3rem;
  text-align: center;
  color: #f5f5f5;
}
.about-intro h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.about-intro p {
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
  margin-bottom: 50px;
}

/* ─── TIMELINE CONTAINER ────────────────────────────────────────────────── */
#experience {
  padding: 4rem 2rem;
}

#experience h1 {
  text-align: center;
  margin-bottom: 3rem;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 100;
  letter-spacing: 2px;
}

.timeline-container {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.6s ease;
}

.timeline-item.show {
  opacity: 1;
  transform: translateX(0);
}

/* Timeline Marker (Left side) */
.timeline-marker {
  position: relative;
  flex-shrink: 0;
  width: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.marker-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, #278eff, #1a6fd9);
  border: 3px solid #000;
  box-shadow: 0 0 20px rgba(39, 142, 255, 0.5), 0 0 40px rgba(39, 142, 255, 0.3);
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.timeline-item:hover .marker-dot {
  transform: scale(1.3);
  box-shadow: 0 0 30px rgba(39, 142, 255, 0.8), 0 0 60px rgba(39, 142, 255, 0.5);
}

.marker-line {
  width: 2px;
  flex: 1;
  background: linear-gradient(to bottom, rgba(39, 142, 255, 0.6), rgba(39, 142, 255, 0.2));
  margin-top: 8px;
  min-height: 40px;
}

.timeline-item:last-child .marker-line {
  display: none;
}

/* Timeline Card */
.timeline-card {
  flex: 1;
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.timeline-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #278eff, transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.timeline-item:hover .timeline-card {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(39, 142, 255, 0.4);
  transform: translateX(10px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(39, 142, 255, 0.1);
}

.timeline-item:hover .timeline-card::before {
  opacity: 1;
}

.timeline-date-badge {
  display: inline-block;
  background: linear-gradient(135deg, rgba(39, 142, 255, 0.2), rgba(39, 142, 255, 0.1));
  color: #278eff;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
  border: 1px solid rgba(39, 142, 255, 0.3);
  letter-spacing: 0.5px;
}

.timeline-content {
  color: #f5f5f5;
}

.timeline-content h2 {
  margin: 0 0 0.5rem 0;
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  color: #fff;
  font-weight: 400;
}

.timeline-content h3 {
  margin: 0 0 1.5rem 0;
  font-size: 1rem;
  font-weight: 300;
  color: #aaa;
}

.timeline-content ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.timeline-content ul li {
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  position: relative;
  color: #ddd;
}

.timeline-content ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: #278eff;
  font-size: 1rem;
}

.timeline-content a {
  color: #278eff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.timeline-content a:hover {
  color: #4da3ff;
  text-decoration: underline;
}

.timeline-content ul li:last-child {
  margin-bottom: 0;
}

/* Education Courses Section */
.education-courses {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.education-courses h4 {
  margin: 0 0 1rem 0;
  font-size: 1rem;
  font-weight: 400;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.education-courses ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0.75rem;
}

.education-courses ul li {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #ddd;
  padding-left: 1.5rem;
  position: relative;
}

.education-courses ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: #278eff;
  font-size: 1rem;
}

@media (max-width: 768px) {
  .education-courses ul {
    grid-template-columns: 1fr;
  }
  
  .education-courses h4 {
    font-size: 0.9rem;
  }
  
  .education-courses ul li {
    font-size: 0.9rem;
  }
}

/* ─── RESPONSIVE ADJUSTMENTS ───────────────────────────────────────────── */
@media (max-width: 768px) {
  #experience {
    padding: 3rem 1.5rem;
  }

  .timeline-container {
    padding: 1rem 0;
  }

  .timeline-item {
    flex-direction: row;
    gap: 1rem;
    margin-bottom: 2rem;
  }

  .timeline-marker {
    width: 40px;
  }

  .marker-dot {
    width: 12px;
    height: 12px;
    border-width: 2px;
  }

  .timeline-card {
    padding: 1.5rem;
  }

  .timeline-date-badge {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }

  .timeline-content h2 {
    font-size: 1.1rem;
  }

  .timeline-content h3 {
    font-size: 0.9rem;
  }

  .timeline-content ul li {
    font-size: 0.9rem;
    line-height: 1.6;
  }
}

@media (max-width: 480px) {
  .timeline-item {
    gap: 0.75rem;
  }

  .timeline-marker {
    width: 30px;
  }

  .marker-dot {
    width: 10px;
    height: 10px;
  }

  .timeline-card {
    padding: 1.25rem;
  }
}
@media (max-width: 768px) {
  #canvas-container {
    scale: 1;
  }
}

/* ─── Container & Profile ─────────────────────────────────────────── */

#text-container {
  position: relative;
  perspective: 800px;
}

.flip-card {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 500px;
}
@media (max-width: 600px) {
  .flip-card {
    width: 90vw;
    height: calc(80vw * (500 / 400));
  }
}
/* ── 3) Inner 3D container ─────────────────────────────────────── */
.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.8s ease;
}

/* ── 4) Flip when .flipped is applied ─────────────────────────── */
.flip-card.flipped .flip-card-inner {
  transform: rotateY(180deg);
}

/* ── 5) Both faces share these basics ─────────────────────────── */
.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
}

/* ── 6) Front face shows the photo ────────────────────────────── */
.flip-card-front .profile {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 5%;
}

/* ── 7) Back face: rotate 180° so it sits “behind” initially ─── */
.flip-card-back {
  transform: rotateY(180deg);
  display: flex;
  border-radius: 5%;
  align-items: center;
  justify-content: center;
  background: rgb(0, 0, 0); /* dark background behind text */
}

/* ── 8) Style your back‐face text ─────────────────────────────── */
.back-text {
  font-family: "Bebas Neue", sans-serif;
  font-weight: 200;
  font-style: normal;
  color: #ffffff;
  font-size: 1.5rem;
  text-align: center;
  padding: 10px;
}

/* ─── Each “Line” as a Clipping Window ───────────────────────────── */
.line {
  width: 100vw;
  height: 120px;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.line-wrapper {
  display: inline-flex;
}
.line-item {
  font-family: "Bebas Neue", sans-serif;
  font-weight: 600;
  display: inline-block;
  white-space: nowrap;
  font-size: 100px;
  color: antiquewhite;
  padding: 10px 0;
}

/* ─── Opacity Per Line ───────────────────────────────────────────── */
.line1 .line-item {
  opacity: 0.3;
}
.line2 .line-item {
  opacity: 0.6;
}
.line3 .line-item {
  opacity: 1;
}
.line4 .line-item {
  opacity: 1;
}
.line5 .line-item {
  opacity: 0.6;
}
.line6 .line-item {
  opacity: 0.3;
}

/* ─── CONTACT SECTION STYLING ─────────────────────────────────────── */
#contact {
  text-align: center;
  padding: 2rem 1rem;
}

#contact h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-list li {
  margin: 0.5rem 0;
}

.contact-list a {
  text-decoration: none;
  color: #ffffff;
  font-weight: bold;
  font-size: 1.1rem;
  transition: color 0.2s ease;
}

.contact-list a:hover {
  color: #cacaca;
}
html {
  scroll-behavior: smooth;
}
section {
  scroll-margin-top: calc(2rem + 2.5rem);
}

@media (max-width: 768px) {
  #top-bar #ticker .ticker-item {
    font-size: 0.8rem;
    line-height: 1.5rem;
    padding-left: 0.5rem;
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
  }
}

@media (max-width: 600px) {
  #top-bar #ticker .ticker-item {
    font-size: 0.6rem;
    line-height: 1.2rem;
    padding-left: 0.4rem;
  }
}

.footer-content {
  display: flex;
  justify-content: center;
  text-align: center;
}
