﻿:root {
  --bg: #e9f4ff;
  --bg-deep: #c6def6;
  --bg-shift: #dffaf3;
  --text: #0f1e33;
  --muted: #49617e;
  --border: rgba(255, 255, 255, 0.46);
  --shadow: 0 24px 80px rgba(18, 47, 84, 0.16);
  --radius-lg: 24px;
  --page-gutter: 48px;
  --section-width: min(1120px, calc(100vw - (var(--page-gutter) * 2)));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
}

button {
  font: inherit;
}

.page-bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: -2;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.9), transparent 35%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 45%, var(--bg-shift) 100%);
}

.gradient {
  position: absolute;
  width: 45vw;
  height: 45vw;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.7;
}

.gradient-one {
  top: -10%;
  left: -5%;
  background: rgba(117, 197, 255, 0.75);
}

.gradient-two {
  top: 20%;
  right: -10%;
  background: rgba(255, 255, 255, 0.92);
}

.gradient-three {
  bottom: -15%;
  left: 25%;
  background: rgba(96, 162, 255, 0.38);
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.4), transparent 85%);
}

.hero {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px var(--page-gutter);
}

.hero-inner {
  width: min(560px, calc(100vw - (var(--page-gutter) * 2)));
  min-height: 39vh;
  padding: clamp(16px, 2.5vw, 36px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  border-radius: 20px;
}

.hero-inner > * {
  min-width: 0;
}

.glass-panel,
.glass-card,
.glass-pill {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.2));
  border: 1px solid var(--border);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: var(--shadow);
}

.glass-card {
  border-radius: var(--radius-lg);
  min-width: 0;
}

.eyebrow,
.section-kicker,
.timeline-date {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--muted);
}

h1,
 h2,
 h3,
 p {
  margin: 0;
}

h1 {
  font-size: clamp(1.7rem, 4.5vw, 3.5rem);
  line-height: 0.94;
  max-width: 9ch;
  overflow-wrap: anywhere;
}

.hero-copy {
  font-size: clamp(0.98rem, 1.9vw, 1.08rem);
  line-height: 1.7;
  max-width: 42rem;
  color: #1f3656;
}

.hero-link {
  width: fit-content;
  max-width: 100%;
  margin-top: 0;
  padding: 10px 16px;
  border-radius: 999px;
  text-decoration: none;
  background: rgba(12, 77, 142, 0.9);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 8px 20px rgba(12, 77, 142, 0.22);
}

.section {
  width: var(--section-width);
  margin: 0 auto;
  padding: 56px 0;
}

.section-heading {
  display: grid;
  gap: 10px;
  margin-bottom: 28px;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.contact-section {
  display: block;
}

.contact-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.contact-card,
.project-card,
.education-card,
.skills-feature,
.timeline-card {
  padding: 24px;
}

.contact-card h3,
.project-card h3,
.education-card h3,
.skills-feature h3,
.timeline-card h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.contact-card p,
.project-card p,
.education-card p,
.skills-feature p,
.timeline-card p {
  color: #243b59;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.contact-card a,
.project-card a,
.footer-contact a {
  text-decoration: none;
  overflow-wrap: anywhere;
}

.experience-timeline {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) minmax(220px, 1fr);
  grid-template-rows: auto auto;
  gap: 28px 72px;
  align-items: center;
  min-height: 480px;
  padding: 20px 0;
}

.timeline-arrows {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.timeline-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.timeline-path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.timeline-path-glow {
  stroke: rgba(255, 255, 255, 0.34);
  stroke-width: 24;
  filter: url(#timeline-glass-blur);
}

.timeline-path-core {
  stroke: rgba(124, 196, 255, 0.92);
  stroke-width: 8;
}

.timeline-source,
.timeline-target-main,
.timeline-target-branch,
.timeline-target-future {
  position: relative;
  z-index: 1;
}

.timeline-card,
.education-card {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.education-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.timeline-card:hover,
.timeline-card:focus-visible,
.education-card:hover,
.education-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 28px 90px rgba(18, 47, 84, 0.2);
  border-color: rgba(166, 222, 255, 0.88);
  outline: none;
}

.timeline-source {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: center;
}

.timeline-target-main {
  grid-column: 2;
  grid-row: 1;
}

.timeline-target-branch {
  grid-column: 2;
  grid-row: 2;
}

.timeline-target-future {
  grid-column: 3;
  grid-row: 1 / span 2;
  align-self: center;
}

.experience-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 40px);
  z-index: 30;
}

.experience-modal[hidden] {
  display: none;
}

.experience-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 17, 31, 0.48);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.experience-modal.is-visible .experience-modal-backdrop {
  opacity: 1;
}

.experience-modal-panel {
  position: relative;
  width: min(860px, calc(100vw - (var(--page-gutter) * 2)));
  min-height: min(72vh, 680px);
  padding: clamp(24px, 4vw, 40px);
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: linear-gradient(180deg, rgba(249, 253, 255, 0.95), rgba(232, 245, 255, 0.9));
  box-shadow: 0 36px 120px rgba(6, 27, 56, 0.28);
  backdrop-filter: blur(26px) saturate(155%);
  -webkit-backdrop-filter: blur(26px) saturate(155%);
  display: grid;
  gap: 24px;
  z-index: 1;
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.experience-modal.is-visible .experience-modal-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.experience-modal-close {
  justify-self: end;
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(12, 77, 142, 0.12);
  color: #0f3259;
  cursor: pointer;
}

.experience-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  border-bottom: 1px solid rgba(105, 165, 225, 0.22);
  padding-bottom: 18px;
}

.experience-modal-header h3 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.experience-modal-period {
  color: #35597f;
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}

.experience-modal-body {
  min-height: 240px;
  font-size: 1.02rem;
  line-height: 1.85;
  color: #17385b;
  white-space: pre-wrap;
}

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

.project-card {
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-card a {
  font-weight: 700;
  color: #0c4d8e;
}

.education-timeline {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 18px;
  align-items: stretch;
}

.education-arrow {
  width: 64px;
  height: 4px;
  align-self: center;
  background: linear-gradient(90deg, rgba(95, 164, 255, 0.9), rgba(95, 164, 255, 0.5));
  position: relative;
  border-radius: 999px;
}

.education-arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 14px;
  height: 14px;
  border-top: 4px solid rgba(95, 164, 255, 0.9);
  border-right: 4px solid rgba(95, 164, 255, 0.9);
  transform: translateY(-50%) rotate(45deg);
}

.skills-layout {
  display: grid;
  grid-template-columns: minmax(260px, 320px) 1fr;
  gap: 20px;
  align-items: start;
}

.skills-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.glass-pill {
  padding: 14px 18px;
  border-radius: 999px;
  font-weight: 700;
  color: #143b63;
}

.site-footer {
  background: #090d12;
  color: rgba(255, 255, 255, 0.94);
  padding: 36px var(--page-gutter) 48px;
  margin-top: 48px;
}

.footer-inner {
  width: var(--section-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: stretch;
}

.footer-inner p {
  color: rgba(255, 255, 255, 0.72);
  margin-top: 10px;
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

@media (max-width: 980px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .experience-timeline,
  .projects-grid,
  .education-timeline,
  .skills-layout,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .experience-timeline {
    padding: 0;
    min-height: auto;
    gap: 20px;
  }

  .timeline-arrows,
  .education-arrow {
    display: none;
  }

  .timeline-source,
  .timeline-target-main,
  .timeline-target-branch,
  .timeline-target-future {
    grid-column: 1;
    grid-row: auto;
  }

  .experience-modal-header {
    grid-template-columns: 1fr;
    display: grid;
  }

  .experience-modal-period {
    text-align: left;
    white-space: normal;
  }

  .footer-inner {
    display: grid;
    justify-items: start;
  }
}

@media (max-width: 640px) {
  :root {
    --page-gutter: 36px;
    --section-width: min(1120px, calc(100vw - (var(--page-gutter) * 2)));
  }

  .hero {
    padding: 14px var(--page-gutter);
  }

  .hero-inner {
    width: min(560px, calc(100vw - (var(--page-gutter) * 2)));
    min-height: 42vh;
    padding: 32px;
    border-radius: 20px;
  }

  .section {
    padding: 38px 0;
  }

  .experience-modal {
    padding: 18px;
  }

  .experience-modal-panel {
    width: min(100%, calc(100vw - (var(--page-gutter) * 2)));
    min-height: 60vh;
    padding: 22px;
    gap: 18px;
    border-radius: 24px;
  }

  .experience-modal-body {
    min-height: 200px;
    font-size: 0.98rem;
  }

  .contact-card,
  .project-card,
  .education-card,
  .skills-feature,
  .timeline-card {
    padding: 20px;
  }
}













