/* ===== HERO / GREETING ===== */

.greeting-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.hero-aurora-bg {
  position: absolute;
  inset: -20px;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.hero-aurora-bg::before,
.hero-aurora-bg::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
}

.hero-aurora-bg::before {
  width: 500px;
  height: 500px;
  background: rgba(168, 85, 247, 0.08);
  top: -10%;
  left: -5%;
  animation: blobDrift1 20s ease-in-out infinite;
}

.hero-aurora-bg::after {
  width: 450px;
  height: 450px;
  background: rgba(59, 130, 246, 0.06);
  bottom: -5%;
  right: -5%;
  animation: blobDrift2 24s ease-in-out infinite;
}

#hero-galaxy, #hero-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}


.hero-content {
  position: relative;
  z-index: 1;
  max-width: 650px;
  padding: 0 24px;
  transition: translate 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: translate;
}

.hero-greeting {
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: #888;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.hero-name {
  font-size: 72px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  padding-bottom: 4px;
  background: linear-gradient(
    120deg,
    #ffffff 0%,
    #e0c3fc 15%,
    #a855f7 30%,
    #818cf8 45%,
    #3b82f6 60%,
    #22d3ee 75%,
    #a855f7 90%,
    #ffffff 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 300% auto;
  opacity: 0;
  animation:
    heroFadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.35s forwards,
    flowColors 8s ease-in-out 1.35s infinite;
}

@media (max-width: 768px) {
  .hero-name { font-size: 48px; }
}

@media (max-width: 480px) {
  .hero-name { font-size: 36px; }
}

.hero-tagline {
  font-size: 18px;
  font-weight: 400;
  color: #ccc;
  margin-top: 20px;
}

.highlight-red {
  color: #ef4444;
  font-weight: 600;
}

.hero-desc {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.7;
  color: #777;
  margin-top: 16px;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 12px 32px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #a855f7, #3b82f6);
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 24px rgba(99, 68, 245, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 32px rgba(99, 68, 245, 0.4);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  padding: 12px 32px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 500;
  color: #ccc;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  border-color: rgba(168, 85, 247, 0.5);
  color: #fff;
  transform: translateY(-2px);
}

/* ===== TERMINAL MODAL ===== */

.terminal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.terminal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.terminal-window {
  width: 92%;
  max-width: 820px;
  max-height: 80vh;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
  transform: scale(0.95) translateY(10px);
  transition: transform 0.3s ease;
}

.terminal-overlay.open .terminal-window {
  transform: scale(1) translateY(0);
}

.terminal-bar {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  background: #1a1a1a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.terminal-dots {
  display: flex;
  gap: 6px;
  margin-right: 12px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot.red {
  background: #ff5f57;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.dot.red:hover {
  transform: scale(1.2);
  box-shadow: 0 0 6px rgba(255, 95, 87, 0.5);
}

.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }

.dot-disabled {
  opacity: 0.35;
  cursor: default;
}

.terminal-title {
  font-family: var(--font-mono, "Space Mono", monospace);
  font-size: 12px;
  color: #888;
  flex: 1;
  text-align: center;
}

.terminal-body {
  background: #0d0d0d;
  padding: 20px;
  font-family: var(--font-mono, "Space Mono", monospace);
  font-size: 13px;
  line-height: 1.7;
  color: #ccc;
  max-height: 60vh;
  overflow-y: auto;
}

.terminal-body::-webkit-scrollbar { width: 6px; }
.terminal-body::-webkit-scrollbar-track { background: transparent; }
.terminal-body::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }

.terminal-prompt {
  color: #22c55e;
  margin-bottom: 16px;
  font-weight: 700;
}

.t-line {
  min-height: 1em;
  white-space: normal;
  word-wrap: break-word;
}

.t-name {
  color: #a855f7;
  font-weight: 700;
  font-size: 16px;
}

.t-role {
  color: #3b82f6;
  font-weight: 600;
}

.t-quote {
  color: #f59e0b;
  font-style: italic;
}

.t-link {
  color: #22d3ee;
}

.terminal-cursor {
  display: inline-block;
  animation: cursorBlink 1s step-end infinite;
  color: #22c55e;
}

@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ===== ABOUT ===== */

.about-section {
  padding-top: 120px;
  padding-bottom: 80px;
}

.about-label {
  font-size: 32px;
  font-weight: 700;
  color: #ededed;
  margin-bottom: 40px;
}

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

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.about-headline {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.4;
  color: #ededed;
  margin-bottom: 24px;
}

@media (max-width: 600px) {
  .about-headline { font-size: 22px; }
}

.about-body {
  font-size: 15px;
  line-height: 1.8;
  color: #888;
  margin-bottom: 16px;
}

.about-highlight {
  color: #ededed;
  font-weight: 600;
}

.about-quote {
  margin-top: 32px;
  padding-left: 20px;
  border-left: 2px solid rgba(168, 85, 247, 0.4);
  font-size: 16px;
  font-style: italic;
  color: #888;
  line-height: 1.7;
}

.about-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-lottie-wrapper {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 3 / 4;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(17, 17, 17, 0.5);
}

.about-lottie-wrapper::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(59, 130, 246, 0.1), rgba(34, 211, 238, 0.08));
  z-index: -1;
  filter: blur(20px);
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 60px;
}

@media (max-width: 600px) {
  .about-stats { grid-template-columns: repeat(2, 1fr); }
}

.stat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(10, 10, 10, 0.8);
  transition: border-color 0.3s ease, transform 0.3s ease;
  overflow: hidden;
}

.stat-card:hover {
  border-color: rgba(168, 85, 247, 0.3);
  transform: translateY(-4px);
}

.stat-number {
  font-size: 40px;
  font-weight: 800;
  background: linear-gradient(135deg, #a855f7, #3b82f6, #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.stat-label {
  font-size: 13px;
  color: #888;
  margin-top: 10px;
  letter-spacing: 0.02em;
}

/* ===== SKILLS ===== */

.skills-section {
  padding: 100px 0;
}

.skills-label {
  font-size: 32px;
  font-weight: 700;
  color: #ededed;
  margin-bottom: 40px;
}

.skills-headline {
  font-size: 32px;
  font-weight: 700;
  color: #ededed;
  margin-bottom: 48px;
}

/* Marquee */
.marquee-wrap {
  margin-bottom: 48px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}

.marquee-row {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee-track {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: marqueeScroll 40s linear infinite;
}

.marquee-reverse .marquee-track {
  animation-direction: reverse;
  animation-duration: 35s;
}

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

.m-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 10, 10, 0.8);
  font-size: 14px;
  font-weight: 500;
  color: #ccc;
  white-space: nowrap;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.marquee-row:hover .marquee-track {
  animation-play-state: paused;
}

.m-pill:hover {
  border-color: rgba(168, 85, 247, 0.4);
  color: #fff;
}

/* Bento Grid — 3 column equal */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.bento-lg, .bento-md, .bento-sm { grid-column: span 1; }

@media (max-width: 900px) {
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .bento-grid { grid-template-columns: 1fr; }
}

.bento-card {
  position: relative;
  padding: 28px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(10, 10, 10, 0.8);
  overflow: hidden;
  transition: border-color 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.bento-card[data-accent="#a855f7"]::after { background: radial-gradient(circle at 30% 30%, rgba(168, 85, 247, 0.08), transparent 70%); }
.bento-card[data-accent="#3b82f6"]::after { background: radial-gradient(circle at 70% 30%, rgba(59, 130, 246, 0.08), transparent 70%); }
.bento-card[data-accent="#22d3ee"]::after { background: radial-gradient(circle at 30% 70%, rgba(34, 211, 238, 0.08), transparent 70%); }
.bento-card[data-accent="#6366f1"]::after { background: radial-gradient(circle at 70% 70%, rgba(99, 102, 241, 0.08), transparent 70%); }
.bento-card[data-accent="#c084fc"]::after { background: radial-gradient(circle at 50% 30%, rgba(192, 132, 252, 0.08), transparent 70%); }
.bento-card[data-accent="#f59e0b"]::after { background: radial-gradient(circle at 50% 70%, rgba(245, 158, 11, 0.08), transparent 70%); }

.bento-card:hover::after { opacity: 1; }

.bento-card:hover {
  border-color: rgba(255, 255, 255, 0.1);
}

.bento-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.bento-icon {
  font-size: 24px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
  transition: border-color 0.3s ease;
}

.bento-card[data-accent="#a855f7"]:hover .bento-icon { border-color: rgba(168, 85, 247, 0.4); }
.bento-card[data-accent="#3b82f6"]:hover .bento-icon { border-color: rgba(59, 130, 246, 0.4); }
.bento-card[data-accent="#22d3ee"]:hover .bento-icon { border-color: rgba(34, 211, 238, 0.4); }
.bento-card[data-accent="#6366f1"]:hover .bento-icon { border-color: rgba(99, 102, 241, 0.4); }
.bento-card[data-accent="#c084fc"]:hover .bento-icon { border-color: rgba(192, 132, 252, 0.4); }
.bento-card[data-accent="#f59e0b"]:hover .bento-icon { border-color: rgba(245, 158, 11, 0.4); }

.bento-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: #ededed;
  margin: 0;
}

.bento-desc {
  font-size: 13px;
  color: #666;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.bento-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.bento-pills span {
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: #888;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 9999px;
  transition: all 0.25s ease;
  cursor: default;
  white-space: nowrap;
}

.bento-pills span:hover {
  color: #ededed;
  background: rgba(168, 85, 247, 0.1);
  border-color: rgba(168, 85, 247, 0.3);
  transform: translateY(-2px);
}

.bento-card[data-accent="#3b82f6"] .bento-pills span:hover { background: rgba(59, 130, 246, 0.1); border-color: rgba(59, 130, 246, 0.3); }
.bento-card[data-accent="#22d3ee"] .bento-pills span:hover { background: rgba(34, 211, 238, 0.1); border-color: rgba(34, 211, 238, 0.3); }
.bento-card[data-accent="#6366f1"] .bento-pills span:hover { background: rgba(99, 102, 241, 0.1); border-color: rgba(99, 102, 241, 0.3); }
.bento-card[data-accent="#c084fc"] .bento-pills span:hover { background: rgba(192, 132, 252, 0.1); border-color: rgba(192, 132, 252, 0.3); }
.bento-card[data-accent="#f59e0b"] .bento-pills span:hover { background: rgba(245, 158, 11, 0.1); border-color: rgba(245, 158, 11, 0.3); }

/* ===== EXPERIENCE ===== */

.experience-section {
  padding-top: 80px;
  padding-bottom: 0;
}

.exp-label {
  font-size: 32px;
  font-weight: 700;
  color: #ededed;
  margin-bottom: 40px;
}

.experience-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  padding-left: 40px;
}

/* Timeline gradient line — fades in at top, fades out at bottom */
.experience-container::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg,
    transparent 0%,
    #a855f7 5%,
    #3b82f6 30%,
    #22d3ee 50%,
    #3b82f6 70%,
    #a855f7 95%,
    transparent 100%
  );
  border-radius: 2px;
}

.experience-item {
  position: relative;
  background: rgba(10, 10, 10, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 28px 28px 24px;
  margin-bottom: 24px;
  border-radius: 16px;
  transition: border-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

/* Timeline company icon */
.exp-icon {
  position: absolute;
  left: -46px;
  top: 26px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: #a855f7;
  z-index: 1;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.exp-icon img {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  object-fit: contain;
}

.experience-item:hover .exp-icon {
  border-color: rgba(168, 85, 247, 0.5);
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.3);
  background: #1a1a1a;
}

.experience-item:hover {
  border-color: rgba(168, 85, 247, 0.25);
  transform: translateX(4px);
  box-shadow: 0 4px 30px rgba(168, 85, 247, 0.08);
}

.experience-item h3 {
  margin: 0 0 4px;
  font-weight: 700;
  font-size: 17px;
  color: #ededed;
}

.position {
  font-style: normal;
  font-weight: 500;
  font-size: 14px;
  color: #a855f7;
  margin-bottom: 4px;
}

.date {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  color: #888;
  padding: 3px 10px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 14px;
}

.experience-highlights {
  padding-left: 18px;
  margin-top: 8px;
}

.experience-highlights li {
  list-style-type: none;
  position: relative;
  padding-left: 14px;
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 1.7;
  color: #999;
}

.experience-highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a855f7, #3b82f6);
}

@media (max-width: 768px) {
  .experience-container { padding-left: 38px; }
  .experience-item { padding: 20px; }
  .exp-icon { left: -42px; width: 24px; height: 24px; font-size: 10px; border-radius: 6px; }
  .experience-container::before { left: 8px; }
}

/* ===== PROJECTS (NEW) ===== */

.projects-section {
  padding: 100px 0;
}

.projects-label {
  font-size: 32px;
  font-weight: 700;
  color: #ededed;
  margin-bottom: 40px;
}

.projects-headline {
  font-size: 32px;
  font-weight: 700;
  color: #ededed;
  margin-bottom: 40px;
}

/* Featured card */
.project-featured {
  display: block;
  text-decoration: none;
  color: inherit;
  position: relative;
  padding: 36px;
  border-radius: 20px;
  border: 1px solid rgba(168, 85, 247, 0.15);
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.04), rgba(59, 130, 246, 0.03), rgba(10, 10, 10, 0.9));
  margin-bottom: 24px;
  overflow: hidden;
  transition: border-color 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.project-featured::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #a855f7, #3b82f6, #22d3ee);
}

.project-featured:hover {
  border-color: rgba(168, 85, 247, 0.3);
  box-shadow: 0 12px 48px rgba(168, 85, 247, 0.1);
}

.featured-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #a855f7;
  padding: 4px 12px;
  border-radius: 9999px;
  border: 1px solid rgba(168, 85, 247, 0.25);
  background: rgba(168, 85, 247, 0.08);
  margin-bottom: 16px;
}

.project-featured h3 {
  font-size: 28px;
  font-weight: 800;
  color: #ededed;
  margin-bottom: 12px;
}

.featured-desc {
  font-size: 15px;
  color: #888;
  line-height: 1.7;
  max-width: 700px;
  margin-bottom: 20px;
}

.featured-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}

.featured-stats span {
  font-size: 13px;
  font-weight: 600;
  color: #a855f7;
}

.featured-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.featured-tech span {
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 500;
  color: #888;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 9999px;
  transition: all 0.2s ease;
}

.project-featured:hover .featured-tech span {
  border-color: rgba(168, 85, 247, 0.2);
  color: #aaa;
}

/* Project grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 900px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .projects-grid { grid-template-columns: 1fr; }
  .project-featured { padding: 24px; }
  .project-featured h3 { font-size: 22px; }
}

.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  padding: 24px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(10, 10, 10, 0.7);
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.project-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.project-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.project-emoji {
  font-size: 28px;
}

.project-arrow {
  font-size: 18px;
  color: #555;
  transition: color 0.2s ease, transform 0.2s ease;
}

.project-card:hover .project-arrow {
  color: #a855f7;
  transform: translate(2px, -2px);
}

.project-card h4 {
  font-size: 16px;
  font-weight: 700;
  color: #ededed;
  margin-bottom: 8px;
}

.project-card p {
  font-size: 13px;
  color: #777;
  line-height: 1.6;
  margin-bottom: 16px;
  flex-grow: 1;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.project-tech span {
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 500;
  color: #666;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 9999px;
}

.project-card:hover .project-tech span {
  color: #999;
  border-color: rgba(255, 255, 255, 0.1);
}

/* ===== RESEARCH ===== */

.research-section {
  padding: 100px 0;
}

.research-label {
  font-size: 32px;
  font-weight: 700;
  color: #ededed;
  margin-bottom: 40px;
}

.research-headline {
  font-size: 28px;
  font-weight: 700;
  color: #ededed;
  margin-bottom: 48px;
}

.research-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 800px) {
  .research-grid { grid-template-columns: 1fr; gap: 40px; }
  .research-headline { font-size: 22px; }
}

.research-col-title {
  font-size: 16px;
  font-weight: 700;
  color: #ededed;
  margin-bottom: 20px;
}

/* Publication cards */
.pub-card {
  padding: 20px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(10, 10, 10, 0.7);
  margin-bottom: 12px;
  transition: border-color 0.3s ease, transform 0.2s ease;
}

.pub-card:hover {
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateX(4px);
}

.pub-accepted {
  border-left: 3px solid #22c55e;
}

.pub-published {
  border-left: 3px solid #3b82f6;
}

.pub-submitted {
  border-left: 3px solid #f59e0b;
}

.pub-note {
  border: 1px dashed rgba(255, 255, 255, 0.08);
  background: transparent;
}

.pub-note p {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
}

.pub-note strong {
  color: #aaa;
}

.pub-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 9999px;
  margin-bottom: 10px;
}

.badge-accepted { background: rgba(34, 197, 94, 0.12); color: #22c55e; }
.badge-published { background: rgba(59, 130, 246, 0.12); color: #3b82f6; }
.badge-submitted { background: rgba(245, 158, 11, 0.12); color: #f59e0b; }
.badge-granted { background: rgba(34, 197, 94, 0.12); color: #22c55e; }
.badge-filed { background: rgba(245, 158, 11, 0.12); color: #f59e0b; }

.pub-card h4 {
  font-size: 14px;
  font-weight: 600;
  color: #ddd;
  line-height: 1.5;
  margin-bottom: 6px;
}

.pub-venue {
  font-size: 12px;
  color: #666;
  margin-bottom: 8px;
}

.pub-link {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: #a855f7;
  text-decoration: none;
  transition: color 0.2s ease;
}

.pub-link:hover {
  color: #c084fc;
}

/* Patent cards */
.patent-card {
  padding: 20px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(10, 10, 10, 0.7);
  margin-bottom: 12px;
  transition: border-color 0.3s ease, transform 0.2s ease;
}

.patent-card:hover {
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateX(4px);
}

.patent-granted {
  position: relative;
  border: 1px solid rgba(34, 197, 94, 0.15);
  border-left: 3px solid #22c55e;
}

.patent-filed {
  border-left: 3px solid #f59e0b;
}

.patent-granted::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: radial-gradient(circle at 20% 30%, rgba(34, 197, 94, 0.04), transparent 70%);
  pointer-events: none;
}

.patent-card h4 {
  font-size: 14px;
  font-weight: 600;
  color: #ddd;
  line-height: 1.5;
  margin-bottom: 6px;
}

.patent-meta {
  font-size: 12px;
  color: #666;
  margin-bottom: 8px;
}

/* Achievements */
.achievements-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.achievement-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: #888;
  padding: 10px 14px;
  border-radius: 10px;
  transition: background 0.2s ease, color 0.2s ease;
}

.achievement-item:hover {
  background: rgba(255, 255, 255, 0.02);
  color: #ccc;
}

.ach-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a855f7, #3b82f6);
  flex-shrink: 0;
}

/* ===== OPEN SOURCE ===== */

.opensource-section {
  padding: 100px 0;
}

.os-label {
  font-size: 32px;
  font-weight: 700;
  color: #ededed;
  margin-bottom: 40px;
}

.os-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 700px) {
  .os-cards { grid-template-columns: 1fr; }
}

.os-card {
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 28px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(10, 10, 10, 0.7);
  transition: border-color 0.3s ease, transform 0.3s ease;
  overflow: hidden;
}

.os-card:hover {
  border-color: rgba(168, 85, 247, 0.25);
  transform: translateY(-4px);
}

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

.os-card-top h4 {
  font-size: 20px;
  font-weight: 800;
  color: #ededed;
}

.os-role {
  font-size: 11px;
  font-weight: 600;
  color: #a855f7;
  padding: 3px 10px;
  border-radius: 9999px;
  white-space: normal;
  text-align: center;
  line-height: 1.4;
  flex-shrink: 1;
  max-width: 50%;
  border: 1px solid rgba(168, 85, 247, 0.2);
  background: rgba(168, 85, 247, 0.06);
}

.os-maintainer {
  color: #22c55e;
  border-color: rgba(34, 197, 94, 0.25);
  background: rgba(34, 197, 94, 0.08);
}

.os-card p {
  font-size: 13px;
  color: #888;
  line-height: 1.7;
  margin-bottom: 16px;
}

.os-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.os-tags span {
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 500;
  color: #666;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 9999px;
}

.os-card:hover .os-tags span {
  color: #999;
  border-color: rgba(255, 255, 255, 0.1);
}

/* ===== EDUCATION ===== */

.education-section {
  padding: 100px 0;
}

.edu-label {
  font-size: 32px;
  font-weight: 700;
  color: #ededed;
  margin-bottom: 40px;
}

.edu-headline {
  font-size: 32px;
  font-weight: 700;
  color: #ededed;
  margin-bottom: 56px;
}

/* Education cards row */
.edu-cards-row {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.edu-arrow {
  display: flex;
  align-items: center;
  padding: 0 12px;
  font-size: 20px;
  color: #3b82f6;
  flex-shrink: 0;
}

.edu-station-card {
  flex: 1;
  padding: 20px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(10, 10, 10, 0.8);
  transition: border-color 0.3s ease, transform 0.2s ease;
  text-align: center;
}

.edu-station-card:hover {
  border-color: rgba(59, 130, 246, 0.25);
  transform: translateY(-4px);
}

.edu-station-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: #ededed;
  margin-bottom: 6px;
}

.edu-station-card p {
  font-size: 12px;
  color: #888;
  margin-bottom: 10px;
  line-height: 1.5;
}

.edu-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  color: #3b82f6;
  padding: 3px 10px;
  border-radius: 9999px;
  border: 1px solid rgba(59, 130, 246, 0.2);
  background: rgba(59, 130, 246, 0.06);
  margin: 2px;
}

/* Railway track + SVG train */
.edu-rail {
  position: relative;
  margin-top: 48px;
  height: 90px;
  overflow: hidden;
}

.edu-rail-ties {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  height: 16px;
  background: repeating-linear-gradient(90deg,
    transparent 0px, transparent 20px,
    rgba(140, 120, 90, 0.2) 20px, rgba(140, 120, 90, 0.2) 24px
  );
}

.edu-rail-top, .edu-rail-bottom {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 2%, rgba(170, 170, 180, 0.5) 8%, rgba(170, 170, 180, 0.5) 92%, transparent 98%);
}

.edu-rail-top { bottom: 20px; }
.edu-rail-bottom { bottom: 6px; }

.edu-loco {
  position: absolute;
  bottom: 8px;
  z-index: 3;
  animation: trainChug 14s linear infinite;
}

@keyframes trainChug {
  0% { left: -200px; }
  100% { left: calc(100% + 20px); }
}

/* SVG smoke animation */
.smoke-puff {
  animation: svgSmoke 1.8s ease-out infinite;
}
.sp1 { animation-delay: 0s; }
.sp2 { animation-delay: 0.6s; }
.sp3 { animation-delay: 1.2s; }

@keyframes svgSmoke {
  0% { opacity: 0.5; r: 5; transform: translate(0, 0); }
  100% { opacity: 0; r: 14; transform: translate(-15px, -20px); }
}

/* SVG wheel spokes rotation */
.spoke-1 { animation: spokeRotate 0.5s linear infinite; transform-origin: 48px 62px; transform-box: fill-box; }
.spoke-2 { animation: spokeRotate 0.5s linear infinite; transform-origin: 80px 62px; transform-box: fill-box; }
.spoke-3 { animation: spokeRotate 0.5s linear infinite; transform-origin: 120px 62px; transform-box: fill-box; }

@keyframes spokeRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Connecting rod animation */
.conn-rod {
  animation: rodPump 0.25s ease-in-out infinite alternate;
}

@keyframes rodPump {
  0% { transform: translateX(-2px); }
  100% { transform: translateX(2px); }
}

@media (max-width: 700px) {
  .edu-cards-row { flex-direction: column; gap: 12px; }
  .edu-arrow { display: none; }
  .edu-rail { margin-top: 24px; }
}

/* ===== CERTIFICATES ===== */

.faqs-section {
  margin-bottom: 80px;
}

.faqs-section .custom-header h1 {
  font-size: 32px;
  font-weight: 700;
  color: #ededed;
  border-bottom: none;
  display: inline-block;
  position: relative;
}

.faqs-section .custom-header h1::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  margin: 10px auto 0;
  border-radius: 3px;
  background: linear-gradient(90deg, #a855f7, #3b82f6);
}

.faqs-section .custom-header {
  padding: 0 0 40px;
}

.faqs-section details {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  background: rgba(10, 10, 10, 0.7);
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.faqs-section details:hover {
  border-color: rgba(255, 255, 255, 0.1);
}

.faqs-section details[open] {
  border-color: rgba(168, 85, 247, 0.15);
}

.faqs-section details summary {
  padding: 18px 24px;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.4;
  color: #ededed;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color 0.2s ease;
}

.faqs-section details summary::-webkit-details-marker,
.faqs-section details summary::marker {
  display: none;
}

.faqs-section details summary::after {
  content: "";
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-left: 16px;
  background-image: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4.5 6.75L9 11.25L13.5 6.75' stroke='%23888' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.3s ease;
}

.faqs-section details[open] summary::after {
  transform: rotate(180deg);
}

.faqs-section details[open] summary {
  color: #a855f7;
}

.faqs-section details li {
  color: #888;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 6px;
}

.faqs-section details li a {
  color: #a855f7;
  transition: color 0.2s ease;
}

.faqs-section details li a:hover {
  color: #c084fc;
}

.uloutside {
  padding: 0 24px 18px;
  margin-left: 0;
  list-style: none;
}

.uloutside li {
  position: relative;
  padding-left: 16px;
}

.uloutside li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a855f7, #3b82f6);
}

.ulinside {
  padding-left: 10px;
  margin-left: 3px;
}

/* ===== SCROLL PROGRESS BAR ===== */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, #a855f7, #3b82f6, #22d3ee);
  z-index: 10000;
  pointer-events: none;
  width: 0;
  will-change: width;
}

/* ===== SECTION DIVIDERS ===== */

.about-section::after,
.experience-section::after,
.skills-section::after,
.projects-section::after,
.research-section::after,
.opensource-section::after {
  content: "";
  display: block;
  width: 180px;
  height: 1px;
  margin: 0 auto;
  background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.2), rgba(59, 130, 246, 0.15), transparent);
}

/* ===== SECTION LABEL ACCENTS ===== */

.about-label,
.exp-label,
.skills-label,
.projects-label,
.research-label,
.os-label,
.edu-label {
  position: relative;
  display: inline-block;
}

.about-label::after,
.exp-label::after,
.skills-label::after,
.projects-label::after,
.research-label::after,
.os-label::after,
.edu-label::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  margin-top: 10px;
  border-radius: 3px;
  background: linear-gradient(90deg, #a855f7, #3b82f6);
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-label:hover::after,
.exp-label:hover::after,
.skills-label:hover::after,
.projects-label:hover::after,
.research-label:hover::after,
.os-label:hover::after,
.edu-label:hover::after {
  width: 64px;
}

/* ===== CURSOR GLOW EFFECT ===== */

.stat-card,
.project-card,
.os-card,
.experience-item {
  --glow-x: 50%;
  --glow-y: 50%;
}

.stat-card::before,
.project-card::before,
.os-card::before,
.experience-item::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    280px circle at var(--glow-x) var(--glow-y),
    rgba(168, 85, 247, 0.07),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 0;
}

.stat-card:hover::before,
.project-card:hover::before,
.os-card:hover::before,
.experience-item:hover::before {
  opacity: 1;
}

/* ===== RESPONSIVE — COMPREHENSIVE ===== */

/* Tablet (768px and below) */
@media (max-width: 768px) {
  .about-section { padding-top: 80px; padding-bottom: 60px; }
  .skills-section,
  .projects-section,
  .research-section,
  .opensource-section,
  .education-section { padding: 60px 0; }

  .about-label, .skills-label, .projects-label,
  .research-label, .os-label, .edu-label, .exp-label {
    font-size: 26px;
    margin-bottom: 28px;
  }

  .hero-tagline { font-size: 16px; }
  .hero-desc { font-size: 14px; }
  .hero-greeting { font-size: 13px; }

  .stat-number { font-size: 32px; }
  .stat-card { padding: 24px 12px; }

  .experience-section { padding-top: 60px; padding-bottom: 0; }

  .os-card { padding: 20px; }
  .os-card-top h4 { font-size: 17px; }
  .os-card-top { flex-wrap: wrap; gap: 8px; }

  .project-featured h3 { font-size: 24px; }
  .featured-desc { font-size: 14px; }
  .featured-stats { gap: 10px; }

  .terminal-body { font-size: 12px; padding: 16px; }
  .t-name { font-size: 15px; }

  .faqs-section details summary { font-size: 15px; padding: 16px 18px; }
  .faqs-section .custom-header h1 { font-size: 26px; }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
  .container { padding: 0 16px; }

  .about-section { padding-top: 60px; padding-bottom: 40px; }
  .skills-section,
  .projects-section,
  .research-section,
  .opensource-section,
  .education-section { padding: 40px 0; }

  .about-label, .skills-label, .projects-label,
  .research-label, .os-label, .edu-label, .exp-label {
    font-size: 22px;
    margin-bottom: 20px;
  }

  .about-headline { font-size: 20px; }
  .about-body { font-size: 14px; }
  .about-quote { font-size: 14px; }
  .about-lottie-wrapper { max-width: 260px; }

  .hero-content { padding: 0 16px; }
  .hero-tagline { font-size: 14px; margin-top: 14px; }
  .hero-desc { font-size: 13px; margin-top: 12px; }
  .hero-cta { gap: 12px; margin-top: 28px; }
  .btn-primary, .btn-outline { padding: 10px 24px; font-size: 13px; }

  .stat-number { font-size: 28px; }
  .stat-card { padding: 20px 10px; }
  .stat-label { font-size: 11px; }

  .experience-container { padding-left: 34px; }
  .experience-container::before { left: 6px; }
  .experience-item { padding: 16px; }
  .exp-icon { left: -38px; width: 22px; height: 22px; font-size: 9px; border-radius: 5px; top: 22px; }
  .experience-item h3 { font-size: 15px; }
  .position { font-size: 13px; }
  .experience-highlights li { font-size: 13px; }

  .m-pill { padding: 6px 14px; font-size: 12px; }

  .bento-card { padding: 20px; }
  .bento-card h3 { font-size: 14px; }
  .bento-pills span { font-size: 11px; padding: 4px 10px; }

  .project-featured { padding: 20px; }
  .project-featured h3 { font-size: 20px; }
  .featured-badge { font-size: 10px; }
  .project-card { padding: 18px; }
  .project-card h4 { font-size: 14px; }
  .project-emoji { font-size: 22px; }

  .pub-card { padding: 16px; }
  .pub-card h4 { font-size: 13px; }
  .research-col-title { font-size: 14px; }

  .os-card { padding: 18px; }
  .os-card-top h4 { font-size: 16px; }
  .os-role { font-size: 10px; }

  .edu-station-card { padding: 16px; }
  .edu-station-card h4 { font-size: 14px; }
  .edu-station-card p { font-size: 11px; }
  .edu-tag { font-size: 10px; padding: 2px 8px; }

  .terminal-window { width: 96%; max-height: 85vh; }
  .terminal-body { max-height: 70vh; font-size: 11px; padding: 14px; }
  .terminal-bar { padding: 8px 12px; }
  .terminal-title { font-size: 10px; }
  .t-name { font-size: 14px; }

  .faqs-section details summary { font-size: 14px; padding: 14px 16px; }
  .faqs-section details li { font-size: 13px; }
  .uloutside { padding: 0 16px 14px; }
  .faqs-section .custom-header h1 { font-size: 22px; }
  .faqs-section .custom-header { padding: 0 0 24px; }

  .footer-grid { gap: 20px; }
  .footer-brand h3 { font-size: 18px; }
  .footer-brand p { font-size: 12px; }
  .footer-links a { font-size: 12px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* Very small screens (360px and below) */
@media (max-width: 360px) {
  .hero-name { font-size: 30px; }
  .hero-tagline { font-size: 13px; }
  .about-headline { font-size: 18px; }
  .about-stats { grid-template-columns: 1fr 1fr; gap: 8px; }
  .stat-number { font-size: 24px; }
  .bento-card { padding: 16px; }
  .project-featured h3 { font-size: 18px; }
  .os-cards { gap: 12px; }
}

/* Landscape mobile — ensure hero isn't too tall */
@media (max-height: 500px) and (orientation: landscape) {
  .greeting-section { min-height: auto; padding: 60px 20px; }
  .hero-name { font-size: 36px; }
  .hero-cta { margin-top: 20px; }
  .terminal-window { max-height: 90vh; }
  .terminal-body { max-height: 75vh; }
}

/* Tablet landscape */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
  .about-grid { gap: 40px; }
  .os-cards { grid-template-columns: 1fr 1fr 1fr; }
}

/* Touch devices — disable hover transforms and cursor glow */
@media (hover: none) {
  .experience-item:hover { transform: none; }
  .project-card:hover { transform: none; }
  .bento-card:hover { transform: none; }
  .stat-card:hover { transform: none; }
  .os-card:hover { transform: none; }
  .edu-station-card:hover { transform: none; }
  .pub-card:hover { transform: none; }
  .patent-card:hover { transform: none; }

  .stat-card::before,
  .project-card::before,
  .os-card::before,
  .experience-item::before { display: none; }
}

