/* ============================================================
   AGG Portfolio 2024 — Premium Dark Theme
   Palette: Jet Black + Milk Blue / Ice Blue
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=DM+Mono:wght@400;500&display=swap');

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  --bg:           #000000;
  --surface:      #080f14;
  --surface-2:    #0d1a22;
  --card:         rgba(255,255,255,0.035);
  --card-border:  rgba(255,255,255,0.08);

  --blue-deep:    #1a6fa8;
  --blue-main:    #4FC3F7;
  --blue-light:   #7EC8E3;
  --blue-milk:    #A8D8EA;
  --blue-pale:    #d4f0fb;

  --text-primary:   #e8f4f8;
  --text-secondary: #8db3c5;
  --text-muted:     #4a7080;

  --nav-w:        200px;
  --nav-pill-h:   72px;

  --ease-spring:  cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth:  cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:     cubic-bezier(0, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; }
button { cursor: pointer; font-family: inherit; }

/* ── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--blue-deep); border-radius: 4px; }

/* ══════════════════════════════════════════════════════════════
   DESKTOP SIDEBAR NAV
══════════════════════════════════════════════════════════════ */
#nav-sidebar {
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  width: var(--nav-w);
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid rgba(126,200,227,0.1);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  padding: 28px 0;
  overflow-y: auto;
  transition: transform 0.35s var(--ease-smooth);
}

#nav-sidebar::-webkit-scrollbar { width: 2px; }
#nav-sidebar::-webkit-scrollbar-thumb { background: var(--blue-deep); }

.nav-brand {
  padding: 0 20px 24px;
  border-bottom: 1px solid rgba(126,200,227,0.08);
  margin-bottom: 16px;
}

.nav-brand-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--blue-light);
  letter-spacing: 0.05em;
  line-height: 1.3;
}

.nav-brand-sub {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 2px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-jump-btns {
  display: flex;
  gap: 6px;
  padding: 0 14px 16px;
}

.nav-jump-btn {
  flex: 1;
  font-size: 10px;
  padding: 7px 4px;
  background: var(--card);
  border: 1px solid rgba(126,200,227,0.18);
  border-radius: 8px;
  color: var(--blue-light);
  font-family: inherit;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: all 0.2s var(--ease-smooth);
}

.nav-jump-btn:hover {
  background: rgba(79,195,247,0.12);
  border-color: var(--blue-main);
  color: var(--blue-pale);
}

.nav-list {
  list-style: none;
  flex: 1;
  padding: 0 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-list li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 10px;
  transition: all 0.22s var(--ease-smooth);
  position: relative;
  overflow: hidden;
}

.nav-list li a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%) scaleY(0);
  width: 3px;
  height: 60%;
  background: var(--blue-main);
  border-radius: 0 3px 3px 0;
  transition: transform 0.2s var(--ease-smooth);
}

.nav-list li a:hover {
  color: var(--blue-pale);
  background: rgba(79,195,247,0.07);
}

.nav-list li a.active {
  color: var(--blue-light);
  background: rgba(126,200,227,0.1);
  font-weight: 600;
}

.nav-list li a.active::before {
  transform: translateY(-50%) scaleY(1);
}

.nav-step-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  flex-shrink: 0;
  transition: background 0.2s;
}

.nav-list li a.active .nav-step-dot {
  background: var(--blue-main);
  box-shadow: 0 0 8px var(--blue-main);
}

/* ══════════════════════════════════════════════════════════════
   MOBILE BOTTOM NAV PILL
══════════════════════════════════════════════════════════════ */
#nav-mobile {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--nav-pill-h);
  z-index: 9999;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid rgba(126,200,227,0.1);
  padding: 0 16px;
}

.mobile-nav-inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 10px;
}

.mobile-nav-prev,
.mobile-nav-next {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(126,200,227,0.25);
  background: rgba(79,195,247,0.08);
  color: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s var(--ease-smooth);
}

.mobile-nav-prev:hover, .mobile-nav-next:hover {
  background: rgba(79,195,247,0.18);
  border-color: var(--blue-main);
}

.mobile-nav-prev:disabled, .mobile-nav-next:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

.mobile-nav-prev svg, .mobile-nav-next svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.5;
}

.mobile-nav-scroll {
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
}

.mobile-nav-scroll::-webkit-scrollbar { display: none; }

.mobile-nav-list {
  display: flex;
  list-style: none;
  gap: 6px;
  padding: 0 4px;
  white-space: nowrap;
}

.mobile-nav-list li a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: 20px;
  border: 1px solid transparent;
  transition: all 0.2s var(--ease-smooth);
}

.mobile-nav-list li a.active {
  color: var(--blue-pale);
  background: rgba(79,195,247,0.12);
  border-color: rgba(79,195,247,0.25);
}

/* ══════════════════════════════════════════════════════════════
   MAIN CONTENT WRAPPER
══════════════════════════════════════════════════════════════ */
#main-content {
  margin-left: var(--nav-w);
  min-height: 100vh;
}

/* ══════════════════════════════════════════════════════════════
   SECTIONS
══════════════════════════════════════════════════════════════ */
.cv-section {
  position: relative;
  padding: 120px 60px 120px;
  max-width: 1100px;
  margin: 0 auto;
}

.cv-section--hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 60px;
  padding-bottom: 60px;
  text-align: center;
}

.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(126,200,227,0.15), transparent);
  margin: 0 auto;
}

/* ══════════════════════════════════════════════════════════════
   HERO SECTION
══════════════════════════════════════════════════════════════ */
.hero-eyebrow {
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--blue-main);
  margin-bottom: 24px;
  font-weight: 600;
}

.hero-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 2px solid rgba(126,200,227,0.3);
  object-fit: cover;
  margin: 0 auto 32px;
  box-shadow: 0 0 40px rgba(79,195,247,0.15);
  animation: float 5s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero-title {
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #ffffff 0%, var(--blue-milk) 40%, var(--blue-main) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: 40px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 56px;
}

.hero-badge {
  font-size: 12px;
  font-weight: 600;
  padding: 7px 18px;
  border-radius: 20px;
  border: 1px solid rgba(126,200,227,0.2);
  background: rgba(126,200,227,0.06);
  color: var(--blue-light);
  letter-spacing: 0.03em;
}

/* Three.js canvas ─────────────────────────────────────────── */
.chess-canvas-wrapper {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

#chess-canvas {
  width: 100%;
  height: 380px;
  border-radius: 20px;
  display: block;
  background: transparent;
}

.chess-label {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.chess-step-indicator {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
}

.chess-step-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: all 0.4s var(--ease-smooth);
}

.chess-step-dot.active {
  background: var(--blue-main);
  box-shadow: 0 0 8px var(--blue-main);
  transform: scale(1.4);
}

/* ── Hero SVG / piyon illustration ──────────────────────────── */
.hero-svg-wrap {
  margin: 40px auto 0;
  max-width: 360px;
}

.hero-svg-wrap img {
  width: 100%;
  filter: brightness(0.9) saturate(1.2);
  animation: float 6s ease-in-out infinite 1s;
}

/* ── Hero video ──────────────────────────────────────────────── */
.hero-video-wrap {
  max-width: 300px;
  margin: 48px auto 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(126,200,227,0.12);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(126,200,227,0.05);
}

.hero-video-wrap video {
  width: 100%;
  height: auto;
  display: block;
  background: #000;
}

/* ══════════════════════════════════════════════════════════════
   SECTION HEADERS
══════════════════════════════════════════════════════════════ */
.section-tag {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-main);
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-tag::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(79,195,247,0.15);
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.section-year {
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  color: var(--blue-main);
  margin-bottom: 8px;
  letter-spacing: 0.08em;
}

.section-award {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 20px;
  background: rgba(255,215,0,0.08);
  border: 1px solid rgba(255,215,0,0.2);
  color: #FFD700;
  margin-bottom: 32px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 600px;
  margin-bottom: 40px;
}

/* ══════════════════════════════════════════════════════════════
   CHESS STEP BANNER (per section)
══════════════════════════════════════════════════════════════ */
.chess-step-banner {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  border-radius: 12px;
  background: rgba(79,195,247,0.06);
  border: 1px solid rgba(79,195,247,0.15);
  font-size: 12px;
  color: var(--blue-light);
  font-weight: 600;
  margin-bottom: 32px;
  letter-spacing: 0.05em;
}

.chess-step-banner .piece-icon {
  font-size: 18px;
}

/* ══════════════════════════════════════════════════════════════
   CUSTOM SLIDER
══════════════════════════════════════════════════════════════ */
[data-agg-slider] {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--card-border);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.agg-slider-track {
  position: relative;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
  min-height: 250px;
  background: #050e14;
}

.agg-slide {
  display: none;
  position: relative;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
}

.agg-slide.agg-slide-active {
  display: block;
  animation: slideIn 0.45s var(--ease-out) both;
}

.agg-slide.agg-slide-exit-next {
  display: block;
  position: absolute;
  top: 0; left: 0; right: 0;
  animation: slideOutLeft 0.45s var(--ease-smooth) both;
}

.agg-slide.agg-slide-exit-prev {
  display: block;
  position: absolute;
  top: 0; left: 0; right: 0;
  animation: slideOutRight 0.45s var(--ease-smooth) both;
}

.agg-slide.agg-slide-enter-next {
  animation: slideInFromRight 0s;
  transform: translateX(40px);
  opacity: 0;
}

.agg-slide.agg-slide-enter-prev {
  transform: translateX(-40px);
  opacity: 0;
}

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

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

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

.agg-slide img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 600px;
  border-radius: 20px 20px 0 0;
}

.agg-slide-caption {
  padding: 16px 20px;
  font-size: 13px;
  color: var(--text-secondary);
  background: var(--surface);
  border-top: 1px solid var(--card-border);
  text-align: center;
}

/* Controls ─────────────────────────────────────────────────── */
.agg-slider-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: var(--surface);
  border-top: 1px solid var(--card-border);
  border-radius: 0 0 20px 20px;
}

.agg-slider-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(126,200,227,0.2);
  background: rgba(79,195,247,0.07);
  color: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s var(--ease-smooth);
}

.agg-slider-btn:hover:not(:disabled) {
  background: rgba(79,195,247,0.15);
  border-color: var(--blue-main);
  transform: scale(1.05);
}

.agg-slider-btn:disabled {
  opacity: 0.28;
  cursor: not-allowed;
}

.agg-slider-btn svg {
  width: 16px;
  height: 16px;
}

.agg-slider-dots {
  display: flex;
  gap: 6px;
  flex: 1;
  justify-content: center;
  flex-wrap: wrap;
}

.agg-slider-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: none;
  background: var(--text-muted);
  padding: 0;
  transition: all 0.25s var(--ease-smooth);
}

.agg-slider-dot.active {
  background: var(--blue-main);
  box-shadow: 0 0 8px var(--blue-main);
  transform: scale(1.4);
}

.agg-slider-counter {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: var(--text-muted);
  flex-shrink: 0;
  min-width: 36px;
  text-align: right;
}

/* ══════════════════════════════════════════════════════════════
   TIMELINE
══════════════════════════════════════════════════════════════ */
.timeline {
  position: relative;
  max-width: 760px;
  margin: 60px auto;
  padding-left: 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--blue-deep) 10%, var(--blue-deep) 90%, transparent);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  width: 48%;
  padding: 6px 0 24px;
}

.timeline-item.left {
  left: 0;
  padding-right: 48px;
  text-align: right;
}

.timeline-item.right {
  left: 52%;
  padding-left: 48px;
}

/* dot on line */
.timeline-item::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--blue-main);
  box-shadow: 0 0 16px var(--blue-main);
  top: 14px;
}

.timeline-item.left::after {
  right: -6px;
}

.timeline-item.right::after {
  left: -6px;
}

.timeline-date {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: var(--blue-main);
  font-weight: 500;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.timeline-content {
  padding: 16px 20px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  transition: border-color 0.3s;
}

.timeline-content:hover {
  border-color: rgba(79,195,247,0.2);
}

/* ══════════════════════════════════════════════════════════════
   SKILLS
══════════════════════════════════════════════════════════════ */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 740px;
}

.skill-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skill-label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.skill-pct {
  font-family: 'DM Mono', monospace;
  color: var(--blue-main);
  font-size: 12px;
}

.skill-bar-track {
  height: 5px;
  background: rgba(255,255,255,0.06);
  border-radius: 10px;
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  width: 0;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--blue-deep), var(--blue-main));
  transition: width 1.4s var(--ease-out);
  box-shadow: 0 0 10px var(--blue-main);
}

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

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 32px;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  color: var(--text-secondary);
}

.contact-info-item svg {
  width: 18px;
  height: 18px;
  color: var(--blue-main);
  flex-shrink: 0;
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 10px;
  border: 1px solid rgba(126,200,227,0.18);
  background: var(--card);
  color: var(--blue-light);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.22s var(--ease-smooth);
}

.social-link:hover {
  background: rgba(79,195,247,0.1);
  border-color: var(--blue-main);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(79,195,247,0.15);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-input,
.form-textarea {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 13px 16px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text-primary);
  outline: none;
  transition: all 0.25s var(--ease-smooth);
  width: 100%;
}

.form-input::placeholder, .form-textarea::placeholder {
  color: rgba(255,255,255,0.2);
}

.form-input:focus, .form-textarea:focus {
  background: rgba(79,195,247,0.04);
  border-color: rgba(79,195,247,0.35);
  box-shadow: 0 0 0 3px rgba(79,195,247,0.08);
}

.form-textarea { resize: vertical; min-height: 130px; }

.btn-submit {
  background: linear-gradient(135deg, var(--blue-main) 0%, var(--blue-deep) 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 15px 28px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: all 0.25s var(--ease-smooth);
  position: relative;
  overflow: hidden;
}

.btn-submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.25s;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(79,195,247,0.35);
}

.btn-submit:hover::before { opacity: 1; }
.btn-submit:active { transform: translateY(0); }

/* Form loader & feedback */
.form-loader {
  display: none;
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.88);
  border-radius: 14px;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  backdrop-filter: blur(6px);
  z-index: 10;
}

.form-loader.active { display: flex; }

.spinner-glow {
  width: 52px;
  height: 52px;
  border: 3px solid transparent;
  border-top-color: var(--blue-main);
  border-right-color: var(--blue-light);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loader-text {
  margin-top: 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
  animation: pulse 1.4s ease-in-out infinite;
}

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

.feedback-message {
  display: none;
  text-align: center;
  padding: 30px 10px;
}

.feedback-message.active { display: block; }

.feedback-icon { font-size: 3.5rem; margin-bottom: 16px; animation: float 3s ease-in-out infinite; }
.feedback-title { font-size: 1.3rem; font-weight: 700; margin-bottom: 12px; }
.success-title { color: var(--blue-light); }
.error-title { color: #ff6b6b; }
.feedback-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.65; }

/* ══════════════════════════════════════════════════════════════
   PIYON IMAGE (journal covers etc.)
══════════════════════════════════════════════════════════════ */
.full-image-wrap {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--card-border);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.full-image-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

/* ══════════════════════════════════════════════════════════════
   VIDEO EMBED
══════════════════════════════════════════════════════════════ */
.video-wrap {
  max-width: 320px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--card-border);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.video-wrap video {
  width: 100%;
  height: auto;
  display: block;
  background: #000;
}

video::-webkit-media-controls { display: none !important; }
video::-webkit-media-controls-enclosure { display: none !important; }
video::-webkit-media-controls-panel { display: none !important; }

/* ══════════════════════════════════════════════════════════════
   LITTLE PRINCE HEADER IMG
══════════════════════════════════════════════════════════════ */
.hero-story-img {
  max-width: 700px;
  width: 90%;
  margin: 60px auto 0;
  filter: brightness(0.85) saturate(0.9);
  opacity: 0.85;
}

/* ══════════════════════════════════════════════════════════════
   QUOTE BLOCK
══════════════════════════════════════════════════════════════ */
.quote-block {
  max-width: 560px;
  padding: 32px 36px;
  border-left: 3px solid var(--blue-main);
  background: var(--card);
  border-radius: 0 16px 16px 0;
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.75;
  font-style: italic;
  margin: 48px auto;
}

/* ══════════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════════ */
.cv-footer {
  text-align: center;
  padding: 48px 24px;
  border-top: 1px solid rgba(126,200,227,0.08);
  color: var(--text-muted);
  font-size: 12px;
}

/* ══════════════════════════════════════════════════════════════
   REVEAL ANIMATIONS
══════════════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════════════════════════════
   AURORA (hero background glow)
══════════════════════════════════════════════════════════════ */
.aurora-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.12;
}

.aurora-blob-1 {
  width: 500px;
  height: 500px;
  background: var(--blue-deep);
  top: -200px;
  left: -100px;
  animation: aurora-drift-1 18s ease-in-out infinite;
}

.aurora-blob-2 {
  width: 400px;
  height: 400px;
  background: var(--blue-main);
  bottom: -150px;
  right: -80px;
  animation: aurora-drift-2 24s ease-in-out infinite;
  opacity: 0.08;
}

@keyframes aurora-drift-1 {
  0%,100% { transform: translate(0,0) scale(1); }
  33%  { transform: translate(80px, 50px) scale(1.1); }
  66%  { transform: translate(-40px, 80px) scale(0.9); }
}

@keyframes aurora-drift-2 {
  0%,100% { transform: translate(0,0) scale(1); }
  40%  { transform: translate(-60px, -40px) scale(1.15); }
  70%  { transform: translate(50px, 30px) scale(0.92); }
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE
══════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  #nav-sidebar {
    display: none;
  }

  #nav-mobile {
    display: flex;
    align-items: center;
  }

  #main-content {
    margin-left: 0;
    padding-bottom: var(--nav-pill-h);
  }

  .cv-section {
    padding: 80px 22px 80px;
  }

  .cv-section--hero {
    padding-top: 50px;
    padding-bottom: 50px;
  }

  .contact-section-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

  .timeline::before {
    left: 12px;
  }

  .timeline-item {
    width: 100%;
    left: 0 !important;
    padding-left: 36px !important;
    padding-right: 0 !important;
    text-align: left !important;
  }

  .timeline-item::after {
    left: 6px !important;
    right: auto !important;
  }

  .timeline-item.left .timeline-date {
    text-align: left;
  }

  #chess-canvas {
    height: 300px;
  }

  .section-title {
    font-size: clamp(1.5rem, 5.5vw, 2.2rem);
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .agg-slider-dots {
    gap: 4px;
  }

  .agg-slider-dot {
    width: 6px;
    height: 6px;
  }

  .hero-badges {
    gap: 7px;
  }

  .hero-badge {
    font-size: 11px;
    padding: 6px 12px;
  }
}

/* ── Shine text effect (Endüstriyel Tasarım Portfolyosu) ──── */
.shine-text {
  background: linear-gradient(90deg, #4d4d4d 0%, #ffffff 40%, #4d4d4d 70%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: textshine 3.5s linear infinite;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

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