/* ═══════════════════════════════════════════════════════════════
   CIGHRA CENDIKIA — DevOps Portfolio
   Theme: Dark DevOps / Terminal / DataCenter
   ═══════════════════════════════════════════════════════════════ */

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

:root {
  --bg-primary:     #0a0e1a;
  --bg-secondary:   #0d1220;
  --bg-card:        #111827;
  --bg-card-hover:  #161f35;
  --bg-terminal:    #0d1117;
  --border:         #1e2d45;
  --border-glow:    #1e3a5f;

  --accent:         #00d4ff;
  --accent-dim:     #0099bb;
  --accent-glow:    rgba(0, 212, 255, 0.15);
  --accent2:        #7c3aed;
  --green:          #22c55e;
  --green-glow:     rgba(34, 197, 94, 0.2);
  --orange:         #f97316;
  --yellow:         #eab308;
  --red:            #ef4444;

  --text-primary:   #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted:     #475569;
  --text-accent:    #00d4ff;

  --font-mono:   'JetBrains Mono', 'Courier New', monospace;
  --font-sans:   'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 30px rgba(0, 212, 255, 0.1);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; font-size: 16px; }

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

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: #fff; }

img { max-width: 100%; height: auto; }

ul { list-style: none; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border-glow); border-radius: 3px; }

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

.section { padding: 100px 0; }
.section-dark { background: var(--bg-secondary); position: relative; }
.section-dark::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 40px,
    rgba(0, 212, 255, 0.012) 40px,
    rgba(0, 212, 255, 0.012) 41px
  );
  pointer-events: none;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 12px;
}
.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
.section-sub {
  margin-top: 12px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent);
  color: var(--bg-primary);
  font-weight: 600;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  border: 2px solid var(--accent);
  font-size: 0.9rem;
}
.btn-primary:hover {
  background: transparent;
  color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}

.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent;
  color: var(--accent);
  font-weight: 600;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border-glow);
  transition: all var(--transition);
  font-size: 0.9rem;
}
.btn-secondary:hover {
  border-color: var(--accent);
  background: var(--accent-glow);
  color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}

.btn-download {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent;
  color: var(--accent);
  font-weight: 600;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  border: 2px dashed var(--border-glow);
  transition: all var(--transition);
  font-size: 0.9rem;
}
.btn-download:hover {
  border-style: solid;
  border-color: var(--accent);
  background: var(--accent-glow);
  color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}
.btn-download i { transition: transform var(--transition); }
.btn-download:hover i { transform: translateY(2px); }

/* ══════════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════════ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px;
  height: 64px;
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
}
.navbar.scrolled {
  background: rgba(10, 14, 26, 0.97);
  box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}
.nav-brand {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--accent);
  font-weight: 600;
}
.nav-cursor { animation: blink 1s step-end infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

.nav-links {
  display: flex; gap: 4px;
}
.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  letter-spacing: 0.03em;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--accent);
  background: var(--accent-glow);
}

.nav-actions { display: flex; align-items: center; gap: 12px; }

.lang-toggle {
  display: flex; align-items: center; gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  color: var(--text-primary);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: 0.05em;
}
.lang-toggle:hover {
  border-color: var(--accent);
  background: var(--accent-glow);
  color: var(--accent);
}

.nav-hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none;
  cursor: pointer; padding: 4px;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: all var(--transition);
}

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

/* Animated grid background */
.hero-bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,212,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.04) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: gridMove 20s linear infinite;
}
@keyframes gridMove {
  0% { background-position: 0 0; }
  100% { background-position: 50px 50px; }
}

/* Radial glow overlay */
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 40%, rgba(0,212,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-particles {
  position: absolute; inset: 0;
  pointer-events: none;
}
.particle {
  position: absolute;
  width: 2px; height: 2px;
  border-radius: 50%;
  background: var(--accent);
  animation: particleFloat linear infinite;
  opacity: 0;
}
@keyframes particleFloat {
  0%   { transform: translateY(100vh) translateX(0); opacity: 0; }
  10%  { opacity: 0.6; }
  90%  { opacity: 0.3; }
  100% { transform: translateY(-10vh) translateX(30px); opacity: 0; }
}

.hero-content {
  max-width: 1100px; margin: 0 auto;
  padding: 0 24px;
  display: flex; align-items: center; gap: 64px;
  position: relative; z-index: 2;
  width: 100%;
}

/* ── Profile photo — tech card frame ── */
.hero-photo-wrap { position: relative; flex-shrink: 0; }

.hero-photo-ring {
  width: 230px; height: 300px;
  border-radius: 16px;
  position: relative;
  background: var(--bg-card);
  /* Animated gradient border via outline trick */
  padding: 2px;
  background: linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
              linear-gradient(135deg, var(--accent), var(--accent2), var(--green), var(--accent)) border-box;
  border: 2px solid transparent;
  box-shadow:
    0 0 30px rgba(0,212,255,0.18),
    0 0 60px rgba(0,212,255,0.06),
    inset 0 0 20px rgba(0,0,0,0.4);
  overflow: hidden;
}

/* Rotating corner accent lines */
.hero-photo-ring::before,
.hero-photo-ring::after {
  content: '';
  position: absolute;
  z-index: 3;
  pointer-events: none;
}
/* Top-left + bottom-right corner brackets */
.hero-photo-ring::before {
  top: 8px; left: 8px;
  width: 24px; height: 24px;
  border-top: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
  border-radius: 4px 0 0 0;
}
.hero-photo-ring::after {
  bottom: 8px; right: 8px;
  width: 24px; height: 24px;
  border-bottom: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
  border-radius: 0 0 4px 0;
}

/* The actual photo */
.hero-photo {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  border-radius: 14px;
  /* Neutralise the red background, blend into dark theme */
  filter:
    saturate(0.55)       /* tone down vivid red → muted greyish-red */
    brightness(0.88)     /* slightly darker overall */
    contrast(1.08);      /* keep face detail crisp */
  position: relative; z-index: 1;
}

/* Formal portrait (white background): fill the frame, focus on the face */
.hero-photo-png {
  object-fit: cover;
  object-position: center 18%;   /* bias toward the face, trim empty top */
  /* Gently warm & soften the bright white studio background */
  filter: saturate(0.92) brightness(0.97) contrast(1.02);
}

/* Gradient fade: photo bleeds into dark at bottom */
.hero-photo-wrap::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 45%;
  background: linear-gradient(
    to top,
    var(--bg-primary) 0%,
    rgba(10,14,26,0.6) 50%,
    transparent 100%
  );
  z-index: 2;
  border-radius: 0 0 14px 14px;
  pointer-events: none;
}

/* Scanline overlay — subtle tech feel */
.hero-photo-wrap::after {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0, 212, 255, 0.025) 3px,
    rgba(0, 212, 255, 0.025) 4px
  );
  z-index: 2;
  border-radius: 14px;
  pointer-events: none;
}

.hero-photo-placeholder {
  width: 100%; height: 100%;
  border-radius: 14px;
  background: var(--bg-card);
  display: none;
  align-items: center; justify-content: center;
  font-size: 4rem; color: var(--text-muted);
}
.hero-photo-placeholder.show { display: flex; }

/* Online status dot */
.hero-status-dot {
  position: absolute; bottom: 14px; left: 14px;
  display: flex; align-items: center; gap: 6px;
  z-index: 4;
  background: rgba(10,14,26,0.75);
  border: 1px solid var(--border-glow);
  border-radius: 20px;
  padding: 4px 10px 4px 6px;
  backdrop-filter: blur(4px);
}
.hero-status-dot::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
  flex-shrink: 0;
  animation: statusPulse 2s ease-in-out infinite;
}
.hero-status-dot::after {
  content: 'Available';
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--green);
  letter-spacing: 0.05em;
}
@keyframes statusPulse {
  0%,100% { box-shadow: 0 0 4px var(--green); }
  50%      { box-shadow: 0 0 12px var(--green), 0 0 20px rgba(34,197,94,0.4); }
}

/* Hero text */
.hero-text { flex: 1; }
.hero-terminal-line {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  display: flex; align-items: center; gap: 8px;
}
.term-prompt { color: var(--green); }
.term-cmd { color: var(--accent); }
.term-cursor {
  color: var(--accent);
  animation: blink 1s step-end infinite;
  font-weight: bold;
}

.hero-name {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #fff 0%, var(--accent) 60%, var(--accent2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  margin-bottom: 16px;
}

.hero-title { margin-bottom: 16px; }
.title-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  color: var(--accent);
  font-size: 1.1rem;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.05em;
}

.hero-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 560px;
  margin-bottom: 24px;
  line-height: 1.75;
}

.hero-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 32px;
}
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 20px;
  letter-spacing: 0.04em;
  transition: all var(--transition);
}
.tag:hover { border-color: var(--accent); color: var(--accent); }
.tag i { font-size: 0.85em; }

.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-scroll-hint {
  position: absolute; bottom: 32px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  z-index: 2;
  animation: scrollHint 2s ease-in-out infinite;
}
@keyframes scrollHint {
  0%,100% { opacity: 0.5; transform: translateX(-50%) translateY(0); }
  50% { opacity: 1; transform: translateX(-50%) translateY(6px); }
}

/* ══════════════════════════════════════════════
   TERMINAL WIDGET — Windows Terminal style
══════════════════════════════════════════════ */
.terminal-topbar {
  display: flex; align-items: center;
  background: #1a1f2e;
  padding: 0;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  height: 36px;
  user-select: none;
}

/* Tab strip area */
.t-tab {
  display: flex; align-items: center; gap: 8px;
  padding: 0 16px;
  height: 100%;
  background: var(--bg-terminal);
  border-right: 1px solid var(--border);
  border-top: 2px solid var(--accent);
  flex-shrink: 0;
}
.t-tab-icon {
  font-size: 0.75rem;
  color: var(--accent);
}
.t-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

/* Drag area spacer */
.t-spacer { flex: 1; }

/* Windows-style control buttons */
.t-win-controls {
  display: flex; align-items: stretch;
  height: 100%;
  flex-shrink: 0;
}
.t-win-btn {
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 100%;
  font-size: 0.65rem;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: default;
  transition: background var(--transition), color var(--transition);
  letter-spacing: 0;
  line-height: 1;
}
.t-win-btn:hover { background: rgba(255,255,255,0.08); color: var(--text-primary); }
.t-win-btn.t-close:hover { background: #c42b1c; color: #fff; }

/* Legacy dot classes — kept for fallback but hidden */
.t-dot, .t-red, .t-yellow, .t-green { display: none; }

.terminal-body {
  background: var(--bg-terminal);
  padding: 20px;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 2;
  border: 1px solid var(--border);
  border-top: none;
}
.t-line { display: flex; flex-wrap: wrap; gap: 6px; }
.t-blank { height: 0.5rem; }
.t-key   { color: #7dd3fc; }
.t-colon { color: var(--text-muted); }
.t-val   { color: #86efac; }
.t-comment { color: var(--text-muted); font-style: italic; }
.t-green-text { color: var(--green); }
.t-highlight { color: var(--accent); }

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

.about-terminal {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  position: sticky; top: 88px;
}

.about-content {}
.about-bio {
  color: var(--text-secondary);
  font-size: 0.97rem;
  line-height: 1.85;
  margin-bottom: 20px;
}

.about-stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
  margin-top: 32px;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  transition: all var(--transition);
}
.stat-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}
.stat-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ══════════════════════════════════════════════
   SKILLS
══════════════════════════════════════════════ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.skill-category {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: all var(--transition);
}
.skill-category:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
}

.skill-cat-header {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.skill-cat-header i { font-size: 1rem; }

.skill-items {
  display: flex; flex-wrap: wrap; gap: 12px;
}
.skill-item {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
  cursor: default;
}
.skill-item:hover {
  border-color: var(--accent);
  color: var(--text-primary);
  background: var(--accent-glow);
}
.skill-item img {
  width: 18px; height: 18px;
  object-fit: contain;
  border-radius: 2px;
}
.skill-svg {
  width: 18px; height: 18px;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════
   EXPERIENCE TIMELINE
══════════════════════════════════════════════ */
.timeline {
  position: relative;
  padding-left: 32px;
}
.timeline::before {
  content: '';
  position: absolute; left: 15px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--accent2), transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 48px;
}
.timeline-item:last-child { margin-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -41px;
  top: 20px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  font-size: 0.8rem;
  box-shadow: 0 0 12px var(--accent-glow);
  z-index: 1;
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: all var(--transition);
  position: relative;
}
.timeline-card:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
  transform: translateX(4px);
}
.timeline-card::before {
  content: '';
  position: absolute; left: -8px; top: 24px;
  width: 14px; height: 14px;
  background: var(--bg-card);
  border-left: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transform: rotate(45deg);
}

.tcard-header { margin-bottom: 16px; }
.tcard-company-wrap { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.tcard-company {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}
.tcard-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 20px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.tcard-badge-current {
  background: rgba(34, 197, 94, 0.15);
  color: var(--green);
  border: 1px solid rgba(34, 197, 94, 0.3);
}
.tcard-role {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 6px;
}
.tcard-period {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex; align-items: center; gap: 6px;
}

.tcard-list {
  margin: 16px 0;
  display: flex; flex-direction: column; gap: 8px;
}
.tcard-list li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding-left: 18px;
  position: relative;
  line-height: 1.65;
}
.tcard-list li::before {
  content: '▸';
  position: absolute; left: 0;
  color: var(--accent);
  font-size: 0.75rem;
  top: 2px;
}

.tcard-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.tcard-tags span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-dim);
  background: rgba(0,212,255,0.07);
  border: 1px solid rgba(0,212,255,0.15);
  padding: 3px 10px;
  border-radius: 4px;
}

/* ══════════════════════════════════════════════
   EDUCATION
══════════════════════════════════════════════ */
.edu-card {
  display: flex; gap: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 800px; margin: 0 auto;
  transition: all var(--transition);
}
.edu-card:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
}

.edu-icon {
  flex-shrink: 0;
  width: 64px; height: 64px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  color: #fff;
}

.edu-content h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.edu-major {
  color: var(--accent);
  font-size: 0.9rem;
  margin-bottom: 10px;
}
.edu-meta {
  display: flex; gap: 20px; flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-bottom: 20px;
}
.edu-meta span { display: flex; align-items: center; gap: 6px; }

.edu-papers { display: flex; flex-direction: column; gap: 14px; }
.edu-paper {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
}
.edu-paper > i {
  color: var(--accent);
  margin-top: 3px;
  flex-shrink: 0;
}
.edu-paper-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 4px;
}
.edu-paper p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ══════════════════════════════════════════════
   CERTIFICATIONS
══════════════════════════════════════════════ */
.credly-logo-inline {
  height: 20px;
  width: auto;
  vertical-align: middle;
  display: inline-block;
}

.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.cert-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition);
  display: flex; flex-direction: column;
}
.cert-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 32px rgba(0,212,255,0.12), var(--shadow-glow);
  transform: translateY(-4px);
}

.cert-img-wrap {
  background: #fff;
  padding: 24px;
  display: flex; align-items: center; justify-content: center;
  min-height: 160px;
  border-bottom: 1px solid var(--border);
}
.cert-img-wrap img {
  max-height: 120px;
  max-width: 200px;
  object-fit: contain;
}

.cert-info {
  padding: 20px;
  display: flex; flex-direction: column; gap: 8px;
  flex: 1;
}
.cert-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
}
.cert-issuer {
  font-size: 0.82rem;
  color: var(--accent);
  display: flex; align-items: center; gap: 6px;
}
.cert-date {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex; align-items: center; gap: 6px;
}

.cert-verify-btn {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: auto;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(0,212,255,0.07);
  border: 1px solid rgba(0,212,255,0.2);
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  width: fit-content;
}
.cert-verify-btn:hover {
  background: var(--accent);
  color: var(--bg-primary);
  border-color: var(--accent);
}

.credly-profile-link {
  text-align: center;
  margin-top: 16px;
}

/* ══════════════════════════════════════════════
   CONTACT
══════════════════════════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}

.contact-info {
  display: flex; flex-direction: column; gap: 24px;
}
.contact-item {
  display: flex; align-items: flex-start; gap: 16px;
}
.contact-icon {
  width: 44px; height: 44px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  font-size: 1rem;
}
.contact-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 2px;
}
.contact-val {
  font-size: 0.95rem;
  color: var(--text-primary);
  font-weight: 500;
}
a.contact-val:hover { color: var(--accent); }

.contact-socials {
  display: flex; flex-wrap: wrap; gap: 12px;
  padding-top: 8px;
}
.social-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all var(--transition);
}
.social-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
}
.social-btn-linkedin:hover {
  border-color: #0077b5;
  color: #0077b5;
  background: rgba(0,119,181,0.1);
}
.social-btn-credly:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: rgba(249,115,22,0.1);
}
.social-btn-cv {
  border-style: dashed;
}
.social-btn-cv:hover {
  border-style: solid;
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
}

.contact-terminal {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

/* ══════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════ */
.footer {
  background: var(--bg-terminal);
  border-top: 1px solid var(--border);
  padding: 24px 0;
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 12px;
}
.footer-prompt {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--green);
}
.footer-text {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.footer-links {
  display: flex; gap: 16px;
}
.footer-links a {
  color: var(--text-muted);
  font-size: 1rem;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--accent); }

/* ══════════════════════════════════════════════
   SCROLL ANIMATIONS
══════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-terminal { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero-content { flex-direction: column; text-align: center; gap: 40px; }
  .hero-desc { margin: 0 auto 24px; }
  .hero-tags { justify-content: center; }
  .hero-cta { justify-content: center; }
  .hero-photo-ring { width: 185px; height: 245px; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute; top: 64px; left: 0; right: 0;
    background: rgba(10,14,26,0.98);
    backdrop-filter: blur(20px);
    padding: 16px;
    border-bottom: 1px solid var(--border);
    gap: 4px;
  }
  .nav-hamburger { display: flex; }
}

@media (max-width: 640px) {
  .section { padding: 72px 0; }
  .edu-card { flex-direction: column; gap: 20px; padding: 24px; }
  .timeline { padding-left: 24px; }
  .timeline-dot { left: -33px; }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { justify-content: center; text-align: center; }
  .hero-name { font-size: 2.4rem; }
  .navbar { padding: 0 16px; }
  .certs-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════
   THEME TOGGLE BUTTON
══════════════════════════════════════════════ */
.theme-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  transition: all var(--transition);
  line-height: 1;
}
.theme-toggle:hover {
  border-color: var(--accent);
  background: var(--accent-glow);
  transform: rotate(20deg) scale(1.1);
}

/* ══════════════════════════════════════════════
   LIGHT MODE — CSS Variable Overrides
══════════════════════════════════════════════ */
html.light-mode {
  --bg-primary:     #f0f4f8;
  --bg-secondary:   #e2e8f0;
  --bg-card:        #ffffff;
  --bg-card-hover:  #f8fafc;
  --bg-terminal:    #1e293b;   /* terminal stays dark */
  --border:         #cbd5e1;
  --border-glow:    #94a3b8;

  --accent:         #0284c7;
  --accent-dim:     #0369a1;
  --accent-glow:    rgba(2, 132, 199, 0.12);
  --accent2:        #7c3aed;
  --green:          #16a34a;
  --green-glow:     rgba(22, 163, 74, 0.15);

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

  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-glow: 0 0 30px rgba(2, 132, 199, 0.08);
}

/* Light mode — specific overrides */
html.light-mode .navbar {
  background: rgba(240, 244, 248, 0.9);
  border-bottom-color: var(--border);
}
html.light-mode .navbar.scrolled {
  background: rgba(240, 244, 248, 0.98);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
html.light-mode .hero-bg-grid {
  background-image:
    linear-gradient(rgba(2,132,199,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(2,132,199,0.06) 1px, transparent 1px);
}
html.light-mode .hero::after {
  background: radial-gradient(ellipse 60% 60% at 50% 40%, rgba(2,132,199,0.08) 0%, transparent 70%);
}
html.light-mode .particle { background: var(--accent); }

/* Terminal widget stays dark in light mode */
html.light-mode .terminal-topbar { background: #1e293b; }
html.light-mode .terminal-body   { background: #0f172a; border-color: #334155; }
html.light-mode .t-tab           { background: #0f172a; border-color: #334155; }

/* Photo fade gradient adapts to light bg */
html.light-mode .hero-photo-wrap::before {
  background: linear-gradient(
    to top,
    var(--bg-primary) 0%,
    rgba(240,244,248,0.6) 50%,
    transparent 100%
  );
}

/* Section dark in light mode */
html.light-mode .section-dark {
  background: var(--bg-secondary);
}
html.light-mode .section-dark::before {
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 40px,
    rgba(2, 132, 199, 0.03) 40px,
    rgba(2, 132, 199, 0.03) 41px
  );
}

/* Footer */
html.light-mode .footer {
  background: #e2e8f0;
  border-top-color: var(--border);
}

/* Cert image background */
html.light-mode .cert-img-wrap {
  background: #f8fafc;
  border-bottom-color: var(--border);
}

/* Smooth global transition when theme switches */
html.light-mode *,
html.light-mode *::before,
html.light-mode *::after {
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease,
    box-shadow 0.3s ease !important;
}
