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

html, body {
  height: 100%;
}

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  background-color: #0f0f10;
  color: #eaeaea;
  overflow-x: hidden;
}

/* === HERO SECTION === */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1rem;
  max-width: 800px;
  margin: 0 auto;
}

.hero__photo img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #444;
  box-shadow: 0 0 10px rgba(255,255,255,0.1);
  margin-bottom: 1.2rem;
}

.eyebrow {
  text-transform: uppercase;
  font-size: 0.8rem;
  opacity: 0.7;
  letter-spacing: 1px;
  margin-bottom: 0.4rem;
}

h1 {
  font-weight: 700;
  font-size: 1.9rem;
  color: #fff;
}

.subtitle {
  opacity: 0.8;
  margin: 0.3rem 0 1.5rem;
  font-size: 1rem;
}

/* === BUTTON === */
.btn {
  display: inline-block;
  background: linear-gradient(90deg, #0066ff, #9a3cff);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.8rem 1.4rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.btn:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

/* === GALLERY === */
.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.gallery__item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.2s ease;
}
.gallery__item img:hover {
  transform: scale(1.02);
}
.gallery__item figcaption {
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.8;
  margin-top: 0.4rem;
}

/* === CARD === */
.card {
  background: #1b1b1d;
  border-radius: 14px;
  padding: 1.3rem;
  box-shadow: 0 0 12px rgba(0,0,0,0.4);
  margin: 1rem;
}

/* === FOOTER === */
.footer {
  text-align: center;
  opacity: 0.7;
  padding: 2rem 1rem;
  font-size: 0.9rem;
}

/* === MODAL === */
.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  z-index: 1000;
}

.modal[hidden] {
  display: none;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}

.modal__dialog {
  position: relative;
  z-index: 2;
  background: #1a1a1a;
  color: #eaeaea;
  padding: 1.5rem;
  border-radius: 16px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
  animation: fadeIn 0.3s ease;
}

.modal__close {
  position: absolute;
  top: 0.4rem;
  right: 0.6rem;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: #aaa;
  cursor: pointer;
}
.modal__close:hover {
  color: #fff;
}

/* === ANIMATIONS === */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

/* === MOBILE FRIENDLY === */
@media (max-width: 600px) {
  h1 { font-size: 1.6rem; }
  .gallery {
    grid-template-columns: 1fr;
  }
  .hero__photo img {
    width: 130px;
    height: 130px;
  }
  .modal__dialog {
    max-width: 95%;
  }
}
