@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

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

:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-soft: #eef6f7;
  --text: #101828;
  --muted: #667085;
  --line: #e4e7ec;
  --primary: #12355b;
  --primary-dark: #0b2545;
  --accent: #0f9f8f;
  --accent-soft: #dff7f3;
  --warning-soft: #fff4df;
  --shadow: 0 18px 45px rgba(16, 24, 40, 0.08);
  --shadow-sm: 0 8px 24px rgba(16, 24, 40, 0.08);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(15, 159, 143, 0.12), transparent 24rem),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 34%);
  overflow-x: hidden;
}

p {
  color: var(--muted);
  line-height: 1.75;
}

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

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

nav,
.nav-links {
  display: flex;
}

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  width: min(1180px, calc(100% - 3rem));
  height: 5rem;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.logo {
  color: var(--primary-dark);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0;
}

.nav-links {
  gap: 0.35rem;
  list-style: none;
  font-size: 0.95rem;
  font-weight: 600;
}

.nav-links a {
  display: inline-flex;
  min-height: 2.5rem;
  align-items: center;
  padding: 0 0.85rem;
  color: var(--muted);
  border-radius: 8px;
}

.nav-links a:hover {
  color: var(--primary);
  background: var(--surface-soft);
}

#hamburger-nav {
  display: none;
}

.hamburger-menu {
  position: relative;
  display: inline-block;
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  cursor: pointer;
}

.hamburger-icon span {
  width: 100%;
  height: 2px;
  background: var(--primary);
  transition: all 0.3s ease-in-out;
}

.menu-links {
  position: absolute;
  top: 130%;
  right: 0;
  width: 13rem;
  max-height: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease-in-out;
}

.menu-links.open {
  max-height: 320px;
}

.menu-links li {
  list-style: none;
}

.menu-links a {
  display: block;
  padding: 0.9rem 1rem;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.menu-links a:hover {
  color: var(--primary);
  background: var(--surface-soft);
}

.hamburger-icon.open span:first-child {
  transform: rotate(45deg) translate(8px, 6px);
}

.hamburger-icon.open span:nth-child(2) {
  opacity: 0;
}

.hamburger-icon.open span:last-child {
  transform: rotate(-45deg) translate(8px, -6px);
}

section {
  width: min(1120px, calc(100% - 3rem));
  min-height: 74vh;
  margin: 0 auto;
  padding: 5.5rem 0;
}

#profile {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 380px;
  gap: 4rem;
  align-items: center;
  min-height: calc(100vh - 5rem);
}

.section__pic-container {
  order: 2;
  position: relative;
  width: 380px;
  height: 460px;
}

.section__pic-container::before {
  content: "";
  position: absolute;
  inset: 1rem -1rem -1rem 1rem;
  z-index: -1;
  background: linear-gradient(135deg, var(--accent-soft), #dbeafe);
  border-radius: 24px;
}

.section__pic-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.section__text {
  order: 1;
  max-width: 690px;
}

.section__text__p1 {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 1rem;
  padding: 0.42rem 0.75rem;
  color: var(--primary);
  background: var(--accent-soft);
  border: 1px solid rgba(15, 159, 143, 0.2);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.title {
  margin-bottom: 0.9rem;
  color: var(--primary-dark);
  font-size: clamp(3.1rem, 6vw, 5.6rem);
  line-height: 0.96;
  font-weight: 800;
}

.section__text__p2 {
  margin-bottom: 1rem;
  color: var(--accent);
  font-size: 1.45rem;
  font-weight: 800;
}

.hero-summary {
  max-width: 39rem;
  margin-bottom: 1.8rem;
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 500;
}

.btn-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.btn {
  min-width: 8.9rem;
  padding: 0.9rem 1.05rem;
  border-radius: 10px;
  font-family: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-color-1 {
  color: #ffffff;
  background: var(--primary);
  border: 1px solid var(--primary);
}

.btn-color-1:hover {
  background: var(--primary-dark);
}

.btn-color-2 {
  color: var(--primary);
  background: var(--surface);
  border: 1px solid var(--line);
}

.btn-color-2:hover {
  border-color: rgba(15, 159, 143, 0.35);
  background: var(--surface-soft);
}

#socials-container {
  display: flex;
  gap: 1rem;
  margin-top: 1.4rem;
}

.icon {
  height: 1.85rem;
  cursor: pointer;
  transition: transform 220ms ease, opacity 220ms ease;
}

.icon:hover {
  transform: translateY(-2px);
  opacity: 0.8;
}

.section-container,
.about-containers,
.about-details-container {
  display: flex;
  gap: 1.25rem;
}

.about-containers {
  margin: 1.5rem 0;
}

.about-details-container {
  width: 100%;
  flex-direction: column;
}

.details-container {
  position: relative;
  flex: 1;
  padding: 1.7rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}

.details-container h3 {
  margin-top: 0.65rem;
  color: var(--primary-dark);
  font-size: 1.05rem;
}

.details-container > p {
  margin-top: 0.35rem;
}

.resume-note {
  max-width: 980px;
  padding: 1.35rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

.arrow {
  display: none;
}

.experience-details-container .about-containers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem;
}

.experience-sub-title {
  margin-bottom: 1.2rem;
  color: var(--primary-dark);
  font-size: 1.35rem;
  font-weight: 800;
}

.spotlight-card {
  background: linear-gradient(135deg, #ffffff 0%, #f0fbf9 100%);
  border-color: rgba(15, 159, 143, 0.32);
}

.article-container {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

article {
  display: flex;
  align-items: flex-start;
  min-width: 0;
  gap: 0.7rem;
  padding: 0.9rem;
  background: #fbfcfe;
  border: 1px solid var(--line);
  border-radius: 12px;
}

article .icon {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.1rem;
  cursor: default;
}

article h3 {
  color: var(--primary-dark);
  font-size: 0.98rem;
  line-height: 1.25;
}

article p {
  margin-top: 0.15rem;
  font-size: 0.84rem;
  line-height: 1.45;
}

.project-grid {
  grid-template-columns: minmax(0, 760px);
  align-items: stretch;
  justify-content: center;
}

.color-container {
  background: var(--surface);
}

.project-img {
  width: 100%;
  height: 15rem;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.project-title {
  margin: 1.1rem 0 0.55rem;
}

.color-container p {
  margin-bottom: 1rem;
}

.project-features {
  display: grid;
  gap: 0.55rem;
  margin: 0 0 1.15rem 1.1rem;
  color: var(--muted);
  line-height: 1.6;
}

.project-features li::marker {
  color: var(--accent);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.25rem;
}

.project-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0 0.7rem;
  color: var(--primary);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
}

#contact {
  display: flex;
  min-height: 60vh;
  flex-direction: column;
  justify-content: center;
}

.contact-info-upper-container {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  max-width: 920px;
  margin: 2rem auto 0;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}

.contact-info-container {
  display: flex;
  min-height: 3.4rem;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem;
  background: #fbfcfe;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.contact-info-container p {
  color: var(--primary-dark);
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.35;
}

.profile-icon {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 800;
}

.kaggle-icon {
  background: #20beff;
}

.leetcode-icon {
  background: #f89f1b;
}

.codeforces-icon {
  background: #31579b;
}

.contact-icon {
  cursor: default;
}

.email-icon {
  height: 2rem;
}

footer {
  width: min(1120px, calc(100% - 3rem));
  min-height: 12vh;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

footer nav {
  position: static;
  height: auto;
  padding: 1.5rem 0;
  background: transparent;
  border: 0;
}
