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

:root {
  --navy: #08245b;
  --navy-deep: #061943;
  --blue: #0868e8;
  --blue-2: #168bff;
  --cyan: #27c5f4;
  --sky: #eaf5ff;
  --ink: #102b5c;
  --muted: #526b91;
  --line: rgba(24, 112, 226, .18);
  --white: #fff;
  --shadow: 0 14px 38px rgba(21, 88, 174, .12);
  --radius: 22px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--ink);
  line-height: 1.7;
  overflow-x: hidden;
  background: linear-gradient(135deg, #f7fbff 0%, #eaf4ff 48%, #dceeff 100%);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 8% 8%, rgba(39, 197, 244, .17), transparent 25%),
    radial-gradient(circle at 92% 24%, rgba(8, 104, 232, .12), transparent 28%);
}

a { color: inherit; }

::selection {
  color: white;
  background: #168bff;
}

::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-track { background: #e5f1ff; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(#168bff, #0756c8);
  border-radius: 20px;
}

/* NAVIGATION */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(18, 102, 213, .14);
  box-shadow: 0 5px 22px rgba(16, 76, 151, .06);
}

header nav {
  max-width: 1400px;
  margin: auto;
  padding: 14px 34px;
}

header nav ul {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(14px, 2.2vw, 32px);
  list-style: none;
  flex-wrap: wrap;
}

header nav a {
  position: relative;
  text-decoration: none;
  color: #193b70;
  font-size: .88rem;
  font-weight: 700;
  transition: .25s;
}

header nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -9px;
  width: 0;
  height: 3px;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  transition: .25s;
}

header nav a:hover { color: var(--blue); }
header nav a:hover::after { width: 100%; }

/* GENERAL SECTION */
section {
  padding: 88px max(7vw, 24px);
}

.content-section {
  max-width: 1500px;
  margin: auto;
}

.content-section h2,
#about h2 {
  font: 800 clamp(2rem, 4vw, 3rem)/1.2 'Manrope', sans-serif;
  letter-spacing: -.045em;
  color: var(--navy);
  margin: 12px 0 38px;
}

.content-section h2::after,
#about h2::after {
  content: '';
  display: block;
  width: 66px;
  height: 4px;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  margin-top: 15px;
}

.section-kicker,
.item-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #0874e9;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

/* HERO */
#home,
.hero-section {
  min-height: 660px;
  padding: 95px max(8vw, 26px) 82px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    115deg,
    #f9fcff 0%,
    #d9edff 43%,
    #91caff 75%,
    #1979e8 100%
  );
}

#home::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 76% 50%, rgba(255,255,255,.75), transparent 29%),
    linear-gradient(120deg, transparent 53%, rgba(255,255,255,.22) 53.2%, transparent 68%);
}

#home::after {
  content: '';
  position: absolute;
  width: 620px;
  height: 620px;
  right: -140px;
  top: -220px;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 50%;
  box-shadow:
    0 0 0 45px rgba(255,255,255,.08),
    0 0 0 100px rgba(255,255,255,.06);
}

.hero-content {
  max-width: 760px;
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #075dc9;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .13em;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #16bd89;
  box-shadow: 0 0 0 5px rgba(22,189,137,.14);
}

#home h1 {
  max-width: 850px;
  margin: 24px 0 17px;
  color: #08265e;
  font: 800 clamp(3rem, 6.2vw, 5.6rem)/1.04 'Manrope', sans-serif;
  letter-spacing: -.065em;
}

#home h1 span {
  color: #0878ed;
  background: linear-gradient(90deg, #0878ed, #19b9ed);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-name {
  color: #12386f;
  font-size: 1.18rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.hero-summary {
  max-width: 640px;
  color: #365780;
  font-size: 1.04rem;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  gap: 13px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 21px;
  border-radius: 999px;
  text-decoration: none;
  font-size: .9rem;
  font-weight: 800;
  transition: .25s;
}

.btn-primary {
  color: white;
  background: linear-gradient(110deg, #0874ef, #12b5ec);
  box-shadow: 0 10px 24px rgba(8,116,239,.25);
}

.btn-secondary {
  color: #075ac6;
  border: 1.5px solid #1684ed;
  background: rgba(255,255,255,.55);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 13px 27px rgba(8,104,232,.22);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 30px;
}

.hero-tags span {
  padding: 6px 13px;
  color: #0757b8;
  background: rgba(255,255,255,.58);
  border: 1px solid rgba(8,104,232,.17);
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
}

.hero-orbit {
  position: absolute;
  width: min(38vw, 470px);
  height: min(38vw, 470px);
  right: 8%;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  z-index: 1;
}

.orbit {
  position: absolute;
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 50%;
  transform: rotate(-25deg);
}

.orbit-one { width: 100%; height: 58%; }
.orbit-two {
  width: 70%;
  height: 100%;
  transform: rotate(35deg);
}

.orbit-core {
  width: 142px;
  height: 142px;
  border-radius: 38px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #0876e9, #25c7ed);
  border: 1px solid rgba(255,255,255,.75);
  box-shadow: 0 20px 55px rgba(4,78,171,.28);
  color: white;
  font: 800 2.3rem 'Manrope';
  transform: rotate(-8deg);
}

.orbit-core span { color: #d7fbff; }

.orbit-node {
  position: absolute;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 0 20px #fff;
}

.node-one { top: 13%; left: 22%; }
.node-two { right: 8%; top: 48%; background: #ffcf58; }
.node-three { bottom: 13%; left: 42%; background: #44e0c3; }

.scroll-cue {
  position: absolute;
  bottom: 24px;
  left: max(8vw, 24px);
  color: #28649e;
  font-size: .67rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-decoration: none;
  z-index: 2;
}

.scroll-cue span {
  padding-left: 10px;
  color: #0878ed;
}

/* ABOUT */
#about {
  max-width: 1450px;
  margin: -35px auto 28px;
  padding: 36px;
  position: relative;
  z-index: 3;
  border: 1px solid rgba(255,255,255,.95);
  border-radius: 25px;
  background: linear-gradient(120deg, rgba(255,255,255,.96), rgba(228,243,255,.94));
  box-shadow: var(--shadow);
}

.about-content {
  max-width: 1250px;
  margin: auto;
  display: grid;
  grid-template-columns: minmax(0,1.35fr) minmax(230px,.65fr);
  align-items: center;
  gap: 55px;
}

#about h2 {
  margin: 0 0 20px;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

#about h2::after { margin-top: 12px; }

.about-text p {
  white-space: pre-line;
  color: #3d5b83;
  font-size: .98rem;
  line-height: 1.85;
}

.about-image {
  justify-self: center;
  position: relative;
}

.about-image::before {
  content: '';
  position: absolute;
  inset: -9px;
  border-radius: 24px;
  border: 2px solid rgba(8,104,232,.28);
  transform: rotate(4deg);
}

.about-image img {
  display: block;
  width: 270px;
  height: 330px;
  object-fit: cover;
  border-radius: 19px;
  position: relative;
  border: 4px solid white;
  box-shadow: 0 15px 35px rgba(18,82,159,.18);
}

/* EXPERIENCE */
#experience { padding-top: 75px; }

#experience h3:not(.experience-text h3) {
  font: 800 1.2rem 'Manrope', sans-serif;
  color: #0a397d;
  margin: 32px 0 17px;
}

.experience-container {
  display: grid;
  gap: 15px;
  margin: 20px 0 38px;
}

.experience-item {
  display: grid;
  grid-template-columns: 190px minmax(0,1fr);
  gap: 25px;
  align-items: start;
  padding: 22px;
  border: 1px solid rgba(22,116,224,.16);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255,255,255,.97), rgba(232,244,255,.94));
  box-shadow: 0 8px 24px rgba(23,93,173,.07);
  transition: transform .25s, border-color .25s, box-shadow .25s;
  cursor: pointer;
}

.experience-item:hover,
.experience-item.active {
  transform: translateY(-3px);
  border-color: rgba(8,116,239,.42);
  box-shadow: 0 15px 32px rgba(23,93,173,.13);
}

.experience-item img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(8,104,232,.13);
}

.experience-text h3 {
  color: #102f65;
  font: 800 1.05rem/1.45 'Manrope', sans-serif;
  margin: 3px 0 7px;
}

.experience-text > p {
  color: #0875df;
  font-size: .86rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.experience-text ul {
  padding-left: 19px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .45s ease, opacity .3s ease;
}

.experience-item.active .experience-text ul {
  max-height: 1000px;
  opacity: 1;
  margin-top: 12px;
}

.experience-text li {
  color: #526b91;
  font-size: .9rem;
  margin: 0 0 9px;
  line-height: 1.75;
}

.featured-experience {
  border-color: rgba(8,116,239,.4);
  background: linear-gradient(120deg, #e4f3ff, #fff 72%);
}

.experience-logo {
  width: 100%;
  height: 160px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #0874e8, #24bde9);
  font: 800 2.8rem 'Manrope';
  letter-spacing: -.08em;
  color: white;
  border: 1px solid rgba(255,255,255,.7);
}

.item-kicker {
  font-size: .63rem;
  color: #0784e8;
}

/* PROJECTS */
#projects {
  background: linear-gradient(135deg, #e8f4ff 0%, #d8ebff 50%, #f5fbff 100%);
  border-top: 1px solid rgba(8,104,232,.12);
  border-bottom: 1px solid rgba(8,104,232,.12);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 18px;
}

.project-card {
  min-height: 230px;
  padding: 25px;
  border-radius: 21px;
  border: 1px solid rgba(255,255,255,.22);
  color: white;
  background: linear-gradient(135deg, #08265f 0%, #0757b9 55%, #087fe7 100%);
  box-shadow: 0 14px 30px rgba(8,73,153,.17);
  cursor: pointer;
  transition: .28s;
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  right: -80px;
  top: -95px;
  background: rgba(91,222,255,.24);
  filter: blur(4px);
}

.project-card::after {
  content: '';
  position: absolute;
  width: 160px;
  height: 160px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 50%;
  right: -50px;
  bottom: -105px;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 42px rgba(8,73,153,.25);
}

.project-card h3 {
  position: relative;
  z-index: 1;
  text-align: left;
  font: 800 1.08rem/1.45 'Manrope', sans-serif;
  color: white;
  margin: 16px 0 9px;
}

.project-card p {
  position: relative;
  z-index: 1;
  color: #e2f2ff;
  font-size: .88rem;
}

.project-number {
  position: relative;
  z-index: 1;
  font-size: .66rem;
  letter-spacing: .15em;
  color: #8deaff;
  font-weight: 800;
}

.project-icon {
  position: relative;
  z-index: 1;
  font-size: 2rem;
  color: #7ce7ff;
  margin-top: 10px;
}

.project-link {
  position: relative;
  z-index: 1;
  display: inline-block;
  margin-top: 16px;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: .83rem;
  border-bottom: 1px solid rgba(255,255,255,.65);
}

.featured-project {
  background: linear-gradient(135deg, #061b49 0%, #0757b9 60%, #14a7dc 100%);
}

.project-view {
  display: none;
  margin-top: 28px;
  padding: 30px;
  border: 1px solid rgba(8,104,232,.18);
  border-radius: 22px;
  background: white;
  box-shadow: var(--shadow);
}

.project-view img {
  width: 100%;
  max-width: 900px;
  max-height: 480px;
  object-fit: contain;
  display: block;
  margin: auto;
  border-radius: 14px;
}

.project-view h3 {
  text-align: center;
  font: 800 1.6rem 'Manrope';
  color: var(--navy);
  margin: 20px 0 10px;
}

.project-view p {
  max-width: 850px;
  margin: auto;
  color: var(--muted);
  text-align: center;
}

/* SKILLS */
#skills {
  background: linear-gradient(135deg, #f8fcff, #e6f3ff);
}

.skills {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
}

.skills .skills {
  width: 112px;
  height: 112px;
  padding: 17px;
  border: 1px solid rgba(8,104,232,.14);
  border-radius: 20px;
  background: linear-gradient(145deg, #fff, #e8f4ff);
  box-shadow: 0 7px 20px rgba(22,91,165,.07);
  transition: .25s;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

.skills .skills img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.skills .skills:hover,
.skill-text-card:hover {
  transform: translateY(-6px);
  border-color: rgba(8,116,239,.5);
  background: linear-gradient(145deg, #fff, #d8edff);
  box-shadow: 0 13px 26px rgba(28,100,183,.15);
}

.skill-text-card {
  width: 112px;
  height: 112px;
  padding: 10px;
  border: 1px solid rgba(8,104,232,.15);
  border-radius: 20px;
  background: linear-gradient(145deg, #fff, #e7f3ff);
  color: #0756b7;
  font: 800 1rem 'Manrope';
  cursor: pointer;
  transition: .25s;
  box-shadow: 0 7px 20px rgba(22,91,165,.07);
}

.skill-description,
.award-description {
  display: none;
  margin-top: 27px;
  padding: 25px 29px;
  border: 1px solid rgba(8,104,232,.17);
  border-radius: 18px;
  background: white;
  box-shadow: var(--shadow);
  animation: fadeIn .25s ease;
}

.skill-description h3,
.award-description h3 {
  font: 800 1.15rem 'Manrope';
  margin-bottom: 8px;
  color: var(--navy);
}

.skill-description p,
.award-description p {
  color: var(--muted);
}

/* AWARDS */
#honors-awards {
  background: linear-gradient(135deg, #e3f1ff, #f8fcff 58%, #d9edff);
}

.awards {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 16px;
}

.award {
  width: 132px;
  height: 132px;
  padding: 7px;
  border: 1px solid rgba(8,104,232,.18);
  border-radius: 17px;
  overflow: hidden;
  background: white;
  box-shadow: 0 8px 22px rgba(20,85,160,.1);
  cursor: pointer;
  transition: .25s;
}

.award img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 11px;
}

.award:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: rgba(8,116,239,.55);
  box-shadow: 0 15px 28px rgba(20,85,160,.17);
}

/* FOOTER */
footer {
  text-align: center;
  padding: 30px 20px;
  color: #dceeff;
  font-size: .84rem;
  background: linear-gradient(110deg, #061943, #0755ad 65%, #0789d9);
  border-top: 3px solid #24c4ed;
}

/* ANIMATION */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* TABLET */
@media (max-width: 900px) {
  .hero-orbit {
    right: -8%;
    opacity: .42;
  }

  .hero-content { max-width: 680px; }
  .about-content { gap: 35px; }

  .experience-item {
    grid-template-columns: 150px minmax(0,1fr);
  }

  .experience-item img,
  .experience-logo {
    height: 140px;
  }
}

/* MOBILE */
@media (max-width: 640px) {
  header nav { padding: 12px 14px; }

  header nav ul {
    gap: 10px 16px;
  }

  header nav a { font-size: .76rem; }

  section { padding: 68px 20px; }

  #home {
    min-height: 650px;
    padding: 75px 23px 75px;
  }

  #home h1 {
    font-size: clamp(2.65rem, 12vw, 4rem);
  }

  .hero-orbit {
    width: 270px;
    height: 270px;
    right: -115px;
    top: 65%;
    opacity: .2;
  }

  .hero-summary { font-size: .95rem; }

  .hero-actions { gap: 10px; }

  .btn {
    padding: 11px 15px;
    font-size: .82rem;
  }

  .scroll-cue { left: 23px; }

  #about {
    margin: -20px 12px 20px;
    padding: 23px;
    border-radius: 18px;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .about-text p { font-size: .92rem; }

  .about-image img {
    width: 225px;
    height: 275px;
  }

  .content-section h2,
  #about h2 {
    margin-bottom: 30px;
  }

  .experience-item {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 17px;
  }

  .experience-item img,
  .experience-logo {
    width: 100%;
    height: 185px;
  }

  .experience-text h3 { font-size: .98rem; }
  .experience-text li { font-size: .86rem; }

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

  .project-card {
    min-height: 205px;
    padding: 22px;
  }

  .skills .skills,
  .skill-text-card {
    width: 88px;
    height: 88px;
    padding: 13px;
  }

  .award {
    width: 105px;
    height: 105px;
  }

  .skill-description,
  .award-description {
    padding: 19px;
  }
}

/* ACCESSIBILITY */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
