:root {
  --background: #f7f8fb;
  --surface: #ffffff;
  --surface-soft: #eef2f7;

  --text: #172033;
  --muted: #657086;

  --primary: #6957d5;
  --primary-dark: #5140ba;
  --accent: #b8aaff;

  --dark: #151927;
  --dark-soft: #20263a;

  --border: #e0e4ec;

  --max-width: 1180px;
}


* {
  box-sizing: border-box;
}


html {
  scroll-behavior: smooth;
}


body {
  margin: 0;

  background: var(--background);

  color: var(--text);

  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  line-height: 1.6;
}


img {
  max-width: 100%;
}


a {
  color: inherit;
}


.container {
  width: min(
    calc(100% - 40px),
    var(--max-width)
  );

  margin-inline: auto;
}


.skip-link {
  position: absolute;
  left: -9999px;
}


.skip-link:focus {
  left: 20px;
  top: 20px;

  z-index: 10000;

  padding: 10px 15px;

  background: white;
  color: black;
}



/* ========================================
   NAVIGATION
======================================== */

.site-header {
  position: sticky;
  top: 0;

  z-index: 1000;

  background:
    rgba(247, 248, 251, 0.94);

  backdrop-filter: blur(18px);

  border-bottom:
    1px solid rgba(0, 0, 0, 0.06);
}


.nav-container {
  min-height: 78px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 26px;
}


.brand {
  flex-shrink: 0;

  font-size: 1.2rem;
  font-weight: 850;

  text-decoration: none;

  letter-spacing: -0.03em;
}


.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;

  flex-wrap: wrap;

  gap: 24px;
}


.site-nav a {
  text-decoration: none;

  color: var(--muted);

  font-size: 0.93rem;
  font-weight: 650;
}


.site-nav a:hover {
  color: var(--primary);
}


.nav-resume {
  flex-shrink: 0;

  padding: 10px 15px;

  border-radius: 10px;

  background: var(--primary);

  color: white;

  text-decoration: none;

  font-size: 0.84rem;
  font-weight: 750;
}


.nav-resume:hover {
  background: var(--primary-dark);
}



/* ========================================
   BUTTONS
======================================== */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 14px 22px;

  border-radius: 12px;

  text-decoration: none;

  font-weight: 750;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}


.button:hover {
  transform: translateY(-2px);
}


.button-primary {
  background: var(--primary);

  color: white;

  box-shadow:
    0 14px 30px
    rgba(105, 87, 213, 0.25);
}


.button-primary:hover {
  background: var(--primary-dark);
}


.button-secondary {
  border: 1px solid var(--border);

  background: white;

  color: var(--text);
}


.button-outline {
  border:
    1px solid rgba(105, 87, 213, 0.28);

  color: var(--primary);
}



/* ========================================
   HERO
======================================== */

.hero {
  padding: 90px 0 110px;

  overflow: hidden;
}


.hero-grid {
  display: grid;

  grid-template-columns:
    1.15fr 0.85fr;

  gap: 80px;

  align-items: center;
}


.eyebrow {
  display: inline-block;

  padding: 8px 14px;

  border:
    1px solid #ded9ff;

  border-radius: 999px;

  background: #f0edff;

  color: var(--primary);

  font-size: 0.78rem;
  font-weight: 800;

  letter-spacing: 0.08em;

  text-transform: uppercase;
}


.hero h1 {
  max-width: 750px;

  margin:
    25px 0 22px;

  font-size:
    clamp(3.2rem, 6vw, 6rem);

  line-height: 0.98;

  letter-spacing: -0.065em;
}


.hero h1 span {
  color: var(--primary);
}


.hero-intro {
  max-width: 690px;

  color: var(--muted);

  font-size: 1.18rem;

  line-height: 1.8;
}


.hero-actions {
  display: flex;

  flex-wrap: wrap;

  gap: 14px;

  margin-top: 32px;
}


.hero-tags {
  display: flex;

  flex-wrap: wrap;

  gap: 10px;

  margin-top: 38px;
}


.hero-tags span {
  padding: 7px 12px;

  border-radius: 999px;

  background: white;

  border:
    1px solid var(--border);

  color: var(--muted);

  font-size: 0.84rem;
  font-weight: 650;
}



/* ========================================
   HERO PHOTO
======================================== */

.hero-photo-wrap {
  position: relative;

  width:
    min(100%, 440px);

  margin-inline: auto;
}


.photo-background {
  position: absolute;

  inset:
    7% -6% -4% 8%;

  border-radius: 34px;

  background:
    linear-gradient(
      145deg,
      var(--primary),
      #9887f6
    );

  transform: rotate(4deg);
}


.hero-photo {
  position: relative;

  width: 100%;

  min-height: 520px;
  max-height: 570px;

  object-fit: cover;
  object-position: center top;

  display: block;

  border-radius: 32px;

  box-shadow:
    0 30px 80px
    rgba(27, 31, 50, 0.18);
}


.photo-label {
  position: absolute;

  right: -24px;
  bottom: 30px;

  display: flex;
  flex-direction: column;

  min-width: 220px;

  padding: 16px 20px;

  border-radius: 16px;

  background:
    rgba(255, 255, 255, 0.93);

  backdrop-filter:
    blur(14px);

  box-shadow:
    0 18px 40px
    rgba(0, 0, 0, 0.15);
}


.photo-label strong {
  font-size: 0.95rem;
}


.photo-label span {
  margin-top: 3px;

  color: var(--muted);

  font-size: 0.82rem;
}



/* ========================================
   GLOBAL SECTIONS
======================================== */

.section {
  padding:
    105px 0;
}


.section-soft {
  background:
    var(--surface-soft);
}


.section-heading {
  display: grid;

  grid-template-columns:
    60px 1fr;

  gap: 20px;

  align-items: start;

  margin-bottom: 55px;
}


.section-number {
  color: var(--primary);

  font-size: 0.9rem;
  font-weight: 800;
}


.section-label {
  margin:
    0 0 8px;

  color: var(--primary);

  font-size: 0.78rem;
  font-weight: 800;

  letter-spacing: 0.12em;

  text-transform: uppercase;
}


.section-heading h2 {
  margin: 0;

  max-width: 700px;

  font-size:
    clamp(2.1rem, 4vw, 3.4rem);

  line-height: 1.07;

  letter-spacing: -0.045em;
}



/* ========================================
   ABOUT
======================================== */

.about-grid {
  display: grid;

  grid-template-columns:
    1.25fr 0.75fr;

  gap: 70px;
}


.about-copy {
  max-width: 760px;
}


.about-copy p {
  color: var(--muted);

  font-size: 1.05rem;

  line-height: 1.85;
}


.about-copy .large-copy {
  margin-top: 0;

  color: var(--text);

  font-size: 1.45rem;

  line-height: 1.55;

  font-weight: 550;
}


.text-link {
  display: inline-block;

  margin-top: 15px;

  color: var(--primary);

  text-decoration: none;

  font-weight: 750;
}


.text-link:hover {
  text-decoration: underline;
}


.about-card {
  align-self: start;

  padding: 32px;

  border-radius: 22px;

  background: var(--dark);

  color: white;

  box-shadow:
    0 24px 50px
    rgba(21, 25, 39, 0.15);
}


.about-card .card-label {
  margin:
    0 0 9px;

  color: var(--accent);

  font-size: 0.75rem;
  font-weight: 800;

  letter-spacing: 0.1em;

  text-transform: uppercase;
}


.about-card h3 {
  margin:
    0 0 8px;

  font-size: 1.4rem;
}


.about-card p {
  color: #c6cbda;
}


.about-card-divider {
  height: 1px;

  margin: 25px 0;

  background: #363d53;
}



/* ========================================
   SKILLS
======================================== */

.skills-grid {
  display: grid;

  grid-template-columns:
    repeat(2, 1fr);

  gap: 22px;
}


.skill-card {
  padding: 32px;

  border-radius: 22px;

  background: white;

  border:
    1px solid var(--border);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}


.skill-card:hover {
  transform:
    translateY(-5px);

  box-shadow:
    0 20px 45px
    rgba(19, 26, 44, 0.08);
}


.skill-icon {
  width: 54px;
  height: 54px;

  display: grid;

  place-items: center;

  margin-bottom: 24px;

  border-radius: 14px;

  background: #f0edff;

  color: var(--primary);

  font-weight: 900;
}


.skill-card h3 {
  margin:
    0 0 10px;

  font-size: 1.35rem;
}


.skill-card p {
  color: var(--muted);
}


.skill-tags,
.project-meta {
  display: flex;

  flex-wrap: wrap;

  gap: 8px;

  margin-top: 20px;
}


.skill-tags span,
.project-meta span {
  padding:
    6px 10px;

  border-radius: 8px;

  background: #f3f4f7;

  color: #555f73;

  font-size: 0.78rem;
  font-weight: 650;
}



/* ========================================
   PROJECTS
======================================== */

.projects-grid {
  display: grid;

  grid-template-columns:
    repeat(2, 1fr);

  gap: 25px;
}


.project-card {
  overflow: hidden;

  border-radius: 24px;

  background: white;

  border:
    1px solid var(--border);

  box-shadow:
    0 14px 35px
    rgba(19, 26, 44, 0.05);
}


.project-featured {
  grid-column:
    span 2;

  display: grid;

  grid-template-columns:
    1fr 1fr;
}


.project-image {
  position: relative;

  min-height: 280px;

  background:
    linear-gradient(
      145deg,
      #e8e4ff,
      #d8e7ff
    );

  overflow: hidden;
}


.project-featured
.project-image {
  min-height: 430px;
}


.project-image img {
  width: 100%;
  height: 100%;

  min-height: inherit;

  display: block;

  object-fit: cover;
}


.project-image-contain {
  background: #222222;

  display: flex;

  align-items: center;
  justify-content: center;
}


.project-image-contain img {
  object-fit: contain;

  width: 100%;
  height: 100%;

  padding: 20px;
}


.project-status {
  position: absolute;

  left: 20px;
  top: 20px;

  padding:
    8px 12px;

  border-radius: 999px;

  background: var(--primary);

  color: white;

  font-size: 0.75rem;
  font-weight: 800;
}


.project-content {
  padding: 32px;
}


.project-featured
.project-content {
  display: flex;

  flex-direction: column;

  justify-content: center;

  padding: 45px;
}


.project-date {
  margin:
    0 0 14px;

  color: var(--primary);

  font-size: 0.8rem;
  font-weight: 800;

  letter-spacing: 0.04em;

  text-transform: uppercase;
}


.project-content h3 {
  margin: 0;

  font-size: 1.8rem;

  letter-spacing: -0.025em;
}


.project-content h4 {
  margin:
    8px 0 18px;

  font-size: 1.05rem;
}


.project-content p {
  color: var(--muted);
}



/* ========================================
   EDUCATION
======================================== */

.section-dark {
  background: var(--dark);

  color: white;
}


.light-heading h2 {
  color: white;
}


.timeline {
  position: relative;

  margin-left: 12px;

  padding-left: 45px;

  border-left:
    1px solid #394056;
}


.timeline-item {
  position: relative;

  max-width: 750px;

  padding:
    0 0 55px;
}


.timeline-item:last-child {
  padding-bottom: 0;
}


.timeline-dot {
  position: absolute;

  left: -52px;
  top: 5px;

  width: 13px;
  height: 13px;

  border-radius: 50%;

  background: var(--accent);

  box-shadow:
    0 0 0 8px
    rgba(184, 170, 255, 0.1);
}


.timeline-date {
  color: var(--accent);

  font-size: 0.8rem;
  font-weight: 800;
}


.timeline-item h3 {
  margin:
    8px 0 5px;

  font-size: 1.5rem;
}


.timeline-item > p:last-child {
  margin: 0;

  color: #b6bdce;
}



/* ========================================
   ACHIEVEMENTS
======================================== */

.achievement-grid {
  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 22px;
}


.achievement-card {
  min-height: 230px;

  padding: 30px;

  border-radius: 22px;

  background: white;

  border:
    1px solid var(--border);
}


.achievement-number {
  display: block;

  margin-bottom: 35px;

  color: var(--primary);

  font-size: 0.8rem;
  font-weight: 900;
}


.achievement-card h3 {
  font-size: 1.25rem;
}


.achievement-card p {
  color: var(--muted);
}



/* ========================================
   RESUME
======================================== */

.resume-section {
  padding:
    30px 0 105px;
}


.resume-banner {
  display: grid;

  grid-template-columns:
    1fr auto;

  gap: 40px;

  align-items: center;

  padding: 45px;

  border-radius: 26px;

  background:
    linear-gradient(
      135deg,
      #eeeaff,
      #e6efff
    );

  border:
    1px solid #ddd8ff;
}


.resume-banner h2 {
  margin:
    5px 0 10px;

  font-size:
    clamp(2rem, 4vw, 3rem);

  letter-spacing: -0.04em;
}


.resume-banner p {
  max-width: 720px;

  margin-bottom: 0;

  color: var(--muted);
}


.resume-button {
  white-space: nowrap;
}



/* ========================================
   CONTACT
======================================== */

.contact-section {
  padding:
    110px 0;

  background:
    linear-gradient(
      135deg,
      #ece8ff,
      #e7f1ff
    );
}


.contact-grid {
  display: grid;

  grid-template-columns:
    1fr 0.8fr;

  gap: 80px;

  align-items: center;
}


.contact-section h2 {
  max-width: 650px;

  margin:
    8px 0 20px;

  font-size:
    clamp(2.6rem, 5vw, 4.5rem);

  line-height: 1;

  letter-spacing: -0.055em;
}


.contact-intro {
  max-width: 650px;

  color: var(--muted);

  font-size: 1.08rem;
}


.contact-card {
  padding: 35px;

  border-radius: 24px;

  background: white;

  box-shadow:
    0 25px 55px
    rgba(27, 31, 50, 0.12);
}


.contact-item {
  padding:
    18px 0;

  border-bottom:
    1px solid var(--border);
}


.contact-item:first-child {
  padding-top: 0;
}


.contact-item span {
  display: block;

  margin-bottom: 5px;

  color: var(--muted);

  font-size: 0.75rem;
  font-weight: 800;

  letter-spacing: 0.07em;

  text-transform: uppercase;
}


.contact-item a {
  text-decoration: none;

  font-weight: 700;
}


.contact-item a:hover {
  color: var(--primary);
}


.contact-item p {
  margin: 0;

  font-weight: 700;
}


.contact-button {
  width: 100%;

  margin-top: 18px;
}



/* ========================================
   FOOTER
======================================== */

.site-footer {
  padding:
    28px 0;

  background: var(--dark);

  color: white;
}


.footer-inner {
  display: flex;

  justify-content: space-between;

  align-items: center;

  gap: 20px;

  color: #aeb6c9;

  font-size: 0.88rem;
}


.footer-links {
  display: flex;

  gap: 20px;
}


.footer-inner a {
  color: white;

  text-decoration: none;
}



/* ========================================
   RESPONSIVE
======================================== */

@media (max-width: 1050px) {

  .nav-resume {
    display: none;
  }

}


@media (max-width: 900px) {

  .site-nav {
    display: none;
  }


  .hero {
    padding-top: 60px;
  }


  .hero-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }


  .hero-grid {
    gap: 55px;
  }


  .hero-photo-wrap {
    width:
      min(85%, 400px);
  }


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


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


  .project-featured {
    grid-column: auto;

    grid-template-columns: 1fr;
  }


  .project-featured
  .project-image {
    min-height: 320px;
  }


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


  .resume-banner {
    grid-template-columns: 1fr;
  }


  .resume-button {
    width: fit-content;
  }

}


@media (max-width: 600px) {

  .container {
    width:
      min(
        calc(100% - 28px),
        var(--max-width)
      );
  }


  .nav-container {
    min-height: 66px;
  }


  .hero {
    padding:
      45px 0 80px;
  }


  .hero h1 {
    font-size:
      clamp(3rem, 16vw, 4.5rem);
  }


  .hero-actions {
    flex-direction: column;
  }


  .hero-actions .button {
    width: 100%;
  }


  .hero-photo {
    min-height: 410px;
  }


  .photo-label {
    right: 10px;
    bottom: 20px;
  }


  .section {
    padding:
      80px 0;
  }


  .section-heading {
    grid-template-columns: 1fr;

    gap: 8px;
  }


  .skill-card,
  .project-content,
  .about-card,
  .achievement-card {
    padding: 24px;
  }


  .project-featured
  .project-content {
    padding: 28px;
  }


  .resume-section {
    padding:
      10px 0 80px;
  }


  .resume-banner {
    padding: 28px;
  }


  .resume-button {
    width: 100%;
  }


  .contact-section {
    padding:
      80px 0;
  }


  .contact-card {
    padding: 25px;
  }


  .footer-inner {
    flex-direction: column;

    align-items: flex-start;
  }

}