:root {
  --bg: #fdf2f8;
  --bg-alt: #ffe4e6;
  --card: rgba(255, 255, 255, 0.92);
  --accent: #ec4899;
  --accent-soft: rgba(236, 72, 153, 0.12);
  --text: #111827;
  --muted: #6b7280;
  --border: #f9a8d4;
  --radius-lg: 18px;
  --radius-xl: 999px;
  --shadow-soft: 0 18px 35px rgba(236, 72, 153, 0.18);
}

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

body {
  font-family: "Merriweather", serif;
  background: linear-gradient(135deg, #fdf2f8 0%, #ffe4e6 40%, #fef2f2 100%);
  color: var(--text);
  line-height: 1.6;
}

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

.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: transparent;
  padding: 0.8rem 0;
}

nav.nav {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.logo {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 1.3rem;
  color: var(--accent);
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 2rem;
  flex-grow: 1;
  flex-wrap: wrap;
}

.nav-links a {
  padding-bottom: 0.25rem;
  border-bottom: 2px solid transparent;
  color: #4b5563;
  transition: 0.15s ease;
  font-size: 0.9rem;
}

.nav-links a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

@media (max-width: 780px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    gap: 1rem;
    font-size: 0.8rem;
  }
}

.pink-title {
  background: linear-gradient(90deg, #ec4899, #f9a8d4);
  -webkit-background-clip: text;
  color: transparent;
  display: inline-block;
}

.hero {
  margin-top: 2rem;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow-soft);
  padding: 1.8rem 1.8rem 1.5rem;
}

.hero-inner {
  display: grid;
  gap: 1.8rem;
  align-items: center;
}

@media (min-width: 820px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.8fr);
  }
}

.hero-photo-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}

.photo-circle {
  width: 230px;
  height: 230px;
  border-radius: 50%;
  border: 2px solid rgba(249, 168, 212, 0.7);
  background: radial-gradient(circle at 30% 30%, #fee2e2, #fecaca);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 20px 35px rgba(236, 72, 153, 0.18);
}

.photo-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.hero-name {
  font-family: "Playfair Display", serif;
  font-size: 1.3rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
}

.hero-about-card {
  border-radius: 18px;
  border: 1px solid rgba(249, 168, 212, 0.8);
  background: rgba(255, 255, 255, 0.98);
  padding: 1.2rem 1.3rem 1.1rem;
}

.hero-about-card h1 {
  font-family: "Playfair Display", serif;
  font-size: 1.6rem;
  margin-bottom: 0.6rem;
}

.hero-about-card p {
  font-size: 0.95rem;
  color: var(--muted);
}

.hero-actions-row {
  margin-top: 1.3rem;
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.btn {
  border-radius: var(--radius-xl);
  padding: 0.6rem 1.35rem;
  font-size: 0.9rem;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: none;
  color: var(--text);
  transition: 0.18s ease;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
}

.btn-primary {
  background: linear-gradient(135deg, #ec4899, #f9739a);
  box-shadow: var(--shadow-soft);
  color: #fff;
}

.btn-primary:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.btn-outline {
  border-color: var(--border);
  background: #fff;
  color: #9f1239;
}

.btn-outline:hover {
  background: #fdf2f8;
}

main {
  display: grid;
  gap: 2.1rem;
  margin-top: 2rem;
}

section {
  border-radius: 24px;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 1.5rem 1.5rem 1.6rem;
  box-shadow: 0 18px 35px rgba(248, 113, 150, 0.08);
}

.section-title {
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
  margin-bottom: 0.9rem;
}

.experience-list {
  display: grid;
  gap: 1rem;
}

.exp-item {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(248, 187, 208, 0.9);
  background: #fff;
  padding: 0.9rem 1rem;
}

.exp-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.4rem;
  flex-wrap: wrap;
  align-items: flex-start;
}

.exp-role {
  font-weight: 700;
  font-size: 0.98rem;
}

.exp-meta {
  font-size: 0.8rem;
  color: var(--muted);
  text-align: right;
  white-space: nowrap;
}

.exp-meta-left {
  font-size: 0.8rem;
  color: var(--muted);
  text-align: left;
  margin-top: 0.2rem;
}

.exp-summary {
  font-size: 0.86rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.exp-bullets {
  padding-left: 1.1rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.exp-bullets li {
  margin-bottom: 0.2rem;
}

/* SKILLS */
.skills-grid {
  display: flex; 
  flex-wrap: wrap;
  gap: 1rem;
  align-items: stretch; 
}

@media (min-width: 720px) {
  .skills-card {
    flex: 1; /* Each card takes up half the width on desktop */
  }
}

.skills-card {
  height: 157px; /* Set this to your preferred total height */
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(248, 187, 208, 0.9);
  background: #fff;
  padding: 0.9rem 1rem;
}

.skills-card h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.skills-tag {
  font-size: 0.8rem;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(248, 187, 208, 0.9);
  padding: 0.2rem 0.6rem;
  background: #fff;
  color: #9f1239;
}

/* Styling for the skill headers inside the scroll boxes */
.skill-category {
  width: 100%;
  margin-bottom: 1rem;
}

.skill-category h4 {
  font-family: "Merriweather", serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9f1239; /* Deep pink color */
  margin-bottom: 0.4rem;
  border-bottom: 1px solid rgba(249, 168, 212, 0.3);
  padding-bottom: 2px;
}

.category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

/* Force categorized boxes to stack headers vertically but keep tags horizontal */
.skills-tags.scroll-box.categorized {
  display: block; 
}

/* Maintain equal height on the cards */
@media (min-width: 720px) {
  .skills-grid {
    display: flex;
    align-items: stretch;
    gap: 1.5rem;
  }
  
  .skills-card {
    flex: 1;
    height: 178px; /* Adjust this to make the cards taller or shorter */
  }
}

/* Scrollbox Logic */
.skills-tags.scroll-box {
  flex-grow: 1; /* This pushes the tags to fill the bottom of the card */
  overflow-y: auto;
  padding-right: 0.5rem;
  scrollbar-gutter: stable;
}

.skills-tags.scroll-box::-webkit-scrollbar {
  width: 6px;
}

.skills-tags.scroll-box::-webkit-scrollbar-thumb {
  background: rgba(236, 72, 153, 0.35);
  border-radius: 10px;
}

.skills-tags.scroll-box::-webkit-scrollbar-track {
  background: rgba(249, 168, 212, 0.12);
  border-radius: 10px;
}

/* EDUCATION */
.education-item .exp-summary {
  margin-top: 0.45rem;
}

.edu-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.edu-left {
  text-align: left;
}

.edu-school {
  font-weight: 700;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--text);
  text-align: left;
}

.edu-degree {
  font-style: italic;
  font-size: 0.98rem;
  color: #374151;
  text-align: left;
}

.edu-right {
  text-align: right;
  font-style: italic;
  color: #4b5563;
  white-space: nowrap;
}

@media (max-width: 700px) {
  .edu-header {
    flex-direction: column;
  }

  .edu-right {
    text-align: left;
    white-space: normal;
  }
}

/* PROJECTS */
.projects-list {
  display: grid;
  gap: 1rem;
}

.project-item {
  display: grid;
  gap: 0.9rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(248, 187, 208, 0.9);
  background: #fff;
  padding: 0.9rem 1rem;
}

@media (min-width: 780px) {
  .project-item {
    grid-template-columns: 1.1fr 1.9fr;
  }
}

.project-image-box {
  border-radius: 14px;
  border: 1px dashed rgba(248, 187, 208, 0.9);
  background: #fdf2f8;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
  padding: 0.5rem;
}

.project-title {
  font-weight: 700;
  font-size: 0.98rem;
  margin-bottom: 0.25rem;
}

.project-desc {
  font-size: 0.86rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.project-tag {
  font-size: 0.78rem;
  padding: 0.18rem 0.5rem;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(248, 187, 208, 0.9);
  background: #fff;
  color: #9f1239;
}

/* PUBLICATIONS & CERTIFICATIONS */
.simple-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .simple-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.simple-card {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(248, 187, 208, 0.9);
  background: #fff;
  padding: 0.85rem 1rem;
  font-size: 0.86rem;
  color: var(--muted);
}

.simple-card-title {
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: #374151;
}

.simple-card a {
  display: inline-block;
  margin-top: 0.45rem;
  color: #9f1239;
  font-weight: 600;
}

.cert-logo-box {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(248, 187, 208, 0.9);
  background: #fdf2f8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  margin-right: 0.5rem;
}

/* CONTACT */
.contact-layout {
  display: grid;
  gap: 1.4rem;
}

@media (min-width: 780px) {
  .contact-layout {
    grid-template-columns: 1.1fr 1.9fr;
  }
}

.contact-links {
  display: grid;
  gap: 0.7rem;
}

.contact-pill {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(248, 187, 208, 0.9);
  background: #fff;
  padding: 0.65rem 0.8rem;
  font-size: 0.86rem;
}

.contact-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.contact-value {
  margin-top: 0.15rem;
}

.contact-form {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(248, 187, 208, 0.9);
  background: #fff;
  padding: 0.9rem 1rem 1rem;
}

.contact-form h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
}

.form-grid {
  display: grid;
  gap: 0.6rem;
}

@media (min-width: 640px) {
  .form-grid-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

label {
  font-size: 0.78rem;
  color: var(--muted);
}

input,
textarea {
  width: 100%;
  margin-top: 0.15rem;
  padding: 0.45rem 0.5rem;
  border-radius: 10px;
  border: 1px solid rgba(209, 213, 219, 0.9);
  font-family: inherit;
  font-size: 0.85rem;
  resize: vertical;
}

textarea {
  min-height: 90px;
}

.form-submit {
  margin-top: 0.7rem;
  display: flex;
  justify-content: flex-end;
}

footer {
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 2rem;
  padding-bottom: 1rem;
}