/* GENERAL RESET + BODY */
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: #e9ddec;
  color: #444;
  line-height: 1.6;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #2d2d2d;
  font-weight: 600;
}

section {
  padding: 4rem 1.5rem;
  max-width: 900px;
  margin: auto;
}

/* ============================
   HEADER
============================ */
.header {
  background: white;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 20;
}

.header .logo {
  font-weight: 600;
  font-size: 1.4rem;
}

.nav a {
  margin-left: 1rem;
  text-decoration: none;
  color: #444;
  transition: 0.2s ease;
}

.nav a:hover {
  color: #8b65d6;
}

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

.hero {
  height: 65vh;
  background: url('../img/pinkwebdesign.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  color: white;
}

/* dark overlay for readability */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(2px);
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-content h2 {
  font-size: 2.6rem;
  margin-bottom: 0.5rem;
  color: white;
  font-weight: 600;
}

.hero-content p {
  font-size: 1.2rem;
  color: #f5f5f5;
}

/* ============================
   ABOUT SECTION
============================ */

.about-wrapper {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.about-photo {
  width: 190px;
  height: 190px;
  object-fit: cover;
  border-radius: 1.2rem;

  /* ✨ Soft Lavender Border */
  border: 6px solid #e4d9ff;
  background: white;
  padding: 6px;

  /* Soft glow */
  box-shadow: 0 4px 22px rgba(139, 101, 214, 0.18);
}

.about-text p {
  margin-bottom: 1.1rem;
  line-height: 1.6;
}

/* Mobile */
@media (max-width: 700px) {
  .about-wrapper {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .about-photo {
    width: 220px;
    height: 220px;
  }

  .about-text {
    text-align: left;
    max-width: 95%;
    margin-top: 1.5rem;
  }
}

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

.project-grid {
  display: grid;
  gap: 2rem;
}

.project-card {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 2px 14px rgba(0,0,0,0.08);
  transition: 0.3s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
}

.project-card h3 {
  margin-top: 0;
}

.project-card button {
  border: none;
  background: #8b65d6;
  color: white;
  padding: 0.7rem 1.3rem;
  border-radius: 0.5rem;
  cursor: pointer;
  margin-top: 1rem;
  transition: 0.2s ease;
}

.project-card button:hover {
  background: #734fc0;
}

/* ============================
   CONTACT
============================ */

.contact a {
  color: #8b65d6;
  font-weight: 500;
}

/* ============================
   FOOTER
============================ */
.footer {
  text-align: center;
  padding: 3rem;
  background: #f0eef5;
  margin-top: 3rem;
}

/* ============================
   MODALS
============================ */

/* full screen modal layer */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 25, 0.7);
  display: none;
  overflow-y: auto;
  z-index: 40;
}

.modal.active {
  display: block;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
}

/* white modal box */
.modal-dialog {
  background: white;
  max-width: 900px;
  margin: 3rem auto;
  padding: 2rem;
  border-radius: 1.3rem;
  position: relative;
  z-index: 2;
  box-shadow: 0 28px 70px rgba(0,0,0,0.3);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 2rem;
  border: none;
  background: transparent;
  cursor: pointer;
}

/* modal content */
.modal-images {
  margin-top: 2rem;
}

.modal-image-full img {
  width: 100%;
  border-radius: 1rem;
}

.modal-image-row {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.modal-image-row img {
  width: 100%;
  border-radius: 1rem;
}

.modal-text {
  margin-bottom: 1.5rem;
  font-size: 1rem;
  color: #555;
}

/* ============================
   RESPONSIVE (MOBILE)
============================ */

@media (max-width: 700px) {
  .modal-image-row {
    flex-direction: column;
  }

  .hero {
    height: 55vh;
  }

  .hero-content h2 {
    font-size: 2rem;
  }
}
