@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Manrope:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Color Palette */
  --bg-dark: #090a0f;
  --bg-darker: #050508;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.06);
  --border-light: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);
  
  --primary-accent: #ff4da6; /* Pink */
  --secondary-accent: #ff7ebb; /* Lighter Pink */
  --emerald-accent: #34d399; /* Green */
  
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dark: #1f2937;
  
  /* Fonts */
  --font-title: 'Manrope', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
}

/* Base Styles & Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 16px;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  position: relative;
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(255, 77, 166, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 85% 40%, rgba(255, 77, 166, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 30% 75%, rgba(255, 77, 166, 0.07) 0%, transparent 50%),
    radial-gradient(circle at 80% 90%, rgba(255, 77, 166, 0.05) 0%, transparent 45%);
  background-attachment: fixed;
}

/* Background Halftone Dot Grid Ornaments */
.bg-decorations-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

section,
footer,
.subpage-header,
.portfolio-index-header,
.portfolio-grid-section {
  position: relative;
  z-index: 2;
}

.bg-ornament {
  position: absolute;
  width: 600px;
  height: 600px;
  pointer-events: none;
  background-image: radial-gradient(#ff4da6 2px, transparent 2px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(circle, rgba(0,0,0,1) 15%, rgba(0,0,0,0) 70%);
  mask-image: radial-gradient(circle, rgba(0,0,0,1) 15%, rgba(0,0,0,0) 70%);
  opacity: 0.55;
  transition: var(--transition-smooth);
}

.bg-ornament.top-left {
  top: 1%;
  left: -250px;
  opacity: 0.35;
}

.bg-ornament.top-right {
  top: 5%;
  right: -150px;
  opacity: 0.5;
}

.bg-ornament.mid-right {
  top: 22%;
  right: -200px;
  opacity: 0.4;
}

.bg-ornament.mid-left {
  top: 38%;
  left: -200px;
  background-image: radial-gradient(#ff4da6 2.5px, transparent 2.5px);
  background-size: 26px 26px;
  opacity: 0.45;
}

.bg-ornament.mid-left-2 {
  top: 55%;
  left: -250px;
  opacity: 0.38;
}

.bg-ornament.bottom-right {
  top: 72%;
  right: -250px;
  opacity: 0.5;
}

.bg-ornament.bottom-left {
  top: 85%;
  left: -220px;
  opacity: 0.4;
}

.bg-ornament.bottom-right-2 {
  top: 94%;
  right: -180px;
  opacity: 0.45;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

p {
  color: var(--text-muted);
  line-height: 1.6;
  font-weight: 400;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

/* Navigation Bar */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.2rem 2rem;
  transition: var(--transition-smooth);
}

header.scrolled {
  background: rgba(9, 10, 15, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  padding: 0.8rem 2rem;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-text {
  font-family: var(--font-title);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  background: linear-gradient(90deg, var(--primary-accent), var(--secondary-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
  transition: var(--transition-fast);
}

.logo-text:hover {
  opacity: 0.9;
  filter: drop-shadow(0 0 8px rgba(255, 77, 166, 0.4));
}

.nav-menu-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-left: 2rem;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-left: auto;
}

.nav-links a,
.nav-menu-wrapper a:not(.btn-primary) {
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a:hover,
.nav-menu-wrapper a:not(.btn-primary):hover {
  color: var(--text-main);
}

.nav-links a::after,
.nav-menu-wrapper a:not(.btn-primary)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-accent), var(--secondary-accent));
  transition: var(--transition-smooth);
}

.nav-links a:hover::after,
.nav-menu-wrapper a:not(.btn-primary):hover::after {
  width: 100%;
}

/* Button Premium Layout */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: linear-gradient(90deg, var(--primary-accent), var(--secondary-accent));
  color: #fff !important;
  padding: 0.6rem 1.4rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-title);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(167, 139, 250, 0.2);
  transition: var(--transition-smooth);
}

.btn-primary:hover {
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(167, 139, 250, 0.4);
}

/* Distinct outline style for Header Contact button */
.nav-actions .btn-primary {
  background: transparent;
  border: 1px solid var(--primary-accent);
  color: var(--primary-accent) !important;
  box-shadow: none;
}

.nav-actions .btn-primary:hover {
  background: var(--primary-accent);
  color: #fff !important;
  box-shadow: 0 0 15px rgba(255, 77, 166, 0.35);
}

.btn-outline {
  border: 1px solid var(--border-light);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-main);
  padding: 0.6rem 1.4rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: var(--font-title);
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
}

.btn-outline:hover {
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-toggle svg {
  stroke: var(--text-main);
}

/* Sections */
section {
  padding: 8rem 2rem 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Hero Section */
#home {
  padding-top: 5.5rem;
}

.hero-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
  min-height: 85vh;
  padding-top: 1.5rem;
}

.badge-work {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(90deg, rgba(80, 58, 168, 0.45), rgba(255, 77, 166, 0.45));
  border: 1px solid rgba(255, 77, 166, 0.4);
  color: #fff;
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 2rem;
  box-shadow: 0 0 15px rgba(255, 77, 166, 0.15);
}

.hero-title {
  font-size: 4.8rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-title .gradient-text {
  background: linear-gradient(90deg, #ff4da6, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-main);
  margin-top: 1rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.hero-subtitle .divider {
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, #ff4da6, #a78bfa);
  display: inline-block;
}

.hero-content p {
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
  max-width: 580px;
  line-height: 1.6;
}

.btn-scroll-down {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-light);
  color: #fff;
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 15px rgba(255, 77, 166, 0.1);
  transition: var(--transition-smooth);
  cursor: pointer;
}

.btn-scroll-down:hover {
  border-color: rgba(255, 77, 166, 0.5);
  box-shadow: 0 0 25px rgba(255, 77, 166, 0.3);
  transform: translateY(-2px);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.hero-image-stack {
  position: relative;
  width: 100%;
  max-width: 480px;
  height: 520px;
  display: flex;
  justify-content: center;
  align-items: flex-end; /* Align Kiki's photo to the bottom */
}

/* Background Pink Oval Shape */
.hero-bg-shape {
  position: absolute;
  top: 5%;
  width: 90%;
  height: 90%;
  object-fit: contain;
  z-index: 1;
  animation: floatBg 8s ease-in-out infinite alternate;
}

/* Foreground Portrait (Kiki) overlapping on top of the bg */
.hero-foreground-img {
  position: absolute;
  bottom: 0;
  width: 78%;
  height: auto;
  z-index: 2;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.45));
  animation: floatPerson 6s ease-in-out infinite;
}

/* Speech stats bubble */
.hero-speech-bubble {
  position: absolute;
  top: 15%;
  left: -20%;
  width: 58%;
  height: auto;
  z-index: 3;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.35));
  animation: floatBubble 5s ease-in-out infinite alternate;
}

/* Glowing circles around the visual */
.glow-dot {
  position: absolute;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: radial-gradient(circle, #ff4da6 0%, rgba(255, 77, 166, 0.4) 40%, rgba(255, 77, 166, 0) 70%);
  filter: blur(2px);
  z-index: 3;
  animation: floatGlow 6s ease-in-out infinite alternate;
}

.dot-left {
  top: 35%;
  left: 20%;
  animation-delay: 1s;
}

.dot-right {
  bottom: 35%;
  right: 15%;
  animation-delay: 2s;
}

/* Sparkle Stars */
.sparkle {
  position: absolute;
  z-index: 3;
  filter: drop-shadow(0 0 10px rgba(255, 77, 166, 0.8));
  animation: floatSparkle 4s ease-in-out infinite alternate;
}

.sparkle-top {
  top: 10%;
  right: 12%;
  animation-delay: 0.5s;
}

.sparkle-bottom {
  bottom: 8%;
  left: 15%;
  animation-delay: 1.5s;
}

/* Custom Keyframes */
@keyframes floatPerson {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
  100% { transform: translateY(0px); }
}

@keyframes floatBg {
  0% { transform: translateY(0px) rotate(0deg) scale(1); }
  50% { transform: translateY(6px) rotate(0.8deg) scale(1.01); }
  100% { transform: translateY(0px) rotate(0deg) scale(1); }
}

@keyframes floatBubble {
  0% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-8px) scale(1.02); }
  100% { transform: translateY(0px) scale(1); }
}

@keyframes floatGlow {
  0% { transform: translateY(0px) scale(0.9); opacity: 0.7; }
  50% { transform: translateY(-10px) scale(1.1); opacity: 1; }
  100% { transform: translateY(0px) scale(0.9); opacity: 0.7; }
}

@keyframes floatSparkle {
  0% { transform: translateY(0px) scale(1) rotate(0deg); opacity: 0.8; }
  50% { transform: translateY(-5px) scale(1.2) rotate(15deg); opacity: 1; }
  100% { transform: translateY(0px) scale(1) rotate(0deg); opacity: 0.8; }
}

/* About Section */
.about-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 5rem;
  align-items: center;
}

.about-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.avatar-wrapper {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.avatar-img {
  width: 100%;
  max-width: 380px;
  height: auto;
  display: block;
}

.about-content .section-title-img {
  height: 48px;
  width: auto;
  margin-bottom: 1.5rem;
}

.about-content p {
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.2rem;
  margin: 2.5rem 0;
}

.social-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  padding: 0.8rem 1.2rem;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.social-item:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-3px);
}

.social-item svg {
  width: 20px;
  height: 20px;
  fill: var(--text-main);
}

/* Services Section */
.services-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem auto;
}

.services-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  height: 380px;
  background: transparent !important;
  border: none !important;
  perspective: 1000px;
  padding: 0 !important;
}

.service-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: left;
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-style: preserve-3d;
  cursor: pointer;
}

.service-card:hover .service-card-inner {
  transform: rotateY(180deg);
}

.service-card-front,
.service-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #222533;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.service-card-front {
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  z-index: 2;
  opacity: 1;
  visibility: visible;
}

.service-card:hover .service-card-front {
  opacity: 0;
  visibility: hidden;
}

.service-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(9, 10, 15, 0.98) 0%, rgba(9, 10, 15, 0.6) 50%, rgba(9, 10, 15, 0) 100%);
  z-index: 1;
}

.service-card-front-content {
  position: relative;
  z-index: 2;
  padding: 2.2rem;
}

.service-card-front-content .num {
  font-family: var(--font-title);
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(90deg, var(--primary-accent), var(--secondary-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.85;
  margin-bottom: 0.3rem;
}

.service-card-front-content h3 {
  font-family: var(--font-title);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
}

.service-card-back {
  background: var(--bg-card);
  background-image: radial-gradient(circle at 10% 10%, rgba(255, 77, 166, 0.06) 0%, transparent 60%);
  transform: rotateY(180deg);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  z-index: 1;
  opacity: 0;
  visibility: hidden;
}

.service-card:hover .service-card-back {
  opacity: 1;
  visibility: visible;
  border-color: rgba(255, 77, 166, 0.4);
  box-shadow: 0 10px 25px rgba(255, 77, 166, 0.15);
}

.service-card-back .num {
  font-family: var(--font-title);
  font-size: 2rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.05);
  position: absolute;
  top: 1.5rem;
  right: 2rem;
}

.service-card-back h3 {
  font-family: var(--font-title);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.8rem;
  line-height: 1.3;
}

.service-card-back p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Portfolio Section */
.section-intro {
  margin-bottom: 3.5rem;
}

.section-tag {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary-accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.section-intro h2 {
  font-size: 2.5rem;
}

/* UI/UX Projects */
.uiux-showcase {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

.uiux-showcase .see-more-container {
  margin-top: -1rem;
}

.project-featured {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.project-visual {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.project-visual img {
  width: 100%;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-visual:hover img {
  transform: scale(1.03);
}

.project-meta {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.project-tag {
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  color: var(--text-muted);
}

.project-info h3 {
  font-size: 2rem;
  margin-bottom: 1.2rem;
}

.project-info p {
  margin-bottom: 2rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-top: 4rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.project-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.project-card-img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-bottom: 1px solid var(--border-light);
}

.project-card-content {
  padding: 1.8rem;
}

.project-card h4 {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
}

/* Graphic Design */
.graphic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2.5rem;
}

/* Footer Section */
footer {
  border-top: 1px solid var(--border-light);
  background: var(--bg-darker);
  padding: 4rem 2rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-nav {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.footer-nav a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-nav a:hover {
  color: var(--text-main);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .hero-wrapper {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
    padding-top: 8rem;
  }
  
  .hero-content p {
    margin: 0 auto 2.5rem auto;
  }
  
  .badge-work {
    margin-bottom: 2rem;
  }
  
  .about-wrapper {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  
  .about-content .section-title-img {
    margin: 0 auto 1.5rem auto;
  }
  
  .project-featured {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  header {
    padding: 1rem;
  }
  
  .mobile-toggle {
    display: block;
  }
  
  .nav-menu-wrapper {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: 0;
    background: rgba(9, 10, 15, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    transition: var(--transition-smooth);
    border-bottom: 1px solid var(--border-light);
    gap: 2rem;
  }
  
  .nav-menu-wrapper.active {
    height: calc(100vh - 70px);
  }

  .nav-links {
    position: static;
    transform: none;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .nav-actions {
    margin-left: 0;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }
  
  .footer-nav {
    flex-direction: column;
    gap: 1rem;
  }
}

/* ==========================================================================
   Journey Section
   ========================================================================== */
#journey {
  padding: 8rem 0 4rem 0; /* Full screen width container */
  width: 100%;
}

.journey-header {
  text-align: center;
  margin-bottom: 3.5rem;
  padding: 0 2rem;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.journey-header .section-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--primary-accent), var(--secondary-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.journey-header .section-subtitle {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.6;
}

.journey-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 4rem;
  flex-wrap: wrap;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 2rem;
}

.tab-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.tab-btn:hover {
  color: var(--text-main);
  border-color: rgba(255, 77, 166, 0.4);
}

.tab-btn.active {
  background: rgba(255, 77, 166, 0.1);
  color: var(--primary-accent);
  border-color: var(--primary-accent);
  box-shadow: 0 0 15px rgba(255, 77, 166, 0.25);
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
  animation: fadeInTab 0.5s ease forwards;
}

@keyframes fadeInTab {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Timeline Layout (Horizontal Wave) */
.timeline-wave-container {
  width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  padding: 50px 0;
  position: relative;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 77, 166, 0.3) transparent;
}

.timeline-wave-container::-webkit-scrollbar {
  height: 6px;
}
.timeline-wave-container::-webkit-scrollbar-thumb {
  background: rgba(255, 77, 166, 0.3);
  border-radius: 10px;
}

.timeline-wave-wrapper {
  position: relative;
  height: 280px;
}

/* Wave Path */
.timeline-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 220px;
  pointer-events: none;
}

.timeline-path {
  fill: none;
  stroke: var(--primary-accent); /* Pink brand color */
  stroke-width: 3;
  stroke-dasharray: 8 6;
  opacity: 0.85;
}

/* Timeline Node */
.timeline-node {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  z-index: 10;
  user-select: none;
}

/* Dot */
.node-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--primary-accent);
  box-shadow: 0 0 12px rgba(255, 77, 166, 0.7);
  transition: all 0.3s ease;
  position: relative;
}

/* Expand hover/click target size to 40px */
.node-dot::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.timeline-node:hover .node-dot,
.timeline-node.active .node-dot {
  transform: scale(1.35);
  box-shadow: 0 0 20px var(--primary-accent), 0 0 35px var(--secondary-accent);
  border-color: var(--primary-accent);
}

/* Node Text */
.node-info {
  text-align: center;
  position: absolute;
  width: 220px;
  transition: var(--transition-smooth);
}

.node-info.position-above {
  bottom: 25px;
  top: auto;
  margin-top: 0;
  margin-bottom: 0;
}

.node-info.position-below {
  top: 25px;
  bottom: auto;
  margin-top: 0;
  margin-bottom: 0;
}

.node-year {
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
}

.timeline-node:hover .node-year,
.timeline-node.active .node-year {
  color: #ff4da6;
}

.node-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-top: 2px;
  line-height: 1.2;
}

.node-company {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 1px;
}

/* Tooltip/Card on Hover or Active */
.node-card {
  position: absolute;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: 280px;
  background: rgba(15, 16, 22, 0.95);
  border: 1px solid rgba(255, 77, 166, 0.25);
  border-radius: 14px;
  padding: 1.2rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 15px rgba(255, 77, 166, 0.05);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 20;
  text-align: left;
}

.node-card.position-above {
  bottom: 35px;
}

.node-card.position-above::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: rgba(15, 16, 22, 0.95);
  border-right: 1px solid rgba(255, 77, 166, 0.25);
  border-bottom: 1px solid rgba(255, 77, 166, 0.25);
}

.node-card.position-below {
  top: 35px;
}

.node-card.position-below::after {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: rgba(15, 16, 22, 0.95);
  border-left: 1px solid rgba(255, 77, 166, 0.25);
  border-top: 1px solid rgba(255, 77, 166, 0.25);
}

.timeline-node:hover .node-card,
.timeline-node.active .node-card {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.6rem;
}

.card-icon {
  background: rgba(124, 58, 237, 0.15);
  color: #a78bfa;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card-meta {
  display: flex;
  flex-direction: column;
}

.card-year {
  font-size: 0.8rem;
  color: #ff4da6;
  font-weight: 600;
}

.card-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.card-company {
  font-size: 0.85rem;
  color: #a78bfa;
  font-weight: 500;
  margin-bottom: 0.6rem;
  padding-left: 2.8rem;
}

.card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

@media (max-width: 768px) {
  #journey {
    padding: 6rem 1.5rem 3rem 1.5rem;
  }
  
  .journey-header .section-title {
    font-size: 2.4rem;
  }
}

/* Timeline Navigation Wrapper & Arrows */
.timeline-navigation-wrapper {
  position: relative;
  width: 100%;
}

.nav-arrow {
  position: absolute;
  top: 110px; /* Centered relative to the wave SVG height (220px) */
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #11131e;
  border: 2px solid var(--primary-accent); /* Solid pink border */
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 30;
  transition: var(--transition-smooth);
  box-shadow: 0 0 15px rgba(255, 77, 166, 0.35), 0 4px 10px rgba(0, 0, 0, 0.4);
}

.nav-arrow:hover {
  background: linear-gradient(90deg, var(--primary-accent), var(--secondary-accent));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 0 25px rgba(255, 77, 166, 0.6);
  transform: translateY(-50%) scale(1.1); /* Interactive scaling */
}

.nav-arrow.prev {
  left: -40px; /* Shifted further away from flow */
}

.nav-arrow.next {
  right: -40px; /* Shifted further away from flow */
}

@media (max-width: 1120px) {
  .timeline-wave-container {
    padding: 50px 60px;
  }
  
  .nav-arrow.prev {
    left: -15px;
  }

  .nav-arrow.next {
    right: -15px;
  }
}

@media (max-width: 768px) {
  .timeline-wave-container {
    padding: 50px 50px;
  }
  
  .nav-arrow {
    width: 38px;
    height: 38px;
    border-width: 1.5px;
  }
  
  .nav-arrow.prev {
    left: 5px;
  }

  .nav-arrow.next {
    right: 5px;
  }
}

/* Language Switcher Toggle */
.lang-switcher {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  padding: 3px;
  border-radius: 30px;
  position: relative;
  width: 76px;
  height: 34px;
  cursor: pointer;
  user-select: none;
  transition: var(--transition-smooth);
}

.lang-switcher:hover {
  border-color: rgba(255, 77, 166, 0.3);
}

/* Sliding active switch background */
.lang-toggle-slider {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 32px;
  height: 26px;
  background: rgba(255, 77, 166, 0.2);
  border: 1px solid var(--primary-accent);
  border-radius: 20px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
  box-shadow: 0 0 8px rgba(255, 77, 166, 0.4);
}

/* Slide to right for Bahasa Indonesia */
.lang-switcher.active-id .lang-toggle-slider {
  left: 39px;
}

.lang-btn {
  position: relative;
  z-index: 2;
  background: none;
  border: none;
  cursor: pointer;
  width: 34px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.4;
  transition: var(--transition-fast);
}

.lang-btn .flag-icon {
  display: block;
}

.lang-btn:hover {
  opacity: 0.85;
}

.lang-btn.active {
  opacity: 1;
}

@media (max-width: 768px) {
  .lang-switcher {
    margin: 0 auto;
  }
}

/* Experience card description list (bullet points) */
.card-desc-list {
  margin: 0.8rem 0 0 1.2rem;
  padding: 0;
  list-style-type: disc;
  text-align: left;
}

.card-desc-list li {
  font-family: var(--font-body);
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.card-desc-list li:last-child {
  margin-bottom: 0;
}

.journey-content {
  position: relative;
  width: 100%;
}

/* Timeline Detail Showcase */
.timeline-detail-showcase {
  position: absolute;
  left: 50%;
  width: 90%;
  max-width: 1100px;
  background: rgba(15, 16, 22, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 77, 166, 0.3);
  border-radius: 16px;
  padding: 2.2rem;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7), 0 0 30px rgba(255, 77, 166, 0.1);
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.25s;
  min-height: 180px;
  text-align: left;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 100;
  box-sizing: border-box;
}

/* Position Below (when active node is at Peak/Top of wave) */
.timeline-detail-showcase.position-below {
  transform: translate(-50%, 50px);
}
.timeline-detail-showcase.position-below.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 35px); /* Clean floating gap under peak */
}

/* Position Above (when active node is at Valley/Bottom of wave) */
.timeline-detail-showcase.position-above {
  transform: translate(-50%, calc(-100% - 50px));
}
.timeline-detail-showcase.position-above.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, calc(-100% - 35px)); /* Clean floating gap above valley */
}

/* Pointer Events: Allowed only if interactive (locked active state) */
.timeline-detail-showcase.interactive {
  pointer-events: auto;
}

.timeline-detail-showcase .showcase-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid transparent;
  transition: var(--transition-fast);
  z-index: 10;
}

.timeline-detail-showcase .showcase-close * {
  pointer-events: none;
}

.timeline-detail-showcase .showcase-close:hover {
  color: #ff4da6;
  border-color: rgba(255, 77, 166, 0.3);
  background: rgba(255, 77, 166, 0.05);
}

.timeline-detail-showcase .showcase-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 1.2rem;
  margin-bottom: 1.2rem;
}

.timeline-detail-showcase .showcase-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 77, 166, 0.1);
  border: 1px solid rgba(255, 77, 166, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff4da6;
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(255, 77, 166, 0.1);
}

.timeline-detail-showcase .showcase-icon svg {
  width: 24px;
  height: 24px;
  display: block;
}

.timeline-detail-showcase .showcase-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.timeline-detail-showcase .showcase-year {
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 700;
  color: #ff4da6;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.timeline-detail-showcase .showcase-title {
  font-family: var(--font-title);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.timeline-detail-showcase .showcase-company {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1rem;
  color: #a78bfa;
}

.timeline-detail-showcase .card-desc-list {
  margin: 0.5rem 0 0 1.2rem;
  padding: 0;
}

.timeline-detail-showcase .card-desc-list li {
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* Cursor Glow Spotlight (Desktop/Laptop pointer devices only) */
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
  will-change: transform, opacity;
}

#cursor-glow-1 {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(255, 77, 166, 0.22) 0%, rgba(255, 77, 166, 0.06) 45%, transparent 70%);
}

#cursor-glow-2 {
  width: 440px;
  height: 440px;
  background: radial-gradient(circle, rgba(255, 77, 166, 0.12) 0%, rgba(255, 77, 166, 0.03) 50%, transparent 70%);
}

#cursor-glow-3 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 77, 166, 0.08) 0%, rgba(255, 77, 166, 0.01) 55%, transparent 75%);
}

/* Scroll Reveal Animations (Fade in and slide up) */
.reveal-item {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.reveal-item.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered Delay classes */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }

.see-more-container {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
  width: 100%;
}
