/* style.css */
:root {
  --export-primary: #00d4ff;
  --export-accent: #a855f7;
  --export-surface: rgba(255, 255, 255, 0.02);
  --export-border: rgba(255, 255, 255, 0.08);
  --radius: 12px;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  position: relative;
  overflow-x: hidden;
  background:
    radial-gradient(900px 500px at -10% -10%, color-mix(in oklab, var(--export-primary) 18%, transparent), transparent 70%),
    radial-gradient(900px 500px at 110% 8%, color-mix(in oklab, var(--export-accent) 16%, transparent), transparent 72%);
  background-color: #0a0a12;
}

.export-bg-orb {
  position: fixed;
  width: 32rem;
  height: 32rem;
  border-radius: 9999px;
  filter: blur(80px);
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: screen;
  animation: exportFloat 14s ease-in-out infinite;
}
.export-bg-orb.a {
  top: -10rem;
  left: -10rem;
  background: var(--export-primary);
}
.export-bg-orb.b {
  right: -10rem;
  top: 22%;
  background: var(--export-accent);
  animation-delay: -6s;
}

.export-content {
  position: relative;
  z-index: 1;
}

/* Typewriter (if used) */
.export-hero-title {
  background-image: linear-gradient(
    110deg,
    color-mix(in oklab, var(--export-primary) 70%, white) 0%,
    color-mix(in oklab, white 96%, transparent) 34%,
    color-mix(in oklab, var(--export-accent) 72%, white) 68%,
    color-mix(in oklab, var(--export-primary) 70%, white) 100%
  );
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: exportFadeInUp 980ms cubic-bezier(0.22, 1, 0.36, 1) both, exportTextShimmer 6.4s linear infinite;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.export-section-title {
  position: relative;
  text-wrap: balance;
}
.export-section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -12px;
  width: 68px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--export-primary), var(--export-accent));
  transform: scaleX(0);
  transform-origin: left;
  animation: exportLineIn 900ms cubic-bezier(0.22, 1, 0.36, 1) 320ms forwards;
}
.export-section-title.export-section-title--center::after {
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
}

/* Cards */
.export-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.export-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(
    120deg,
    transparent 0%,
    color-mix(in oklab, var(--export-primary) 20%, transparent) 30%,
    color-mix(in oklab, var(--export-accent) 24%, transparent) 55%,
    transparent 88%
  );
  opacity: 0;
  transform: translateX(-18%) rotate(2deg);
  transition: opacity 360ms ease, transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  z-index: 0;
}
.export-card:hover::before {
  opacity: 0.85;
  transform: translateX(6%) rotate(2deg);
}
.export-card:hover {
  transform: translateY(-8px) scale(1.012);
  box-shadow: 0 30px 64px -28px rgba(0, 0, 0, 0.55);
}

/* Project modal (original) */
[data-export-project-modal="true"] [data-export-modal-body] {
  display: flex;
  flex-direction: column;
}
[data-export-project-modal="true"] [data-export-modal-actions] {
  position: static !important;
  margin-top: auto;
}

/* Reveal animation */
.export-reveal {
  opacity: 0;
  transform: translate3d(0, var(--reveal-distance, 18px), 0);
  transition:
    opacity var(--reveal-duration, 620ms) var(--reveal-easing, cubic-bezier(0.22, 1, 0.36, 1)),
    transform var(--reveal-duration, 620ms) var(--reveal-easing, cubic-bezier(0.22, 1, 0.36, 1));
  transition-delay: var(--reveal-delay, 0ms);
  will-change: transform, opacity;
}
.export-reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  will-change: auto;
}

/* Keyframes */
@keyframes exportFloat {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(0, -36px, 0) scale(1.11); }
}
@keyframes exportTextShimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 220% 50%; }
}
@keyframes exportLineIn {
  to { transform: scaleX(1); }
}
@keyframes exportFadeInUp {
  from { opacity: 0; transform: translate3d(0, 18px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

/* Back to top */
.back-to-top.visible {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Timeline */
.timeline-item::before {
  content: '';
  position: absolute;
  left: 32px;
  top: 3rem;
  bottom: -2rem;
  width: 2px;
  background: linear-gradient(180deg, var(--export-primary), var(--export-accent));
  border-radius: 2px;
}
.timeline-item:last-child::before {
  display: none;
}
.timeline-date {
  box-shadow: 0 4px 10px rgba(56,189,248,0.3);
}
@media (max-width: 640px) {
  .timeline-item {
    padding-left: 3.5rem !important;
  }
  .timeline-item::before {
    left: 1.5rem;
  }
  .timeline-date {
    width: 3rem;
    font-size: 0.75rem;
  }
}

/* ─── NEW RESUME MODAL STYLES ─── */
#resumeModal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  animation: fadeIn 0.25s ease;
}
#resumeModal.open {
  display: flex;
}
#resumeModal .modal-box {
  position: relative;
  width: 100%;
  max-width: 820px;
  max-height: 92vh;
  background: #14141e;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(0, 212, 255, 0.12);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
#resumeModal .modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(20, 20, 30, 0.8);
  flex-shrink: 0;
}
#resumeModal .modal-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #e4e4f0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
#resumeModal .modal-header h3 span {
  color: #00d4ff;
}
#resumeModal .modal-close {
  background: rgba(255, 255, 255, 0.06);
  border: none;
  border-radius: 10px;
  padding: 0.4rem 0.7rem;
  color: #a0a0b8;
  cursor: pointer;
  font-size: 1.2rem;
  transition: background 0.2s, color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
#resumeModal .modal-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
#resumeModal .modal-body {
  flex: 1 1 auto;
  overflow: auto;
  padding: 1rem;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: #0e0e18;
  min-height: 300px;
}
#resumeModal .modal-body img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  display: block;
  object-fit: contain;
  max-height: 70vh;
  width: auto;
}
#resumeModal .modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 0.9rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(20, 20, 30, 0.8);
  flex-shrink: 0;
  flex-wrap: wrap;
}
#resumeModal .modal-footer a,
#resumeModal .modal-footer button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.2rem;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}
#resumeModal .modal-footer .btn-download {
  background: linear-gradient(135deg, #00d4ff, #a855f7);
  color: #0b1020;
  box-shadow: 0 4px 16px rgba(0, 212, 255, 0.25);
}
#resumeModal .modal-footer .btn-download:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 24px rgba(0, 212, 255, 0.35);
}
#resumeModal .modal-footer .btn-close {
  background: rgba(255, 255, 255, 0.06);
  color: #b0b0c8;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
#resumeModal .modal-footer .btn-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}