/* ===== STRUCTURE & BASICS ===== */
body {
  font-family: "Roboto", serif;
  background: linear-gradient(135deg, black, #220033);
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  margin: 0;
  padding: 0 0 50px 0;
  width: 100%;
  cursor: none;
  overflow-x: hidden;
  overflow-y: auto;
}

* {
  cursor: none !important;
}

html {
  overflow: hidden;
}

/* ===== ANIMATED BACKGROUND ===== */
.animated-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  background: linear-gradient(135deg, #000000 0%, #220033 100%);
}

.glow-effect {
  position: absolute;
  width: 60vw;
  height: 60vh;
  background: radial-gradient(circle at center, rgba(102, 0, 204, 0.4) 0%, transparent 70%);
  filter: blur(60px);
  animation: glow-move 15s infinite alternate ease-in-out;
}

@keyframes glow-move {
  0% { transform: translate(-20%, -20%); }
  25% { transform: translate(20%, 10%); }
  50% { transform: translate(10%, 20%); }
  75% { transform: translate(-10%, -10%); }
  100% { transform: translate(-15%, 15%); }
}

.particles-container {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.particle {
  position: absolute;
  background: rgba(138, 43, 226, 0.6);
  border-radius: 50%;
  filter: blur(1px);
  animation: float-up linear infinite;
  will-change: transform;
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
}

@keyframes float-up {
  to { transform: translateY(-100vh); opacity: 0; }
}

/* ===== GALAXY EFFECTS ===== */
.galaxy-edges {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.left-galaxy, .right-galaxy {
  position: absolute;
  top: 0;
  width: 20vw;
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(138, 43, 226, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
  transition: all 0.8s ease;
}

.left-galaxy { left: 0; }
.right-galaxy { right: 0; }

body:hover .left-galaxy {
  transform: translateX(10px);
  background: radial-gradient(ellipse at center, rgba(138, 43, 226, 0.25) 0%, rgba(0, 0, 0, 0) 70%);
}

body:hover .right-galaxy {
  transform: translateX(-10px);
  background: radial-gradient(ellipse at center, rgba(75, 0, 130, 0.25) 0%, rgba(0, 0, 0, 0) 70%);
}

.nebula {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.15;
  animation: drift 30s infinite linear;
}

@keyframes drift {
  0% { transform: translate(0, 0); }
  50% { transform: translate(50px, 50px); }
  100% { transform: translate(0, 0); }
}

/* ===== STARS ===== */
.stars-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
  will-change: transform;
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
}

.star {
  position: absolute;
  border-radius: 50%;
  background: white;
  will-change: transform;
  transition: transform 0.1s linear;
}

.star.tiny { width: 2px; height: 2px; opacity: 0.6; }
.star.small { width: 3px; height: 3px; opacity: 0.8; }
.star.medium { width: 5px; height: 5px; opacity: 1; }

.star.blue { background: #b9b9b9; }
.star.purple { background: #d6d6d6; }
.star.white { background: white; }

.star::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: inherit;
  border-radius: inherit;
  opacity: 0;
  transform: scale(1.5);
  transition: all 0.5s ease-out;
}

.star.moving::after {
  opacity: var(--trail-opacity, 1);
  transform: scale(var(--trail-scale, 2));
  filter: blur(1px);
}

.star.tiny::after { --trail-scale: 5; }
.star.small::after { --trail-scale: 7; }
.star.medium::after { --trail-scale: 8; }

/* ===== CURSOR ===== */
.cursor {
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  --size: 40px;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.8);
  transform: translate(-50%, -50%) scale(1);
  transition: opacity 0.2s ease, transform 0.2s ease;
  opacity: 1;
  display: none;
  pointer-events: none;
}

.cursor::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}

.cursor.shockwave::after {
  animation: cursorShockwave 0.4s ease-out;
}

@keyframes cursorShockwave {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}

@media (pointer: fine) {
  .cursor { display: block; }
}

.cursor2 {
  --size: 10px;
  border: none;
  background: rgba(255, 255, 255, 0.8);
  transform: translate(-50%, -50%) scale(1);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.cursor-active {
  animation: cursorPulse 1s ease-in-out infinite;
}

.cursor-active + .cursor2,
.cursor2.cursor-active {
  animation: cursorPulse2 1.2s ease-in-out infinite;
}

.cursor-hidden {
  opacity: 0 !important;
}

@keyframes cursorPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(0.9); }
  50% { transform: translate(-50%, -50%) scale(1.4); }
}

@keyframes cursorPulse2 {
  0%, 100% { transform: translate(-50%, -50%) scale(0.8); }
  50% { transform: translate(-50%, -50%) scale(1.8); }
}

/* ===== HERO SECTION ===== */
.hero-section {
  color: #fff;
  padding: 10px 20px 0px 20px;
  text-align: center;
  min-height: auto;
  display: grid;
  grid-template-rows: auto auto;
  justify-items: center;
  row-gap: 50px;
}

.hero-content {
  width: min(100%, 920px);
}

.profile-and-social-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 30px;
  width: 100%;
  max-width: 820px;
}

.profile-picture-wrapper {
  width: min(240px, 25vw);
  height: min(240px, 25vw);
  padding-bottom: 0;
}

.social-icon-wrapper {
  width: clamp(90px, 10vw, 120px);
  height: clamp(90px, 10vw, 120px);
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.hero-section h1 {
  font-size: clamp(2.5em, 5vw, 4em);
  margin-bottom: 30px;
  text-shadow: 0 0 5px rgba(255,255,255,0.1), 0 0 10px rgba(255,255,255,0.1), 0 0 20px rgba(255,255,255,0.3);
  animation: flicker 3s linear infinite alternate;
}

@keyframes flicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
    text-shadow: 0 0 5px rgba(255,255,255,0.1), 0 0 10px rgba(255,255,255,0.1), 0 0 20px rgba(255,255,255,0.3), 0 0 40px rgba(255,255,255,0.2);
  }
  20%, 24%, 55% { text-shadow: none; }
}

.hero-section p {
  position: relative;
  font-size: clamp(1em, 1.8vw, 1.2em);
  line-height: 1.6;
  margin: 20px auto 30px;
  max-width: 80%;
  animation: fadeInUp 1s ease-out 0.6s both;
  color: #fff;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes gentlePulse {
  0%, 100% { opacity: 0.9; text-shadow: 0 0 2px #fff, 0 0 5px rgba(255,255,255,0.3); }
  50% { opacity: 1; text-shadow: 0 0 5px #fff, 0 0 10px rgba(255,255,255,0.5), 0 0 15px rgba(255,255,255,0.2); }
}

.hero-section p::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 50%, rgba(255,255,255,0.1) 100%);
  opacity: 0;
  transition: opacity 0.6s ease;
  border-radius: 5px;
}

.hero-section p:hover::after {
  opacity: 1;
  animation: shine 2s infinite;
}

@keyframes shine {
  0% { background-position: -100% 0; }
  100% { background-position: 200% 0; }
}

/* ===== PROFILE & SOCIAL ROW ===== */
.profile-and-social-row {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
}

.profile-picture-wrapper {
  width: min(240px, 25vw);
  height: min(240px, 25vw);
  position: relative;
  border-radius: 50%;
  overflow: hidden;
  margin: 100px 40px 0;
  flex-shrink: 0;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform-style: preserve-3d;
}

.hero-round {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease-out;
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

/* ===== SOCIAL ICONS ===== */
.social-icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  animation: iconEntrance 0.8s ease-out both;
}

.social-icon-link:nth-child(1) { animation-delay: 0.6s; }
.social-icon-link:nth-child(3) { animation-delay: 0.8s; }

@keyframes iconEntrance {
  from { opacity: 0; transform: translateY(20px) rotate(10deg); }
  to { opacity: 1; transform: translateY(0) rotate(0); }
}

.social-icon-wrapper {
  width: 133px;
  height: 133px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.social-icon {
  width: 50%;
  height: 50%;
  transition: all 0.3s ease;
  z-index: 2;
}

.social-icon-wrapper::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.social-icon-link:hover .social-icon-wrapper {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.social-icon-link:hover .social-icon-wrapper::before { opacity: 1; }

.linkedin .social-icon { fill: #c0bfbf; }
.github .social-icon { fill: #c0bfbf; }

.linkedin:hover .social-icon-wrapper { box-shadow: 0 0 20px rgba(10, 102, 194, 0.4); }
.github:hover .social-icon-wrapper { box-shadow: 0 0 20px rgba(200, 200, 200, 0.4); }

.social-effect {
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  animation: shockwave 0.8s ease-out;
  pointer-events: none;
}

@keyframes shockwave {
  0% { transform: scale(0.95); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* ===== CAROUSEL ===== */
.container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.carousel-container {
  position: relative;
  width: 100%;
  height: auto;
  padding: 50px 0;
  overflow: visible;
}

.carousel {
  overflow: visible;
  position: relative;
  height: auto;
  min-height: 500px;
  padding: 50px 0;
  margin: 0 auto;
  transform-style: preserve-3d;
}

.carousel-item {
  overflow: hidden;
  --items: 10;
  --width: clamp(220px, 40vw, 450px);
  --height: clamp(280px, 50vw, 600px);
  --x: calc(var(--active) * 700%);
  --y: calc(var(--active) * 200%);
  --rot: calc(var(--active) * 120deg);
  position: absolute;
  z-index: var(--zIndex);
  width: var(--width);
  height: var(--height);
  margin: calc(var(--height) * -0.5) 0 0 calc(var(--width) * -0.5);
  border-radius: clamp(16px, calc(var(--width) / 15), 20px);
  top: 50%;
  left: 50%;
  user-select: none;
  transform-origin: 0% 100%;
  box-shadow: 0 10px 50px 10px rgba(0, 0, 0, 0.5);
  pointer-events: all;
  transform: translate(var(--x), var(--y)) rotate(var(--rot));
  transition: transform 0.8s cubic-bezier(0, 0.02, 0, 1);
  perspective: 1000px;
}

/* ===== GLOWING TRAIL BORDER FOR TEXT/IMAGE BLOCKS ===== */
.glow-border,
.about-step,
.article-block,
.paragraph-block {
  position: relative;
  border: 1px solid rgba(138, 43, 226, 0.5);
  border-radius: 14px;
  background: transparent;
  box-shadow: 0 0 20px rgba(138, 43, 226, 0.25), inset 0 0 16px rgba(138, 43, 226, 0.2);
  overflow: hidden;
  z-index: 0;
}

.glow-border > *,
.about-step > *,
.article-block > *,
.paragraph-block > * {
  position: relative;
  z-index: 1;
}

.glow-border::before,
.about-step::before,
.article-block::before,
.paragraph-block::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 16px;
  background: rgba(33, 0, 48, 0.35);
  filter: blur(9px);
  opacity: 0.8;
  z-index: -2;
}

.glow-border::after,
.about-step::after,
.article-block::after,
.paragraph-block::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.4) 45%, rgba(255,255,255,0.6) 50%, rgba(255,255,255,0.4) 55%, transparent 100%);
  transform: translateX(-100%);
  z-index: 2;
  animation: trail-shimmer 8s linear infinite;
}

@keyframes trail-shimmer {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  25% {
    transform: translateX(100%);
    opacity: 1;
  }
  35% {
    transform: translateX(200%);
    opacity: 0;
  }
  100% {
    transform: translateX(300%);
    opacity: 0;
  }
}



.carousel-item[style*="--active: 0"] {
  filter: brightness(1) drop-shadow(0 15px 30px rgba(0, 0, 0, 0.4));
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  z-index: 20;
}

.carousel-item:not([style*="--active: 0"]) {
  filter: brightness(0.85);
}

.carousel-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.05) 100%);
  z-index: 2;
  pointer-events: none;
}

.carousel-item::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(to bottom right, rgba(255, 255, 255, 0) 45%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0) 55%);
  transform: rotate(30deg);
  animation: shine2 4s infinite;
  z-index: 3;
  pointer-events: none;
}

@keyframes shine2 {
  0% { transform: rotate(30deg) translate(-30%, -30%); }
  100% { transform: rotate(30deg) translate(30%, 30%); }
}

.carousel-item.active-center {
  animation: glowPulse 2s infinite alternate;
  box-shadow: 0 0 30px rgba(132, 0, 255, 0.8);
  filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.6));
}

.carousel-item.active-center::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  z-index: 5;
  pointer-events: none;
  animation: borderGlow 2s infinite alternate;
}

@keyframes borderGlow {
  0% { box-shadow: 0 0 10px rgba(255, 255, 255, 0.3), inset 0 0 10px rgba(255, 255, 255, 0.3); }
  100% { box-shadow: 0 0 20px rgba(255, 255, 255, 0.8), inset 0 0 20px rgba(255, 255, 255, 0.8); }
}

@keyframes glowPulse {
  0% { box-shadow: 0 0 20px rgba(132, 0, 255, 0.6); }
  100% { box-shadow: 0 0 40px rgba(132, 0, 255, 1); }
}

.carousel-box {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: opacity 0.8s cubic-bezier(0, 0.02, 0, 1), transform 0.3s ease-out;
  opacity: var(--opacity);
  font-family: 'Manrope', monospace;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  will-change: transform;
}

.carousel-item:hover .carousel-box { transform: scale(1.05); }

.carousel-item.active-center .carousel-box {
  background: linear-gradient(135deg, rgba(138, 43, 226, 0.1) 0%, rgba(0, 0, 0, 0) 50%, rgba(138, 43, 226, 0.1) 100%);
  transform: translateZ(20px);
}

.carousel-item[style*="--active: 0"] .carousel-box {
  animation: cardPopIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes cardPopIn {
  0% { transform: translateZ(0); }
  50% { transform: translateZ(30px); }
  100% { transform: translateZ(20px); }
}

.carousel-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
  position: relative;
  z-index: 5;
}

.carousel-box, .carousel-box * { pointer-events: none; }

.carousel-item[style*="--active: 0"] .carousel-link { pointer-events: auto; }

.carousel-item .title {
  position: absolute;
  z-index: 1;
  color: #fff;
  bottom: 20px;
  left: 20px;
  padding: 8px 12px;
  transition: opacity 0.8s cubic-bezier(0, 0.02, 0, 1), transform 0.3s ease;
  font-size: clamp(20px, 3vw, 30px);
  text-shadow: 0 4px 4px rgba(0, 0, 0, 0.1);
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.6);
  border-radius: clamp(6px, calc(var(--width) / 40), 14px);
  z-index: 4;
}

.carousel-item:hover .title { transform: translateY(-5px); }

.carousel-item .num {
  position: absolute;
  z-index: 1;
  color: #fff;
  top: 10px;
  left: 20px;
  padding: 4px 8px;
  transition: opacity 0.8s cubic-bezier(0, 0.02, 0, 1), transform 0.3s ease;
  font-size: clamp(20px, 10vw, 80px);
  text-shadow: 0 0 15px #4dfdff;
  background: rgba(0, 0, 0, 0.5);
  border-radius: clamp(6px, calc(var(--width) / 45), 14px);
  z-index: 4;
}

.carousel-item:hover .num { transform: scale(1.1); }

.carousel-item.active-center .title,
.carousel-item.active-center .num {
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* ===== INFO SECTION & TABS ===== */
.info-section {
  max-width: 95%;
  margin: 30px auto;
  text-align: center;
}

.tab-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
}

.tab-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 10px 20px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1em;
  position: relative;
  overflow: hidden;
}

.tab-btn:hover { background: rgba(255, 255, 255, 0.2); }

.tab-btn.active {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
  animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 10px rgba(255, 255, 255, 0.5); }
  50% { box-shadow: 0 0 20px rgba(255, 255, 255, 0.8); }
  100% { box-shadow: 0 0 10px rgba(255, 255, 255, 0.5); }
}

.tab-btn:active { animation: buttonClickWave 0.6s cubic-bezier(0.4, 0, 0.2, 1); }

.tab-btn:active .emoji { animation: textPulse 0.6s cubic-bezier(0.4, 0, 0.2, 1); }

.tab-btn.active-click { transform: translateY(3px); box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important; }

@keyframes buttonClickWave {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
  50% { transform: scale(0.95); }
  100% { transform: scale(1); box-shadow: 0 0 0 20px rgba(255, 255, 255, 0); }
}

@keyframes textPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.ripple-effect {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, transparent 70%);
  transform: scale(0);
  animation: ripple 0.6s linear;
  pointer-events: none;
  z-index: 1;
}

@keyframes ripple {
  to { transform: scale(4); opacity: 0; }
}

.tab-content {
  display: none;
  animation: fadeIn 0.5s ease;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.tab-content.active {
  display: block;
  animation: slideInFade 0.8s cubic-bezier(0.23, 1, 0.32, 1) both;
}

@keyframes slideInFade {
  0% { opacity: 0; transform: translateY(20px) perspective(500px) rotateX(10deg); filter: blur(2px); }
  100% { opacity: 1; transform: translateY(0) perspective(500px) rotateX(0); filter: blur(0); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.tab-content.active p { animation: slideInFade 0.8s 0.2s cubic-bezier(0.23, 1, 0.32, 1) both; }

.tab-content.active .icons { animation: slideInFade 0.8s 0.4s cubic-bezier(0.23, 1, 0.32, 1) both; }

.tab-content p {
  line-height: 1.6;
  margin-bottom: 20px;
  position: relative;
}

/* about-step layout alternée */
.about-steps {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 10px;
}

.about-step {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  padding: 16px;
  backdrop-filter: blur(8px);
}

.about-step-left .about-text { order: 2; transform: translateX(80px); }
@media (max-width: 768px) {
  .about-step-left .about-text {
    transform: translateX(0);
  }
}
.about-step-left .about-image { order: 1; }
.about-step-right .about-text { order: 1; }
.about-step-right .about-image { order: 2; }

.about-text {
  flex: 1;
}

.about-text p {
  margin: 0;
  color: #f1f1ff;
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
}

.about-image {
  flex-shrink: 0;
  width: min(180px, 25%);
  max-width: 180px;
}

.about-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  display: block;
}

@media (max-width: 860px) {
  .about-step {
    flex-direction: column;
    text-align: center;
  }

  .about-step-left .about-text,
  .about-step-right .about-text,
  .about-step-left .about-image,
  .about-step-right .about-image {
    order: 0;
  }

  .about-image {
    width: 100%;
    max-width: 100%;
  }
}

.tab-content p::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 50%, rgba(255,255,255,0.1) 100%);
  opacity: 0;
  transition: opacity 0.6s ease;
  border-radius: 5px;
  pointer-events: none;
}

.tab-content p:hover::after {
  opacity: 1;
  animation: shine 2s infinite;
}

.tab-content a[href^="mailto:"] {
  color: #a86ef5;
  font-weight: 600;
  text-decoration: none;
  background: rgba(0, 0, 0, 0.3);
  padding: 2px 8px;
  border-radius: 4px;
  transition: all 0.3s ease;
  display: inline-block;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.tab-content a[href^="mailto:"]:hover {
  color: #ffffff;
  background: rgba(199, 79, 247, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

a:not(.social-icon-link):not(.carousel-link):not(:has(img)){
  color: #a86ef5;
  font-weight: 600;
  text-decoration: none;
  background: rgba(0, 0, 0, 0.3);
  padding: 2px 8px;
  border-radius: 4px;
  transition: all 0.3s ease;
  display: inline-block;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

a:not(.social-icon-link):not(.carousel-link):not(:has(img)):hover {
  color: #ffffff;
  background: rgba(199, 79, 247, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

a:not(.social-icon-link):not(.carousel-link) img {
  transition: transform 0.75s cubic-bezier(0.22, 1, 0.36, 1),
              filter 0.75s ease,
              box-shadow 0.75s ease;
  border-radius: 10px;
}

a:not(.social-icon-link):not(.carousel-link):hover img {
  transform: translateY(-8px) scale(1.04);
  box-shadow: 
    0 10px 25px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(168, 110, 245, 0.6),
    0 0 40px rgba(168, 110, 245, 0.4);
}

#contact { padding: 20px; }

.icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  font-size: 1.5em;
  margin-top: 15px;
}

.emoji { font-size: 1.2em; }

@media (min-width: 1025px) {
  .tab-content p {
    font-size: 1.3em;
  }
}

/* ===== PARALLAX EFFECT ===== */
@media (hover: none) and (pointer: coarse) {
  body { -webkit-overflow-scrolling: touch; }
  .carousel-container { touch-action: pan-y; }
  .carousel-item:active { transform: scale(0.95) !important; transition: transform 0.1s; }
  .tab-btn:active { background: rgba(255, 255, 255, 0.3) !important; transform: scale(0.98); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .carousel-item {
    --width: 48vw !important;
    --height: 58vh !important;
  }
  .profile-picture-wrapper {
    width: 200px !important;
    height: 200px !important;
  }
}

@media (max-width: 768px) {
  .stars-container {
    display: none !important;
  }
  .profile-picture-wrapper {
    width: 160px !important;
    height: 160px !important;
    margin: 80px 0 0px !important;
  }
  .profile-and-social-row {
    gap: 50px !important;
    margin: 10px 0 10px !important;
    padding: 20px 0 !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
  }
  .social-icon-wrapper {
    width: 90px !important;
    height: 90px !important;
  }
  .carousel {
    min-height: 300px !important;
    padding: 30px 0 !important;
  }
  .carousel-item {
    --width: 45vw !important;
    --height: 35vh !important;
    --x: calc(var(--active) * 600%) !important;
    --y: calc(var(--active) * 60%) !important;
    margin: calc(var(--height) * -0.5) 0 0 calc(var(--width) * -0.5) !important;
  }
  .tab-buttons {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
  }
  .tab-btn { font-size: 0.9em !important; width: 100% !important; padding: 10px 20px !important; justify-content: center !important; }
  .carousel-item .title {
    font-size: 0.9em !important;
    bottom: 10px;
    left: 10px;
  }
  .carousel-item .num {
    font-size: 1.2em !important;
    top: 5px;
    left: 10px;
  }
  .hero-section {
    padding: 10px 15px 0px 15px !important;
    min-height: auto;
  }
  .hero-section h1 {
    font-size: 1.6em !important;
    margin-bottom: 15px !important;
  }
  .hero-section p {
    font-size: 0.9em !important;
    line-height: 1.4 !important;
    margin: 10px auto 20px !important;
    max-width: 90% !important;
  }
}

@media (max-width: 480px) {
  .stars-container {
    display: none !important;
  }
  .profile-picture-wrapper {
    width: 110px !important;
    height: 110px !important;
    margin: 100px 0 20px !important;
  }
  .profile-and-social-row {
    gap: 40px !important;
    margin: 10px 0 20px !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
  }
  .social-icon-wrapper {
    width: 65px !important;
    height: 65px !important;
  }
  .carousel-item {
    --width: 55vw !important;
    --height: 35vh !important;
    --x: calc(var(--active) * 450%) !important;
    --y: calc(var(--active) * 50%) !important;
    margin: calc(var(--height) * -0.5) 0 0 calc(var(--width) * -0.5) !important;
  }
  .carousel {
    min-height: 250px !important;
    padding: 20px 0 !important;
  }
  .hero-section h1 {
    font-size: 1.4em !important;
    margin-bottom: 10px !important;
  }
  .hero-section p {
    font-size: 0.85em !important;
    margin: 8px auto 15px !important;
  }
  .tab-buttons {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    width: 90% !important;
    margin: 0 auto 20px auto !important;
  }
  .tab-btn {
    padding: 12px 20px !important;
    font-size: 0.9em !important;
    width: 100% !important;
    justify-content: center !important;
  }
  .tab-btn .emoji { font-size: 1em !important; }
  .tab-content.active p { animation: none !important; }
  .tab-content.active .icons { animation: none !important; }
}

@media (max-width: 360px) {
  .stars-container {
    display: none !important;
  }
  .profile-picture-wrapper {
    width: 75px !important;
    height: 75px !important;
    margin: 110px 0 20px 0 !important;
  }
  .profile-and-social-row { 
    gap: 30px !important;
    flex-wrap: wrap !important;
  }
  .social-icon-wrapper {
    width: 65px !important;
    height: 65px !important;
  }
  .carousel-item {
    --width: 50vw !important;
    --height: 30vh !important;
    margin: calc(var(--height) * -0.5) 0 0 calc(var(--width) * -0.5) !important;
  }
  .tab-buttons {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    width: 90% !important;
    margin: 0 auto 20px auto !important;
  }
  .tab-btn {
    width: 100% !important;
    padding: 12px 20px !important;
    justify-content: center !important;
  }
  .tab-content.active p { animation: none !important; }
  .tab-content.active .icons { animation: none !important; }
}


@media (min-width: 1025px) {
  .tab-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    justify-content: center;
  }

  .tab-btn {
    padding: 18px 20px;
    font-size: 1.3em;

    justify-content: center; 
    text-align: center;      
  }
}




.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}


.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}


@media (max-width: 768px) {
  .about-image img {
    max-width: 150px;   
    width: 100%;        
    height: auto;
    margin: 0 auto;     
    display: block;
  }
}