/* ============================================
   PORTFOLIO — Terminal / Hacker aesthetic
   Dark theme • Monospace • Glow accents
   ============================================ */

:root {
  --bg: #000000;
  --bg-card: #0a0a0a;
  --bg-elevated: #111111;
  --border: #1f1f1f;
  --border-glow: rgba(57, 211, 83, 0.4);
  --text: #e5e5e5;
  --text-muted: #a3a3a3;
  --accent: #39d353;
  --accent-dim: #238636;
  --glow: 0 0 20px rgba(57, 211, 83, 0.15);
  --glow-strong: 0 0 30px rgba(57, 211, 83, 0.25);
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --font-sans: 'Space Grotesk', system-ui, sans-serif;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 5rem;
  --radius: 6px;
  --radius-lg: 10px;
  --transition: 0.2s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
}

body.welcome-active {
  overflow: hidden;
}

/* Subtle grid overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(57, 211, 83, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(57, 211, 83, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* Main content fade-in after welcome screen */
body.welcome-active main,
body.welcome-active header,
body.welcome-active footer {
  opacity: 0;
  transition: opacity 0.6s ease-out;
}

body:not(.welcome-active) main,
body:not(.welcome-active) header,
body:not(.welcome-active) footer {
  opacity: 1;
  animation: contentFadeIn 0.8s ease-out forwards;
}

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

/* ========== Welcome Screen ========== */
.welcome-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  opacity: 1;
  visibility: visible;
  transition: opacity 1s cubic-bezier(0.33, 1, 0.68, 1),
              visibility 1s cubic-bezier(0.33, 1, 0.68, 1),
              transform 1s cubic-bezier(0.33, 1, 0.68, 1);
  pointer-events: all;
  transform: scale(1);
}

.welcome-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(1.05);
}

.welcome-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.welcome-gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  animation: orbFloat 12s ease-in-out infinite;
}

.welcome-orb-1 {
  width:  min(60vw, 400px);
  height: min(60vw, 400px);
  background: radial-gradient(circle, rgba(57, 211, 83, 0.4) 0%, transparent 70%);
  top: -20%;
  left: -10%;
  animation-delay: 0s;
}

.welcome-orb-2 {
  width:  min(50vw, 320px);
  height: min(50vw, 320px);
  background: radial-gradient(circle, rgba(35, 134, 54, 0.3) 0%, transparent 70%);
  bottom: -15%;
  right: -5%;
  animation-delay: -4s;
}

.welcome-orb-3 {
  width:  min(40vw, 260px);
  height: min(40vw, 260px);
  background: radial-gradient(circle, rgba(57, 211, 83, 0.25) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  margin-left: min(-20vw, -130px);
  margin-top: min(-20vw, -130px);
  animation: orbFloatCenter 12s ease-in-out infinite;
  animation-delay: -8s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(3%, -4%) scale(1.05); }
  66% { transform: translate(-2%, 3%) scale(0.98); }
}

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

.welcome-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(57, 211, 83, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(57, 211, 83, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  animation: gridPulse 8s ease-in-out infinite;
}

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

.welcome-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.welcome-particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.4;
  animation: particleFloat 15s linear infinite;
}

@keyframes particleFloat {
  0% {
    transform: translateY(100vh) translateX(0) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 0.4;
    transform: translateY(80vh) translateX(10px) scale(1);
  }
  90% {
    opacity: 0.2;
    transform: translateY(10vh) translateX(-5px) scale(0.8);
  }
  100% {
    transform: translateY(-20px) translateX(0) scale(0);
    opacity: 0;
  }
}

.welcome-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 600px;
  padding: var(--space-lg);
  animation: welcomeFadeIn 0.9s cubic-bezier(0.33, 1, 0.68, 1) forwards;
}

@keyframes welcomeFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.welcome-terminal {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: 0 0 0 1px var(--accent), 0 20px 60px rgba(0, 0, 0, 0.7);
  animation: terminalGlow 2s ease-in-out infinite;
}

@keyframes terminalGlow {
  0%, 100% {
    box-shadow: 0 0 0 1px var(--accent), 0 20px 60px rgba(0, 0, 0, 0.7);
  }
  50% {
    box-shadow: 0 0 0 1px var(--accent), 0 20px 60px rgba(0, 0, 0, 0.7),
                0 0 40px rgba(57, 211, 83, 0.15);
  }
}

.welcome-term-bar {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.welcome-term-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.welcome-term-dots::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff5f56;
  box-shadow: 14px 0 0 0 #ffbd2e, 28px 0 0 0 #27c93f;
}

.welcome-term-title {
  flex: 1;
  color: var(--text-muted);
}

.welcome-term-status {
  color: var(--accent);
  font-weight: 600;
  text-shadow: 0 0 8px rgba(57, 211, 83, 0.5);
  animation: statusPulse 1.5s ease-in-out infinite;
}

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

.welcome-term-body {
  padding: var(--space-2xl);
  text-align: center;
}

.welcome-text-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: center;
}

.welcome-prompt {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  opacity: 0;
  animation: promptFadeIn 0.5s ease-out forwards;
}

.welcome-prompt:nth-of-type(1) {
  animation-delay: 0.3s;
}

.welcome-prompt:nth-of-type(2) {
  animation-delay: 1.2s;
}

@keyframes promptFadeIn {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.welcome-prompt-symbol {
  color: var(--accent);
  margin-right: 0.5em;
}

.welcome-title {
  margin: var(--space-md) 0;
  font-family: var(--font-mono);
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  opacity: 0;
  animation: titleReveal 1s cubic-bezier(0.33, 1, 0.68, 1) forwards;
  animation-delay: 1s;
}

.welcome-title-inner {
  display: inline-block;
  background: linear-gradient(135deg, #e6edf3 0%, var(--accent) 50%, #7ee787 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: titleShimmer 4s ease-in-out infinite;
}

@keyframes titleReveal {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.92);
    filter: blur(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes titleShimmer {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

.welcome-cursor {
  color: var(--accent);
  animation: blink 1s step-end infinite;
  margin-left: 4px;
}

.welcome-subtitle {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  opacity: 0;
  animation: subtitleFadeIn 0.6s ease-out forwards;
  animation-delay: 1.5s;
}

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

.welcome-loader {
  width: 100%;
  max-width: 300px;
  height: 4px;
  background: var(--bg-elevated);
  border-radius: 2px;
  overflow: hidden;
  margin-top: var(--space-md);
  opacity: 0;
  animation: loaderFadeIn 0.5s ease-out forwards;
  animation-delay: 1.8s;
}

@keyframes loaderFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.welcome-loader-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-dim), var(--accent), var(--accent-dim));
  background-size: 200% 100%;
  background-position: 0% 0;
  border-radius: 2px;
  width: 0%;
  animation: loaderProgress 2.2s cubic-bezier(0.33, 1, 0.68, 1) forwards,
             loaderShimmer 1.5s ease-in-out infinite;
  animation-delay: 2.2s;
  box-shadow: 0 0 12px rgba(57, 211, 83, 0.5);
}

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

@keyframes loaderShimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.welcome-prompt-2 { animation-delay: 1.4s; }

/* Responsive adjustments */
@media (max-width: 768px) {
  .welcome-content {
    padding: var(--space-md);
  }
  
  .welcome-term-body {
    padding: var(--space-xl);
  }
  
  .welcome-title {
    font-size: clamp(1.75rem, 8vw, 3rem);
  }
  
  .welcome-gradient-orb {
    filter: blur(60px);
    opacity: 0.25;
  }
}

/* ========== Scroll progress bar ========== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-dim), var(--accent));
  z-index: 9998;
  transition: width 0.12s ease-out;
  box-shadow: 0 0 12px rgba(57, 211, 83, 0.5);
}

/* ========== Scroll reveal animations ========== */
.reveal-section {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.33, 1, 0.68, 1),
              transform 0.8s cubic-bezier(0.33, 1, 0.68, 1);
}

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

.reveal-item {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.33, 1, 0.68, 1),
              transform 0.7s cubic-bezier(0.33, 1, 0.68, 1);
}

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

.reveal-section.revealed .reveal-item:nth-child(1) { transition-delay: 0.05s; }
.reveal-section.revealed .reveal-item:nth-child(2) { transition-delay: 0.1s; }
.reveal-section.revealed .reveal-item:nth-child(3) { transition-delay: 0.15s; }
.reveal-section.revealed .reveal-item:nth-child(4) { transition-delay: 0.2s; }
.reveal-section.revealed .reveal-item:nth-child(5) { transition-delay: 0.25s; }
.reveal-section.revealed .reveal-item:nth-child(6) { transition-delay: 0.3s; }
.reveal-section.revealed .reveal-item:nth-child(7) { transition-delay: 0.35s; }
.reveal-section.revealed .reveal-item:nth-child(8) { transition-delay: 0.4s; }
.reveal-section.revealed .reveal-item:nth-child(9) { transition-delay: 0.45s; }
.reveal-section.revealed .reveal-item:nth-child(10) { transition-delay: 0.5s; }

@media (prefers-reduced-motion: reduce) {
  .welcome-screen,
  .welcome-content,
  .welcome-terminal,
  .welcome-gradient-orb,
  .welcome-particle,
  .welcome-prompt,
  .welcome-title,
  .welcome-subtitle,
  .welcome-loader-bar,
  .reveal-section,
  .reveal-item,
  .scroll-progress {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    transition-duration: 0.2s !important;
  }
  .welcome-screen.hidden { transform: none; }
  .reveal-section,
  .reveal-item {
    opacity: 1;
    transform: none;
  }
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition), text-shadow var(--transition);
}

a:hover {
  color: var(--accent);
  text-shadow: var(--glow);
}

.skip-link {
  position: absolute;
  top: -3rem;
  left: var(--space-sm);
  padding: var(--space-xs) var(--space-sm);
  background: var(--accent);
  color: var(--bg);
  z-index: 100;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  transition: top var(--transition);
}

.skip-link:focus {
  top: var(--space-sm);
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  position: relative;
  z-index: 1;
}

/* ========== Header ========== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.85);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  position: relative;
}

.nav-text {
  font-size: 1.1rem;
  background: linear-gradient(135deg, var(--accent) 0%, #7ee787 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: navGlow 3s ease-in-out infinite;
}

@keyframes navGlow {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.3); }
}

.nav-prompt {
  color: var(--accent);
}

.nav-cursor {
  color: var(--text-muted);
  margin-left: 0.2em;
}

.nav-logo:hover {
  color: var(--accent);
}
.nav-logo .site-logo { display: block; border-radius: 6px; }
.site-title-wrap { display: flex; flex-direction: column; line-height: 1; }
.site-title { font-size: 0.95rem; font-weight: 700; }
.site-subtitle { font-size: 0.72rem; color: var(--text-muted); }

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-sm);
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  transition: var(--transition);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
}

.nav-menu {
  display: none;
  list-style: none;
  margin: 0;
  padding: var(--space-md);
}

.nav-menu.is-open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  border-top: 1px solid var(--border);
}

.nav-menu a {
  display: block;
  padding: var(--space-sm) var(--space-md);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  border-left: 3px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}

.nav-menu a:hover {
  color: var(--accent);
  border-left-color: var(--accent);
}

@media (min-width: 768px) {
  .nav-toggle { display: none; }
  .nav-menu {
    display: flex;
    flex-direction: row;
    position: static;
    padding: 0;
    border: none;
    gap: 0;
  }
  .nav-menu a {
    padding: var(--space-sm) var(--space-md);
    border-left: none;
    border-bottom: 2px solid transparent;
  }
  .nav-menu a:hover { border-left: none; border-bottom-color: var(--accent); }
}

/* ========== Hero — Terminal window ========== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: var(--space-2xl) 0;
  position: relative;
  overflow: hidden;
  scroll-margin-top: 64px;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.15) 2px,
    rgba(0, 0, 0, 0.15) 3px
  );
  pointer-events: none;
  z-index: 0;
  opacity: 0.2;
}

.hero-terminal {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: 0 0 0 1px var(--accent), 0 20px 60px rgba(0, 0, 0, 0.7);
  position: relative;
  z-index: 1;
}

.term-bar {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.term-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.term-dots::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff5f56;
  box-shadow: 14px 0 0 0 #ffbd2e, 28px 0 0 0 #27c93f;
}

.term-title {
  flex: 1;
  color: var(--text-muted);
}

.term-status {
  color: var(--accent);
  font-weight: 600;
  text-shadow: 0 0 8px rgba(57, 211, 83, 0.5);
}

.term-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  padding: var(--space-xl);
  align-items: center;
  text-align: center;
}

.term-output {
  width: 100%;
  max-width: 560px;
}

.hero-prompt {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 var(--space-xs);
}

.hero-prompt-symbol {
  color: var(--accent);
  margin-right: 0.5em;
}

.term-result {
  margin: 0 0 var(--space-sm) !important;
  font-family: var(--font-mono) !important;
  font-size: clamp(1.75rem, 5vw, 3rem) !important;
  font-weight: 700 !important;
  color: var(--text) !important;
  letter-spacing: -0.02em !important;
  line-height: 1.2 !important;
}

.cursor {
  color: var(--accent);
  animation: blink 1s step-end infinite;
  margin-left: 2px;
}

@keyframes blink {
  50% { opacity: 0; }
}

.hero-meta {
  margin: 0 0 var(--space-md);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.term-label {
  color: var(--accent);
  margin-right: 0.5em;
}

.hero-summary {
  margin: 0 0 var(--space-lg);
  max-width: 520px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
}

/* Profile pane — terminal-style frame */
.term-pane {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
}

.term-pane-bar {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  padding: var(--space-xs) var(--space-sm);
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
  width: 100%;
  text-align: center;
}

.term-pane .hero-avatar-btn {
  padding: var(--space-md);
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
}

.btn-primary:hover {
  background: #4ade80;
  box-shadow: var(--glow-strong);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn-secondary:hover {
  background: rgba(57, 211, 83, 0.1);
  box-shadow: var(--glow);
  transform: translateY(-2px);
}

/* Button reset so avatar looks unchanged */
.hero-avatar-btn {
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  display: block;
  font: inherit;
}

.hero-avatar {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  display: block;
  border: 3px solid var(--accent);
  box-shadow:
    0 0 0 1px var(--border),
    0 8px 24px rgba(0, 0, 0, 0.3);
  transition: box-shadow 0.25s ease;
}

.hero-avatar-btn:hover .hero-avatar {
  box-shadow:
    0 0 0 2px var(--accent),
    0 12px 32px rgba(0, 0, 0, 0.4);
}

.hero-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (min-width: 768px) {
  .term-body {
    flex-direction: row;
    text-align: left;
    justify-content: space-between;
    gap: var(--space-2xl);
    padding: var(--space-xl) var(--space-2xl);
  }
  .hero-cta { justify-content: flex-start; }
  .term-output { max-width: none; }
  .term-pane { order: 1; }
  .term-output { order: 0; }
  .term-pane-bar { max-width: 220px; }
  .hero-avatar {
    width: 220px;
    height: 220px;
  }
}

/* ========== Sections ========== */
.section {
  padding: var(--space-3xl) 0;
  scroll-margin-top: 64px;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.3;
  transition: width 0.8s cubic-bezier(0.33, 1, 0.68, 1);
}

.reveal-section.revealed.section::before {
  width: min(80%, 400px);
}

.section:nth-child(even) {
  background: rgba(10, 10, 10, 0.4);
}

.section-title {
  margin: 0 0 var(--space-xl);
  font-family: var(--font-mono);
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-weight: 500;
  color: var(--text);
  text-align: center;
}

.section-prefix {
  color: var(--accent);
  margin-right: 0.35em;
}

/* ========== About Section - Beautiful Design ========== */
.about-beautiful-container {
  max-width: 1100px;
  margin: 0 auto;
}

/* Hero Banner */
.about-hero-banner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-3xl);
  padding: var(--space-2xl);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

@media (min-width: 992px) {
  .about-hero-banner {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

.hero-content {
  padding: var(--space-md);
}

.hero-headline {
  font-family: var(--font-sans);
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  color: var(--text);
  margin: 0 0 var(--space-md);
  font-weight: 700;
  line-height: 1.2;
}

.name-highlight {
  background: linear-gradient(135deg, var(--accent) 0%, #7ee787 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.hero-tagline {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--accent);
  margin: 0 0 var(--space-lg);
  font-weight: 600;
}

.hero-description p {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin: 0 0 var(--space-xl);
}

.hero-stats {
  display: flex;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-width: 100px;
}

.stat-number {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: var(--space-xs);
}

/* Code Window */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.code-window {
  width: 100%;
  max-width: 450px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.window-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md);
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}

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

.window-dot.red { background: #ff5f56; }
.window-dot.yellow { background: #ffbd2e; }
.window-dot.green { background: #27c93f; }

.window-title {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

.window-content {
  padding: var(--space-lg);
  overflow-x: auto;
}

.window-content pre {
  margin: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  line-height: 1.6;
}

.keyword { color: #ff79c6; }
.class-name { color: #8be9fd; }
.function-name { color: #50fa7b; }
.string { color: #f1fa8c; }

/* What I Do Grid */
.what-i-do-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-3xl);
}

@media (min-width: 768px) {
  .what-i-do-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  transition: all 0.3s cubic-bezier(0.33, 1, 0.68, 1);
}

.info-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 12px 40px rgba(57, 211, 83, 0.15);
}

.card-icon-wrapper {
  width: 72px;
  height: 72px;
  margin: 0 auto var(--space-lg);
  background: var(--bg-elevated);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  transition: all 0.3s ease;
}

.icon-backend { background: linear-gradient(135deg, rgba(57, 211, 83, 0.1), transparent); }
.icon-database { background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), transparent); }
.icon-fullstack { background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), transparent); }

.info-card:hover .card-icon-wrapper {
  background: var(--accent);
  color: var(--bg);
  transform: scale(1.1) rotate(5deg);
}

.card-icon-wrapper svg {
  width: 40px;
  height: 40px;
}

.info-card h3 {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--text);
  margin: 0 0 var(--space-md);
  font-weight: 600;
}

.info-card p {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

/* Education & CTA Container */
.education-cta-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
}

@media (min-width: 768px) {
  .education-cta-container {
    grid-template-columns: 1fr 1fr;
  }
}

/* Education Block */
.education-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}

.education-block h3 {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--accent);
  margin: 0 0 var(--space-xl);
  font-weight: 600;
}

.edu-timeline {
  position: relative;
  padding-left: var(--space-xl);
}

.edu-item {
  position: relative;
}

.edu-marker {
  position: absolute;
  left: calc(-1 * var(--space-xl));
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(57, 211, 83, 0.6);
}

.edu-content h4 {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  color: var(--text);
  margin: 0 0 var(--space-sm);
  font-weight: 600;
}

.school {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--accent);
  margin: 0 0 var(--space-xs);
}

.grade {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 var(--space-md);
}

.desc {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

/* CTA Block */
.cta-block {
  background: linear-gradient(135deg, rgba(57, 211, 83, 0.06) 0%, rgba(0, 0, 0, 0) 100%);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
}

.cta-block h3 {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--accent);
  margin: 0 0 var(--space-lg);
  font-weight: 600;
}

.objective-text {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.8;
  margin: 0 0 var(--space-xl);
  flex-grow: 1;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.btn-primary-glow {
  display: inline-block;
  padding: 0.9rem 1.8rem;
  background: linear-gradient(135deg, var(--accent-dim), var(--accent));
  color: #000000;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 0 20px rgba(57, 211, 83, 0.3);
}

.btn-primary-glow:hover {
  background: linear-gradient(135deg, var(--accent), #4ade80);
  box-shadow: 0 0 30px rgba(57, 211, 83, 0.5);
  transform: translateY(-2px);
}

.btn-secondary-outline {
  display: inline-block;
  padding: 0.9rem 1.8rem;
  background: transparent;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid var(--accent);
}

.btn-secondary-outline:hover {
  background: rgba(57, 211, 83, 0.1);
  box-shadow: 0 0 20px rgba(57, 211, 83, 0.2);
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
  .about-hero-banner {
    padding: var(--space-xl);
  }
  
  .hero-stats {
    justify-content: center;
  }
  
  .stat-item {
    min-width: 80px;
  }
  
  .code-window {
    max-width: 100%;
  }
  
  .window-content pre {
    font-size: 0.75rem;
  }
}

.skill-box h3 {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  color: var(--text);
  margin: 0 0 var(--space-md);
  font-weight: 600;
}

.skill-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.skill-box li {
  padding: var(--space-xs) 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  position: relative;
  padding-left: 1.2em;
}

.skill-box li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

.education-simple {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

.education-simple h3 {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--accent);
  margin: 0 0 var(--space-lg);
  font-weight: 600;
}

.edu-item h4 {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  color: var(--text);
  margin: 0 0 var(--space-sm);
  font-weight: 600;
}

.edu-item > p {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 var(--space-md);
}

.edu-item .desc {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text);
  margin: 0;
  line-height: 1.7;
}

.cta-simple {
  text-align: center;
  background: linear-gradient(135deg, rgba(57, 211, 83, 0.06) 0%, rgba(0, 0, 0, 0) 100%);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
}

.cta-simple p {
  font-size: 1.05rem;
  color: var(--text);
  margin: 0 0 var(--space-lg);
  line-height: 1.6;
}

.cta-simple strong {
  color: var(--accent);
}

.contact-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* Remove old styles */
/*
.about .container { max-width: 900px; }
.about-grid {
  display: grid;
  gap: var(--space-xl);
}
.about-intro p {
  margin: 0 0 var(--space-md);
  color: var(--text-muted);
  font-size: 1.05rem;
}
*/

/* ========== Skills Section - Clean & Simple ========== */
.skills-simple-container {
  max-width: 1000px;
  margin: 0 auto;
}

/* Header */
.skills-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.skills-title {
  font-family: var(--font-sans);
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: var(--text);
  margin: 0 0 var(--space-sm);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.skills-subtitle {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  color: var(--text-muted);
  margin: 0;
}

/* Category Grid */
.skills-category-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-3xl);
}

@media (min-width: 640px) {
  .skills-category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.skill-category-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: all 0.3s cubic-bezier(0.33, 1, 0.68, 1);
  overflow: visible;
}

.skill-category-card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, var(--accent), transparent, transparent);
  border-radius: var(--radius-lg);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.skill-category-card:hover::before {
  opacity: 1;
}

.skill-category-card:hover {
  transform: translateY(-4px);
  border-color: var(--border);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

/* Card Badge */
.card-badge {
  position: absolute;
  top: 0;
  right: 0;
  width: 60px;
  height: 60px;
  clip-path: polygon(100% 0, 0 0, 100% 100%);
  opacity: 0.8;
}

.badge-backend {
  background: linear-gradient(135deg, #39d353, #238636);
}

.badge-database {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.badge-frontend {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.badge-tools {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
}

/* Icon Wrapper */
.card-icon-wrapper {
  width: 64px;
  height: 64px;
  background: var(--bg-elevated);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  color: var(--accent);
  transition: all 0.3s ease;
}

.skill-category-card:hover .card-icon-wrapper {
  background: var(--accent);
  color: var(--bg);
  transform: scale(1.05);
}

.card-icon {
  width: 36px;
  height: 36px;
}

/* Card Title */
.card-title {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--text);
  margin: 0 0 var(--space-md);
  font-weight: 600;
}

/* Skill List */
.skill-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.skill-list li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xs) 0;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: var(--text-muted);
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(57, 211, 83, 0.4);
}

/* Tech Stack Wrapper */
.tech-stack-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}

.tech-stack-title {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--accent);
  margin: 0 0 var(--space-lg);
  font-weight: 600;
  text-align: center;
}

.tech-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
}

.tech-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 22px;
  font-family: var(--font-mono);
  font-size: 0.87rem;
  color: var(--text);
  transition: all 0.3s cubic-bezier(0.33, 1, 0.68, 1);
  cursor: default;
}

.tech-tag:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(57, 211, 83, 0.06);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(57, 211, 83, 0.15);
}

.tag-primary {
  background: linear-gradient(135deg, var(--accent-dim), var(--accent));
  color: #000000;
  font-weight: 600;
  border-color: var(--accent);
}

.tag-primary:hover {
  background: linear-gradient(135deg, var(--accent), #4ade80);
  box-shadow: 0 8px 20px rgba(57, 211, 83, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
  .skill-category-card {
    padding: var(--space-lg);
  }
  
  .card-icon-wrapper {
    width: 56px;
    height: 56px;
  }
  
  .card-icon {
    width: 30px;
    height: 30px;
  }
  
  .card-title {
    font-size: 1.05rem;
  }
  
  .skill-list li {
    font-size: 0.88rem;
  }
  
  .tech-tag {
    font-size: 0.82rem;
    padding: 0.5rem 0.95rem;
  }
}

/* ========== Projects Carousel ========== */
.carousel-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: var(--space-xl) 0;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: var(--bg-card);
  border: 2px solid var(--accent);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--accent);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.carousel-arrow:hover {
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 0 20px rgba(57, 211, 83, 0.4);
  transform: translateY(-50%) scale(1.1);
}

.carousel-arrow-left {
  left: var(--space-md);
}

.carousel-arrow-right {
  right: var(--space-md);
}

.carousel-track-container {
  overflow: hidden;
  width: 100%;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.33, 1, 0.68, 1);
  width: 100%;
}

.carousel-slide {
  min-width: 100%;
  padding: var(--space-lg);
}

.carousel-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  box-shadow: 0 0 0 1px var(--accent), 0 10px 40px rgba(0, 0, 0, 0.4);
  transition: box-shadow var(--transition);
}

.carousel-content:hover {
  box-shadow: 0 0 0 2px var(--accent), 0 15px 50px rgba(57, 211, 83, 0.2);
}

.carousel-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.carousel-number h3 {
  font-family: var(--font-mono);
  font-size: 4rem;
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 2px var(--accent);
  margin: 0;
  line-height: 1;
  opacity: 0.3;
}

.carousel-details h4 {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  color: var(--text);
  font-weight: 700;
  margin: 0 0 var(--space-sm);
}

.carousel-category {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--accent);
  margin: 0 0 var(--space-md);
  font-weight: 500;
}

.carousel-tools {
  margin-bottom: var(--space-lg);
}

.tools-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: var(--space-xs);
}

.carousel-tools p {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text);
  margin: 0;
  line-height: 1.7;
}

.carousel-links {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.btn-carousel {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 2px solid var(--accent);
  background: transparent;
  color: var(--accent);
  text-decoration: none;
  transition: all var(--transition);
  cursor: pointer;
}

.btn-carousel:hover {
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 0 15px rgba(57, 211, 83, 0.4);
  transform: translateY(-2px);
}

.btn-demo {
  background: var(--accent);
  color: var(--bg);
}

.btn-demo:hover {
  background: #4ade80;
  box-shadow: 0 0 20px rgba(57, 211, 83, 0.6);
}

.carousel-image-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  border: 1px solid var(--border);
  min-height: 280px;
}

.carousel-placeholder {
  width: 140px;
  height: 140px;
  background: var(--bg-card);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--accent);
  box-shadow: 0 0 30px rgba(57, 211, 83, 0.2);
  animation: carouselGlow 3s ease-in-out infinite;
}

@keyframes carouselGlow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(57, 211, 83, 0.15);
  }
  50% {
    box-shadow: 0 0 35px rgba(57, 211, 83, 0.35);
  }
}

.carousel-placeholder img {
  width: 70px;
  height: 70px;
  filter: drop-shadow(0 0 8px rgba(57, 211, 83, 0.4));
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border);
  border: 2px solid var(--accent);
  cursor: pointer;
  transition: all var(--transition);
  padding: 0;
}

.carousel-dot:hover {
  background: var(--accent);
  transform: scale(1.2);
}

.carousel-dot-active {
  background: var(--accent);
  box-shadow: 0 0 10px rgba(57, 211, 83, 0.6);
  transform: scale(1.3);
}

/* Desktop layout */
@media (min-width: 992px) {
  .carousel-content {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
  }
  
  .carousel-image-wrapper {
    min-height: 350px;
  }
  
  .carousel-placeholder {
    width: 180px;
    height: 180px;
  }
  
  .carousel-placeholder img {
    width: 90px;
    height: 90px;
  }
}

/* Tablet and smaller adjustments */
@media (max-width: 768px) {
  .carousel-arrow {
    width: 40px;
    height: 40px;
  }
  
  .carousel-arrow svg {
    width: 20px;
    height: 20px;
  }
  
  .carousel-content {
    padding: var(--space-xl);
  }
  
  .carousel-number h3 {
    font-size: 3rem;
  }
  
  .carousel-details h4 {
    font-size: 1.2rem;
  }
}

/* Mobile adjustments */
@media (max-width: 480px) {
  .carousel-arrow {
    display: none;
  }
  
  .carousel-content {
    padding: var(--space-lg);
  }
  
  .carousel-number h3 {
    font-size: 2.5rem;
  }
  
  .carousel-details h4 {
    font-size: 1.1rem;
  }
  
  .carousel-tools p {
    font-size: 0.9rem;
  }
}

/* Old projects grid - commented out since we're using carousel now */
/*
.projects-grid {
  display: grid;
  gap: var(--space-lg);
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: transform 0.35s cubic-bezier(0.33, 1, 0.68, 1),
              box-shadow 0.35s ease,
              border-color 0.3s ease;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  border-color: var(--border-glow);
  box-shadow: 0 0 28px rgba(57, 211, 83, 0.18), 0 12px 40px rgba(0, 0, 0, 0.25);
  transform: translateY(-6px);
}
*/

.project-title {
  margin: 0 0 var(--space-sm);
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--text);
  font-weight: 600;
}

.project-problem {
  margin: 0 0 var(--space-md);
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.project-tech {
  margin: 0 0 var(--space-md);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
}

.project-features {
  margin: 0 0 var(--space-lg);
  padding-left: 1.25rem;
  color: var(--text);
  font-size: 0.95rem;
  flex-grow: 1;
}

.project-features li { margin-bottom: var(--space-xs); }

.project-links {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-top: auto;
}

.project-links a {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color var(--transition);
}

.project-links a:hover { border-bottom-color: var(--accent); }

.demo-link { color: var(--accent); }

/* Project icon styling */
.project-icon {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  border: 1px solid var(--border);
}
.project-icon img { width: 36px; height: 36px; display: block; }

@media (min-width: 768px) {
  .project-card { padding: calc(var(--space-xl) - 0.25rem); }
  .project-icon { margin-bottom: var(--space-sm); }
}

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

@media (min-width: 992px) {
  .projects-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ========== Education (Career-style timeline) ========== */
.career-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  place-items: center;
  justify-content: center;
  position: relative;
  opacity: 1;
  height: auto;
  margin: 0 auto;
  margin-bottom: 80px; /* reduce gap before certs */
  padding: 80px 0px;
}

.career-section h2 {
  font-size: 70px;
  line-height: 70px;
  font-weight: 400;
  text-align: center;
  background: linear-gradient(0deg, #0d9488, #ffffff);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  margin-top: 50px;
  margin-bottom: 90px;
}

.career-section h2 > span {
  font-family: var(--font-sans);
  font-weight: 300;
}

.career-info {
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 0px auto;
}

.career-info-box {
  display: flex;
  justify-content: space-between;
  margin-bottom: 50px;
}

.career-info-box p {
  width: 40%;
  font-size: 18px;
  font-weight: 300;
  margin: 0;
}

.career-info-in {
  display: flex;
  width: 40%;
  justify-content: space-between;
  gap: 50px;
}

.career-info h3 {
  font-size: 48px;
  margin: 0;
  font-weight: 500;
  line-height: 45px;
}

.career-info h4 {
  font-size: 33px;
  line-height: 30px;
  letter-spacing: 0.8px;
  font-weight: 500;
  margin: 0;
}

.career-info h5 {
  font-weight: 400;
  letter-spacing: 0.7px;
  font-size: 20px;
  text-transform: capitalize;
  margin: 10px 0px;
  color: var(--accent);
}

.career-timeline {
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 0;
  background-image: linear-gradient(
    to top,
    #14b8a6 20%,
    var(--accent) 50%,
    transparent 95%
  );
  transition: height 0.25s ease-out;
}

.career-dot {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #14b8a6;
  width: 10px;
  height: 10px;
  border-radius: 50px;
  box-shadow: 0px 0px 5px 2px #67e8f9, 0px 0px 15px 8px #5eead4,
    0px 0px 110px 20px #a5f3fc;
  animation: timeline 0.8s linear infinite forwards;
}

@keyframes timeline {
  10%,
  20%,
  50%,
  70%,
  90% {
    box-shadow: 0px 0px 5px 2px #67e8f9;
  }

  10%,
  30%,
  0%,
  100%,
  64%,
  80% {
    box-shadow: 0px 0px 5px 2px #67e8f9, 0px 0px 15px 5px #5eead4,
      0px 0px 110px 20px #a5f3fc;
  }
}

@keyframes timeline2 {
  0% {
    box-shadow: 0px 0px 5px 2px #67e8f9;
  }

  100% {
    box-shadow: 0px 0px 5px 2px #67e8f9, 0px 0px 15px 5px #5eead4,
      0px 0px 110px 20px #a5f3fc;
  }
}

@media only screen and (max-width: 1400px) {
  .career-section h2 {
    font-size: 50px;
    line-height: 50px;
  }

  .career-info h4 {
    font-size: 22px;
    line-height: 24px;
    width: 180px;
  }

  .career-info h5 {
    font-size: 17px;
  }

  .career-info h3 {
    font-size: 40px;
  }

  .career-info-box p {
    font-size: 14px;
  }

  .career-info-in {
    width: 45%;
    gap: 20px;
  }

  .career-info-box p {
    width: 45%;
  }
}

@media only screen and (max-width: 1025px) {
  .career-section {
    padding: 70px 0px;
    padding-top: 220px;
    margin-top: -200px;
    margin-bottom: 0;
  }
}

@media only screen and (max-width: 900px) {
  .career-info-box {
    flex-direction: column;
    gap: 10px;
    margin-bottom: 70px;
  }

  .career-info-in,
  .career-info-box p {
    width: 100%;
    padding-left: 10%;
    box-sizing: border-box;
  }

  .career-timeline {
    left: 0%;
  }

  .career-container {
    width: calc(100% - 25px);
  }
}

@media only screen and (max-width: 600px) {
  .career-info {
    margin: 0;
  }

  .career-section h2 {
    width: 100%;
    font-size: 45px;
    line-height: 45px;
    margin-top: 0px;
  }

  .career-info-in {
    gap: 0px;
  }

  .career-info h3 {
    font-size: 33px;
  }

  .career-info-in,
  .career-info-box p {
    padding-left: 5%;
  }

  .career-section {
    padding-top: 90px;
    margin-top: -70px;
    align-items: start;
    place-items: inherit;
    justify-content: left;
  }
}

/* ========== Certifications - Enhanced ========== */
.cert-grid-enhanced {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}

@media (min-width: 768px) {
  .cert-grid-enhanced {
    grid-template-columns: repeat(3, 1fr);
  }
}

.cert-card-enhanced {
  position: relative;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.33, 1, 0.68, 1);
  cursor: pointer;
}

.cert-card-enhanced::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    transparent,
    rgba(57, 211, 83, 0.08),
    transparent 30%
  );
  animation: rotateBorder 4s linear infinite;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.cert-card-enhanced:hover::before {
  opacity: 1;
}

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

.cert-card-enhanced:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 60px rgba(57, 211, 83, 0.2),
              0 0 0 2px var(--accent);
  border-color: transparent;
}

/* Badge */
.cert-badge {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  border-radius: 50%;
  border: 3px solid var(--accent);
  box-shadow: 0 0 30px rgba(57, 211, 83, 0.3);
  animation: badgeFloat 3s ease-in-out infinite;
  z-index: 2;
}

@keyframes badgeFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-8px) rotate(5deg); }
  75% { transform: translateY(-8px) rotate(-5deg); }
}

.badge-icon {
  font-size: 2.5rem;
  filter: drop-shadow(0 0 10px rgba(57, 211, 83, 0.5));
  animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.9; }
}

.badge-glow {
  position: absolute;
  inset: -10px;
  background: radial-gradient(circle, rgba(57, 211, 83, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  animation: glowExpand 2s ease-in-out infinite;
  z-index: -1;
}

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

/* Ribbon */
.cert-ribbon {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  background: linear-gradient(135deg, var(--accent-dim), var(--accent));
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 20px;
  margin-bottom: var(--space-md);
  box-shadow: 0 4px 12px rgba(57, 211, 83, 0.3);
  animation: ribbonShimmer 3s ease-in-out infinite;
}

@keyframes ribbonShimmer {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.2); }
}

.cert-ribbon-online {
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.cert-ribbon-coding {
  background: linear-gradient(135deg, #8b5cf6, #a78bfa);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

/* Content */
.cert-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.cert-content h3 {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  color: var(--text);
  margin: 0 0 var(--space-sm);
  font-weight: 700;
  line-height: 1.4;
}

.cert-company {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 var(--space-xs);
}

.cert-duration {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  margin: 0 0 var(--space-md);
  font-weight: 500;
}

/* Skills */
.cert-skills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  justify-content: center;
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px dashed var(--border);
}

.skill-chip {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text);
  transition: all 0.3s ease;
}

.skill-chip:hover {
  background: rgba(57, 211, 83, 0.15);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(57, 211, 83, 0.2);
}

/* Border effect element */
.cert-border-effect {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: scaleX(0);
  transition: transform 0.4s cubic-bezier(0.33, 1, 0.68, 1);
}

.cert-card-enhanced:hover .cert-border-effect {
  transform: scaleX(1);
}

/* Particle effects on hover */
.cert-card-enhanced::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(57, 211, 83, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
  pointer-events: none;
}

.cert-card-enhanced:hover::after {
  width: 300px;
  height: 300px;
}

/* Responsive */
@media (max-width: 768px) {
  .cert-card-enhanced {
    padding: var(--space-lg);
  }
  
  .cert-badge {
    width: 70px;
    height: 70px;
  }
  
  .badge-icon {
    font-size: 2rem;
  }
  
  .cert-content h3 {
    font-size: 1.05rem;
  }
}

/* Old cert styles - commented out */
/*
.cert-grid {
  display: grid;
  gap: var(--space-md);
}

.cert-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: box-shadow var(--transition);
}

.cert-card:hover {
  box-shadow: var(--glow);
}
*/

/* ========== Resume ========== */
.resume-section {
  background: linear-gradient(180deg, rgba(57, 211, 83, 0.06) 0%, transparent 100%) !important;
}

.resume-container { text-align: center; }

/* Mobile: show avatar image before content in the hero */
@media (max-width: 767px) {
  .term-body { flex-direction: column; }
  .term-pane { order: -1; }
  .term-pane .hero-avatar { margin-bottom: var(--space-md); }
}

.resume-desc {
  margin: 0 0 var(--space-xl);
  color: var(--text-muted);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.resume-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.btn-resume {
  padding: 1rem 2rem;
  font-family: var(--font-mono);
  font-size: 1rem;
  background: var(--accent);
  color: var(--bg);
  border-radius: var(--radius);
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-resume:hover {
  box-shadow: var(--glow-strong);
  transform: translateY(-2px);
}

.resume-open-link { font-size: 0.9rem; }

.resume-note {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.resume-note code {
  background: var(--bg-elevated);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.85em;
  border: 1px solid var(--border);
}

/* ========== Contact ========== */
.contact-wrapper {
  display: grid;
  gap: var(--space-xl);
}

.contact-info p {
  margin: 0 0 var(--space-md);
  color: var(--text-muted);
}

.contact-info a {
  color: var(--accent);
  font-weight: 600;
}

.social-links {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.social-links a {
  display: inline-block;
  padding: var(--space-sm) var(--space-lg);
  background: var(--bg-card);
  color: var(--accent);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-weight: 600;
  transition: all var(--transition);
}

.social-links a:hover {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
  box-shadow: var(--glow);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  max-width: 420px;
}

.contact-form label {
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--text);
  font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.85rem 1rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-muted);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(57, 211, 83, 0.2);
}

.contact-form input.error,
.contact-form textarea.error {
  border-color: #f87171;
}

.form-error {
  font-size: 0.85rem;
  color: #f87171;
  min-height: 1.25rem;
}

@media (min-width: 768px) {
  .contact-wrapper {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

/* ========== Footer ========== */
.footer {
  padding: var(--space-xl) 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  text-align: center;
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
}

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

/* ========== Photo lightbox ========== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  background: rgba(0, 0, 0, 0.85);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.lightbox-content {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 90vh;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--border);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.lightbox-content img {
  display: block;
  width: auto;
  height: auto;
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}
