/* ══════════════════════════════════════════
   DARK PORTFOLIO — STYLE SHEET
   ══════════════════════════════════════════ */

/* ── TOKENS ── */
:root {
  --bg-base:        #0b0f1a;
  --bg-surface:     #111827;
  --bg-card:        #1a2235;
  --bg-card-hover:  #1f2a42;
  --bg-pill:        #243049;

  --text-primary:   #e8edf5;
  --text-secondary: #8fa3c0;
  --text-muted:     #526175;

  --accent-blue:    #4f8ef7;
  --accent-purple:  #9b6dff;
  --accent-teal:    #2dd4bf;

  --border:         rgba(255, 255, 255, 0.07);
  --border-hover:   rgba(79, 142, 247, 0.3);

  --glow-blue:      rgba(79, 142, 247, 0.15);
  --glow-purple:    rgba(155, 109, 255, 0.12);

  --radius-sm:      6px;
  --radius-md:      12px;
  --radius-lg:      18px;

  --nav-h:          68px;
  --transition:     0.2s ease;
  --transition-md:  0.35s cubic-bezier(0.4, 0, 0.2, 1);

  --font-sans:      'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:      'JetBrains Mono', 'Fira Code', monospace;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* ── CONTAINER ── */
.container {
  width: min(1120px, 100% - 3rem);
  margin-inline: auto;
}

/* ── SECTION BASE ── */
.section {
  padding-block: 100px;
}

.section-header {
  margin-bottom: 60px;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-blue);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.section-subtitle {
  margin-top: 14px;
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 560px;
}

/* ── ACCENT COLOR ── */
.accent { color: var(--accent-blue); }

/* ── CARD BASE ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition), background var(--transition), transform var(--transition-md), box-shadow var(--transition-md);
}

.card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--border-hover);
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--accent-blue);
  color: #fff;
  box-shadow: 0 0 0 0 rgba(79, 142, 247, 0.4);
}

.btn--primary:hover {
  background: #6ba3f9;
  box-shadow: 0 0 20px rgba(79, 142, 247, 0.35);
  transform: translateY(-1px);
}

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

.btn--ghost:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  background: rgba(79, 142, 247, 0.06);
}

.btn--large {
  padding: 0.85rem 2rem;
  font-size: 1rem;
}

/* ── PILL TAGS ── */
.pill {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  background: var(--bg-pill);
  border: 1px solid var(--border);
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
}

.pill--accent {
  background: rgba(79, 142, 247, 0.1);
  border-color: rgba(79, 142, 247, 0.25);
  color: var(--accent-blue);
}

/* ══════════════════════════════════════════
   NAV
   ══════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(11, 15, 26, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

.nav.scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: min(1120px, 100% - 3rem);
  margin-inline: auto;
}

.nav__logo {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  transition: color var(--transition);
}

.nav__logo:hover { color: var(--accent-blue); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition);
  position: relative;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent-blue);
  transition: width var(--transition);
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--text-primary);
}

.nav__links a:hover::after,
.nav__links a.active::after {
  width: 100%;
}

.nav__cta {
  padding: 0.45rem 1rem !important;
  background: var(--accent-blue) !important;
  color: #fff !important;
  border-radius: var(--radius-sm) !important;
}

.nav__cta:hover { background: #6ba3f9 !important; }
.nav__cta::after { display: none !important; }

.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-primary);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ══════════════════════════════════════════
   HERO
   ══════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-h);
}

/* Subtle dot grid */
.hero__bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}

/* Ambient glow blobs */
.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}

.hero__glow--blue {
  width: 500px;
  height: 500px;
  background: var(--glow-blue);
  top: -100px;
  right: -100px;
}

.hero__glow--purple {
  width: 400px;
  height: 400px;
  background: var(--glow-purple);
  bottom: 50px;
  left: -80px;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding-block: 80px;
}

.hero__eyebrow {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-weight: 400;
}

.hero__name {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text-primary);
  margin-bottom: 12px;
  background: linear-gradient(135deg, #e8edf5 30%, var(--accent-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__title {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 400;
  color: var(--accent-blue);
  font-family: var(--font-mono);
  margin-bottom: 20px;
}

.hero__tagline {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 36px;
}

.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.hero__social {
  display: flex;
  gap: 20px;
}

.hero__social a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.hero__social a:hover { color: var(--accent-blue); }

.hero__scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: var(--font-mono);
  animation: fadeInUp 1s ease 0.8s both;
}

.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--text-muted), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(0.7); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateX(-50%) translateY(16px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ══════════════════════════════════════════
   ABOUT
   ══════════════════════════════════════════ */
.about {
  background: linear-gradient(180deg, var(--bg-base) 0%, var(--bg-surface) 100%);
}

.about__grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 56px;
  align-items: start;
}

/* ── PHOTO COLUMN ── */
.about__photo-col {
  display: flex;
  justify-content: center;
}

.about__photo-wrap {
  position: relative;
  width: 220px;
  height: 220px;
  flex-shrink: 0;
}

/* Glow ring behind the photo */
.about__photo-wrap::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: conic-gradient(
    var(--accent-blue) 0deg,
    var(--accent-purple) 120deg,
    var(--accent-teal) 240deg,
    var(--accent-blue) 360deg
  );
  opacity: 0.5;
  filter: blur(8px);
  z-index: 0;
  animation: rotatGlow 8s linear infinite;
}

/* Thin border ring */
.about__photo-wrap::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: conic-gradient(
    var(--accent-blue),
    var(--accent-purple),
    var(--accent-teal),
    var(--accent-blue)
  );
  z-index: 1;
  animation: rotatGlow 8s linear infinite;
}

@keyframes rotatGlow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Real photo */
.about__photo {
  position: relative;
  z-index: 2;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 3px solid var(--bg-surface);
  display: block;
}

/* Placeholder shown until real photo is added */
.about__photo-placeholder {
  position: relative;
  z-index: 2;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 3px solid var(--bg-surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}

.about__photo-placeholder svg {
  opacity: 0.35;
  color: var(--accent-blue);
}

/* ── BIO + STATS COLUMN ── */
.about__content {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.about__text p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-size: 1.02rem;
  line-height: 1.75;
}

.about__text p:last-child { margin-bottom: 0; }

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

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color var(--transition), transform var(--transition-md);
}

.stat-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
}

.stat-card__number {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  letter-spacing: -0.03em;
}

.stat-card__label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ══════════════════════════════════════════
   EXPERIENCE (TIMELINE)
   ══════════════════════════════════════════ */
.experience {
  background: var(--bg-surface);
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline__item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 0 24px;
  padding-bottom: 40px;
}

.timeline__item:last-child { padding-bottom: 0; }

.timeline__marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 22px;
}

.timeline__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-blue);
  border: 2px solid var(--bg-surface);
  box-shadow: 0 0 0 3px rgba(79, 142, 247, 0.2);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.timeline__line {
  flex: 1;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent-blue), transparent);
  margin-top: 8px;
  min-height: 40px;
}

.timeline__card {
  padding: 24px 28px;
}

.timeline__card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

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

.timeline__company {
  font-size: 0.9rem;
  color: var(--accent-blue);
  font-weight: 500;
}

.timeline__dates {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
  padding: 4px 10px;
  background: var(--bg-pill);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

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

.timeline__bullets li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding-left: 18px;
  position: relative;
  line-height: 1.6;
}

.timeline__bullets li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent-blue);
  font-size: 0.7rem;
  top: 3px;
}

/* ══════════════════════════════════════════
   SKILLS
   ══════════════════════════════════════════ */
.skills {
  background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-base) 100%);
}

.skills__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.skill-card {
  padding: 28px;
}

.skill-card__icon {
  font-size: 2rem;
  margin-bottom: 14px;
  display: block;
}

.skill-card__category {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

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

/* ══════════════════════════════════════════
   PORTFOLIO
   ══════════════════════════════════════════ */
.portfolio {
  background: var(--bg-base);
}

.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 52px;
}

.portfolio-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.portfolio-card__preview {
  height: 160px;
  background: linear-gradient(135deg, #111d33 0%, #162244 100%);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.portfolio-card__preview-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-family: var(--font-mono);
}

.portfolio-card__icon {
  color: var(--accent-blue);
  opacity: 0.7;
}

.portfolio-card__body {
  padding: 22px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.portfolio-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.portfolio-card__desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
}

.portfolio-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.portfolio__cta {
  text-align: center;
}

/* ══════════════════════════════════════════
   CONTACT
   ══════════════════════════════════════════ */
.contact {
  background: var(--bg-surface);
  padding-bottom: 120px;
}

.contact__links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 28px;
  flex: 1;
  min-width: 240px;
  cursor: pointer;
  transition: border-color var(--transition), transform var(--transition-md);
}

.contact-link__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(79, 142, 247, 0.1);
  border: 1px solid rgba(79, 142, 247, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-blue);
  flex-shrink: 0;
}

.contact-link__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-bottom: 3px;
}

.contact-link__value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* ══════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════ */
.footer {
  background: var(--bg-base);
  border-top: 1px solid var(--border);
  padding-block: 24px;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer__inner a {
  color: var(--accent-blue);
  transition: color var(--transition);
}

.footer__inner a:hover { color: #fff; }

/* ══════════════════════════════════════════
   SCROLL REVEAL ANIMATIONS
   ══════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }

/* ══════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */
@media (max-width: 900px) {
  .about__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about__photo-col {
    justify-content: flex-start;
  }

  .about__stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav__links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    padding: 20px;
    gap: 16px;
    align-items: flex-start;
  }

  .nav__links.open { display: flex; }
  .nav__hamburger { display: flex; }
}

@media (max-width: 600px) {
  .section { padding-block: 72px; }

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

  .about__photo-wrap,
  .about__photo,
  .about__photo-placeholder {
    width: 160px;
    height: 160px;
  }

  .hero__scroll-hint { display: none; }

  .timeline__item {
    grid-template-columns: 1fr;
  }
  .timeline__marker { display: none; }

  .contact__links { flex-direction: column; }
}
