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

:root {
  --bg: #1d1e21;
  --bg-soft: #222327;

  --card: #25262b;
  --card-hover: #2a2b31;

  --text: #f7f7f8;
  --muted: #aaaab0;
  --muted-dark: #77777f;

  --border: #37383f;
  --border-light: #46474f;

  --accent: #7a76ff;
  --accent-soft: rgba(122, 118, 255, 0.13);

  --white: #ffffff;
}


/* RESET */

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


html {
  scroll-behavior: smooth;
}


body {
  min-height: 100vh;

  background:
    radial-gradient(
      circle at 72% 14%,
      rgba(122, 118, 255, 0.055),
      transparent 27%
    ),
    var(--bg);

  color: var(--text);

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

  -webkit-font-smoothing: antialiased;
}


a {
  color: inherit;
  text-decoration: none;
}


::selection {
  background: var(--accent);
  color: white;
}



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

.hero-section {
  width: min(1450px, calc(100% - 48px));
  min-height: 100vh;

  margin: 0 auto;
  padding: 26px 0 20px;

  display: grid;

  grid-template-columns:
    minmax(280px, 0.86fr)
    minmax(420px, 1.4fr);

  gap: clamp(50px, 7vw, 110px);

  align-items: center;
}



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

.hero-left {
  min-width: 0;
  height: 100vh;

  display: flex;
  align-items: flex-end;
  justify-content: center;
}


.hero-image-wrap {
  width: 100%;
  max-width: 500px;

  height: min(86vh, 820px);

  position: relative;
  overflow: hidden;
}


.hero-image {
  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: 45% 12%;

  display: block;

  transform: scale(1.08);
  transform-origin: center 38%;
}



/* SIDE FADE */

.hero-image-wrap::before {
  content: "";

  position: absolute;
  inset: 0;

  z-index: 2;

  pointer-events: none;

  background:
    linear-gradient(
      to right,
      var(--bg) 0%,
      rgba(29, 30, 33, 0.58) 3%,
      rgba(29, 30, 33, 0.15) 9%,
      transparent 16%,
      transparent 84%,
      rgba(29, 30, 33, 0.15) 92%,
      rgba(29, 30, 33, 0.58) 97%,
      var(--bg) 100%
    );
}



/* BOTTOM FADE */

.hero-image-wrap::after {
  content: "";

  position: absolute;

  left: 0;
  right: 0;
  bottom: 0;

  height: 210px;

  z-index: 3;

  pointer-events: none;

  background:
    linear-gradient(
      to bottom,
      transparent 0%,
      rgba(29, 30, 33, 0.08) 25%,
      rgba(29, 30, 33, 0.38) 55%,
      rgba(29, 30, 33, 0.78) 82%,
      var(--bg) 100%
    );
}



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

.hero-right {
  width: 100%;
  min-width: 0;

  max-width: 850px;

  padding: 30px 0 55px;
}



/* ==============================
   AVAILABILITY BADGE
============================== */

.availability-badge {
  width: fit-content;

  margin-bottom: 23px;

  padding: 8px 13px;

  display: inline-flex;
  align-items: center;

  gap: 8px;

  border: 1px solid rgba(122, 118, 255, 0.25);
  border-radius: 999px;

  background: rgba(122, 118, 255, 0.07);

  color: #c9c7ff;

  font-size: 0.77rem;
  font-weight: 600;

  letter-spacing: 0.01em;
}


.availability-dot {
  width: 7px;
  height: 7px;

  border-radius: 50%;

  background: #8b87ff;

  box-shadow:
    0 0 0 4px rgba(122, 118, 255, 0.12);
}



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

.hero-right h1 {
  margin-bottom: 15px;

  color: var(--text);

  font-size: clamp(3.4rem, 5vw, 5.35rem);
  font-weight: 800;

  line-height: 0.98;

  letter-spacing: -0.065em;
}


.name-highlight {
  color: var(--white);
}



/* ==============================
   ROLE LINE
============================== */

.hero-role {
  margin-bottom: 34px;

  display: flex;
  flex-wrap: wrap;

  gap: 8px;

  color: #8f8f96;

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


.hero-role span {
  color: var(--accent);
}



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

.hero-description {
  max-width: 820px;

  margin-bottom: 23px;

  color: var(--muted);

  font-size: clamp(1rem, 1.32vw, 1.25rem);

  font-weight: 400;

  line-height: 1.72;

  letter-spacing: -0.012em;
}


.hero-description strong {
  color: #f3f3f4;

  font-weight: 700;
}



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

.hero-skills {
  margin-top: 29px;

  display: flex;
  flex-wrap: wrap;

  gap: 9px;
}


.hero-skills span {
  padding: 8px 11px;

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

  border: 1px solid #393a41;

  border-radius: 6px;

  color: #c8c8cc;

  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    "Liberation Mono",
    monospace;

  font-size: 0.76rem;

  font-weight: 600;

  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}


.hero-skills span:hover {
  color: white;

  border-color: rgba(122, 118, 255, 0.55);

  background: var(--accent-soft);

  transform: translateY(-2px);
}



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

.hero-actions {
  margin-top: 37px;

  display: flex;
  align-items: center;
  flex-wrap: wrap;

  gap: 12px;
}



/* ==============================
   VIEW PROJECTS BUTTON
============================== */

.primary-button {
  min-height: 52px;

  padding: 0 20px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 10px;

  background: #f4f4f5;

  color: #1d1e21;

  border: 1px solid #f4f4f5;

  border-radius: 9px;

  font-size: 0.96rem;
  font-weight: 750;

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


.primary-button svg {
  width: 18px;
  height: 18px;

  transition: transform 0.2s ease;
}


.primary-button:hover {
  background: white;

  transform: translateY(-3px);

  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.28);
}


.primary-button:hover svg {
  transform: translate(2px, -2px);
}



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

.social-button {
  width: 52px;
  height: 52px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 1px solid #3b3c43;

  border-radius: 9px;

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

  color: #dddddf;

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


.social-button svg {
  width: 24px;
  height: 24px;
}


.social-button:hover {
  color: white;

  background: #292a2f;

  border-color: #54555d;

  transform: translateY(-3px);

  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.22);
}



/* LINKEDIN SUBTLE HOVER */

.linkedin-button:hover {
  border-color: rgba(122, 118, 255, 0.7);

  background: rgba(122, 118, 255, 0.1);
}



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

.resume-button {
  min-height: 52px;

  padding: 0 17px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 9px;

  border: 1px solid #3b3c43;

  border-radius: 9px;

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

  color: #dddddf;

  font-size: 0.94rem;
  font-weight: 700;

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


.resume-button svg {
  width: 19px;
  height: 19px;
}


.resume-button:hover {
  color: white;

  background: #292a2f;

  border-color: #54555d;

  transform: translateY(-3px);

  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.22);
}



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

.projects-section {
  width: min(1250px, calc(100% - 48px));

  margin: 0 auto;

  padding: 120px 0 150px;
}



/* ==============================
   SECTION HEADING
============================== */

.section-heading {
  max-width: 780px;

  margin-bottom: 55px;
}


.eyebrow {
  display: inline-block;

  margin-bottom: 14px;

  color: #8a87e8;

  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    "Liberation Mono",
    monospace;

  font-size: 0.78rem;

  font-weight: 700;

  letter-spacing: 0.15em;
}


.section-heading h2 {
  margin-bottom: 19px;

  color: var(--text);

  font-size: clamp(2.8rem, 5vw, 4.7rem);

  font-weight: 800;

  line-height: 1;

  letter-spacing: -0.055em;
}


.section-heading h2 span {
  color: var(--accent);
}


.section-heading p {
  color: var(--muted);

  font-size: 1.06rem;

  line-height: 1.75;
}


.section-heading p strong {
  color: #e6e6e8;
}



/* ==============================
   PROJECT GRID
============================== */

.projects-grid {
  display: grid;

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

  gap: 22px;
}



/* ==============================
   PROJECT CARD
============================== */

.project-card {
  min-height: 390px;

  padding: 31px;

  position: relative;

  display: flex;
  flex-direction: column;

  overflow: hidden;

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.015),
      transparent
    ),
    var(--card);

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

  border-radius: 14px;

  transition:
    transform 0.24s ease,
    border-color 0.24s ease,
    background 0.24s ease,
    box-shadow 0.24s ease;
}



/* small accent strip */

.project-card::before {
  content: "";

  position: absolute;

  top: 0;
  left: 0;

  width: 100%;
  height: 2px;

  background:
    linear-gradient(
      90deg,
      transparent,
      var(--accent),
      transparent
    );

  opacity: 0;

  transition: opacity 0.25s ease;
}


.project-card:hover {
  transform: translateY(-6px);

  background: var(--card-hover);

  border-color: #505159;

  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.22);
}


.project-card:hover::before {
  opacity: 1;
}



/* ==============================
   PROJECT TOP
============================== */

.project-top {
  margin-bottom: 35px;

  display: flex;

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


.project-number {
  color: #8a87e8;

  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    "Liberation Mono",
    monospace;

  font-size: 0.78rem;

  font-weight: 600;
}


.project-type {
  padding: 6px 9px;

  background: rgba(122, 118, 255, 0.07);

  border: 1px solid rgba(122, 118, 255, 0.18);

  border-radius: 5px;

  color: #a8a5ed;

  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    "Liberation Mono",
    monospace;

  font-size: 0.7rem;

  font-weight: 600;
}



/* ==============================
   PROJECT CONTENT
============================== */

.project-card h3 {
  margin-bottom: 16px;

  color: #f5f5f6;

  font-size: 1.55rem;

  line-height: 1.25;

  letter-spacing: -0.028em;
}


.project-card > p {
  margin-bottom: 24px;

  color: #a7a7ad;

  font-size: 0.96rem;

  line-height: 1.72;
}


.project-card > p strong {
  color: #dedee1;

  font-weight: 650;
}



/* ==============================
   PROJECT TAGS
============================== */

.project-tags {
  margin-bottom: 29px;

  display: flex;

  flex-wrap: wrap;

  gap: 8px;
}


.project-tags span {
  padding: 7px 10px;

  color: #c9c9ce;

  background: #303137;

  border: 1px solid #3d3e45;

  border-radius: 6px;

  font-size: 0.74rem;

  font-weight: 600;
}



/* ==============================
   PROJECT LINK
============================== */

.project-link {
  margin-top: auto;

  width: fit-content;

  display: inline-flex;

  align-items: center;

  gap: 8px;

  color: #e5e5e8;

  font-size: 0.9rem;

  font-weight: 700;

  transition:
    color 0.2s ease,
    transform 0.2s ease;
}


.project-link svg {
  width: 17px;
  height: 17px;

  transition: transform 0.2s ease;
}


.project-link:hover {
  color: white;

  transform: translateX(2px);
}


.project-link:hover svg {
  transform: translate(2px, -2px);
}



/* ==============================
   TABLET
============================== */

@media (max-width: 950px) {

  .hero-section {
    width: min(900px, calc(100% - 34px));

    grid-template-columns:
      minmax(220px, 0.82fr)
      minmax(360px, 1.35fr);

    gap: 42px;
  }


  .hero-image-wrap {
    height: 77vh;
  }


  .hero-right h1 {
    font-size:
      clamp(3rem, 6.8vw, 4.25rem);
  }


  .hero-description {
    font-size:
      clamp(0.94rem, 1.75vw, 1.08rem);

    line-height: 1.66;
  }


  .projects-section {
    width:
      min(900px, calc(100% - 34px));
  }

}



/* ==============================
   MOBILE
============================== */

@media (max-width: 640px) {

  .hero-section {
    width:
      min(560px, calc(100% - 32px));

    min-height: auto;

    padding: 25px 0 70px;

    grid-template-columns: 1fr;

    gap: 20px;
  }


  .hero-left {
    height: auto;
  }


  .hero-image-wrap {
    width: min(390px, 100%);

    height: 510px;

    margin: 0 auto;
  }


  .hero-right {
    padding: 8px 0 0;
  }


  .availability-badge {
    margin-bottom: 20px;

    font-size: 0.7rem;
  }


  .hero-right h1 {
    margin-bottom: 13px;

    font-size:
      clamp(3rem, 14vw, 4.2rem);
  }


  .hero-role {
    margin-bottom: 27px;

    font-size: 0.78rem;
  }


  .hero-description {
    margin-bottom: 20px;

    font-size: 0.98rem;

    line-height: 1.7;
  }


  .hero-skills {
    margin-top: 24px;
  }


  .hero-actions {
    margin-top: 31px;

    gap: 10px;
  }


  .primary-button {
    flex: 1;

    min-width: 180px;
  }


  .projects-section {
    width:
      min(560px, calc(100% - 32px));

    padding: 90px 0 100px;
  }


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


  .project-card {
    min-height: 360px;

    padding: 25px;
  }

}



/* ==============================
   SMALL MOBILE
============================== */

@media (max-width: 430px) {

  .hero-image-wrap {
    height: 450px;
  }


  .primary-button {
    width: 100%;
    flex: initial;
  }


  .resume-button {
    flex: 1;
  }


  .section-heading h2 {
    font-size: 2.8rem;
  }

}

/* ==============================
   SCROLL REVEAL
============================== */

.reveal {
  opacity: 0;
  transform: translateY(24px);

  transition:
    opacity 0.65s ease,
    transform 0.65s ease;

  transition-delay: var(--reveal-delay, 0ms);
}

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


/* Keyboard feedback */

.keyboard-active {
  transform: translateY(-2px) scale(0.98);
}


/* Accessibility */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

}

/* ==============================
   PROJECT MEDIA + STATUS
============================== */

@media (min-width: 1120px) {
  .projects-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 641px) and (max-width: 1119px) {
  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.project-card {
  min-height: 610px;
}

.project-top {
  margin-bottom: 18px;
}

.project-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0 0 22px;
  border-radius: 11px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #17181c;
}

.project-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.project-image-amazon img {
  object-position: center;
}

.project-image-blockchain img,
.project-image-deep-learning img {
  object-position: center;
}

.project-status {
  margin-top: auto;
  min-height: 48px;
  width: 100%;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid #4a4b54;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.018);
  color: #bbb9df;
  font-size: 0.86rem;
  font-weight: 650;
  text-align: center;
}

.project-status svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  color: #9e9bea;
}

@media (max-width: 640px) {
  .project-card {
    min-height: 0;
  }

  .project-image {
    margin-bottom: 20px;
  }

  .project-status {
    margin-top: 4px;
  }
} 
