/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 5rem 6rem;
  position: relative;
  z-index: 1;
  gap: 4rem;
}

.hero-content {
  flex: 1;
  max-width: 640px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0.5px solid rgba(52, 211, 153, 0.4);
  background: rgba(52, 211, 153, 0.08);
  color: var(--green);
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.375rem 1rem;
  border-radius: 100px;
  margin-bottom: 2rem;
  width: fit-content;
  opacity: 0;
}

.badge-dot {
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(3.5rem, 7vw, 6.5rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  opacity: 1;
}

.gsap-hero-line {
  white-space: nowrap;
}

.hero-char {
  display: inline-block;
  opacity: 0;
}

@keyframes heroFadeIn {
  to { opacity: 1; transform: translateY(0); }
}

.hero-role-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--text-2);
  margin-bottom: 1.25rem;
  min-height: 2.2rem;
  opacity: 0;
}

.hero-role-label {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
}

.hero-role-rotate {
  position: relative;
  height: 2.5rem;
  overflow: hidden;
  min-width: 240px;
}

.role-text {
  display: block;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  color: var(--purple);
  position: absolute;
  top: 0;
  left: 0;
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55), opacity 0.3s ease;
  opacity: 0;
  white-space: nowrap;
  z-index: 2;
}

.role-text.active {
  transform: translateY(0) !important;
  opacity: 1 !important;
}

.role-text.exit {
  transform: translateY(-100%);
  opacity: 0;
}

.hero-sub {
  font-size: 1.125rem;
  color: var(--text-2);
  max-width: 520px;
  margin-bottom: 2.5rem;
  font-weight: 300;
  line-height: 1.85;
  opacity: 0;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
}

.hero-stack {
  margin-top: 3.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  opacity: 0;
}

.hero-stack-label {
  font-size: 0.8125rem;
  color: var(--text-3);
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.stack-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.3rem 0.85rem;
  border-radius: 100px;
  border: 0.5px solid;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: default;
}

.chip:hover {
  transform: translateY(-2px);
}

.chip-purple { color: var(--purple); border-color: rgba(139, 92, 246, 0.35); background: rgba(139, 92, 246, 0.08); }
.chip-purple:hover { box-shadow: 0 4px 15px rgba(139, 92, 246, 0.15); }
.chip-pink { color: var(--pink); border-color: rgba(236, 72, 153, 0.35); background: rgba(236, 72, 153, 0.08); }
.chip-pink:hover { box-shadow: 0 4px 15px rgba(236, 72, 153, 0.15); }
.chip-cyan { color: var(--cyan); border-color: rgba(34, 211, 238, 0.35); background: rgba(34, 211, 238, 0.08); }
.chip-cyan:hover { box-shadow: 0 4px 15px rgba(34, 211, 238, 0.15); }
.chip-amber { color: var(--amber); border-color: rgba(251, 191, 36, 0.35); background: rgba(251, 191, 36, 0.08); }
.chip-amber:hover { box-shadow: 0 4px 15px rgba(251, 191, 36, 0.15); }
.chip-green { color: var(--green); border-color: rgba(52, 211, 153, 0.35); background: rgba(52, 211, 153, 0.08); }
.chip-green:hover { box-shadow: 0 4px 15px rgba(52, 211, 153, 0.15); }

/* ---- Hero Visual (SVG) ---- */
.hero-visual {
  flex: 0 0 40%;
  max-width: 480px;
  position: relative;
  opacity: 0;
  animation: heroFadeIn 0.8s 0.6s ease forwards;
}

.hero-svg {
  width: 100%;
  height: auto;
}

.hero-svg-rect {
  animation: floatShape 6s ease-in-out infinite;
}

.hero-svg-rect-2 {
  animation: floatShape 8s ease-in-out 1s infinite;
}

.float-dot {
  animation: floatDot 4s ease-in-out infinite;
}

.float-dot.d1 { animation-delay: 0s; }
.float-dot.d2 { animation-delay: 1s; }
.float-dot.d3 { animation-delay: 2s; }
.float-dot.d4 { animation-delay: 3s; }

.svg-line {
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: drawLine 2s ease-in-out 1.5s forwards;
}

.svg-line.l1 { animation-delay: 1.8s; }
.svg-line.l2 { animation-delay: 2.2s; }
.svg-line.l3 { animation-delay: 2.6s; }

@keyframes floatShape {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-12px) rotate(1deg); }
  66% { transform: translateY(8px) rotate(-1deg); }
}

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

@keyframes drawLine {
  to { stroke-dashoffset: 0; }
}

/* ---- Scroll Indicator ---- */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0;
}

.scroll-text {
  font-size: 0.6875rem;
  color: var(--text-3);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 30px;
  background: linear-gradient(to bottom, var(--purple), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  50.01% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ========================================
   SECTION DIVIDERS
   ======================================== */
.section-divider {
  position: relative;
  z-index: 2;
  line-height: 0;
  margin-top: -1px;
}

.section-divider svg {
  display: block;
  width: 100%;
  height: auto;
}

.section-divider.flipped svg {
  transform: rotate(180deg);
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about { background: var(--bg-2); }

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-text p {
  color: var(--text-2);
  font-size: 1.0625rem;
  margin-bottom: 1.25rem;
  font-weight: 300;
  line-height: 1.9;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.stat-card {
  background: var(--card);
  padding: 2rem 1.75rem;
  transition: background var(--transition-fast), transform var(--transition-fast);
  cursor: default;
}

.stat-card:hover {
  background: var(--bg-3);
  transform: scale(1.02);
}

.stat-num {
  font-family: 'Syne', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.375rem;
}

.s1 { color: var(--purple); }
.s2 { color: var(--pink); }
.s3 { color: var(--cyan); }
.s4 { color: var(--amber); }

.stat-label { color: var(--text-3); font-size: 0.875rem; }

/* ========================================
   SKILLS SECTION
   ======================================== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 1.5rem;
}

.skill-card {
  background: var(--card);
  padding: 2rem 1.5rem;
  position: relative;
  overflow: hidden;
  transition: background 0.35s, transform 0.35s;
  cursor: default;
}

.skill-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.skill-card:hover {
  background: var(--bg-3);
  transform: translateY(-4px);
}

.skill-card:hover::before {
  transform: scaleX(1);
}

.skill-icon {
  font-size: 28px;
  margin-bottom: 1rem;
  display: block;
  transition: transform 0.4s var(--cubic-bounce);
}

.skill-card:hover .skill-icon {
  transform: scale(1.25) rotate(8deg);
}

.skill-name {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.skill-tools {
  font-size: 0.8125rem;
  color: var(--text-3);
  line-height: 1.6;
}

.sk-1::before { background: var(--purple); }
.sk-2::before { background: var(--cyan); }
.sk-3::before { background: var(--green); }
.sk-4::before { background: var(--pink); }
.sk-5::before { background: var(--amber); }
.sk-6::before { background: var(--pink); }
.sk-7::before { background: var(--cyan); }
.sk-8::before { background: var(--purple); }

.sk-1 .skill-icon { color: var(--purple); }
.sk-2 .skill-icon { color: var(--cyan); }
.sk-3 .skill-icon { color: var(--green); }
.sk-4 .skill-icon { color: var(--pink); }
.sk-5 .skill-icon { color: var(--amber); }
.sk-6 .skill-icon { color: var(--pink); }
.sk-7 .skill-icon { color: var(--cyan); }
.sk-8 .skill-icon { color: var(--purple); }

/* ========================================
   PROJECTS SECTION
   ======================================== */
.projects { background: var(--bg-2); }

.projects-grid {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.5rem;
  scrollbar-width: none;
}

.projects-grid::-webkit-scrollbar {
  display: none;
}

.projects-reel-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.projects-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text-2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  transition: all 0.3s ease;
  flex-shrink: 0;
  z-index: 2;
}

.projects-arrow:hover {
  background: var(--purple);
  color: #fff;
  border-color: var(--purple);
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

.projects-arrow:active {
  transform: scale(0.95);
}

.projects-arrow i {
  pointer-events: none;
}

.project-card {
  flex: 0 0 auto;
  width: calc(50% - 0.75rem);
  min-width: 360px;
  scroll-snap-align: start;
  background: var(--card);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color 0.3s, transform 0.35s, box-shadow 0.35s;
  position: relative;
  overflow: hidden;
}

.project-card:hover {
  border-color: var(--border-2);
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

.project-card-accent {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}

.pa-1 { background: linear-gradient(90deg, var(--purple), var(--pink)); }
.pa-2 { background: linear-gradient(90deg, var(--cyan), var(--green)); }
.pa-3 { background: linear-gradient(90deg, var(--amber), var(--pink)); }
.pa-4 { background: linear-gradient(90deg, var(--purple), var(--cyan)); }
.pa-5 { background: linear-gradient(90deg, var(--amber), var(--green)); }

/* ---- Project Image ---- */
.project-img-wrap {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: calc(var(--radius) - 4px);
  margin-bottom: 1rem;
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-img {
  transform: scale(1.08);
}

.project-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1rem;
  margin-top: 0.5rem;
}

.project-num {
  font-size: 0.75rem;
  color: var(--text-3);
  font-weight: 500;
  letter-spacing: 0.05em;
}

.project-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: transform 0.3s var(--cubic-bounce);
}

.project-card:hover .project-icon {
  transform: scale(1.1) rotate(-5deg);
}

.pi-1 { background: rgba(139, 92, 246, 0.15); color: var(--purple); }
.pi-2 { background: rgba(34, 211, 238, 0.12); color: var(--cyan); }
.pi-3 { background: rgba(251, 191, 36, 0.12); color: var(--amber); }
.pi-4 { background: rgba(52, 211, 153, 0.12); color: var(--green); }
.pi-5 { background: rgba(251, 191, 36, 0.12); color: var(--amber); }

.project-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.015em;
}

.project-desc {
  color: var(--text-2);
  font-size: 0.9375rem;
  line-height: 1.75;
  margin-bottom: 1.5rem;
  font-weight: 300;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 1.5rem;
}

.project-links {
  display: flex;
  gap: 1.25rem;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text-3);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s, transform 0.2s;
}

.project-link:hover {
  color: var(--purple);
  transform: translateX(3px);
}

.project-link i { font-size: 15px; }

/* ========================================
   TESTIMONIALS SECTION — Cinematic Reel
   ======================================== */
.testimonials {
  background: var(--bg-2);
  position: relative;
  overflow: hidden;
}

.testimonials-content {
  position: relative;
  z-index: 2;
}

/* ---- Film Grain Overlay ---- */
.testimonials-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
  mix-blend-mode: overlay;
}

/* ---- Floating Orbs ---- */
.testimonials-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.torb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform;
}

.torb-1 {
  width: 500px; height: 500px;
  background: var(--purple);
  opacity: 0.12;
  top: -10%;
  left: -5%;
  animation: torbFloat1 20s ease-in-out infinite;
}

.torb-2 {
  width: 400px; height: 400px;
  background: var(--pink);
  opacity: 0.1;
  bottom: -5%;
  right: -5%;
  animation: torbFloat2 25s ease-in-out infinite;
}

.torb-3 {
  width: 300px; height: 300px;
  background: var(--cyan);
  opacity: 0.08;
  top: 40%;
  left: 50%;
  animation: torbFloat3 18s ease-in-out infinite;
}

@keyframes torbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(60px, -40px) scale(1.1); }
  66% { transform: translate(-30px, 50px) scale(0.95); }
}

@keyframes torbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-50px, 30px) scale(1.08); }
  66% { transform: translate(40px, -40px) scale(0.92); }
}

@keyframes torbFloat3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -30px) scale(1.15); }
}

/* ---- Sprocket Holes (Film Reel) ---- */
.sprocket {
  height: 14px;
  background: repeating-radial-gradient(circle at 12px 7px, var(--border) 0, var(--border) 5px, transparent 5px, transparent 14px);
  background-size: 24px 14px;
  opacity: 0.3;
  margin: 0.5rem 0;
}

/* ---- Reel Container ---- */
.test-reel {
  margin-top: 2rem;
}

/* ---- Carousel Wrapper ---- */
.test-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.test-track-wrap {
  flex: 1;
  overflow: hidden;
  border-radius: var(--radius);
  min-height: 280px;
}

.test-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
  will-change: transform;
}

/* ---- Testimonial Card ---- */
.test-card {
  flex: 0 0 100%;
  background: var(--bg-3);
  border: 1px solid var(--purple);
  border-radius: var(--radius);
  padding: 2.5rem;
  position: relative;
  transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.5s ease;
  will-change: transform;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.test-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(135deg, var(--purple), var(--pink), var(--cyan));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.test-card.active::after {
  opacity: 0.6;
}

.test-card.active {
  box-shadow: 0 12px 48px rgba(139, 92, 246, 0.2);
  border-color: rgba(139, 92, 246, 0.3);
}

.test-card.inactive {
  opacity: 0.5;
  transform: scale(0.92);
  filter: blur(1.5px);
}

/* ---- Giant Background Quote ---- */
.test-card-bg-quote {
  position: absolute;
  top: -0.15em;
  right: 0.3em;
  font-family: 'Syne', sans-serif;
  font-size: 10rem;
  line-height: 1;
  color: var(--purple);
  opacity: 0.06;
  pointer-events: none;
  user-select: none;
}

/* ---- Stars ---- */
.test-card-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.test-card-stars .ti-star-filled {
  color: var(--amber);
  filter: drop-shadow(0 0 4px rgba(251, 191, 36, 0.4));
}

.test-card-stars .ti-star {
  color: var(--text-3);
  opacity: 0.6;
}

/* ---- Quote Text ---- */
.test-card-text {
  font-size: 1.125rem;
  line-height: 1.85;
  color: var(--text);
  font-style: italic;
  margin-bottom: 1.75rem;
  position: relative;
  z-index: 1;
  font-weight: 400;
}

/* ---- Author Block ---- */
.test-card-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.test-card-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  color: #fff;
  font-size: 1.125rem;
  position: relative;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--purple), var(--pink));
}

.test-card-avatar::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--pink), var(--cyan));
  z-index: -1;
  animation: avatarPulse 3s ease-in-out infinite;
}

@keyframes avatarPulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

.test-card-info h4 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.9375rem;
  margin-bottom: 0.2rem;
}

.test-card-info p {
  color: var(--text-2);
  font-size: 0.8125rem;
}

/* ---- Progress Bar ---- */
.test-card-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  border-radius: 0 0 var(--radius) var(--radius);
  overflow: hidden;
}

.test-card-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--purple), var(--pink));
  border-radius: 0 0 var(--radius) var(--radius);
  transition: none;
}

.test-card-progress-bar.playing {
  animation: progressFill 5s linear forwards;
}

.test-card-progress-bar.paused {
  animation-play-state: paused;
}

@keyframes progressFill {
  from { width: 0%; }
  to { width: 100%; }
}

/* ---- Arrow Buttons ---- */
.test-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text-2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: all 0.3s ease;
  flex-shrink: 0;
  z-index: 2;
}

.test-arrow:hover {
  background: var(--purple);
  color: #fff;
  border-color: var(--purple);
  transform: scale(1.1);
  box-shadow: 0 0 24px rgba(139, 92, 246, 0.35);
}

.test-arrow:active {
  transform: scale(0.95);
}

.test-arrow i {
  pointer-events: none;
}

.test-arrow--next.swipe-hint {
  animation: swipePulse 2s ease-in-out 3;
}

@keyframes swipePulse {
  0%, 100% { transform: translateX(0); opacity: 0.5; }
  50% { transform: translateX(6px); opacity: 1; }
}

/* ---- Footer (Dots + Counter) ---- */
.test-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.test-dots {
  display: flex;
  gap: 8px;
}

.test-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-3);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.test-dot.active {
  background: var(--purple);
  transform: scale(1.4);
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.5);
}

.test-dot:hover {
  background: var(--purple);
  transform: scale(1.2);
}

.test-counter {
  font-family: 'Syne', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--purple);
  letter-spacing: 0.08em;
  min-width: 4ch;
  text-align: center;
}

/* ========================================
   TIMELINE SECTION
   ======================================== */
.timeline-section { background: var(--bg); }

.timeline {
  position: relative;
  margin-top: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--purple), var(--pink), var(--cyan));
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  margin-bottom: 3rem;
  position: relative;
}

.timeline-item:nth-child(odd) { flex-direction: row-reverse; }

.timeline-content {
  width: 45%;
  background: var(--card);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform 0.35s, border-color 0.35s, box-shadow 0.35s;
}

.timeline-content:hover {
  transform: translateX(8px);
  border-color: var(--border-2);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.timeline-item:nth-child(odd) .timeline-content:hover {
  transform: translateX(-8px);
}

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 1.5rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--purple);
  border: 3px solid var(--bg);
  transform: translateX(-50%);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.2);
  z-index: 2;
}

.timeline-year {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(139, 92, 246, 0.1);
  color: var(--purple);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 100px;
  margin-bottom: 0.5rem;
}

.timeline-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.timeline-desc {
  color: var(--text-2);
  font-size: 0.875rem;
  line-height: 1.6;
}

.timeline-detail-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}

.timeline-item.expanded .timeline-detail-wrap {
  grid-template-rows: 1fr;
}

.timeline-detail {
  overflow: hidden;
  color: var(--text-2);
  font-size: 0.8125rem;
  line-height: 1.7;
  padding-top: 0;
  transition: padding-top 0.4s ease;
}

.timeline-item.expanded .timeline-detail {
  padding-top: 0.75rem;
}

.timeline-expand-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 0.75rem;
  background: none;
  border: none;
  color: var(--purple);
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
}

.timeline-expand-btn:hover {
  color: var(--pink);
}

.timeline-expand-btn i {
  transition: transform 0.3s ease;
  font-size: 14px;
}

.timeline-item.expanded .timeline-expand-btn i {
  transform: rotate(180deg);
}

.timeline-item.expanded .timeline-expand-text {
  content: 'Show less';
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.contact-left h2 { margin-bottom: 1.25rem; }

.contact-left p {
  color: var(--text-2);
  font-size: 1.0625rem;
  margin-bottom: 2rem;
  font-weight: 300;
  line-height: 1.85;
}

.contact-socials {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-right {
  background: var(--card);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}

.contact-card-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.03), transparent 60%);
  pointer-events: none;
}

.contact-right h3 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.contact-right p {
  color: var(--text-2);
  font-size: 0.9375rem;
  margin-bottom: 2rem;
  font-weight: 300;
}

/* ---- Clip Reveal ---- */
.gsap-clip-reveal {
  clip-path: inset(0 0 0 0);
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(139, 92, 246, 0.3); }
  50% { box-shadow: 0 0 40px rgba(139, 92, 246, 0.6); }
}

/* ========================================
   REVEAL ANIMATIONS
   ======================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
  .hero-visual { display: none; }
  .hero { padding: 8rem 3rem 4rem; }
}

@media (max-width: 900px) {
  .hero { padding: 7rem 1.5rem 4rem; flex-direction: column; gap: 0; }
  .hero-visual { display: none; }
  .about-grid,
  .contact-wrapper { grid-template-columns: 1fr; gap: 3rem; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline::before { left: 20px; }
  .timeline-item,
  .timeline-item:nth-child(odd) { flex-direction: row; }
  .timeline-content { width: calc(100% - 60px); margin-left: 40px; }
  .timeline-dot { left: 20px; transform: none; }
  .projects-grid { gap: 1rem; }
  .project-card { min-width: 340px; }

}

@media (max-width: 768px) {
  .hero-title { font-size: clamp(2.5rem, 10vw, 3.5rem); }
  .hero-sub { font-size: 1rem; }
  .hero-role-wrapper { font-size: 1.125rem; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline-content { padding: 1rem; }
  .scroll-indicator { display: none; }
}

@media (max-width: 480px) {
  .skills-grid { grid-template-columns: 1fr; }
  .project-card { padding: 1.5rem; min-width: calc(100vw - 3.5rem); }
  .projects-arrow { display: none; }
}
