:root {
  --ink: #12121a;
  --paper: #f7f4ef;
  --accent: #15baf1;
  --accent-dark: #066899;
  --slate: #3a3e49;
  --mist: rgba(18, 18, 26, 0.08);
  --glass: rgba(255, 255, 255, 0.72);
}

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

body {
  font-family: "Manrope", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background-color: #efe8de;
  min-height: 100vh;
}

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

.page {
  position: relative;
  overflow: clip;
}

.page::before,
.page::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  filter: blur(10px);
  z-index: 0;
}

.page::before {
  top: -120px;
  left: -80px;
}

.page::after {
  bottom: -180px;
  right: -120px;
}

.container {
  width: min(1100px, 90vw);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
  font-size: 0.95rem;
  position: sticky;
  top: 0;
  z-index: 10;
  background: #efe8de;
  width: calc(100% + 4vw);
  margin-left: -.2vw;
  margin-right: -.2vw;
}

.logo {
  font-family: "DM Serif Display", serif;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}

.sublogo {
  font-family: serif;
  font-size: .87rem;
  letter-spacing: 0.02em;
}

nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

nav a {
  padding: 6px 10px;
  border-radius: 999px;
  transition: background 0.2s ease;
}

nav a:hover {
  background: var(--mist);
}

nav a:active {
  background: var(--accent);
  color: white;
}

.other{
  display: flex;
  gap: 20px;
}

.other > * {
  padding: 4px 8px;
  border-radius: 999px;
}

.resume {
  transition: background 0.2s ease;
}

.resume:hover {
  background: var(--mist);
}

.connect {
  background: var(--accent-dark);
  color: white;
  transition: background 0.2s ease;
}

.connect:hover {
  background-color: white;
  color: var(--accent-dark);
}


.intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 32px;
  min-height: 60vh;
}

.intro h1 {
  font-family: "DM Serif Display", serif;
  font-size: clamp(2.6rem, 4vw, 4rem);
  line-height: 1.05;
  margin-bottom: 16px;
}

.intro h2 {
  font-family: serif;
  font-size: clamp(1.7rem, 2.5vw, 2.5rem);
  margin-bottom: 16px;
}

.intro p {
  color: var(--slate);
  font-size: 1.2rem;
  margin-bottom: 24px;
}

.location-bar {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.location-bar p {
  font-size: .8rem;
}

.intro-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 20px rgba(6, 107, 135, 0.25);
}

.btn-secondary {
  border-color: var(--ink);
}

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

.intro-card {
  background: var(--glass);
  border-radius: 24px;
  padding: 28px;
  backdrop-filter: blur(12px);
  box-shadow: 0 24px 40px rgba(18, 18, 26, 0.08);
  animation: floatIn 0.8s ease forwards;
}

.intro-card h3 {
  margin-bottom: 12px;
}

.intro-card ul {
  list-style: none;
  display: grid;
  gap: 10px;
  color: var(--slate);
}

section {
  padding: 64px 0;
  scroll-margin-top: 80px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  font-family: "DM Serif Display", serif;
  font-size: 1.8rem;
}

.chip {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--mist);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

.card {
  background: #fff;
  border-radius: 18px;
  padding: 22px;
  border: 1px solid rgba(18, 18, 26, 0.08);
  box-shadow: 0 18px 30px rgba(18, 18, 26, 0.06);
  display: grid;
  gap: 12px;
}

.card h3 {
  font-size: 1.15rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  background: rgba(84, 170, 245, 0.12);
  color: var(--accent-dark);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.8rem;
  font-weight: 600;
}

.about {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: center;
}

.skills {
  display: grid;
  gap: 12px;
}

.skills li {
  list-style: none;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(18, 18, 26, 0.04);
}

.contact {
  background: var(--ink);
  color: #fff;
  border-radius: 24px;
  padding: 36px;
  display: grid;
  gap: 16px;
}

.contact a {
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  width: fit-content;
}

footer {
  padding: 32px 0 48px;
  color: var(--slate);
  font-size: 0.9rem;
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .intro {
    padding-top: 20px;
  }

  .contact {
    padding: 28px;
  }
}