/* =============================================
   PORTO - Portfolio Website CSS
   Premium Dark Theme with Glassmorphism
   ============================================= */

/* --- Google Fonts & Variables --- */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
  /* Colors */
  --bg-primary: #080c14;
  --bg-secondary: #0d1117;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.08);

  --accent-1: #6C63FF;   /* Purple */
  --accent-2: #00F5D4;   /* Cyan */
  --accent-3: #FF6B6B;   /* Coral */
  --accent-4: #FFD93D;   /* Gold */

  --text-primary: #F0F4FF;
  --text-secondary: #8892A4;
  --text-muted: #4A5568;

  --border: rgba(255, 255, 255, 0.08);
  --border-bright: rgba(108, 99, 255, 0.4);

  --glass-bg: rgba(13, 17, 23, 0.6);
  --glass-border: rgba(255, 255, 255, 0.1);

  /* Typography */
  --font-main: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'Space Grotesk', sans-serif;

  /* Spacing */
  --section-pad: 100px 0;
  --container-width: 1200px;

  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  font-family: var(--font-main);
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  max-width: 100vw;
  line-height: 1.6;
  cursor: none;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* --- Particle Canvas --- */
#particleCanvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

/* --- Custom Cursor --- */
.cursor, .cursor-follower {
  position: fixed;
  pointer-events: none;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 10000;
  transition: opacity 0.3s, transform 0.1s;
}
.cursor {
  width: 8px; height: 8px;
  background: var(--accent-1);
}
.cursor-follower {
  border: 1.5px solid var(--accent-1);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: all 0.15s ease;
  mix-blend-mode: screen;
}
body:hover .cursor { opacity: 1; }
.cursor.hover-state { width: 20px; height: 20px; background: var(--accent-1); }
.cursor-follower.hover-state { width: 50px; height: 50px; border-color: var(--accent-2); }

@media (hover: none) and (pointer: coarse) {
  body { cursor: auto; }
  .cursor, .cursor-follower { display: none !important; }
}

/* --- Container --- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Section Header --- */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-tag {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-2);
  letter-spacing: 3px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
}
.section-sub {
  color: var(--text-secondary);
  margin-top: 12px;
  font-size: 1.1rem;
}
.highlight-gradient {
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* =============================================
   INTRO SPLASH
   ============================================= */
.intro-splash {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.8s ease;
}
.intro-splash.done {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}
.intro-splash-content {
  display: flex;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 2.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-primary);
}
@media (max-width: 768px) {
  .intro-splash-content {
    flex-direction: column;
    text-align: center;
    gap: 8px;
    font-size: 1.5rem;
  }
}
.intro-text, .intro-accent {
  display: inline-block;
  opacity: 0;
  transform: translateY(100%);
  animation: revealText 0.8s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}
.intro-text:nth-child(1) { animation-delay: 0.2s; color: var(--text-primary); }
.intro-accent { animation-delay: 0.4s; color: var(--accent-1); }
.intro-text:nth-child(3) { animation-delay: 0.6s; color: var(--text-primary); }

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

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
  position: fixed;
  top: max(20px, env(safe-area-inset-top));
  left: 0; right: 0;
  margin: 0 auto;
  width: 92%;
  max-width: var(--container-width);
  z-index: 1000;
  padding: 12px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
  
  /* Glassmorphism Pill Style */
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}
.navbar.scrolled {
  top: max(15px, env(safe-area-inset-top));
  background: rgba(8, 12, 20, 0.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  padding: 10px 32px;
}
.navbar.menu-open {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  transition: none !important;
}

.nav-logo {
  display: flex;
  align-items: center;
}
.site-logo {
  height: 44px;
  width: auto;
  object-fit: contain;
  transform: scale(1.3);
  transform-origin: left center;
}
.site-logo-footer {
  height: 56px;
  width: auto;
  object-fit: contain;
  transform: scale(1.4);
  transform-origin: center center;
}

.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
  position: relative;
  z-index: 10;
}
.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
  position: relative;
  padding: 4px 0;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  transition: width 0.3s ease;
  border-radius: 2px;
}
.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.nav-cta {
  padding: 10px 24px;
  background: linear-gradient(135deg, var(--accent-1), #8B5CF6);
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  color: white;
  transition: var(--transition);
  box-shadow: 0 0 20px rgba(108, 99, 255, 0.3);
}
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(108, 99, 255, 0.5);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 5px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  max-width: 1300px;
  width: 100%;
  margin: 0 auto;
  padding: 100px 60px 60px;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(108, 99, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108, 99, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.hero-bg-grid::before {
  content: '';
  position: absolute;
  top: -50%; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(108, 99, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

/* Blackhole Effect */
.blackhole-vortex {
  position: absolute;
  top: 50%; left: 50%;
  width: 150vw; height: 150vw;
  transform: translate(-50%, -50%) scale(0);
  background: radial-gradient(circle, #000 0%, rgba(108,99,255,0.15) 5%, transparent 40%);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  z-index: 1; /* Below content */
  mix-blend-mode: normal;
  will-change: transform, opacity;
}

/* --- Rope + Card --- */
.rope-container {
  position: relative;
  width: 260px;
  flex-shrink: 0;
  user-select: none;
  z-index: 10;
  margin-top: 30px;
}

.rope-svg {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 600px;
  overflow: visible;
  pointer-events: none;
}

.photo-card {
  position: relative;
  top: 40px;
  margin: 0 auto;
  width: 240px;
  cursor: grab;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,0.5));
  touch-action: none;
  -webkit-user-drag: none;
  transform-origin: top center;
}
.photo-card:active { cursor: grabbing; }

.card-inner {
  background: linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 24px;
  padding: 0 0 20px;
  overflow: hidden;
  position: relative;
  transition: box-shadow 0.3s ease;
}
.card-inner:hover {
  box-shadow: 0 40px 80px rgba(0,0,0,0.6), 0 0 40px rgba(108,99,255,0.2);
}

.card-glow {
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at 50% 30%, rgba(108,99,255,0.15), transparent 60%);
  pointer-events: none;
}

.card-hook {
  display: flex;
  justify-content: center;
  padding: 12px 0 0;
}
.hook-ring {
  width: 24px; height: 24px;
  border: 3px solid #c8a96e;
  border-radius: 50%;
  position: relative;
  box-shadow: 0 0 10px rgba(200,169,110,0.5), inset 0 0 5px rgba(200,169,110,0.2);
}
.hook-ring::after {
  content: '';
  position: absolute;
  top: -8px; left: 50%;
  transform: translateX(-50%);
  width: 3px; height: 10px;
  background: #c8a96e;
  border-radius: 2px 2px 0 0;
}

.card-photo-wrap {
  margin: 12px 16px 0;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  height: 180px;
  background: linear-gradient(135deg, var(--accent-1), #8B5CF6);
}
.card-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.card-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(8,12,20,0.7));
}

.card-info {
  padding: 16px 16px 0;
  text-align: center;
}
.card-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 4px 10px;
  background: rgba(0, 245, 212, 0.15);
  border: 1px solid rgba(0, 245, 212, 0.3);
  border-radius: 20px;
  color: var(--accent-2);
  margin-bottom: 8px;
}
.card-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.card-role {
  font-size: 0.72rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
}
.card-tags {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
}
.tag {
  font-size: 0.62rem;
  font-weight: 600;
  padding: 3px 8px;
  background: rgba(108,99,255,0.15);
  border: 1px solid rgba(108,99,255,0.3);
  border-radius: 12px;
  color: var(--accent-1);
}

.card-drag-hint {
  text-align: center;
  margin-top: 12px;
  font-size: 0.65rem;
  color: var(--text-muted);
  animation: hintBounce 2s infinite;
}
@keyframes hintBounce {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(-4px); opacity: 1; }
}

/* --- Hero Content --- */
.hero-content {
  max-width: 620px;
  flex: 1;
  z-index: 5;
  min-width: 0;
}

.hero-greeting {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.greeting-wave {
  font-size: 1.8rem;
  display: inline-block;
  animation: wave 2s ease-in-out infinite;
  transform-origin: 70% 70%;
}
@keyframes wave {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(20deg); }
  75% { transform: rotate(-10deg); }
}
.greeting-text {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--accent-2);
  letter-spacing: 2px;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
}
.title-line { display: block; }
.title-cursor {
  display: inline-block;
  color: var(--accent-2);
  animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 36px;
}
.hero-desc strong { color: var(--accent-2); }

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--accent-1), #8B5CF6);
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  color: white;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(108,99,255,0.4);
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #8B5CF6, var(--accent-1));
  opacity: 0;
  transition: opacity 0.3s;
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 40px rgba(108,99,255,0.6);
}
.btn-icon { position: relative; z-index: 1; }
.btn-primary span { position: relative; z-index: 1; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 14px 32px;
  border: 1.5px solid var(--border-bright);
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
  transition: var(--transition);
  backdrop-filter: blur(10px);
}
.btn-secondary:hover {
  background: rgba(108,99,255,0.1);
  border-color: var(--accent-1);
  transform: translateY(-3px);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
}
.stat-item {
  text-align: center;
}
.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-primary);
  font-family: var(--font-mono);
  display: inline-block;
}
.stat-plus { font-size: 1.5rem; font-weight: 800; color: var(--accent-2); }
.stat-label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 2px;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* Floating Badges */
.floating-badges {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.float-badge {
  position: absolute;
  padding: 8px 16px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
  animation: floatAround 6s ease-in-out infinite;
  animation-delay: var(--delay);
  white-space: nowrap;
}
.b1 { top: 15%; left: 5%; }
.b2 { top: 25%; right: 3%; }
.b3 { bottom: 30%; left: 3%; }
.b4 { bottom: 20%; right: 5%; }
.b5 { top: 60%; right: 8%; }

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

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
  animation: scrollBounce 2s infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}
.scroll-mouse {
  width: 24px; height: 38px;
  border: 2px solid var(--border);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}
.scroll-wheel {
  width: 4px; height: 8px;
  background: var(--accent-2);
  border-radius: 2px;
  animation: scrollWheel 2s infinite;
}
@keyframes scrollWheel {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(12px); opacity: 0; }
}

/* =============================================
   ABOUT SECTION
   ============================================= */
.about {
  padding: var(--section-pad);
  position: relative;
  z-index: 1;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-img-frame {
  position: relative;
  width: 340px;
  height: 380px;
  margin: 0 auto;
}
.about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 20px;
  filter: grayscale(20%);
  transition: var(--transition);
}
.about-photo:hover { filter: none; }

.frame-corner {
  position: absolute;
  width: 30px; height: 30px;
  z-index: 2;
}
.frame-corner::before, .frame-corner::after {
  content: '';
  position: absolute;
  background: var(--accent-1);
  border-radius: 2px;
}
.frame-corner::before { width: 100%; height: 3px; }
.frame-corner::after { width: 3px; height: 100%; }
.tl { top: -10px; left: -10px; }
.tr { top: -10px; right: -10px; transform: scaleX(-1); }
.bl { bottom: -10px; left: -10px; transform: scaleY(-1); }
.br { bottom: -10px; right: -10px; transform: scale(-1); }

.about-img-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.decor-circle {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  opacity: 0.1;
  animation: decCircle 8s ease-in-out infinite;
}
.c1 { width: 120px; height: 120px; top: -30px; right: -30px; }
.c2 { width: 80px; height: 80px; bottom: -20px; left: -20px; animation-delay: 4s; }
@keyframes decCircle {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.1) rotate(180deg); }
}

.about-fun-card {
  position: absolute;
  bottom: -20px; right: -20px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  z-index: 3;
  animation: cardFloat 4s ease-in-out infinite;
}
@keyframes cardFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.fun-icon { font-size: 1.8rem; }
.fun-text {
  display: flex;
  flex-direction: column;
  font-size: 0.8rem;
}
.fun-text strong { color: var(--text-primary); font-size: 0.85rem; }
.fun-text span { color: var(--text-secondary); }

/* About Content */
.about-lead {
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.6;
}
.about-lead strong { color: var(--accent-2); }
.about-text {
  color: var(--text-secondary);
  margin-bottom: 14px;
  line-height: 1.8;
}
.about-text strong { color: var(--text-primary); }

.about-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 28px 0;
}
.highlight-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: var(--transition);
}
.highlight-item:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-bright);
  transform: translateY(-2px);
}
.hi-icon { font-size: 1.3rem; }
.highlight-item div { display: flex; flex-direction: column; }
.highlight-item strong { font-size: 0.8rem; color: var(--text-primary); }
.highlight-item span { font-size: 0.78rem; color: var(--text-secondary); }

.btn-download {
  display: inline-flex;
  align-items: center;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--accent-2), #00C4A7);
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  color: #080c14;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,245,212,0.3);
}
.btn-download:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 40px rgba(0,245,212,0.5);
}
.btn-shine {
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transform: skewX(-20deg);
  animation: shine 3s infinite;
}
@keyframes shine {
  0% { left: -100%; }
  50%, 100% { left: 150%; }
}

/* =============================================
   SKILLS SECTION
   ============================================= */
.skills {
  padding: var(--section-pad);
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, transparent, rgba(108,99,255,0.03), transparent);
}

/* Orbit System */
.skills-universe {
  position: relative;
  width: 400px;
  height: 400px;
  margin: 0 auto 60px;
}

.orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(108,99,255,0.25);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: orbitRotate 15s linear infinite;
}
.r1 {
  width: 220px; height: 220px;
}
.r2 {
  width: 360px; height: 360px;
  animation-duration: 25s;
  animation-direction: reverse;
}

@keyframes orbitRotate {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.orbit-planet {
  position: absolute;
  width: 54px; height: 54px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  transition: var(--transition);
  backdrop-filter: blur(10px);
  cursor: pointer;
}
.orbit-planet:hover {
  transform: scale(1.2);
  background: rgba(108,99,255,0.2);
  border-color: var(--accent-1);
  box-shadow: 0 0 20px rgba(108,99,255,0.4);
}
.orbit-planet img { width: 26px; height: 26px; object-fit: contain; }
.orbit-planet span {
  font-size: 0.5rem;
  color: var(--text-secondary);
  animation: counterRotate 15s linear infinite;
}
.r2 .orbit-planet span { animation-duration: 25s; animation-direction: reverse; }

/* Planet positions */
.orbit-planet.pos1 { top: -27px; left: 50%; margin-left: -27px; }
.orbit-planet.pos2 { bottom: -27px; left: 50%; margin-left: -27px; }
.orbit-planet.pos3 { top: 50%; left: -27px; margin-top: -27px; }
.orbit-planet.pos4 { top: 50%; right: -27px; margin-top: -27px; }
.orbit-planet.pos5 { top: 14.7%; left: 14.7%; margin-top: -27px; margin-left: -27px; }
.orbit-planet.pos6 { top: 14.7%; right: 14.7%; margin-top: -27px; margin-right: -27px; }
.orbit-planet.pos7 { bottom: 14.7%; left: 14.7%; margin-bottom: -27px; margin-left: -27px; }
.orbit-planet.pos8 { bottom: 14.7%; right: 14.7%; margin-bottom: -27px; margin-right: -27px; }

/* Universe Transition Groups */
.universe-group {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s;
}
.universe-group.active {
  opacity: 1;
  visibility: visible;
}

@keyframes counterRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}

.orbit-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
}
.center-core {
  width: 100px; height: 100px;
  background: linear-gradient(135deg, var(--accent-1), #8B5CF6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}
.core-text {
  font-size: 0.65rem;
  font-weight: 800;
  color: white;
  letter-spacing: 1px;
  line-height: 1.4;
}
.core-pulse {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px solid rgba(108,99,255,0.4);
  animation: pulseRing 2s ease-out infinite;
}
@keyframes pulseRing {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* Skill Bars */
.skill-bars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 36px;
}
.skill-category { }
.cat-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.skill-bar-item { margin-bottom: 16px; }
.skill-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.skill-pct { font-weight: 700; color: var(--text-primary); }
.skill-bar-track {
  height: 8px;
  background: rgba(255,255,255,0.05);
  border-radius: 4px;
  overflow: hidden;
}
.skill-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color), color-mix(in srgb, var(--color) 70%, white));
  border-radius: 4px;
  width: 0;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.skill-bar-fill::after {
  content: '';
  position: absolute;
  right: 0; top: 0;
  width: 4px; height: 100%;
  background: white;
  border-radius: 2px;
  opacity: 0.8;
  box-shadow: 0 0 8px white;
}

/* =============================================
   PROJECTS SECTION
   ============================================= */
.projects {
  padding: var(--section-pad);
  position: relative;
  z-index: 1;
}

.projects-filter {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.filter-btn {
  padding: 8px 22px;
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
  background: transparent;
}
.filter-btn:hover, .filter-btn.active {
  background: rgba(108,99,255,0.15);
  border-color: var(--accent-1);
  color: var(--text-primary);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition: var(--transition);
  position: relative;
}
.project-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-bright);
  box-shadow: 0 30px 60px rgba(0,0,0,0.4), 0 0 40px rgba(108,99,255,0.1);
}
.project-card.featured {
  border-color: rgba(108,99,255,0.3);
  box-shadow: 0 0 30px rgba(108,99,255,0.1);
}
.featured-badge {
  position: absolute;
  top: 12px; right: 12px;
  padding: 4px 10px;
  background: linear-gradient(135deg, #FFD93D, #FF9800);
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #1a1a1a;
  z-index: 5;
}

.proj-thumb {
  height: 180px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.3);
  padding: 16px;
}

/* Mockups */
.proj-mockup { width: 100%; max-width: 240px; }

.mobile-mockup {
  width: 110px;
  height: 180px;
  background: #1a1a2e;
  border-radius: 20px;
  border: 2px solid #333;
  overflow: hidden;
  position: relative;
  margin: 0 auto;
}
.mobile-mockup::before {
  content: '';
  position: absolute;
  top: 8px; left: 50%;
  transform: translateX(-50%);
  width: 40px; height: 4px;
  background: #444;
  border-radius: 2px;
  z-index: 2;
}
.mockup-screen {
  position: absolute;
  inset: 20px 4px 4px;
  border-radius: 12px;
  overflow: hidden;
}
.mockup-content {
  width: 100%; height: 100%;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mc-header { height: 16px; background: rgba(255,255,255,0.2); border-radius: 4px; }
.mc-card { height: 40px; background: rgba(255,255,255,0.15); border-radius: 8px; }
.mc-row { height: 10px; background: rgba(255,255,255,0.1); border-radius: 3px; }
.mc-row.short { width: 60%; }

.browser-mockup {
  background: #1a1a2e;
  border-radius: 10px;
  overflow: hidden;
  width: 200px;
}
.browser-bar {
  height: 28px;
  background: #252535;
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 5px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot.r { background: #FF5F57; }
.dot.y { background: #FEBC2E; }
.dot.g { background: #28C840; }
.browser-url {
  flex: 1;
  height: 14px;
  background: rgba(255,255,255,0.05);
  border-radius: 4px;
  margin-left: 8px;
  font-size: 0.55rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  padding: 0 6px;
}
.browser-content { height: 130px; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.bc-nav { height: 20px; background: rgba(255,255,255,0.1); border-radius: 4px; }
.bc-grid { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.bc-card { background: rgba(255,255,255,0.08); border-radius: 6px; }
.bc-chart { height: 40px; background: linear-gradient(90deg, rgba(108,99,255,0.3), rgba(0,245,212,0.3)); border-radius: 6px; }
.bc-stats { flex: 1; display: flex; align-items: flex-end; gap: 4px; padding-top: 4px; }
.bc-stat-bar { flex: 1; background: linear-gradient(180deg, var(--accent-1), transparent); border-radius: 3px 3px 0 0; min-height: 10px; }

/* Terminal Mockup */
.api-mockup { width: 180px; margin: 0 auto; }
.api-terminal {
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: 8px;
  overflow: hidden;
}
.terminal-header {
  height: 28px;
  background: #161b22;
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 5px;
}
.terminal-title {
  flex: 1;
  text-align: center;
  font-size: 0.6rem;
  color: #8b949e;
}
.terminal-body { padding: 10px; }
.t-line { font-size: 0.62rem; font-family: monospace; color: #c9d1d9; margin-bottom: 4px; }
.t-green { color: #3fb950; }
.t-blue { color: #58a6ff; }
.t-dim { color: #484f58; }

/* Project Info */
.proj-info { padding: 20px; }
.proj-category-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.mobile-badge { background: rgba(84,197,248,0.15); color: #54C5F8; border: 1px solid rgba(84,197,248,0.3); }
.web-badge { background: rgba(0,245,212,0.15); color: var(--accent-2); border: 1px solid rgba(0,245,212,0.3); }
.api-badge { background: rgba(255,107,107,0.15); color: var(--accent-3); border: 1px solid rgba(255,107,107,0.3); }

.proj-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.proj-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 14px;
}
.proj-tech {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.proj-tech span {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text-secondary);
}
.proj-links { display: flex; gap: 10px; }
.proj-link {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 8px;
  transition: var(--transition);
}
.proj-link.primary {
  background: rgba(108,99,255,0.15);
  color: var(--accent-1);
  border: 1px solid rgba(108,99,255,0.3);
}
.proj-link.primary:hover { background: rgba(108,99,255,0.3); }
.proj-link.secondary {
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.proj-link.secondary:hover { color: var(--text-primary); border-color: var(--border-bright); }

.project-card.hide {
  display: none;
}

/* =============================================
   EXPERIENCE SECTION
   ============================================= */
.experience {
  padding: var(--section-pad);
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, transparent, rgba(0,245,212,0.02), transparent);
}

.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}
.timeline-line {
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-1), var(--accent-2), var(--accent-3));
  transform: translateX(-50%);
}

.timeline-item {
  width: 45%;
  position: relative;
  margin-bottom: 50px;
}
.timeline-item.left { margin-right: auto; }
.timeline-item.right { margin-left: auto; }

.timeline-dot {
  position: absolute;
  top: 20px;
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--accent-1), #8B5CF6);
  border: 3px solid var(--bg-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  z-index: 2;
  box-shadow: 0 0 20px rgba(108,99,255,0.4);
}
.timeline-item.left .timeline-dot {
  right: -10%;
  transform: translateX(50%);
}
.timeline-item.right .timeline-dot {
  left: -10%;
  transform: translateX(-50%);
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  transition: var(--transition);
  position: relative;
}
.timeline-card::before {
  content: '';
  position: absolute;
  top: 28px;
  width: 20px; height: 1px;
  background: var(--border-bright);
}
.timeline-item.left .timeline-card::before {
  right: -20px;
}
.timeline-item.right .timeline-card::before {
  left: -20px;
}
.timeline-card:hover {
  border-color: var(--border-bright);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.tc-header { margin-bottom: 10px; }
.tc-header h3 { font-size: 1rem; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.tc-company { font-size: 0.82rem; color: var(--accent-2); font-weight: 600; }

.tc-meta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.tc-period, .tc-location { font-size: 0.78rem; color: var(--text-muted); }

.tc-tasks { margin-bottom: 14px; display: flex; flex-direction: column; gap: 6px; }
.tc-tasks li {
  font-size: 0.82rem;
  color: var(--text-secondary);
  padding-left: 16px;
  position: relative;
}
.tc-tasks li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent-1);
}

.tc-tech { display: flex; gap: 6px; flex-wrap: wrap; }
.tc-tech span {
  font-size: 0.68rem;
  padding: 2px 8px;
  background: rgba(108,99,255,0.1);
  border: 1px solid rgba(108,99,255,0.2);
  border-radius: 12px;
  color: var(--accent-1);
}

/* =============================================
   CONTACT SECTION
   ============================================= */
.contact {
  padding: var(--section-pad);
  position: relative;
  z-index: 1;
}

.contact-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 500px;
  margin: 0 auto;
  gap: 30px;
}
.contact-info {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: var(--transition);
}
.contact-card:hover {
  border-color: var(--border-bright);
  background: var(--bg-card-hover);
  transform: translateX(6px);
}
.cc-icon { font-size: 1.5rem; }
.cc-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cc-content strong { font-size: 0.82rem; color: var(--text-primary); }
.cc-content a {
  font-size: 0.8rem;
  color: var(--accent-2);
  transition: var(--transition);
}
.cc-content a:hover { color: var(--accent-1); }

.availability-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: rgba(0,245,212,0.08);
  border: 1px solid rgba(0,245,212,0.2);
  border-radius: 14px;
  font-size: 0.85rem;
  color: var(--accent-2);
  font-weight: 600;
  margin-top: 4px;
}
.avail-dot {
  width: 10px; height: 10px;
  background: var(--accent-2);
  border-radius: 50%;
  animation: availPulse 2s infinite;
}
@keyframes availPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,245,212,0.4); }
  50% { box-shadow: 0 0 0 6px rgba(0,245,212,0); }
}

/* Contact Form */
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px;
}

.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.form-group input, .form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 0.9rem;
  transition: var(--transition);
  outline: none;
}
.form-group input:focus, .form-group textarea:focus {
  border-color: var(--accent-1);
  background: rgba(108,99,255,0.05);
  box-shadow: 0 0 0 3px rgba(108,99,255,0.1);
}
.form-group input::placeholder, .form-group textarea::placeholder {
  color: var(--text-muted);
}
.form-group textarea { resize: vertical; min-height: 120px; }

.btn-submit {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--accent-1), #8B5CF6);
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  color: white;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(108,99,255,0.3);
}
.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(108,99,255,0.5);
}
.btn-submit:active { transform: scale(0.98); }
.submit-loader {
  display: none;
  width: 20px; height: 20px;
  border: 2px solid white;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

.form-success {
  display: none;
  text-align: center;
  padding: 12px;
  background: rgba(0,245,212,0.1);
  border: 1px solid rgba(0,245,212,0.3);
  border-radius: 10px;
  color: var(--accent-2);
  font-size: 0.88rem;
  font-weight: 600;
  margin-top: 12px;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  padding: 60px 40px 40px;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}
.footer-content {
  max-width: var(--container-width);
  margin: 0 auto;
  text-align: center;
}
.footer-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 16px;
}
.footer-text {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 24px;
}
.footer-text strong { color: var(--accent-2); }
.footer-links {
  display: flex;
  gap: 32px;
  justify-content: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: var(--transition);
}
.footer-links a:hover { color: var(--accent-2); }
.footer-copy {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.back-to-top {
  position: fixed;
  bottom: 30px; right: 30px;
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--accent-1), #8B5CF6);
  border-radius: 50%;
  font-size: 1.2rem;
  color: white;
  transition: var(--transition);
  z-index: 100;
  box-shadow: 0 4px 20px rgba(108,99,255,0.4);
  opacity: 0;
  transform: translateY(20px);
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}
.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(108,99,255,0.6);
}

/* =============================================
   ANIMATIONS (Scroll reveal)
   ============================================= */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .hero {
    min-height: auto;
  }
  .hero-inner {
    flex-direction: column;
    text-align: center;
    padding: 100px 20px 60px;
    gap: 40px;
  }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .rope-container { 
    width: 240px; 
    height: 380px; 
    margin: -80px auto 0; 
  }
  .rope-svg {
    top: -40px;
    height: 600px;
  }
  .about-grid { grid-template-columns: 1fr; gap: 50px; }
  .contact-grid { grid-template-columns: 1fr; }
  .timeline-item.left, .timeline-item.right { width: 100%; margin: 0 0 40px; }
  .timeline-line { left: 20px; }
  .timeline-dot { left: 0 !important; right: auto !important; transform: none !important; }
  .timeline-card::before { display: none; }
  .timeline-item { padding-left: 60px; }
}

@media (max-width: 768px) {
  .navbar { padding: 16px 20px; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .hamburger { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: rgba(8,12,20,0.97);
    justify-content: center;
    align-items: center;
    gap: 28px;
    z-index: 999;
    backdrop-filter: blur(20px);
  }
  .nav-link { font-size: 1.4rem; }

  .hero { padding: 100px 20px 60px; }
  .floating-badges { display: none; }
  .skills-universe { width: 300px; height: 300px; }
  .r1 { width: 160px; height: 160px; }
  .r2 { width: 280px; height: 280px; }
  .center-core { width: 80px; height: 80px; }
  .skill-bars { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .about-img-frame { width: 280px; height: 320px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2rem; }
  .about-highlights { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 16px; }
  .stat-divider { display: none; }
  .contact-form { padding: 24px 20px; }
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* =============================================
   ARCHIVE SECTION — embedded in projects
   ============================================= */

/* Year badge on cards */
.proj-year {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Highlights list inside featured card */
.proj-highlights {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.proj-highlights li {
  font-size: 0.8rem;
  color: var(--text-secondary);
  padding: 5px 10px;
  background: rgba(108,99,255,0.06);
  border-left: 2px solid var(--accent-1);
  border-radius: 0 6px 6px 0;
  line-height: 1.4;
}

/* Private link label */
.proj-link-private {
  font-size: 0.78rem;
  color: var(--text-muted);
  padding: 7px 14px;
  border: 1px dashed var(--border);
  border-radius: 8px;
  display: inline-block;
}

/* ── Multi Mockup (browser + mobile side by side) ── */
.multi-mockup {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  justify-content: center;
  width: 100%;
}
.multi-browser {
  flex: 1;
  max-width: 200px;
  background: #1a1a2e;
  border-radius: 10px;
  overflow: hidden;
}
.multi-mobile {
  flex-shrink: 0;
}

/* ── Archive Divider ── */
.archive-toggle-wrap {
  margin-top: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.archive-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 500px;
}
.divider-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}
.divider-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  white-space: nowrap;
}

/* ── Archive Toggle Button ── */
.btn-archive-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  background: transparent;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-main);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.btn-archive-toggle::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(108,99,255,0.08), rgba(0,245,212,0.08));
  opacity: 0;
  transition: var(--transition);
}
.btn-archive-toggle:hover {
  border-color: var(--accent-1);
  color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(108,99,255,0.2);
}
.btn-archive-toggle:hover::before { opacity: 1; }
.btn-archive-toggle[aria-expanded="true"] {
  border-color: var(--accent-1);
  color: var(--accent-1);
  background: rgba(108,99,255,0.08);
}

.toggle-icon { font-size: 1.1rem; }
.toggle-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  background: rgba(108,99,255,0.2);
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--accent-1);
}
.toggle-chevron {
  font-size: 0.85rem;
  transition: transform 0.3s ease;
}

/* ── Archive Panel (collapsible) ── */
.archive-panel {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.4s ease,
              margin-top 0.3s ease;
  margin-top: 0;
}
.archive-panel.open {
  max-height: 9999px; /* large enough */
  opacity: 1;
  margin-top: 40px;
}

/* Controls row */
.archive-controls {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.archive-search-wrap {
  position: relative;
  flex: 1;
  min-width: 200px;
  max-width: 360px;
}
.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.95rem;
  pointer-events: none;
}
.archive-search {
  width: 100%;
  padding: 11px 16px 11px 42px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 50px;
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition);
}
.archive-search:focus {
  border-color: var(--accent-1);
  background: rgba(108,99,255,0.05);
  box-shadow: 0 0 0 3px rgba(108,99,255,0.1);
}
.archive-search::placeholder { color: var(--text-muted); }

.archive-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.arch-filter {
  padding: 7px 18px;
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  transition: var(--transition);
  cursor: pointer;
}
.arch-filter:hover, .arch-filter.active {
  background: rgba(108,99,255,0.15);
  border-color: var(--accent-1);
  color: var(--text-primary);
}

/* Archive card slight visual distinction */
.archive-card {
  opacity: 0.9;
}
.archive-card:hover {
  opacity: 1;
}
.archive-grid {
  margin-top: 0;
}

/* Empty state */
.archive-empty {
  padding: 60px 20px;
  text-align: center;
  color: var(--text-muted);
}
.archive-empty span { font-size: 2.5rem; display: block; margin-bottom: 12px; }
.archive-empty p { font-size: 0.9rem; }

/* Total count */
.archive-total {
  margin-top: 20px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* ── Responsive archive ── */
@media (max-width: 700px) {
  .archive-controls { flex-direction: column; align-items: stretch; }
  .archive-search-wrap { max-width: 100%; }
}
