/* ================================================
   DESIGN SYSTEM & TOKENS
   ================================================ */
:root {
  --bg-primary: #080b12;
  --bg-secondary: #0d1117;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.07);

  --accent-primary: #6366f1;
  --accent-secondary: #8b5cf6;
  --accent-cyan: #06b6d4;
  --accent-glow: rgba(99, 102, 241, 0.35);

  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #475569;

  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(99, 102, 241, 0.4);

  --gradient-hero: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);
  --gradient-text: linear-gradient(135deg, #818cf8 0%, #a78bfa 50%, #38bdf8 100%);

  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.2);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --nav-height: 70px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ================================================
   LIGHT THEME OVERRIDES
   ================================================ */
[data-theme="light"] {
  --bg-primary: #f0f4ff;
  --bg-secondary: #e8eeff;
  --bg-card: rgba(255, 255, 255, 0.75);
  --bg-card-hover: rgba(255, 255, 255, 0.95);

  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;

  --border: rgba(0, 0, 0, 0.09);
  --border-hover: rgba(99, 102, 241, 0.45);

  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.12);

  --gradient-text: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #0891b2 100%);
}

[data-theme="light"] body { background: var(--bg-primary); }

[data-theme="light"] #navbar.scrolled {
  background: rgba(240, 244, 255, 0.88);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .hero-bg-grid {
  background-image:
    linear-gradient(rgba(99, 102, 241, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.06) 1px, transparent 1px);
}

[data-theme="light"] .hero-orb-1 {
  background: rgba(99, 102, 241, 0.1);
}
[data-theme="light"] .hero-orb-2 {
  background: rgba(6, 182, 212, 0.07);
}

[data-theme="light"] .glass-card {
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .tag { background: rgba(99, 102, 241, 0.08); }

[data-theme="light"] .nav-link { color: var(--text-secondary); }

[data-theme="light"] .skill-pill {
  background: rgba(0, 0, 0, 0.04);
  color: var(--text-secondary);
}
[data-theme="light"] .skill-pill:hover {
  background: rgba(99, 102, 241, 0.1);
  color: var(--text-primary);
}

[data-theme="light"] .section-alt {
  background: linear-gradient(180deg, transparent, rgba(99,102,241,0.04) 50%, transparent);
}

[data-theme="light"] .footer {
  background: var(--bg-secondary);
}

[data-theme="light"] .nav-ctrl-btn {
  background: rgba(0, 0, 0, 0.06);
  color: var(--text-secondary);
}
[data-theme="light"] .nav-ctrl-btn:hover {
  background: rgba(99, 102, 241, 0.12);
  color: var(--accent-primary);
}

[data-theme="light"] .hero-avatar {
  border-color: rgba(99, 102, 241, 0.5);
}

[data-theme="light"] .timeline::before {
  background: linear-gradient(180deg, var(--accent-primary), rgba(99,102,241,0.1));
}

[data-theme="light"] .timeline-dot {
  background: var(--bg-primary);
}

/* ================================================
   RESET & BASE
   ================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ================================================
   UTILITIES
   ================================================ */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mono-text { font-family: 'JetBrains Mono', monospace; }

.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: var(--transition);
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

/* ================================================
   BUTTONS
   ================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: #fff;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background: rgba(99, 102, 241, 0.08);
}

/* ================================================
   NAVBAR
   ================================================ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: var(--transition);
}

#navbar.scrolled {
  background: rgba(8, 11, 18, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-primary);
}
.logo-dot { color: var(--accent-primary); }

.nav-links {
  display: flex;
  gap: 8px;
}

.nav-link {
  padding: 8px 16px;
  border-radius: 100px;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ================================================
   HERO SECTION
   ================================================ */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-height) + 40px) 24px 80px;
  position: relative;
  overflow: hidden;
  gap: 60px;
  max-width: 1100px;
  margin: 0 auto;
}

.hero-bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(99, 102, 241, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.04) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: -1;
}

.hero-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: -1;
  animation: float 8s ease-in-out infinite;
}

.hero-orb-1 {
  width: 400px;
  height: 400px;
  background: rgba(99, 102, 241, 0.15);
  top: -100px;
  left: -100px;
}

.hero-orb-2 {
  width: 350px;
  height: 350px;
  background: rgba(6, 182, 212, 0.1);
  bottom: -80px;
  right: -60px;
  animation-delay: -4s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.05); }
}

.hero-content {
  flex: 1;
  max-width: 600px;
  animation: slideInLeft 0.8s ease-out both;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.3);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.82rem;
  color: #a5b4fc;
  margin-bottom: 24px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: pulse 2s ease-in-out infinite;
}

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

.hero-name {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-weight: 500;
}

.hero-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.hero-socials {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1rem;
  transition: var(--transition);
}

.social-link:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background: rgba(99, 102, 241, 0.1);
  transform: translateY(-2px);
}

/* Hero Image */
.hero-image-wrapper {
  position: relative;
  flex-shrink: 0;
  animation: slideInRight 0.8s ease-out 0.2s both;
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

.hero-avatar {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  object-fit: cover;
  position: relative;
  z-index: 2;
  border: 3px solid rgba(99, 102, 241, 0.4);
  box-shadow: 0 0 60px rgba(99, 102, 241, 0.3);
}

.hero-image-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(99, 102, 241, 0.2);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: ringPulse 3s ease-in-out infinite;
}

.hero-image-ring-1 {
  width: 310px;
  height: 310px;
  animation-delay: 0s;
}

.hero-image-ring-2 {
  width: 350px;
  height: 350px;
  animation-delay: 1s;
  border-color: rgba(6, 182, 212, 0.15);
}

@keyframes ringPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
  50% { transform: translate(-50%, -50%) scale(1.04); opacity: 0.4; }
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.75rem;
  animation: bounce 2s ease-in-out infinite;
}

.scroll-mouse {
  width: 22px;
  height: 36px;
  border: 2px solid var(--text-muted);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.scroll-wheel {
  width: 3px;
  height: 8px;
  background: var(--text-muted);
  border-radius: 2px;
  animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(6px); opacity: 0.3; }
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-4px); }
}

/* ================================================
   SECTIONS
   ================================================ */
.section {
  padding: 100px 0;
}

.section-alt {
  background: linear-gradient(180deg, transparent 0%, rgba(99, 102, 241, 0.03) 50%, transparent 100%);
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--accent-primary);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
  background: rgba(99, 102, 241, 0.1);
  padding: 4px 14px;
  border-radius: 100px;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
}

/* ================================================
   ABOUT SECTION
   ================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-size: 0.96rem;
}

.about-text strong { color: var(--text-primary); }

.about-stats {
  display: flex;
  gap: 20px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.stat-card {
  flex: 1;
  min-width: 100px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  text-align: center;
  transition: var(--transition);
}

.stat-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.stat-value {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* Info Card */
.info-card { padding: 28px; }

.info-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.info-row:last-child { border-bottom: none; }

.info-icon {
  color: var(--accent-primary);
  width: 18px;
  margin-top: 2px;
  flex-shrink: 0;
}

.info-icon.available { color: #22c55e; }

.info-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.info-value {
  display: block;
  font-size: 0.9rem;
  color: var(--text-primary);
  font-weight: 500;
}

.available-text { color: #22c55e !important; }

/* ================================================
   TIMELINE / EXPERIENCE
   ================================================ */
.timeline {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-primary), transparent);
}

.timeline-item {
  position: relative;
  padding-left: 60px;
  margin-bottom: 32px;
}

.timeline-dot {
  position: absolute;
  left: 11px;
  top: 24px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--accent-primary);
  background: var(--bg-primary);
  z-index: 1;
  transition: var(--transition);
}

.current-dot {
  background: var(--accent-primary);
  box-shadow: 0 0 12px var(--accent-glow);
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 8px var(--accent-glow); }
  50% { box-shadow: 0 0 20px var(--accent-glow); }
}

.placeholder-dot {
  border-color: var(--text-muted);
  opacity: 0.5;
}

.timeline-content {
  padding: 24px;
}

.placeholder-card { opacity: 0.6; }

.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
  gap: 12px;
}

.exp-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.exp-company {
  font-size: 0.85rem;
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.exp-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  white-space: nowrap;
  flex-shrink: 0;
}

.current-badge {
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.upcoming-badge {
  background: rgba(71, 85, 105, 0.2);
  color: var(--text-muted);
  border: 1px solid rgba(71, 85, 105, 0.3);
}

.exp-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.exp-desc {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 16px;
  color: var(--text-secondary);
  font-size: 0.88rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.exp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: 6px;
  background: rgba(99, 102, 241, 0.1);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

/* ================================================
   EDUCATION
   ================================================ */
.edu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.edu-card {
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.edu-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--accent-secondary);
}

.current-edu {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.4);
  color: var(--accent-primary);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.15);
}

.edu-status {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  background: rgba(71, 85, 105, 0.2);
  color: var(--text-muted);
  border: 1px solid rgba(71, 85, 105, 0.3);
}

.edu-status.current-badge {
  background: rgba(34, 197, 94, 0.1);
  color: #4ade80;
  border-color: rgba(34, 197, 94, 0.3);
}

.edu-degree {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.edu-school {
  font-size: 0.85rem;
  color: var(--accent-primary);
  margin-bottom: 4px;
}

.edu-year {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.edu-note {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ================================================
   SKILLS
   ================================================ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.skill-group { padding: 28px; }

.skill-group-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.skill-group-title i { color: var(--accent-primary); }

.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-pill {
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: var(--transition);
  cursor: default;
}

.skill-pill:hover {
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.3);
  color: var(--text-primary);
  transform: translateY(-1px);
}

/* ================================================
   CONTACT
   ================================================ */
.contact-wrapper {
  max-width: 640px;
  margin: 0 auto;
}

.contact-cta {
  padding: 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contact-orb {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  pointer-events: none;
}

.contact-cta h3 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.contact-cta p {
  color: var(--text-secondary);
  margin-bottom: 36px;
  line-height: 1.8;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
  text-align: left;
}

.contact-link-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.contact-link-item:hover {
  border-color: var(--border-hover);
  background: rgba(99, 102, 241, 0.06);
  transform: translateX(4px);
}

.contact-link-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  flex-shrink: 0;
}

.contact-link-label {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.contact-link-value {
  display: block;
  font-size: 0.9rem;
  color: var(--text-primary);
  font-weight: 500;
}

.contact-btn { margin: 0 auto; }

/* ================================================
   FOOTER
   ================================================ */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ================================================
   AOS (custom scroll animations)
   ================================================ */
[data-aos] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos].aos-animate {
  opacity: 1;
  transform: translateY(0);
}

[data-aos][data-aos-delay="100"].aos-animate { transition-delay: 0.1s; }
[data-aos][data-aos-delay="200"].aos-animate { transition-delay: 0.2s; }
[data-aos][data-aos-delay="300"].aos-animate { transition-delay: 0.3s; }

[data-aos="fade-right"] { transform: translateX(-24px); }
[data-aos="fade-right"].aos-animate { transform: translateX(0); }

[data-aos="fade-left"] { transform: translateX(24px); }
[data-aos="fade-left"].aos-animate { transform: translateX(0); }

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 900px) {
  #hero {
    flex-direction: column-reverse;
    text-align: center;
    gap: 40px;
  }

  .hero-content { max-width: 100%; }
  .hero-actions, .hero-socials { justify-content: center; }
  .hero-desc { margin-left: auto; margin-right: auto; }

  .hero-avatar { width: 200px; height: 200px; }
  .hero-image-ring-1 { width: 230px; height: 230px; }
  .hero-image-ring-2 { width: 270px; height: 270px; }

  .about-grid { grid-template-columns: 1fr; }
  .edu-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }

  .nav-links { display: none; }
  .hamburger { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    background: rgba(8, 11, 18, 0.97);
    backdrop-filter: blur(20px);
    padding: 20px 24px 32px;
    border-bottom: 1px solid var(--border);
    gap: 4px;
  }

  .contact-cta { padding: 32px 24px; }
}

@media (max-width: 480px) {
  .about-stats { flex-direction: column; }
  .timeline::before { display: none; }
  .timeline-item { padding-left: 0; }
  .timeline-dot { display: none; }
}

/* ================================================
   MULTI-PAGE LAYOUT
   ================================================ */
.page-wrapper {
  min-height: calc(100vh - var(--nav-height) - 80px);
}

.page-section-first {
  padding-top: calc(var(--nav-height) + 60px);
}

/* ================================================
   QUICK NAV CARDS (index page)
   ================================================ */
.quick-nav-section {
  padding: 0 0 80px;
}

.quick-nav-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.quick-nav-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 20px;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius-md);
}

.quick-nav-card i:first-child {
  color: var(--accent-primary);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.quick-nav-card span { flex: 1; }

.quick-nav-card .arrow-icon {
  font-size: 0.75rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.quick-nav-card:hover {
  color: var(--text-primary);
}

.quick-nav-card:hover .arrow-icon {
  color: var(--accent-primary);
  transform: translateX(3px);
}

/* ================================================
   PAGE NAVIGATION BAR (bottom prev/next)
   ================================================ */
.page-nav-bar {
  padding: 32px 0 60px;
}

.page-nav-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.page-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 100px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: var(--transition);
}

.page-nav-btn.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.page-nav-btn.btn-ghost:hover {
  color: var(--text-primary);
  border-color: var(--accent-primary);
  background: rgba(99, 102, 241, 0.06);
}

.page-nav-btn.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: #fff;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.page-nav-btn.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--accent-glow);
}

/* ================================================
   HOBBIES GRID
   ================================================ */
.hobbies-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 60px;
}

.hobby-card {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hobby-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  border: 1px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.hobby-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.hobby-card p {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ================================================
   GAMING SECTION
   ================================================ */
.gaming-section { margin-top: 0; }

.gaming-banner-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 32px;
  border: 1px solid var(--border);
}

.gaming-banner-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  filter: brightness(0.6);
}

.gaming-banner-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 40px;
  background: linear-gradient(90deg, rgba(8,11,18,0.8) 0%, transparent 100%);
}

.gaming-banner-overlay h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.gaming-banner-overlay h3 i { color: var(--accent-primary); }

.gaming-banner-overlay p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  max-width: 400px;
}

/* Game Cards Grid */
.game-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.game-card {
  overflow: hidden;
  padding: 0;
}

.game-card-header {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* LMHT */
.lmht-header { background: linear-gradient(135deg, rgba(183,107,37,0.18) 0%, rgba(99,102,241,0.08) 100%); }
.lmht-icon { background: rgba(218,135,52,0.2); border: 1px solid rgba(218,135,52,0.35); }
.lmht-icon i { color: #daa52a; }
.badge-lmht { background: rgba(218,135,52,0.15); color: #f0b429; border: 1px solid rgba(218,135,52,0.3); }

/* VALORANT */
.valo-header { background: linear-gradient(135deg, rgba(255,70,85,0.15) 0%, rgba(99,102,241,0.06) 100%); }
.valo-icon { background: rgba(255,70,85,0.15); border: 1px solid rgba(255,70,85,0.3); }
.valo-icon i { color: #ff4655; }
.badge-valo { background: rgba(255,70,85,0.12); color: #ff7a85; border: 1px solid rgba(255,70,85,0.3); }

/* PUBG */
.pubg-header { background: linear-gradient(135deg, rgba(245,158,11,0.15) 0%, rgba(99,102,241,0.06) 100%); }
.pubg-icon { background: rgba(245,158,11,0.15); border: 1px solid rgba(245,158,11,0.3); }
.pubg-icon i { color: #f59e0b; }
.badge-pubg { background: rgba(245,158,11,0.12); color: #fbbf24; border: 1px solid rgba(245,158,11,0.3); }

/* Co-op */
.coop-header { background: linear-gradient(135deg, rgba(34,197,94,0.12) 0%, rgba(99,102,241,0.06) 100%); }
.coop-icon { background: rgba(34,197,94,0.12); border: 1px solid rgba(34,197,94,0.3); }
.coop-icon i { color: #22c55e; }
.badge-coop { background: rgba(34,197,94,0.12); color: #4ade80; border: 1px solid rgba(34,197,94,0.3); }

.game-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.game-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.game-card-body {
  padding: 0 24px 24px;
}

.game-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.game-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.game-id-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 8px;
  padding: 6px 12px;
  margin-bottom: 12px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.game-id {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: #a5b4fc;
  font-weight: 600;
}

.game-id-hash { color: var(--accent-primary); }

.game-desc {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 14px;
}

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

.game-tag {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

/* ================================================
   SOFT SKILLS
   ================================================ */
.soft-skills-section {
  margin-top: 60px;
}

.soft-skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 700px;
  margin: 0 auto;
}

.soft-skill-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px 16px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.soft-skill-item i {
  font-size: 1.4rem;
  color: var(--accent-primary);
}

.soft-skill-item:hover { color: var(--text-primary); }

/* ================================================
   GAMING CONTACT NOTE (contact page)
   ================================================ */
.gaming-contact-note {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 28px;
  margin-top: 24px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.gaming-note-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--accent-primary);
  flex-shrink: 0;
}

.gaming-contact-note h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.gaming-contact-note p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.gaming-contact-note strong { color: var(--text-primary); }

/* ================================================
   RESPONSIVE – additional
   ================================================ */
@media (max-width: 900px) {
  .quick-nav-grid { grid-template-columns: repeat(2, 1fr); }
  .hobbies-grid { grid-template-columns: 1fr; }
  .game-cards-grid { grid-template-columns: 1fr; }
  .soft-skills-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .quick-nav-grid { grid-template-columns: 1fr 1fr; }
  .gaming-banner-img { height: 160px; }
  .gaming-banner-overlay { padding: 20px 24px; }
  .gaming-banner-overlay h3 { font-size: 1.1rem; }
  .page-nav-bar .container { flex-direction: column; gap: 12px; }
  .page-nav-btn { width: 100%; justify-content: center; }
  .soft-skills-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ================================================
   NAV CONTROLS (theme & lang toggles)
   ================================================ */
.nav-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-ctrl-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: none;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: 'JetBrains Mono', monospace;
}

.nav-ctrl-btn:hover {
  background: rgba(99, 102, 241, 0.15);
  color: var(--accent-primary);
}

/* ================================================
   MOBILE – hero section overrides
   ================================================ */
@media (max-width: 480px) {
  .about-stats { flex-direction: column; }
  .timeline::before { display: none; }
  .timeline-item { padding-left: 0; }
  .timeline-dot { display: none; }
  .hero-name { font-size: 1.8rem; }
  .hero-subtitle { font-size: 0.88rem; }
  .hero-avatar { width: 160px; height: 160px; }
  .hero-image-ring-1 { width: 185px; height: 185px; }
  .hero-image-ring-2 { width: 215px; height: 215px; }
  .section { padding: 60px 0; }
  .section-title { font-size: 1.5rem; }
  .game-cards-grid { grid-template-columns: 1fr; }
  .quick-nav-grid { grid-template-columns: 1fr 1fr; }
  .info-card { padding: 16px; }
  .contact-cta { padding: 24px 16px; }
  .edu-grid { grid-template-columns: 1fr; }
}

/* ================================================
   MOBILE NAV CONTROLS POSITIONING
   ================================================ */
@media (max-width: 900px) {
  .nav-controls {
    gap: 6px;
  }
  .hamburger {
    display: flex;
  }
}

/* ================================================
   COLLECTION GRID
   ================================================ */
.collection-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.collection-card {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  text-decoration: none;
  color: #1e293b; /* Dark text for contrast against pastel cards */
}

/* Ensure text remains dark even in dark theme, since cards are pastel */
[data-theme="dark"] .collection-card {
  color: #1e293b;
}
[data-theme="light"] .collection-card {
  color: #1e293b;
}

.collection-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.collection-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 100%);
  z-index: 1;
  pointer-events: none;
}

.collection-content {
  position: relative;
  z-index: 2;
  font-weight: 700;
}

.collection-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.8;
  transition: transform 0.3s ease;
}

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

.collection-title {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.collection-subtitle {
  font-size: 0.9rem;
  opacity: 0.7;
  font-weight: 500;
}

/* Palette mapping */
.col-color-1 { background-color: #FFD6DA; }
.col-color-2 { background-color: #FFC6D0; }
.col-color-3 { background-color: #E1F7E7; }
.col-color-4 { background-color: #D1EAF5; }
.col-color-5 { background-color: #C3D6F2; }
.col-color-6 { 
  background-color: #768CCE; 
  color: #ffffff !important; 
}
[data-theme="dark"] .col-color-6, [data-theme="light"] .col-color-6 {
  color: #ffffff !important;
}

@media (max-width: 900px) {
  .collection-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .collection-grid { grid-template-columns: 1fr; }
  .collection-card { aspect-ratio: auto; min-height: 250px; }
}

/* ================================================
   CARO GAME STYLES
   ================================================ */
.caro-play-content {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.caro-board-container {
  overflow: auto;
  max-width: 100%;
  padding: 10px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.caro-board {
  display: grid;
  gap: 2px;
  background-color: rgba(140, 140, 160, 0.4);
  padding: 2px;
  border-radius: var(--radius-sm);
  width: fit-content;
  margin: 0 auto;
}

.caro-cell {
  width: 32px;
  height: 32px;
  background-color: var(--bg-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

@media (max-width: 600px) {
  .caro-cell {
    width: 26px;
    height: 26px;
    font-size: 1rem;
  }
}

.caro-cell:hover {
  background-color: rgba(99, 102, 241, 0.1);
}

.caro-board.not-my-turn .caro-cell {
  cursor: not-allowed;
}

.cell-x {
  color: #3b82f6; /* Blue for X */
}

.cell-o {
  color: #ef4444; /* Red for O */
}

.win-cell {
  background-color: rgba(34, 197, 94, 0.3) !important;
  animation: pulse-win 1.5s infinite;
}

@keyframes pulse-win {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}
