/* ========================================
   PORTFOLIO — VIC JEREMY PRAJOGO
   Minimalist Extraordinary Design System
   Light (default) + Dark Mode
======================================== */

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

/* ─── Light Theme (Default) ─────────────── */
:root {
  --bg:           #FAFAFA;
  --bg-alt:       #F4F4F5;
  --surface:      #FFFFFF;
  --surface-2:    #F8F8F9;
  --primary:      #111111;
  --primary-rgb:  17,17,17;
  --accent:       #4F46E5;
  --accent-rgb:   79,70,229;
  --accent-light: #EEF2FF;
  --accent-muted: rgba(79,70,229,0.08);
  --text-main:    #0A0A0A;
  --text-body:    #525252;
  --text-muted:   #A3A3A3;
  --border:       #E5E5E5;
  --border-light: #F0F0F0;
  --success:      #10B981;
  --danger:       #EF4444;
  --warning:      #F59E0B;
  --shadow-xs:    0 1px 2px rgba(0,0,0,0.05);
  --shadow-sm:    0 1px 4px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:    0 4px 12px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.05);
  --shadow-lg:    0 16px 40px rgba(0,0,0,0.08), 0 4px 8px rgba(0,0,0,0.04);
  --shadow-xl:    0 24px 64px rgba(0,0,0,0.10);
  --radius-sm:    6px;
  --radius:       12px;
  --radius-lg:    20px;
  --radius-full:  9999px;
  --transition:   0.2s cubic-bezier(0.4,0,0.2,1);
  --transition-slow: 0.4s cubic-bezier(0.4,0,0.2,1);
  color-scheme: light;
}

/* ─── Dark Theme ────────────────────────── */
[data-theme="dark"] {
  --bg:           #0C0C0C;
  --bg-alt:       #141414;
  --surface:      #1A1A1A;
  --surface-2:    #1E1E1E;
  --primary:      #EDEDED;
  --primary-rgb:  237,237,237;
  --accent:       #6366F1;
  --accent-rgb:   99,102,241;
  --accent-light: rgba(99,102,241,0.12);
  --accent-muted: rgba(99,102,241,0.08);
  --text-main:    #F5F5F5;
  --text-body:    #A3A3A3;
  --text-muted:   #525252;
  --border:       #2A2A2A;
  --border-light: #222222;
  --shadow-xs:    0 1px 2px rgba(0,0,0,0.3);
  --shadow-sm:    0 1px 4px rgba(0,0,0,0.4), 0 1px 2px rgba(0,0,0,0.2);
  --shadow-md:    0 4px 12px rgba(0,0,0,0.5), 0 2px 4px rgba(0,0,0,0.3);
  --shadow-lg:    0 16px 40px rgba(0,0,0,0.6), 0 4px 8px rgba(0,0,0,0.3);
  --shadow-xl:    0 24px 64px rgba(0,0,0,0.7);
  color-scheme: dark;
}

/* ─── Reset & Base ──────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg);
  color: var(--text-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--transition-slow), color var(--transition-slow);
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ─── Typography Helper ─────────────────── */
.font-display { font-family: 'Syne', sans-serif; }

/* ─── Utility ───────────────────────────── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ═══════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 64px;
  background: rgba(250,250,250,0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition), top 0.35s ease, background var(--transition-slow);
}
[data-theme="dark"] #navbar { background: rgba(12,12,12,0.88); }
#navbar.scrolled { border-color: var(--border); box-shadow: var(--shadow-sm); }
#navbar.hidden-nav { top: -70px; }

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

.nav-logo {
  font-family: 'Syne', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
  transition: opacity var(--transition);
}
.nav-logo:hover { opacity: 0.7; }
.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  letter-spacing: 0.01em;
}
.nav-link:hover { color: var(--text-main); background: var(--bg-alt); }
.nav-link.active { color: var(--text-main); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Dark Mode Toggle */
#theme-toggle {
  width: 36px; height: 36px;
  border: none;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  transition: background var(--transition), color var(--transition);
}
#theme-toggle svg {
  transition: transform var(--transition);
}
#theme-toggle:hover { background: var(--border); color: var(--text-main); }
#theme-toggle:hover svg { transform: rotate(15deg); }
[data-theme="dark"] #theme-toggle { background: var(--surface); color: var(--text-body); }
[data-theme="dark"] #theme-toggle:hover { color: var(--text-main); }

/* Mobile Menu Button */
#mobile-menu-btn {
  display: none;
  width: 36px; height: 36px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--radius-sm);
  align-items: center; justify-content: center;
  transition: background var(--transition), color var(--transition);
}
#mobile-menu-btn:hover { background: var(--bg-alt); color: var(--text-main); }

/* Mobile Menu */
#mobile-menu {
  display: none;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
#mobile-menu .mobile-nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
#mobile-menu .nav-link { padding: 10px 12px; border-radius: var(--radius-sm); }

/* ═══════════════════════════════════════════
   FLOATING SIDEBAR — Socials (Left)
═══════════════════════════════════════════ */
.floating-socials {
  position: fixed;
  bottom: 0; left: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  z-index: 50;
}
.floating-socials::after {
  content: '';
  width: 1px; height: 80px;
  background: linear-gradient(to bottom, var(--border), transparent);
  margin-top: 4px;
}
.social-icon {
  color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  transition: color var(--transition), transform var(--transition);
}
.social-icon:hover { color: var(--accent); transform: translateY(-3px); }



/* ═══════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════ */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--text-main);
  color: var(--bg);
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.875rem;
  border: 1.5px solid var(--text-main);
  cursor: pointer;
  transition: opacity var(--transition), transform var(--transition), box-shadow var(--transition);
  letter-spacing: 0.01em;
}
.btn-primary:hover { opacity: 0.85; transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent;
  color: var(--text-main);
  padding: 11px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.875rem;
  border: 1.5px solid var(--border);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
  letter-spacing: 0.01em;
}
.btn-outline:hover { background: var(--bg-alt); border-color: var(--text-muted); transform: translateY(-1px); }

.btn-accent {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent);
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
  transition: opacity var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn-accent:hover { opacity: 0.88; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(var(--accent-rgb),0.3); }

/* ═══════════════════════════════════════════
   SECTION SYSTEM
═══════════════════════════════════════════ */
.section-heading {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 56px;
}
.section-heading h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--text-main);
  white-space: nowrap;
  letter-spacing: -0.02em;
}
.section-num {
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.06em;
}
.section-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ═══════════════════════════════════════════
   LOADER
═══════════════════════════════════════════ */
#loader {
  position: fixed; inset: 0;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
#loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-dots {
  display: flex; gap: 8px;
}
.loader-dots span {
  width: 8px; height: 8px;
  background: var(--text-muted);
  border-radius: 50%;
  animation: loaderDot 1.2s ease-in-out infinite;
}
.loader-dots span:nth-child(2) { animation-delay: 0.2s; }
.loader-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes loaderDot {
  0%, 80%, 100% { transform: scale(0.8); opacity: 0.4; }
  40% { transform: scale(1.2); opacity: 1; }
}

/* ═══════════════════════════════════════════
   HERO
═══════════════════════════════════════════ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 64px;
}

/* Subtle grid pattern */
#hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--border-light) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-light) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.6;
  z-index: 0;
  transition: opacity var(--transition-slow);
}
[data-theme="dark"] #hero::before { opacity: 0.15; }

/* Radial fade over grid */
#hero::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 80% at 50% 50%, transparent 30%, var(--bg) 90%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 24px 120px;
  width: 100%;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-text-col { }



.hero-name {
  font-family: 'Syne', sans-serif;
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.hero-name .name-line { display: block; }

#hero-subtitle {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  font-weight: 500;
  color: var(--text-body);
  line-height: 1.3;
  min-height: 2em;
  margin-bottom: 24px;
  transition: opacity 0.5s ease;
}
#hero-subtitle.fade { opacity: 0; }
#hero-subtitle .highlight { color: var(--accent); font-weight: 700; }

.hero-bio {
  font-size: 0.9375rem;
  color: var(--text-body);
  line-height: 1.75;
  max-width: 460px;
  margin-bottom: 36px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.hero-meta-stat {
  text-align: center;
}
.hero-meta-stat .num {
  display: block;
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1;
}
.hero-meta-stat .label {
  font-size: 0.6875rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 3px;
}
.hero-meta-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* Hero Photo */
.hero-photo-col {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-photo-wrapper {
  position: relative;
  width: 380px;
  height: 460px;
}

.hero-photo-bg-shape {
  position: absolute;
  bottom: 0; right: 0;
  width: 88%;
  height: 88%;
  background: var(--accent-muted);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(var(--accent-rgb), 0.1);
  transition: background var(--transition-slow);
}

.profile-photo {
  position: absolute;
  top: 0; left: 0;
  width: 90%;
  height: 90%;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  transition: transform var(--transition), box-shadow var(--transition);
  z-index: 2;
}
.hero-photo-wrapper:hover .profile-photo {
  transform: translate(-4px, -4px);
  box-shadow: var(--shadow-xl), 0 0 0 1px var(--border);
}



/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
  opacity: 0.5;
}
.scroll-indicator span {
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
}
.scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, var(--text-muted), transparent);
  animation: scrollDrop 1.8s ease-in-out infinite;
}
@keyframes scrollDrop {
  0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
  50% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* ═══════════════════════════════════════════
   ABOUT
═══════════════════════════════════════════ */
#about {
  padding: 112px 0;
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.about-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 80px;
  align-items: start;
}

.about-text { }
.about-text p {
  font-size: 0.9375rem;
  color: var(--text-body);
  line-height: 1.8;
  margin-bottom: 18px;
}
.about-text p:last-of-type { margin-bottom: 0; }

.about-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

/* About Photo */
.about-photo-col {
  display: flex;
  justify-content: flex-start;
}
.about-photo-wrapper {
  position: relative;
  display: inline-block;
}
.about-photo {
  width: 260px;
  height: 320px;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  position: relative; z-index: 1;
  transition: transform var(--transition);
  filter: grayscale(15%);
}
.about-photo-wrapper:hover .about-photo {
  transform: translate(-4px, -4px);
  filter: grayscale(0%);
}
.about-photo-frame {
  position: absolute;
  inset: 0;
  border: 2px solid var(--accent);
  border-radius: var(--radius-lg);
  transform: translate(12px, 12px);
  z-index: 0;
  pointer-events: none;
  transition: transform var(--transition);
  opacity: 0.5;
}
.about-photo-wrapper:hover .about-photo-frame { transform: translate(6px, 6px); }

/* ═══════════════════════════════════════════
   EDUCATION
═══════════════════════════════════════════ */
#education {
  padding: 112px 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition-slow);
}
#education .section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.edu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.edu-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}
.edu-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px;
  height: 100%;
  background: var(--accent);
  border-radius: 3px 0 0 3px;
}
.edu-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--border); }
.edu-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.edu-card-icon { color: var(--border); flex-shrink: 0; }
[data-theme="dark"] .edu-card-icon { color: var(--text-muted); }
.edu-school { font-size: 1rem; font-weight: 700; color: var(--text-main); }
.edu-degree { font-size: 0.875rem; color: var(--accent); font-weight: 600; margin-top: 4px; }
.edu-meta { font-size: 0.75rem; color: var(--text-muted); margin-top: 5px; }
.edu-gpa {
  display: inline-block;
  margin-top: 12px;
  background: var(--accent-light);
  color: var(--accent);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.edu-note { font-size: 0.8125rem; color: var(--text-body); margin-top: 14px; line-height: 1.6; }

/* Admin edit button on sections */
.section-edit-btn {
  display: none;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  gap: 6px;
  align-items: center;
  transition: opacity var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}
.section-edit-btn:hover { opacity: 0.85; }
body.admin-mode .section-edit-btn { display: inline-flex; }

/* ═══════════════════════════════════════════
   EXPERIENCE (Timeline)
═══════════════════════════════════════════ */
#experience {
  padding: 112px 0;
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.timeline { position: relative; padding-left: 40px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 11px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--border));
  border-radius: 2px;
}
.timeline-item {
  position: relative;
  margin-bottom: 52px;
}
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: -36px; top: 4px;
  width: 16px; height: 16px;
  background: var(--surface);
  border: 2.5px solid var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--accent-muted);
}
.timeline-role {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
}
.timeline-company {
  font-size: 0.95rem;
  color: var(--accent);
  font-weight: 600;
  margin-top: 4px;
}
.timeline-period {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 6px 0 14px;
  display: flex; align-items: center; gap: 5px;
}
.timeline-desc { list-style: none; }
.timeline-desc li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--text-body);
  line-height: 1.65;
}
.timeline-desc li::before {
  content: '▸';
  position: absolute; left: 0; top: 3px;
  color: var(--accent);
  font-size: 0.7rem;
}

/* Admin item controls */
.timeline-item-controls, .activity-item-controls, .edu-card-controls {
  display: none;
  gap: 6px;
  margin-top: 12px;
}
body.admin-mode .timeline-item-controls,
body.admin-mode .activity-item-controls,
body.admin-mode .edu-card-controls { display: flex; }

/* ═══════════════════════════════════════════
   PROJECTS
═══════════════════════════════════════════ */
#projects {
  padding: 112px 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition-slow);
}
#projects .section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

#projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  cursor: default;
}
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--text-muted); }

.project-card-img {
  width: 100%;
  height: 208px;
  object-fit: cover;
  background: var(--bg-alt);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
img.project-card-img { display: block; transition: transform 0.4s ease; }
.project-card:hover img.project-card-img { transform: scale(1.04); }

.project-card-body {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.project-card-title {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.project-card-desc {
  font-size: 0.8375rem;
  color: var(--text-body);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 16px;
}
.project-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.tag {
  background: var(--bg-alt);
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.project-card-links { display: flex; gap: 12px; align-items: center; }
.project-link {
  color: var(--text-muted);
  display: flex; align-items: center;
  transition: color var(--transition), transform var(--transition);
}
.project-link:hover { color: var(--accent); transform: translateY(-2px); }

.admin-card-overlay {
  display: none;
  position: absolute;
  top: 10px; right: 10px;
  z-index: 10; gap: 6px;
}
body.admin-mode .admin-card-overlay { display: flex; }

/* Add Project Card */
#add-project-card {
  display: none;
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  background: transparent;
  cursor: pointer;
  align-items: center; justify-content: center;
  flex-direction: column;
  gap: 12px;
  min-height: 200px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.875rem;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}
#add-project-card:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-muted); }
body.admin-mode #add-project-card { display: flex; }

/* ═══════════════════════════════════════════
   SKILLS
═══════════════════════════════════════════ */
#skills {
  padding: 112px 0;
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.skills-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.skill-group {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.skill-group:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.skill-group-title {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.skill-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-tag {
  display: inline-flex; align-items: center;
  background: var(--bg-alt);
  color: var(--text-body);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: default;
  transition: background var(--transition), border-color var(--transition), color var(--transition), transform var(--transition);
}
.skill-tag:hover {
  background: var(--accent-light);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* ═══════════════════════════════════════════
   ACHIEVEMENTS
═══════════════════════════════════════════ */
#achievements {
  padding: 112px 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition-slow);
}
#achievements .section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.achieve-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.achieve-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.achieve-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.achieve-icon-wrap {
  width: 44px; height: 44px;
  background: var(--accent-muted);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  margin-bottom: 18px;
}
.achieve-title {
  font-family: 'Syne', sans-serif;
  font-size: 0.9375rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}
.achieve-list { list-style: none; }
.achieve-list li {
  display: flex; align-items: flex-start; gap: 8px;
  margin-bottom: 10px;
  font-size: 0.8375rem;
  line-height: 1.6;
  color: var(--text-body);
}
.achieve-list li::before {
  content: '→';
  color: var(--accent);
  flex-shrink: 0;
  font-size: 0.8rem;
  font-weight: 700;
  margin-top: 2px;
}

/* ═══════════════════════════════════════════
   LEADERSHIP
═══════════════════════════════════════════ */
#leadership {
  padding: 112px 0;
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.leadership-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 12px 0;
}
.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 28px;
  border-bottom: 1px solid var(--border-light);
  transition: background var(--transition);
  position: relative;
}
.activity-item:last-child { border-bottom: none; }
.activity-item:hover { background: var(--bg-alt); }

.activity-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 6px;
  box-shadow: 0 0 0 3px var(--accent-muted);
}
.activity-role {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-main);
}
.activity-org {
  font-size: 0.8125rem;
  color: var(--accent);
  font-weight: 500;
  margin-top: 2px;
}
.activity-period {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 3px;
}

/* ═══════════════════════════════════════════
   CONTACT
═══════════════════════════════════════════ */
#contact {
  padding: 112px 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  transition: background var(--transition-slow);
}
#contact .section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

#contact-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 72px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
#contact-box::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--accent-muted) 0%, transparent 70%);
  pointer-events: none;
}
.contact-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.contact-heading {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.contact-sub {
  font-size: 0.9375rem;
  color: var(--text-body);
  max-width: 480px;
  margin: 0 auto 36px;
  line-height: 1.75;
}
.contact-cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.contact-socials { display: flex; justify-content: center; gap: 16px; }

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
footer {
  padding: 28px 24px;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  transition: color var(--transition-slow);
}
footer a { color: inherit; transition: color var(--transition); }
footer a:hover { color: var(--text-main); }

/* ═══════════════════════════════════════════
   AVAILABLE BADGE
═══════════════════════════════════════════ */
.available-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(16, 185, 129, 0.08);
  color: var(--success);
  border: 1px solid rgba(16,185,129,0.2);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.pulse-dot {
  width: 7px; height: 7px;
  background: var(--success);
  border-radius: 50%;
  animation: pulseDot 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(16,185,129,0.4); }
  50% { opacity: 0.8; transform: scale(1.15); box-shadow: 0 0 0 5px rgba(16,185,129,0); }
}

/* ═══════════════════════════════════════════
   ADMIN UI
═══════════════════════════════════════════ */
#admin-toggle-btn {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 200;
  font-size: 1rem;
  transition: all var(--transition);
  color: var(--text-muted);
}
#admin-toggle-btn:hover { background: var(--bg-alt); box-shadow: var(--shadow-lg); transform: rotate(10deg); }
body.admin-mode #admin-toggle-btn { background: var(--accent); border-color: var(--accent); color: #fff; }

#admin-banner {
  display: none;
  position: fixed;
  top: 68px; left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  padding: 5px 18px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  z-index: 200;
  pointer-events: none;
  box-shadow: var(--shadow-md);
}
body.admin-mode #admin-banner { display: block; }

/* Admin button styles */
.btn-admin-sm {
  padding: 5px 12px;
  font-size: 0.6875rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: opacity var(--transition);
  letter-spacing: 0.04em;
}
.btn-admin-sm:hover { opacity: 0.8; }
.btn-edit { background: #FEF3C7; color: #92400E; }
.btn-delete { background: #FEE2E2; color: #991B1B; }
[data-theme="dark"] .btn-edit { background: rgba(251,191,36,0.15); color: #FCD34D; }
[data-theme="dark"] .btn-delete { background: rgba(239,68,68,0.15); color: #FCA5A5; }

/* Inline editable text */
.editable-field {
  transition: background var(--transition), outline var(--transition);
  border-radius: 4px;
  padding: 2px 4px;
  margin: -2px -4px;
}
body.admin-mode .editable-field {
  outline: 1.5px dashed var(--accent);
  background: var(--accent-muted);
  cursor: text;
}

/* ═══════════════════════════════════════════
   MODALS
═══════════════════════════════════════════ */
.modal-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 500;
  align-items: center; justify-content: center;
  padding: 24px;
}
.modal-overlay.active {
  display: flex;
  animation: fadeInBg 0.2s ease;
}
@keyframes fadeInBg { from { opacity: 0; } to { opacity: 1; } }

.modal-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 36px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUpModal 0.25s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes slideUpModal {
  from { opacity: 0; transform: translateY(28px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}
.modal-subtitle {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: -16px;
  margin-bottom: 24px;
}
.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}
.form-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  color: var(--text-main);
  background: var(--bg);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-muted); }
textarea.form-input { resize: vertical; min-height: 90px; }
.form-hint { font-size: 0.7rem; color: var(--text-muted); margin-top: 4px; }
.form-error { font-size: 0.8125rem; color: var(--danger); margin-top: 6px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 24px; }
.btn-modal-cancel {
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-body);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition);
}
.btn-modal-cancel:hover { background: var(--bg-alt); }

/* Wide modal variant for complex edits */
.modal-box-wide { max-width: 720px; }
.modal-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ═══════════════════════════════════════════
   SCROLL REVEAL
═══════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

/* ═══════════════════════════════════════════
   CURSOR GLOW EFFECT
═══════════════════════════════════════════ */
.cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
  top: 0; left: 0;
}
[data-theme="dark"] .cursor-glow { background: radial-gradient(circle, rgba(var(--accent-rgb), 0.1) 0%, transparent 70%); }

/* ═══════════════════════════════════════════
   INTERACTIVE HOVER CARD TILT
═══════════════════════════════════════════ */
.tilt-card { transform-style: preserve-3d; }

/* ═══════════════════════════════════════════
   TOOLTIP
═══════════════════════════════════════════ */
[data-tooltip] { position: relative; cursor: pointer; }
[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--text-main);
  color: var(--bg);
  font-size: 0.6875rem;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 100;
}
[data-tooltip]:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

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

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero-photo-wrapper { width: 320px; height: 400px; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  #projects-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .floating-socials { display: none; }

  #mobile-menu-btn { display: flex; }
  .nav-links { display: none !important; }

  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-photo-col { order: -1; }
  .hero-photo-wrapper { width: 240px; height: 300px; margin: 0 auto; }
  .hero-badge { right: -8px; min-width: 160px; }
  .hero-name { font-size: clamp(2.25rem, 8vw, 3.5rem); }
  .hero-content { padding: 100px 20px 80px; }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-photo-col { justify-content: center; }
  .about-photo { width: 220px; height: 280px; }

  .edu-grid { grid-template-columns: 1fr; }
  .achieve-grid { grid-template-columns: 1fr; }
  #projects-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr 1fr; }

  #contact-box { padding: 48px 24px; }

  .modal-box { padding: 24px; }
  .modal-two-col { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .skills-grid { grid-template-columns: 1fr; }
  .hero-meta { flex-wrap: wrap; gap: 12px; }
}

/* Dynamic About Paragraphs */
#about-text-content .about-para {
  font-size: 0.9375rem;
  color: var(--text-body);
  line-height: 1.8;
  margin-bottom: 18px;
}
#about-text-content .about-para:last-of-type { margin-bottom: 0; }
.para-editor-row {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-bottom: 10px;
}
.para-editor-row textarea { flex: 1; }
