:root {
  
  --color-pink: #ff1493;
  --color-blue: #007aff;
  --color-yellow: #ffc107;
  --color-cyan: #00bcd4;
  --color-green: #00ff99;
  --color-dark: #1a1a1a;
  --color-light: #fdfdfd;

  
  --glass-bg: rgba(255, 255, 255, 0.65);
  --glass-border: rgba(255, 255, 255, 0.8);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);

  --font-main: "IBM Plex Mono", monospace;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow-x: hidden;
  background: var(--color-light);
  position: relative;
  z-index: 0;
  font-family: var(--font-main);
  overflow-y: auto;
  color: var(--color-dark);
}

#background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, #ffffff, #f0f0f0, #ffffff);
  background-size: 200% 200%;
  animation: lightShift 20s ease-in-out infinite;
  z-index: -2;
}

@keyframes lightShift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.logo {
  height: 159px;
  width: 42px;
  margin-left: 88px;
  margin-top: 28px;
  position: relative;
  z-index: 100;
  animation: fadeDown 1.2s ease-out forwards;
  will-change: transform, opacity;
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.logo h1 {
  font-size: 32px;
  font-weight: 700;
}

.logo h2 {
  margin-top: -20px;
  font-size: 24px;
  font-weight: 200;
}

.container {
  position: relative;
  width: 100%;
  height: 100vh;
}

.card {
  position: absolute;
  width: 225px;
  height: 225px;

  
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-top: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 4px;

  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;

  opacity: 0;
  opacity: 0;
  animation: entranceCard 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  will-change: transform, opacity;
}

@keyframes entranceCard {
  0% {
    opacity: 0;
    transform: translateY(60px) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.card-inner {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  animation: drift 6s ease-in-out infinite;
  z-index: 2;
}

.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.9);
  z-index: 50;
  
  will-change: transform, box-shadow;
}

.card span {
  font-size: 24px;
  color: var(--color-dark);
  letter-spacing: 0.5px;
  font-weight: 600;
}

.card i {
  font-size: 40px;
  color: var(--color-dark);
  transition: transform 0.3s;
}

.card:hover i {
  transform: scale(1.1);
}

.card-mono-logo {
  font-family: var(--font-main) !important;
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.card:hover .card-mono-logo {
  transform: scale(1.15);
}

.card span {
  font-family: var(--font-main) !important;
}

.card#hob span {
  font-family: var(--font-main) !important;
  font-size: 19px !important;
  font-weight: 600 !important;
  letter-spacing: 0.5px !important;
  text-align: center;
  line-height: 1.2;
}

@keyframes drift {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

#projects {
  top: -20px;
  left: 332px;
  width: 307px;
  height: 410px;
  padding-left: 40px;
  animation-delay: 0.1s;
}
#skills {
  top: 343px;
  left: 575px;
  z-index: 10;
  animation-delay: 0.2s;
}
#contact {
  top: 110px;
  left: 895px;
  animation-delay: 0.3s;
}
#me {
  top: 110px;
  left: 655px;
  animation-delay: 0.4s;
}
#exp {
  top: -130px;
  left: 655px;
  animation-delay: 0.5s;
}
#hob {
  top: 343px;
  left: 815px;
  animation-delay: 0.6s;
}

#lab {
  top: 400px;
  left: 425px;
  animation-delay: 0.7s;
}

#projects .card-inner {
  animation-delay: 0s;
  align-items: flex-start;
}
#skills .card-inner {
  animation-delay: 1s;
}
#contact .card-inner {
  animation-delay: 2s;
}
#me .card-inner {
  animation-delay: 3s;
}
#exp .card-inner {
  animation-delay: 4s;
}
#hob .card-inner {
  animation-delay: 2.5s;
}

#lab .card-inner {
  animation-delay: 5s;
}

#projects p {
  font-size: 80px;
  margin: 0;
  color: var(--color-dark);
  opacity: 0.1;
  font-weight: 700;
}
#projects span {
  font-size: 20px;
  letter-spacing: 1px;
  font-family: var(--font-main);
  z-index: 2;
}

.card#projects:hover {
  border-bottom: 4px solid var(--color-green);
}
.card#exp:hover {
  border-bottom: 4px solid var(--color-pink);
}
.card#contact:hover {
  border-bottom: 4px solid var(--color-dark);
}
.card#me:hover {
  border-bottom: 4px solid var(--color-yellow);
}
.card#hob:hover {
  border-bottom: 4px solid var(--color-blue);
}
.card#lab:hover {
  border-bottom: 4px solid var(--color-cyan);
}

.card#skills::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: -1;
  width: 101%;
  height: 4px;

  background: linear-gradient(
    90deg,
    var(--color-pink),
    var(--color-blue),
    var(--color-yellow),
    var(--color-cyan)
  );

  border-radius: 0 0 4px 4px;

  opacity: 0;
  transition: opacity 0.3s ease;
}

.card#skills:hover::after {
  opacity: 1;
}

.card#skills:hover {
  border-bottom: 1px solid transparent;
}

.page-section {
  min-height: 100vh;
  width: 100%;
  padding: 100px 0;
  position: relative;
  z-index: 1;
  content-visibility: auto; 
  contain-intrinsic-size: 1px 1000px;
}

.section-title {
  margin-bottom: 80px;
  margin-left: 15%;
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  margin-top: 20px;
  background: var(--color-green); 
  opacity: 1;
}

#parcours-stack-content .section-title::after {
  background: var(--color-pink);
}

.section-title h1 {
  font-size: 48px;
  font-weight: 700;
  color: var(--color-green);
}

.section-title p {
  font-size: 18px;
  font-weight: 200;
  margin-top: 10px;
  color: #555;
}

.timeline {
  position: relative;
  margin-left: 15%;
  padding-left: 50px;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 3px;
  width: 2px;
  height: 100%;
  background: rgba(0, 0, 0, 0.1);
}

.timeline-item {
  margin-bottom: 70px;
  position: relative;
  display: flex;
  padding-left: 50px;
  transition: transform 0.3s ease;
}

.timeline-item:hover {
  transform: translateX(10px);
}

.timeline-dot {
  position: absolute;
  left: 0;
  top: 25px;
  height: 12px;
  width: 12px;
  background: white;
  border: 2px solid var(--color-green);
  border-radius: 50%;
  z-index: 2;
  transition: all 0.3s;
}

.timeline-item:hover .timeline-dot {
  left: 4mm;
  background: var(--color-green);
  box-shadow: 0 0 10px var(--color-green);
  transform: scale(1.3);
}

.timeline-date {
  width: 150px;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-dark);
  margin-top: 25px;
}

.timeline-details {
  flex-grow: 1;
  max-width: 600px;
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.02);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

.timeline-item:hover .timeline-details {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.timeline-details h2 {
  font-size: 24px;
  color: var(--color-dark);
  margin-top: 0;
}
.timeline-details p {
  font-size: 16px;
  line-height: 1.6;
  color: #333;
}

.tech-stack {
  display: inline-block;
  margin-top: 15px;
  padding: 6px 12px;
  font-size: 12px;
  color: var(--color-green);
  border: 1px solid var(--color-green);
  background: rgba(0, 255, 153, 0.05);
  border-radius: 4px;
  letter-spacing: 1px;
  font-weight: bold;
}

#parcours-stack-content .section-title h1 {
  color: var(--color-pink);
}

.double-track-wrapper {
  display: flex;
  max-width: 1400px;
  width: 90%;
  margin: 0 auto;
  min-height: 500px;
}

.timeline-column {
  flex: 1;
  padding-right: 50px;
}
.stack-column {
  flex: 1;
  padding-left: 50px;
}

.timeline-column .timeline-item {
  margin-bottom: 40px;
  padding-left: 0;
  display: flex;
  align-items: flex-start;
}

.timeline-column h2,
.stack-column h2 {
  font-size: 28px;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 25px;
  color: #333;
}

.timeline-icon {
  width: 50px;
  height: 50px;
  border: 2px solid var(--color-pink);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 20px;
  flex-shrink: 0;
  background: white;
  transition: all 0.3s;
}

.timeline-item:hover .timeline-icon {
  background: var(--color-pink);
  box-shadow: 0 0 15px rgba(255, 20, 147, 0.4);
}
.timeline-item:hover .timeline-icon i {
  color: white;
}

.timeline-icon i {
  color: var(--color-pink);
  font-size: 24px;
  transition: color 0.3s;
}

.timeline-details h3 {
  font-size: 18px;
  color: var(--color-dark);
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 5px;
}

.tech-stack-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
  margin-bottom: 50px;
}

.tech-tag {
  display: inline-block;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 4px;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: default;
}

.tech-tag.code {
  color: var(--color-blue);
  border-color: var(--color-blue);
}
.tech-tag.language,
.tech-tag.backend {
  color: var(--color-yellow);
  border-color: var(--color-yellow);
}
.tech-tag.devops {
  color: var(--color-cyan);
  border-color: var(--color-cyan);
}
.tech-tag.design {
  color: var(--color-pink);
  border-color: var(--color-pink);
}

.tech-tag.code:hover {
  background: var(--color-blue);
  color: white;
  box-shadow: 0 5px 15px rgba(0, 122, 255, 0.3);
  transform: translateY(-5px) scale(1.1);
}
.tech-tag.language:hover,
.tech-tag.backend:hover {
  background: var(--color-yellow);
  color: black;
  box-shadow: 0 5px 15px rgba(255, 193, 7, 0.3);
  transform: translateY(-5px) scale(1.1);
}
.tech-tag.devops:hover {
  background: var(--color-cyan);
  color: white;
  box-shadow: 0 5px 15px rgba(0, 188, 212, 0.3);
  transform: translateY(-5px) scale(1.1);
}
.tech-tag.design:hover {
  background: var(--color-pink);
  color: white;
  box-shadow: 0 5px 15px rgba(255, 20, 147, 0.3);
  transform: translateY(-5px) scale(1.1);
}

.stack-column h2:last-of-type {
  margin-top: 50px;
}
.soft-skills-list {
  list-style: none;
  padding: 0;
  line-height: 2;
}
.soft-skills-list li {
  font-size: 16px;
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
  color: #333;
}
.soft-skills-list li::before {
  content: "\f00c";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
}
.soft-skills-list li:nth-child(1)::before {
  color: var(--color-pink);
}
.soft-skills-list li:nth-child(2)::before {
  color: var(--color-blue);
}
.soft-skills-list li:nth-child(3)::before {
  color: var(--color-yellow);
}
.soft-skills-list li:nth-child(4)::before {
  color: var(--color-cyan);
}

.multicolore {
  font-family: var(--font-main);
  font-weight: bold;

  background: linear-gradient(
    90deg,
    var(--color-pink),
    var(--color-blue),
    var(--color-yellow),
    var(--color-cyan),
    var(--color-pink)
  );

  background-size: 200% auto;

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  animation: color-shift 4s linear infinite;
}

.card#skills::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;

  background: linear-gradient(
    90deg,
    var(--color-pink),
    var(--color-blue),
    var(--color-yellow),
    var(--color-cyan),
    var(--color-pink)
  );

  background-size: 200% auto;

  border-radius: 0 0 4px 4px;
  opacity: 0;
  transition: opacity 0.3s ease;

  animation: color-shift 4s linear infinite;
}

@keyframes color-shift {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
  will-change: transform, opacity;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.me-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
  gap: 80px;
}

.bio-column {
  flex: 1;
  max-width: 450px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.bio-photo-wrapper {
  width: 280px;
  height: 280px;
  margin-bottom: 40px;
  padding: 10px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  transform: rotate(2deg);
  transition: transform 0.3s ease;
}
.bio-photo-wrapper:hover {
  transform: rotate(0deg) scale(1.02);
}

.bio-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
}

.bio-heading {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 25px;
}

.bio-quote {
  font-family: var(--font-secondary, "IBM Plex Mono", monospace);
  font-size: 16px;
  line-height: 1.8;
  color: #444;
  font-style: italic;
  border-left: 4px solid var(--color-yellow);
  padding-left: 20px;
}

#stage-a2o-content .section-title::after {
  background: var(--color-blue);
}

.a2o-layout-wrapper {
  display: flex;
  max-width: 1200px;
  width: 90%;
  margin: 0 auto;
  gap: 50px;
  align-items: flex-start;
}

.a2o-intro-side {
  flex: 0 0 320px;
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-top: 3px solid var(--color-blue);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.a2o-side-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--color-blue);
  background: rgba(0, 122, 255, 0.08);
  border: 1px solid rgba(0, 122, 255, 0.2);
  padding: 4px 10px;
  border-radius: 4px;
  display: inline-block;
  width: fit-content;
  margin-bottom: 12px;
}

.a2o-side-heading {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-dark);
  margin: 0 0 12px 0;
  line-height: 1.3;
}

.a2o-side-quote {
  font-family: var(--font-main);
  font-size: 13.5px;
  line-height: 1.6;
  color: #555;
  font-style: italic;
  border-left: 3px solid var(--color-blue);
  padding-left: 12px;
  margin: 0 0 20px 0;
}

.a2o-tab-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 0;
}

.a2o-tab-btn {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 6px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-family: var(--font-main);
  font-size: 12.5px;
  font-weight: 600;
  color: #444;
  text-align: left;
  transition: all 0.25s ease;
}

.a2o-tab-btn .tab-num {
  font-size: 11px;
  font-weight: 700;
  color: #888;
  padding: 2px 6px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.05);
}

.a2o-tab-btn:hover {
  background: white;
  border-color: var(--color-blue);
  color: var(--color-blue);
  transform: translateX(4px);
}

.a2o-tab-btn.active {
  background: white;
  border-color: var(--color-blue);
  color: var(--color-blue);
  box-shadow: 0 4px 12px rgba(0, 122, 255, 0.12);
}

.a2o-tab-btn.active .tab-num {
  background: var(--color-blue);
  color: white;
}

.a2o-side-details {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.a2o-detail-tag {
  font-size: 11.5px;
  font-weight: 600;
  color: #555;
  background: rgba(0, 0, 0, 0.04);
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.a2o-detail-tag i {
  color: var(--color-blue);
  margin-right: 4px;
}

.a2o-deck-wrapper {
  flex: 1;
  position: relative;
  min-height: 420px;
}

.a2o-reading-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background: white;
  border-radius: 10px;
  padding: 28px 26px;
  border: 1px solid rgba(0, 0, 0, 0.07);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.35s ease,
              box-shadow 0.4s ease,
              filter 0.35s ease;
  will-change: transform, opacity;
}

.a2o-reading-card.card-blue {
  border-top: 4px solid var(--color-blue);
}
.a2o-reading-card.card-pink {
  border-top: 4px solid var(--color-pink);
}
.a2o-reading-card.card-yellow {
  border-top: 4px solid var(--color-yellow);
}

.a2o-reading-card.is-active {
  z-index: 10;
  opacity: 1;
  transform: translate(0, 0) scale(1);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
  pointer-events: auto;
  filter: none;
}

.a2o-reading-card.is-next {
  z-index: 5;
  opacity: 0.55;
  transform: translate(18px, -12px) scale(0.97);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
  pointer-events: auto;
  cursor: pointer;
  filter: blur(0.3px);
}

.a2o-reading-card.is-next:hover {
  opacity: 0.8;
  transform: translate(18px, -16px) scale(0.98);
}

.a2o-reading-card.is-last {
  z-index: 2;
  opacity: 0.25;
  transform: translate(36px, -24px) scale(0.94);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
  pointer-events: auto;
  cursor: pointer;
  filter: blur(0.6px);
}

.a2o-reading-card.is-last:hover {
  opacity: 0.5;
  transform: translate(36px, -28px) scale(0.95);
}

.reading-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.reading-badge {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 4px 8px;
  border-radius: 4px;
}

.tag-blue {
  color: var(--color-blue);
  background: rgba(0, 122, 255, 0.08);
}
.tag-pink {
  color: var(--color-pink);
  background: rgba(255, 20, 147, 0.08);
}
.tag-yellow {
  color: #b45309;
  background: rgba(255, 193, 7, 0.15);
}

.reading-counter {
  font-size: 12px;
  font-weight: 700;
  color: #888;
  font-family: var(--font-main);
  background: rgba(0, 0, 0, 0.04);
  padding: 3px 8px;
  border-radius: 12px;
}

.a2o-reading-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 14px 0;
  color: var(--color-dark);
  line-height: 1.3;
}

.reading-card-body p {
  font-size: 14px;
  line-height: 1.65;
  color: #333;
  margin: 0 0 10px 0;
}

.reading-card-body p:last-child {
  margin-bottom: 0;
}

.reading-checklist {
  list-style: none;
  padding: 0;
  margin: 14px 0 0 0;
  border-top: 1px dashed rgba(0, 0, 0, 0.08);
  padding-top: 12px;
}

.reading-checklist li {
  font-size: 12.5px;
  color: #444;
  position: relative;
  padding-left: 20px;
  margin-bottom: 6px;
  line-height: 1.5;
}

.reading-checklist li::before {
  content: "→";
  position: absolute;
  left: 0;
  font-weight: bold;
}

.card-blue .reading-checklist li::before {
  color: var(--color-blue);
}
.card-pink .reading-checklist li::before {
  color: var(--color-pink);
}
.card-yellow .reading-checklist li::before {
  color: #b45309;
}

.reading-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.reading-card-footer .reading-next-btn:only-child {
  margin-left: auto;
}

.reading-hint {
  font-size: 11px;
  color: #888;
  font-style: italic;
}

.reading-hint i {
  color: var(--color-blue);
  margin-right: 4px;
}

.reading-next-btn,
.reading-prev-btn {
  background: rgba(0, 122, 255, 0.08);
  color: var(--color-blue);
  border: 1px solid rgba(0, 122, 255, 0.2);
  border-radius: 4px;
  padding: 6px 12px;
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.reading-next-btn:hover,
.reading-prev-btn:hover {
  background: var(--color-blue);
  color: white;
}

.reading-prev-btn {
  background: rgba(0, 0, 0, 0.04);
  color: #555;
  border-color: rgba(0, 0, 0, 0.1);
}
.reading-prev-btn:hover {
  background: var(--color-dark);
  color: white;
}

.creations-carousel-wrapper {
  position: relative;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  overflow: hidden;
  mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
}

.creations-carousel {
  display: flex;
  gap: 30px;
  width: max-content;
  animation: marquee 180s linear infinite;
  will-change: transform;
  padding-right: 30px; 
}

.creations-carousel:hover {
  animation-play-state: paused;
}

.creations-carousel::-webkit-scrollbar {
  display: none;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.creation-card {
  flex: 0 0 350px;
  scroll-snap-align: center;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.creation-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.creation-image {
  height: 250px;
  width: 100%;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative; 
}

.creation-image img,
.pdf-embed {
  width: 100%;
  height: 100%;
  object-fit: cover; 
  background: #fff;
  transition: transform 0.5s ease;
  pointer-events: none; 
}

.creation-card:hover .creation-image img,
.creation-card:hover .pdf-embed {
  transform: scale(1.05);
}

.placeholder-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 14px;
  text-align: center;
  padding: 20px;
}

.creation-info {
  padding: 20px;
}

.creation-info h3 {
  margin: 0 0 10px 0;
  font-size: 20px;
  color: var(--color-dark);
}

.creation-info p {
  margin: 0;
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

.carousel-btn {
  display: none;
}

@media (max-width: 768px) {
  .creations-carousel-wrapper {
    width: 100%;
    padding: 0 20px;
  }

  .creation-card {
    flex: 0 0 280px;
  }

  .carousel-btn {
    display: none;
  }
}

.hobbies-column {
  flex: 1.2;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  margin-top: 50px;
}

.hobbies-heading {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 60px;
}

.slider-3d-wrapper {
  position: relative;
  width: 300px;
  height: 300px;
  perspective: 1200px;
}

.slider-3d-carousel {
  width: 100%;
  height: 100%;
  position: absolute;
  transform-style: preserve-3d;
  animation: rotateCarousel 16s infinite linear;
  transform-origin: center center;
}

.slider-item {
  position: absolute;
  width: 160px;
  height: auto;
  left: 50%;
  top: 50%;
  margin-left: -80px;
  margin-top: -80px;
  filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.2));
  transition: filter 0.3s ease;
}

.slider-item:hover {
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.4));
}

.item-manga {
  transform: rotateY(0deg) translateZ(180px);
  z-index: 10;
}
.item-manga img {
  width: 100%;
  height: auto;
  min-height: 220px;
  object-fit: contain;
}

.item-basket {
  transform: rotateY(120deg) translateZ(180px);
}
.item-basket img {
  width: 100%;
}

.item-music {
  transform: rotateY(240deg) translateZ(180px);
}
.item-music img {
  width: 80%;
}

@keyframes rotateCarousel {
  from {
    transform: rotateX(15deg) rotateY(0deg);
  }
  to {
    transform: rotateX(15deg) rotateY(360deg);
  }
}

.slider-shadow {
  position: absolute;
  width: 80%;
  height: 30px;
  background: rgba(0, 0, 0, 0.2);
  bottom: -50px;
  left: 10%;
  border-radius: 50%;
  filter: blur(15px);
  transform: rotateX(60deg);
}

#contact-content.section-title h1 {
  color: var(--color-dark);
}

.contact-wrapper {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.contact-btn {
  display: inline-block;
  margin-top: 30px;
  padding: 15px 40px;
  border: 2px solid var(--color-dark);
  color: var(--color-dark);
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
  transition: all 0.3s;
}

.contact-btn:hover {
  background: var(--color-dark);
  color: white;
}
* {
  box-sizing: border-box;
}

@media screen and (min-width: 768px) and (max-width: 1350px) {
  html,
  body {
    overflow-x: hidden;
  }

  
  .logo {
    position: absolute;
    top: 20px;
    left: 40px;
    margin: 0;
    transform: scale(0.8);
    z-index: 200;
  }

  
  .container {
    position: relative;
    height: 90vh;
    width: 1450px;
    left: 50%;
    margin-left: -725px;
    margin-top: 350px;
    transform: scale(0.85);
    transform-origin: center top;
    overflow: visible;
  }

  
  .section-title {
    margin-left: auto;
    margin-right: auto;
    max-width: 700px;
    text-align: center;
    padding: 0 20px;
  }

  .section-title p {
    text-align: center;
  }

  .section-title::after {
    margin-left: auto;
    margin-right: auto;
  }

  
  .timeline {
    margin-left: auto;
    margin-right: auto;
    max-width: 1000px;
    padding-left: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 0 40px;
  }

  .timeline::before {
    display: none;
  }

  .timeline-item {
    display: flex;
    flex-direction: column;
    padding-left: 0;
    margin-bottom: 0;
    height: 100%;
  }

  .timeline-dot {
    display: none;
  }

  .timeline-date {
    display: none;
  }

  .timeline-details {
    height: 100%;
    width: 100%;
    max-width: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  @media screen and (max-width: 1000px) {
    .timeline {
      grid-template-columns: 1fr;
      gap: 40px;
    }
  }

  
  .double-track-wrapper {
    flex-direction: column;
    align-items: center;
    margin-top: 50px;
  }

  .timeline-column,
  .stack-column {
    padding: 0;
    width: 100%;
    max-width: 600px;
    margin-bottom: 50px;
  }

  .timeline-column h2,
  .stack-column h2 {
    text-align: center;
    width: 100%;
    margin-right: 0;
  }

  .tech-stack-grid {
    justify-content: center;
  }

  
  .soft-skills-list {
    display: table;
    margin: 0 auto;
  }

  
  .me-container {
    flex-direction: column;
    align-items: center;
    gap: 60px;
  }

  .bio-column {
    align-items: center;
    max-width: 600px;
    text-align: center;
  }

  .bio-quote {
    text-align: left;
    margin-top: 20px;
  }

  .hobbies-column {
    margin-top: 0;
    width: 100%;
  }

    .a2o-layout-wrapper {
    flex-direction: column;
    width: 92%;
    gap: 30px;
  }

  .a2o-intro-side {
    flex: none;
    width: 100%;
  }

  .a2o-tab-nav {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .a2o-tab-btn {
    flex: 1;
    min-width: 160px;
  }

  .a2o-deck-wrapper {
    width: 100%;
    min-height: 520px;
    margin-bottom: 30px;
  }
}

@media screen and (max-width: 767px) {
  html,
  body {
    overflow-x: hidden;
    width: 100%;
  }

  
  .logo {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    margin: 10px auto 20px auto;
    width: 100%;
    text-align: center;
    height: auto;
  }

  .container {
    height: auto !important;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    padding: 15px;
    margin-bottom: 80px;
    transform: none !important;
    width: 100%;
  }

  .card {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1;
    margin: 0 !important;
    transform: none !important;
    opacity: 1;
    animation: none;
  }

  #projects {
    grid-column: span 2;
    height: auto !important;
    padding: 20px;
    aspect-ratio: unset;
  }
  #projects p {
    font-size: 50px;
  }
  #projects span {
    font-size: 20px;
  }
  .card-inner {
    animation: none !important;
  }

  .section-title {
    margin-left: 20px;
    margin-right: 20px;
    width: auto;
    margin-bottom: 40px;
  }
  .section-title h1 {
    font-size: 34px;
    line-height: 1.2;
    margin-bottom: 20px;
  }
  .section-title p {
    margin-top: 0;
    font-size: 16px;
    line-height: 1.6;
    color: #555;
  }

  .timeline {
    margin-left: 0;
    padding-left: 0;
    position: relative;
  }
  .timeline::before {
    left: 20px;
    width: 2px;
  }

  .timeline-item {
    padding-left: 45px;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 50px;
    position: relative;
  }
  .timeline-dot {
    left: 21px;
    transform: translateX(-50%);
    top: 0;
    margin-bottom: 15px;
    position: absolute;
  }
  .timeline-details {
    padding-left: 10 !important;
    width: 95%;
    margin-top: 5px;
    padding: 20px;
  }

  .double-track-wrapper {
    flex-direction: column;
    padding: 0 20px;
  }
  .timeline-column,
  .stack-column {
    padding: 0;
    margin-bottom: 50px;
    width: 100%;
  }
  .timeline-column .timeline-item {
    margin-bottom: 40px;
    padding-left: 0;
    display: flex;
    flex-direction: row; 
    align-items: center; 
    text-align: left; 
    border: none;
  }

  .timeline-column h2 {
    text-align: center;
    width: 100%;
    margin-right: 0;
  }

  .timeline-icon {
    margin-right: 20px; 
    margin-bottom: 0; 
    flex-shrink: 0; 
    transform: none;
  }

  
  .me-container {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

  .bio-column {
    max-width: 100%;
    align-items: center;
    text-align: center;
  }

  .hobbies-column {
    width: 100%;
    margin-top: 20px;
    transform: scale(0.8);
  }

    .a2o-layout-wrapper {
    flex-direction: column;
    width: 100%;
    padding: 0 16px;
    gap: 20px;
  }

  .a2o-intro-side {
    flex: none;
    width: 100%;
    padding: 20px 16px;
  }

  .a2o-tab-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .a2o-deck-wrapper {
    width: 100%;
    min-height: 640px;
    margin-bottom: 50px;
  }

  .a2o-reading-card {
    padding: 20px 16px;
  }

  .reading-card-footer {
    flex-wrap: wrap;
    gap: 10px;
  }

  .reading-next-btn,
  .reading-prev-btn {
    font-size: 11.5px;
    padding: 8px 12px;
  }

  .a2o-reading-card.is-next {
    transform: translate(8px, -8px) scale(0.98);
  }

  .a2o-reading-card.is-last {
    transform: translate(16px, -16px) scale(0.96);
  }

  .card-mono-logo {
    font-size: 32px;
  }

  .card#hob span {
    font-size: 13px !important;
  }
}

.jumbotron-container {
  position: relative;
  width: 100%;
  height: 180px;
  display: flex;
  justify-content: center;
  perspective: 1200px;
  z-index: 10;
  margin-bottom: 0;
  margin-top: 20px;
}

.jumbo-scene {
  width: 260px;
  height: 140px;
  position: relative;
  transform-style: preserve-3d;
}

.jumbo-cube {
  width: 100%;
  height: 100%;
  position: absolute;
  transform-style: preserve-3d;
  animation: rotateJumbotron 20s infinite linear;
}

.jumbo-screen {
  position: absolute;
  width: 260px;
  height: 140px;

  background: rgba(255, 255, 255, 0.95);

  border: 1px solid rgba(0, 0, 0, 0.1);

  box-shadow: 0 0 20px rgba(0, 122, 255, 0.15);

  overflow: hidden;
  backface-visibility: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.screen-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.1;
  filter: grayscale(100%);
  z-index: 0;
}
.screen-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.screen-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.screen-content h2 {
  font-family: "IBM Plex Mono", sans-serif;
  font-size: 32px;
  font-weight: 800;
  margin: 0;
  text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.05);
  letter-spacing: 1px;
}

.screen-content span {
  display: inline-block;
  font-size: 12px;
  color: #555;
  letter-spacing: 3px;
  font-weight: 600;
  margin-top: 5px;
  padding-top: 5px;
  border-top: 2px solid;
}

.screen-front {
  transform: rotateY(0deg) translateZ(130px);
}
.screen-back {
  transform: rotateY(180deg) translateZ(130px);
}
.screen-right {
  transform: rotateY(90deg) translateZ(130px);
}
.screen-left {
  transform: rotateY(-90deg) translateZ(130px);
}

.jumbo-lid {
  position: absolute;
  width: 260px;
  height: 260px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.05);
}
.lid-top {
  transform: rotateX(90deg) translateZ(70px);
  top: -60px;
}

@keyframes rotateJumbotron {
  from {
    transform: rotateX(-10deg) rotateY(0deg);
  }
  to {
    transform: rotateX(-10deg) rotateY(360deg);
  }
}

.hologram-beam {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateX(-50%);

  width: 220px;
  height: 200px;

  background: linear-gradient(
    to bottom,
    rgba(0, 188, 212, 0.15) 0%,
    rgba(0, 122, 255, 0.05) 50%,
    rgba(0, 0, 0, 0) 100%
  );

  clip-path: polygon(15% 0%, 85% 0%, 100% 100%, 0% 100%);

  pointer-events: none;
  z-index: -1;
  margin-top: 70px;
}

.slider-3d-wrapper.hologram-mode {
  margin-top: 100px;
  width: 300px;
  height: 200px;
  position: relative;
  z-index: 5;
  perspective: 1000px;
}

.slider-3d-carousel {
  width: 100%;
  height: 100%;
  position: absolute;
  transform-style: preserve-3d;
  animation: rotateCarousel 15s infinite linear;
  transform-origin: center center;
}
@keyframes rotateCarousel {
  from {
    transform: rotateX(10deg) rotateY(0deg);
  }
  to {
    transform: rotateX(10deg) rotateY(360deg);
  }
}

.hologram-mode .slider-item {
  background: transparent;
  box-shadow: none;
  border: none;
  width: 140px;
  height: 140px;

  top: 50%;
  left: 50%;
  margin-left: -70px;
  margin-top: -70px;

  opacity: 0.9;
  filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1));
}

.hologram-mode .slider-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(1.05);
}

.item-manga {
  transform: rotateY(0deg) translateZ(110px);
}
.item-basket {
  transform: rotateY(120deg) translateZ(110px);
}
.item-music {
  transform: rotateY(240deg) translateZ(110px);
}

.hologram-base {
  position: absolute;
  bottom: 0px;
  left: 25%;
  width: 50%;
  height: 15px;
  background: radial-gradient(rgba(0, 188, 212, 0.4), transparent 70%);
  transform: rotateX(70deg);
  filter: blur(10px);
  z-index: -1;
}

#me-content {
  scroll-margin-top: -100px;
}

#me-content .section-title::after {
  background: var(--color-yellow);
}

#stage-a2o-content .section-title::after {
  background: var(--color-blue);
}

#Crea-content .section-title::after {
  background: var(--color-cyan);
}

#contact-content .section-title::after {
  background: var(--color-dark);
}

#zoom-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.6); 
  backdrop-filter: blur(5px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: none; 
}

#zoom-overlay.active {
  opacity: 1;
  visibility: visible;
}

.zoom-content {
  
  width: 80vw; 
  height: 80vh;
  max-width: 1000px;
  
  display: flex;
  justify-content: center;
  align-items: center;
  
  
  transform: translateY(20px) scale(0.9);
  transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  
  
  background: transparent;
  box-shadow: none;
  border: none;
  border-radius: 0;
  overflow: hidden;
  
  pointer-events: none; 
}

#zoom-overlay.active .zoom-content {
  transform: translateY(0) scale(1);
}

.zoom-content embed,
.zoom-content img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

#scrollToTopBtn {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 50px;
  height: 50px;
  background: var(--color-dark);
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

#scrollToTopBtn.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#scrollToTopBtn:hover {
  background: var(--color-pink);
  transform: translateY(-5px);
}

.logo {
  cursor: pointer;
}
