@font-face {
  font-family: 'Creato Display';
  src: url('CreatoDisplay-Regular.otf') format('opentype');
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: #EEE8DC;
  font-family: 'Creato Display', sans-serif;
}

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  padding: 28px 6%;
  background: #E798B7;
}

.navbar .logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: #EEE8DC;
  letter-spacing: 0.02em;
}

.navbar .nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 42px;
  list-style: none;
}

.navbar .nav-links a {
  text-decoration: none;
  color: #1a1a1a;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.25s ease, color 0.25s ease;
}

.navbar .nav-links a:hover {
  border-color: #E798B7;
  color: #E798B7;
}

/* ===== SECCION 1: HERO ===== */
.hero {
  width: 100%;
}

.hero-image {
  width: 100%;
  display: block;
}

/* ===== SECCION 2: ABOUT ME ===== */
.about-section {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.about-section .section-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-text {
  position: absolute;
  top: 18%;
  left: 55%;
  width: 38%;
}

.about-heading {
  font-family: 'Creato Display', sans-serif;
  font-weight: 700;
  font-size: 1.15vw;
  color: #E798B7;
  letter-spacing: 0.02em;
  margin-top: 2vw;
  margin-bottom: 0.7vw;
}

.about-heading:first-child {
  margin-top: 0;
}

.about-text p {
  font-family: 'Creato Display', sans-serif;
  font-size: 0.85vw;
  line-height: 1.6;
  color: #1a1a1a;
  margin-bottom: 0.6vw;
}

.about-job-title {
  font-weight: 700;
  margin-bottom: 0.2vw !important;
}

/* ===== SECCION 3: SKILLS ===== */
.skills-section {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.skills-section .section-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.skills-text {
  position: absolute;
  top: 48%;
  left: 5%;
  width: 68%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2vw;
  align-items: start;
  justify-items: start;
}

.skills-text {
  position: absolute;
  top: 48%;
  left: 5%;
  width: 68%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5vw;
  align-items: start;
  justify-items: start;
}

.skills-heading {
  font-family: 'Creato Display', sans-serif;
  font-weight: 700;
  font-size: 1.3vw;
  color: #E798B7;
  letter-spacing: 0.03em;
  margin-bottom: 1.1vw;
}

.skills-text ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.skills-text li {
  font-family: 'Creato Display', sans-serif;
  font-size: 0.95vw;
  line-height: 2.1;
  color: #1a1a1a;
  letter-spacing: 0.01em;
}

.skills-text li::before {
  content: "• ";
  color: #E798B7;
  margin-right: 2px;
}

.skills-text li::before {
  content: "• ";
  color: #1a1a1a;
}

/* ===== SECCION 4: PORTFOLIO ===== */
#portfolio {
  padding: 100px 6%;
  background: #EEE8DC;
}

.portfolio-title-image {
  width: 100%;
  display: block;
  margin-bottom: -490px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px 80px;
  max-width: 1100px;
  margin: 0 auto;
}

.portfolio-card {
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-family: 'Creato Display', sans-serif;
  padding: 0;
  text-decoration: none;
  display: block;
}

.portfolio-card .pill {
  display: block;
  width: fit-content;
  margin: 0 auto 16px auto;
  border: 1.5px solid #E798B7;
  border-radius: 40px;
  padding: 14px 32px;
  font-weight: 700;
  font-size: 1.1rem;
  color: #1a1a1a;
  text-align: center;
  transition: background 0.25s ease, color 0.25s ease;
}

.portfolio-card:hover .pill {
  background: #E798B7;
  color: #EEE8DC;
}

.portfolio-card p {
  font-size: 0.95rem;
  color: #333;
  line-height: 1.5;
  max-width: 380px;
  margin: 0 auto;
  text-align: center;
}

/* Popup */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 999;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.modal-overlay.active {
  display: flex;
}
.modal-box {
  background: #EEE8DC;
  border-radius: 16px;
  max-width: 900px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 30px;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  font-size: 2rem;
  color: #1a1a1a;
  cursor: pointer;
  line-height: 1;
}
.modal-images {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.modal-images img {
  width: 100%;
  border-radius: 8px;
  display: block;
}

/* ===== SECCION 5: CONTACTO ===== */
.contact-section {
  width: 100%;
}

.contact-bg {
  width: 100%;
  display: block;
}

.contact-cta {
  width: 100%;
  padding: 20px 6% 90px 6%;
  background: #EEE8DC;
  text-align: center;
  margin-top: -60px;
  position: relative;
  z-index: 2;
}

.contact-email {
  display: inline-block;
  border: 1.5px solid #E798B7;
  border-radius: 40px;
  padding: 16px 36px;
  font-family: 'Creato Display', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a1a;
  background: none;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}

.contact-email:hover {
  background: #E798B7;
  color: #EEE8DC;
}
.skills-col {
  margin-right: 2.5vw;
}

.skills-col:first-child {
  margin-right: 1vw;
  margin-left: 3vw;
}