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

body {
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
  transition: background 0.4s, color 0.4s;
  line-height: 1.6;
  padding: 0 20px;
  padding-top: 90px; /* room for floating pill */
}

body.light {
  --bg: #ffffff;
  --text: #111111;
  --card: #f4f4f4;
}

body.dark {
  --bg: #0e0e0e;
  --text: #eaeaea;
  --card: #1c1c1c;
}

.fade-in {
  opacity: 0;
  animation: fadeUp 1s ease forwards;
}

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

/* Elements that animate in when scrolled into view */
.scroll-fade {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-fade.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ------------------------------------------------------
   LAYOUT
------------------------------------------------------ */

section {
  width: 100%;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

/* ------------------------------------------------------
   HERO 
------------------------------------------------------ */
.hero {
  width: 100%;
  max-width: 900px;

  margin: 0 auto;
  padding: 80px 20px 40px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  text-align: center;
}

.gradient-text {
  background: linear-gradient(135deg, #ff8fb1, #c77dff, #7ca1ff, #74f2ce);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 600;
  margin-bottom: 10px;
  width: 100%;
}

.hero-sub {
  font-size: 1.15rem;
  opacity: 0.8;
  width: 100%;
}

/* ------------------------------------------------------
   LEGACY FILTERS (section .filters, if still used)
------------------------------------------------------ */
.filters {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 20px auto 40px;
}

.filter-btn {
  padding: 10px 20px;
  border-radius: 40px;
  border: none;
  background: var(--card);
  font-weight: 600;
  cursor: pointer;
  transition: 0.25s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: linear-gradient(135deg, #ff63ff, #737bff, #3ecbff, #54ffb0);
  color: #fff;
  transform: translateY(-2px);
}

/* ------------------------------------------------------
   GALLERY
------------------------------------------------------ */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  max-width: 1400px;
  margin: auto;
}

.photo {
  border-radius: 22px;
  overflow: hidden;
  background: var(--card);
  cursor: pointer;
  transition: 0.3s ease;
}

.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 22px;
  display: block;
  transition: 0.35s ease;
}

.photo:hover img {
  transform: scale(1.05);
}

/* ------------------------------------------------------
   LIGHTBOX
------------------------------------------------------ */
#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

#lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 22px;
  box-shadow: 0 0 30px rgba(0,0,0,0.4);
}

/* ------------------------------------------------------
   ABOUT
------------------------------------------------------ */
.about {
  max-width: 900px;
  margin: 80px auto 40px;
  text-align: center;
}

.about h2 {
  font-size: 2.2rem;
  margin-bottom: 15px;
}

.about p {
  font-size: 1.1rem;
  opacity: 0.85;
}

/* ------------------------------------------------------
   CONTACT
------------------------------------------------------ */
.contact {
  max-width: 900px;
  margin: 80px auto;
  text-align: center;
}

.contact h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  background: var(--card);
  border: none;
  padding: 14px;
  border-radius: 16px;
  font-size: 1rem;
}

.contact-form textarea { 
  resize: none; 
  height: 140px; 
}

.contact-form button {
  padding: 12px;
  border: none;
  border-radius: 18px;
  background: linear-gradient(135deg, #ff63ff, #737bff, #3ecbff, #54ffb0);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  margin-top: 10px;
  transition: 0.3s ease;
}

.contact-form button:hover { 
  transform: scale(1.02); 
}

/* ------------------------------------------------------
   FOOTER
------------------------------------------------------ */
footer {
  text-align: center;
  padding: 60px 0 30px;
  opacity: 0.65;
  font-size: 0.9rem;
}

/* ------------------------------------------------------
   RESPONSIVE
------------------------------------------------------ */
@media (max-width: 600px) {
  .hero h1 { font-size: 2.3rem; }
}

/* ------------------------------------------------------
   FLOATING PILL HEADER (hidden until scroll)
------------------------------------------------------ */
.glass-header {
  position: fixed;
  top: 12px;
  left: 0;
  right: 0;

  display: flex;
  justify-content: center;

  z-index: 1000;

  /* hidden by default, JS adds .visible */
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.glass-header.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* The pill itself */
.glass-pill {
  display: grid;
  grid-template-columns: auto 1fr auto; /* title | filters | toggle */
  align-items: center;
  column-gap: 14px;

  padding: 8px 16px;
  width: min(980px, 95vw);

  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);  /* white in light mode */
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

/* Dark mode pill */
body.dark .glass-pill {
  background: radial-gradient(circle at top, #2a2a2a, #050505);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

/* Title */
.pill-title {
  font-size: 0.98rem;
  font-weight: 600;
  white-space: nowrap;
}

/* Filters inline container */
.pill-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-start;
}

/* ------------------------------------------------------
   APPLE-STYLE FILTER PILL BUTTONS (LIGHT + DARK)
------------------------------------------------------ */

/* Base pill filter button */
.pill-filters .filter-btn {
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: 0.25s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* LIGHT MODE */
body.light .pill-filters .filter-btn {
  color: #222;
  background: rgba(255, 255, 255, 0.55);   /* frosted white */
  border: 1px solid rgba(0,0,0,0.06);
}

body.light .pill-filters .filter-btn:hover {
  background: rgba(255, 255, 255, 0.85);
}

/* Active (gradient) – same in both modes */
.pill-filters .filter-btn.active {
  background: linear-gradient(135deg, #ff8fb1, #c77dff, #7ca1ff, #74f2ce);
  color: #fff;
}

/* DARK MODE */
body.dark .pill-filters .filter-btn {
  color: #f5f5f5;
  background: rgba(255, 255, 255, 0.12);   /* frosted dark */
  border: 1px solid rgba(255,255,255,0.10);
}

body.dark .pill-filters .filter-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* Mode toggle inside pill */
.glass-pill #mode-toggle {
  border: none;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.9rem;
  background: #111;      /* light mode button */
  color: #fff;
  transition: 0.2s ease;
}

.glass-pill #mode-toggle:hover {
  transform: scale(1.06);
}

body.dark .glass-pill #mode-toggle {
  background: #0d84ff;
  color: #ffffff;
}

/* Mobile pill layout */
@media (max-width: 650px) {
  .glass-pill {
    grid-template-columns: 1fr;
    row-gap: 8px;
    align-items: flex-start;
  }

  .pill-title {
    justify-self: flex-start;
  }

  .pill-filters {
    justify-content: flex-start;
  }

  .glass-pill #mode-toggle {
    justify-self: flex-end;
  }
}
