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

body {
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: linear-gradient(180deg, #ffffff 0%, #f4ebff 100%);
  color: #2d024d;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  display: block;
}

/* =========================================================
   HEADER & NAVBAR
========================================================= */
.site-header {
  margin-top: 55px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.site-title {
  font-size: 1.9rem;
  font-weight: 700;
  color: #4b0082;
  letter-spacing: 0.5px;
  text-shadow: 0 0 10px rgba(157, 90, 255, 0.25);
}

.navbar {
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 0 40px rgba(157, 90, 255, 0.25);
  padding: 14px 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.navbar ul { 
  list-style: none; 
  display: flex; 
  gap: 40px; 
  align-items: center; 
}

.navbar a {
  display: inline-flex; 
  align-items: center; 
  text-decoration: none;
  color: #6a0dad; 
  font-weight: 600; 
  font-size: 1rem;
  border-radius: 999px; 
  padding: 8px 16px; 
  transition: all 0.35s ease;
}

.navbar a:hover {
  background: #6a0dad; 
  color: #fff; 
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(157, 90, 255, 0.6);
}

.navbar a.active {
  background: #6a0dad; 
  color: #fff; 
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(157, 90, 255, 0.8);
  animation: glowPulse 2.5s ease-in-out infinite alternate;
}

@keyframes glowPulse {
  0% { box-shadow: 0 0 18px rgba(157, 90, 255, 0.5); }
  100% { box-shadow: 0 0 35px rgba(157, 90, 255, 0.8); }
}

/* =========================================================
   MAIN CONTENT (HERO)
========================================================= */
.hero {
  margin-top: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: none;
  padding: 0 20px;
  padding-bottom: 100px;
  animation: fadeIn 1s ease-out;
}

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

.intro h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: #4b0082;
  margin-bottom: 0.5em;
}

/* =========================================================
   BIO / CONTENT BOX
========================================================= */

/* UPDATED → Side-by-side layout */
.profile {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: left;
  gap: 40px;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* content-box (used on illustration pages) */
.content-box {
  display: block;
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 700px;
  color: #3a006f;
  background: rgba(255, 255, 255, 0.75);
  padding: 22px 26px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(106, 13, 173, 0.08);
  backdrop-filter: blur(6px);
  margin: 2em auto;
}

/* UPDATED → Bio box for About Me page */
.bio {
  max-width: 480px;
  font-size: 1.05rem;
  line-height: 1.65;
  color: #3a006f;
  background: rgba(255, 255, 255, 0.75);
  padding: 22px 26px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(106, 13, 173, 0.08);
  backdrop-filter: blur(6px);
  margin: 0;
}

/* =========================================================
   PROFILE IMAGE (ABOUT ME PAGE)
========================================================= */
.profile-pic {
  width: 240px;
  height: auto;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 8px 25px rgba(106, 13, 173, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-pic:hover { 
  transform: scale(1.03); 
  box-shadow: 0 12px 35px rgba(106, 13, 173, 0.25); 
}

/* Mobile: stack vertically */
@media (max-width: 720px) { 
  .profile {
    flex-direction: column;
    text-align: center;
  }
  .bio {
    margin-top: 10px;
  }
}

/* =========================================================
   ILLUSTRATION PAGE — BUTTONS
========================================================= */
.button-row {
  display: flex; 
  justify-content: center; 
  align-items: center;
  gap: 60px; 
  margin-top: 1.5em; 
  flex-wrap: wrap;
}

.switch-btn {
  position: relative; 
  background: rgba(106, 13, 173, 0.25); 
  color: #fff;
  font-weight: 600; 
  font-size: 1.1rem; 
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: 999px; 
  padding: 16px 44px; 
  cursor: pointer;
  backdrop-filter: blur(14px) saturate(160%) brightness(1.05);
  -webkit-backdrop-filter: blur(14px) saturate(160%) brightness(1.05);
  box-shadow: 0 4px 18px rgba(106, 13, 173, 0.25);
  letter-spacing: 0.4px; 
  transition: all 0.3s ease;
}

.switch-btn:hover { 
  transform: scale(1.06); 
  background: rgba(106, 13, 173, 0.35); 
  box-shadow: 0 6px 24px rgba(106, 13, 173, 0.35); 
}

.switch-btn.active-btn { 
  background: rgba(106,13,173,0.45); 
  box-shadow: 0 8px 28px rgba(157,90,255,0.55); 
  transform: scale(1.08); 
  border-color: rgba(255,255,255,0.3); 
}

/* =========================================================
   MASONRY GRID
========================================================= */
.image-grid {
  column-count: 3;
  column-gap: 20px;
  column-fill: balance;
  margin-top: 30px;
  width: 100%;
  max-width: 1300px;
}

.image-grid img {
  width: 100%; 
  margin-bottom: 20px; 
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(106, 13, 173, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  break-inside: avoid;
  opacity: 0; 
  transform: translateY(15px); 
  animation: fadeInImage 0.6s ease forwards;
}

@keyframes fadeInImage { 
  to { opacity: 1; transform: translateY(0); } 
}

.image-grid img.visible { 
  animation-delay: var(--delay, 0s); 
}

/* =========================================================
   GALLERY VISIBILITY DEFAULTS
========================================================= */
#digital-gallery, 
#traditional-gallery { 
  display: none; 
  opacity: 0; 
}

/* =========================================================
   FADE HELPERS
========================================================= */
.fade-in { 
  opacity: 1 !important; 
  transition: opacity 0.35s ease, transform 0.35s ease; 
  transform: translateY(0); 
}

.fade-out { 
  opacity: 0 !important; 
  transition: opacity 0.35s ease, transform 0.35s ease; 
  transform: translateY(10px); 
}

/* =========================================================
   RESPONSIVE GLOBAL DESIGN
========================================================= */
@media (max-width: 720px) {
  .site-header { margin-top: 40px; gap: 12px; }
  .navbar ul { gap: 22px; }
  .navbar a { font-size: 0.9rem; padding: 8px 12px; }
  .hero { margin-top: 80px; padding-bottom: 80px; }
}

/* =========================================================
   IMAGE OVERLAY
========================================================= */
.image-overlay {
  position: fixed; 
  inset: 0; 
  background: rgba(0,0,0,0.8); 
  backdrop-filter: blur(6px);
  display: flex; 
  justify-content: center; 
  align-items: center; 
  z-index: 999;
  opacity: 0; 
  pointer-events: none; 
  transition: opacity 0.3s ease;
}

.image-overlay.active { 
  opacity: 1; 
  pointer-events: all; 
}

.image-overlay img { 
  max-width: 90%; 
  max-height: 90%; 
  border-radius: 14px; 
  transition: transform 0.3s ease; 
}

/* =========================================================
   PROCESS IMAGE EFFECTS
========================================================= */
.image-grid img[data-process="true"] {
  box-shadow: 0 0 25px 5px rgba(104, 30, 131, 0.786), 
              0 0 60px rgba(255, 215, 0, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-grid img[data-process="true"]:hover {
  transform: scale(1.05);
  box-shadow: 0 0 40px 8px rgba(255, 215, 0, 0.7),
              0 0 90px rgba(255, 215, 0, 0.45);
}

/* Process button */
.process-btn {
  position: absolute;
  bottom: 40px;
  right: 40px;
  background: linear-gradient(135deg, #ffd700, #ffb700);
  border: none;
  color: #2d024d;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 12px 24px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
  transition: all 0.3s ease;
}

.process-btn:hover {
  background: linear-gradient(135deg, #ffea70, #ffb400);
  box-shadow: 0 0 35px rgba(255, 215, 0, 0.8);
}

/* Process overlay */
.process-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  flex-wrap: wrap;
  gap: 20px;
  padding: 40px;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.process-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.process-overlay img {
  max-height: 80vh;
  max-width: calc(100% - 80px);
  border-radius: 12px;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.15);
  object-fit: contain;
}

.process-overlay::after {
  content: "Click anywhere to close";
  position: fixed;
  bottom: 25px;
  left: 0;
  width: 100%;
  text-align: center;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  pointer-events: none;
}
