/* ===================== :ROOT VARIABLES ===================== */
:root { 
  --header-h: 120px;   /* header height offset – adjust if needed */
}

/* ===================== BASE STYLES ===================== */
body { 
  margin: 0;
  font-family: 'Quicksand', sans-serif;
  color: #f5f5f5;
  padding-top: var(--header-h);  /* pushes content below fixed header */
  background: url("stars-bg.jpg") repeat;
  background-size: 512px 512px;
  background-attachment: fixed;
  background-color: #000010;
  animation: starScroll 60s linear infinite;
}

section { 
  scroll-margin-top: var(--header-h);  /* fixes anchor scroll clipping */
  padding: 20px;
  max-width: 900px;
  margin: auto;
}

h1, h2, h3, h4 {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  text-align: center;
  margin-bottom: 20px;
}
@keyframes starScroll {
  from { background-position: 0 0; }
  to { background-position: -1000px 1000px; }
}
/* ===================== HEADER ===================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 30px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(to right, rgba(20,20,40,0.9), rgba(0,0,0,0.7));
  backdrop-filter: blur(4px);
  z-index: 1000;
}

/* Logo / Title */
header h1 {
  text-align: left;
  margin: 0;
  color: #fff;
  font-size: 1.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}
header h1:hover {
  color: #ffd700;
  text-shadow: 0 0 12px #ffd700;
}

/* Navigation */
header nav {
  display: flex;
  gap: 20px;
  margin: 0 20px;
}
header nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap; 
  justify-content: center;
  padding: 0;
  margin: 0;
}
header nav li {
  margin: 0 10px;
}

/* Hamburger menu */
.menu-toggle {
  display: none;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  z-index: 1100;
}

/* Mobile menu */
@media (max-width: 768px) {
  header nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    right: 20px;
    background: rgba(20, 20, 40, 0.95);
    flex-direction: column;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    z-index: 1000;
  }
  header nav.active {
    display: flex;
  }
  .menu-toggle {
    display: block;
  }
  header h1 {
    flex-grow: 1;
  }
}

/* Header links */
header a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}
header a:hover {
  color: #ffd700;
  text-shadow: 0 0 8px #ffd700;
}
header a::after {
  content: '';
  display: block;
  height: 2px;
  background: transparent;
  transition: background 0.3s ease;
}
header a:hover::after {
  background: #ffd700;
}

/* ===================== HERO SECTION ===================== */
.hero {
  position: relative;
  background: url("hero-bg.jpg") center/cover no-repeat;
  border-radius: 12px;
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 10px 10px;
  overflow: hidden;
}
.hero-content {
  position: relative;
  z-index: 2; /* ensures all text and buttons are above */
  color: white; /* optional, makes text pop on dark bg */
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
  border-radius: 12px;
}
.hero h1 {
  position: relative;
  z-index: 2;
  font-size: 3em;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 5px;
  color: #ffd51d;
  text-shadow: 2px 2px 0 #000, -2px 2px 0 #000, 2px -2px 0 #000, -2px -2px 0 #000, 2px 0 0 #000, -2px 0 0 #000, 0 2px 0 #000, 0 -2px 0 #000;
  margin-bottom: 20px;
  animation: fadeIn 1s ease-out forwards;
}
.hero p {
  position: relative;
  z-index: 2;
  max-width: 600px;
  color: #f5f5f5;
  font-size: 1.1rem;
  line-height: 1.6;
  animation: fadeIn 1.5s ease-out forwards;
  margin: 0 auto 30px;
  text-align: center;
}
.hero h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 20px;
}
/* Initial state */
.hero h1,
.hero p,
.hero .btn {
  opacity: 0;
  transform: translateY(20px); /* optional: slide up a bit */
  transition: opacity 1s ease-out, transform 1s ease-out;
}

/* Fade-in state */
.hero.visible h1,
.hero.visible p,
.hero.visible .btn {
  opacity: 1;
  transform: translateY(0);
}


/* ===================== SECTIONS ===================== */
/* Background only for the intro section */
#tarot-intro {
  position: relative;
  background: linear-gradient(
      rgba(0, 0, 0, 0.6),   /* dark overlay */
      rgba(0, 0, 0, 0.6)
    ),
    url("Arcana-reader-Back.jpg") center/cover no-repeat;
  text-align: center;
  padding: 3rem 1rem;
  color: #fff; /* keep text readable */
  border-radius: 12px; /* optional rounded effect */
  opacity: 0; /* start hidden */
  animation: fadeIn 1.5s ease-out forwards;
}
#tarot-intro .content {
  max-width: 800px;   /* match the bottom text width */
  margin: 0 auto;     /* center it */
}
#tarot-intro h1 {
  font-size: 3rem;           /* same size as hero */
  font-weight: 600;          /* bold */
  color: #ffd51d;               /* golden-ish */
  text-shadow: 2px 2px 8px rgba(0,0,0,0.4); /* glow/shadow effect */
  margin-bottom: 1rem;       /* spacing */
}
#about {
  background: url("about-bg.jpg") no-repeat center/cover;
  color: white;
  min-height: 30vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

#commissions {
  background: url("commissions-bg.jpg") no-repeat center/cover;
  color: white;
}

#gallery {
  background: url("gallery-bg.jpg") no-repeat center/cover;
  color: white;
  max-width: 1200px; /* or whatever width fits your layout */
  margin: 50px auto; /* top/bottom 50px, left/right auto centers it */
  text-align: center;
  padding: 0 20px; /* optional, for small screens */
}
#gallery .section-wrapper {
  max-width: 700px;      /* matches typical content width */
  margin: 0 auto;        /* centers the content */
  text-align: center;    /* centers heading and paragraph text */
  padding: 20px;         /* optional spacing */
}

#gallery h1 {
  margin-bottom: 10px;   /* spacing below heading */
  font-size: 2em;        /* adjust as needed */
}

#gallery p {
  line-height: 1.6;      /* easier reading */
  font-size: 1.1em;      /* slightly larger paragraph text */
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  align-items: start;
}
.artwork { text-align: center; }
.img-container {
  width: 100%;
  max-width: 250px;
  height: 250px;
  overflow: hidden;
  margin: 0 auto;
  border-radius: 20px;
  position: relative;
}
.clickable-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.clickable-img-link {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.img-container:hover .clickable-img {
  transform: scale(1.05);
}

.img-container:hover .clickable-img-link {
  transform: scale(1.05);
}

/* Commissions section */
.commissions ul {
  list-style: disc;
  padding-left: 20px;
}
.center-img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 12px;
}
.center-img:hover {
  transform: scale(1.05);
}

/* Forms */
form input, form textarea {
  width: 100%;
  padding: 10px;
  margin: 8px 0;
  border: 1px solid #ccc;
  border-radius: 8px;
}
form button {
  background: #7e690e;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 25px;
  cursor: pointer;
}
form button:hover {
  background: #5a4b0a;
}



/* ===================== FOOTER ===================== */
footer {
  text-align: center;
  padding: 20px;
  background: linear-gradient(to right, rgba(20,20,40,0.8), rgba(0,0,0,0.7));
  backdrop-filter: blur(4px);
  color: #f5f5f5;
  font-size: 0.9rem;
  border-top: 1px solid rgba(255,255,255,0.2);
  margin-top: 40px;
}
footer p { margin: 0; }

/* ===================== ARCANA GALLERY ===================== */
.arcana-description {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}
.arcana-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  justify-items: center;
  align-items: center;
}
.card-thumb {
  width: 150px;
  height: 250px;
  object-fit: cover;
  cursor: pointer;
  border-radius: 8px;
  transition: transform 0.2s;
}
.card-thumb:hover {
  transform: scale(1.05);
}
@media (max-width: 768px) {
  .arcana-gallery {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }
}

/* ===================== ARCANA TAROT CARDS ===================== */
.spread {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
.arcana-section .spread { gap: 15px; margin-top: 20px; }
#tarot-reading .spread { gap: 20px; margin-bottom: 40px; }

.slot {
  width: 150px;
  height: 250px;
  perspective: 1000px;
  display: inline-block;
  margin: 10px;
  cursor: pointer;
}
.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.4, 0.2, 0.2, 1);
}
.card-inner.flipped { transform: rotateY(180deg); }
.card-front,
.card-back {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  background-size: cover;
  background-position: center;
  backface-visibility: hidden;
}
.card-front { transform: rotateY(0deg); }
.card-back { transform: rotateY(180deg); background-image: url("cards/arcana-back.jpg"); }
.card-front img.reversed { transform: rotate(180deg); box-shadow: 0 4px 12px rgba(255,0,0,0.2); }

/* Card Animations */
@keyframes glowReveal {
  from { box-shadow: 0 0 10px rgba(255,215,0,0.3); }
  to   { box-shadow: 0 0 25px rgba(255,215,0,0.8); }
}
@keyframes pulseFloat {
  0% { transform: scale(1) translateY(0) rotateY(0deg); }
  50% { transform: scale(1.05) translateY(-5px) rotateY(0deg); }
  100% { transform: scale(1) translateY(0) rotateY(0deg); }
}
.slot.final .card-front {
  animation: glowReveal 1.5s ease-in-out infinite alternate, pulseFloat 3s ease-in-out infinite;
}
.slot .card-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

/* ===================== MODAL / LIGHTBOX ===================== */
.modal {
  display: none;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.85);
  padding: 20px;
  box-sizing: border-box;
  overflow-y: auto;
  z-index: 2000;
}

/* Card modal content (image + text) */
.modal img {
  max-width: 70%;
  max-height: 70vh;
  width: auto; height: auto;
  border-radius: 12px;
  display: block;
  margin: 0 auto;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.modal .info {
  color: white;
  margin: 15px auto 0;
  font-size: 16px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  word-wrap: break-word;
}

/* 📖 HOW TO USE MODAL overrides */
#howToModal .modal-content {
  background: #fff;
  color: #333;
  max-width: 700px;
  width: 100%;
  padding: 2rem;
  border-radius: 12px;
  overflow-y: auto;
  max-height: 80vh;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

#howToModal h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

#howToModal h3 {
  margin-top: 1.5rem;
  color: #ba2589; /* your pink accent */
}

#howToModal .close {
  float: right;
  font-size: 1.8rem;
  cursor: pointer;
  color: #666;
}


/* ===================== TAROT READING SECTION ===================== */
#tarot-reading {
  max-width: 1000px;
  margin: 40px auto;
  padding: 20px 20px 20px 20px;
  padding-top: 0px;
  text-align: center;
  color: #f5f5f5;
}
#tarot-reading h1 {
  font-size: 2.8rem;
  color: #ffd51d;
  text-shadow: 2px 2px 0 #000, -2px 2px 0 #000, 2px -2px 0 #000, -2px -2px 0 #000;
  margin-bottom: 15px;
}
#tarot-reading .instructions {
  font-size: 1.3rem;
  margin-bottom: 25px;
  color: #fff8c0;
}
#tarot-reading .btn--arcana { margin-bottom: 35px; }
#tarot-reading .intro-text {
  max-width: 700px;
  margin: 20px auto;
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #f5f5f5;
}

/* Interpretation Section */
.interpretation {
  max-width: 700px;
  margin: 0 auto;
  background: rgba(0,0,0,0.6);
  padding: 20px 25px;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}
.interpretation h2 {
  color: #ffd51d;
  margin-bottom: 20px;
  font-size: 2rem;
  text-shadow: 1px 1px 0 #000;
}
.interpretation p {
  font-size: 1.1rem;
  margin: 10px 0;
  line-height: 1.5;
}
.interpretation p strong { color: #ffd51d; }

@keyframes fadeIn {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ===================== SHARE BUTTONS ===================== */
.share-section {
  text-align: center;
  margin: 30px 0;
}
.share-section p {
  font-size: 1rem;
  margin-bottom: 10px;
  color: #f5f5f5;
}
.share-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.share-btn {
  padding: 10px 15px;
  border-radius: 8px;
  text-decoration: none;
  color: white;
  font-weight: 600;
  transition: transform 0.2s, background 0.3s;
}
.share-btn:hover { transform: scale(1.05); }
.share-btn.facebook { background: #3b5998; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.whatsapp { background: #25d366; }
.share-btn.copy { background: #7e690e; }
.share-btn.facebook:hover { background: #2d4373; }
.share-btn.twitter:hover { background: #0d95e8; }
.share-btn.whatsapp:hover { background: #1ebe5d; }
.share-btn.copy:hover { background: #5a4b0a; }

#personal-reading-info {
  margin-bottom: 1em;
  font-size: 1.35rem;
  color: #fff;
}

.card-label {
  text-align: center;
  margin-top: 5px;
  font-weight: 500;
  font-size: 0.9rem;
  color: #fff;
}

#TopFirst {
  object-position: top center;
}
/* ===================== BUTTONS ===================== */

/* Base button styles */
.btn {
  display: inline-block;
  padding: 12px 30px;
  font-size: 1.1rem;
  font-weight: bold;
  color: white;
  border-radius: 30px;
  text-decoration: none;
  position: relative;
  z-index: 2;
  background: linear-gradient(135deg, #7e690e, #5a4b0a);
  transition: transform 0.3s ease, background 0.3s ease;
  transform-origin: center; /* ensures scaling works */
}

/* Base hover effect */
.btn:hover {
  transform: scale(1.05);
  background: linear-gradient(135deg, #5a4b0a, #7e690e);
}

/* Arcana-specific button */
.btn--arcana {
  border-radius: 8px;
  background: linear-gradient(135deg, #7e690e, #7e690e);
}

.btn--arcana:hover {
  transform: scale(1.05);
  background: linear-gradient(135deg, #5a4b0a, #5a4b0a);
}

/* Order-specific button */
.btn--order {
  border-radius: 30px;
  background: linear-gradient(135deg, #7e690e, #7e690e);
}

.btn--order:hover {
  transform: scale(1.05);
  background: linear-gradient(135deg, #5a4b0a, #5a4b0a);
}

/* === Hero Section 2x2 Image Buttons === */
.hero-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 columns */
  grid-gap: 0px; /* space between buttons */
  justify-items: center; /* center items horizontally */
  margin-top: 0px;
}

.hero-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #fff;
  font-family: 'Quicksand', sans-serif;
  transition: transform 0.2s, box-shadow 0.2s;
}

.hero-btn img {
  width: 320px;
  height: 120px;
  object-fit: cover;
  border-radius: 15px;
  margin-bottom: 10px;
  display: block;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}

.hero-btn:hover img {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.hero-btn span {
  font-size: 1em;
  font-weight: 500;
  text-align: center;
}

  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.hero-btn span {
  font-size: 1em;
  font-weight: 500;
  text-align: center;
}
.btn {
  display: inline-block;
  padding: 12px 30px;
  font-size: 1.1rem;
  font-weight: bold;
  color: white;
  border-radius: 30px;
  text-decoration: none;
  background: linear-gradient(135deg, #7e690e, #5a4b0a);
  transition: transform 0.3s ease, background 0.3s ease;
}

.btn:hover {
  transform: scale(1.05) !important;
  background: linear-gradient(135deg, #5a4b0a, #7e690e) !important;
}
.btn, .btn--order, .btn--arcana {
  transition: transform 0.3s ease, background 0.3s ease;
  will-change: transform, background;
}
 #copyForGPT {
    padding: 10px 15px;
    background: linear-gradient(135deg, #7e690e, #5a4b0a);
    color: #fff;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-family: 'Quicksand', sans-serif;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease;
  }

  #copyForGPT:hover {
    background: linear-gradient(135deg, #9b810f, #7a5e0b);
    transform: scale(1.05);
  }
/* Center the gallery sections */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  justify-items: center; /* centers each grid item horizontally */
  margin: 0 auto;       /* center the grid itself */
  max-width: 1200px;    /* optional: keeps grid from stretching too wide */
}

.gallery-category {
  font-size: 2em;
  color: #7e690e;
  margin: 50px 0 20px 0;
  text-transform: uppercase;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
  text-align: center;
}
.gallery-category {
  scroll-margin-top: 100px; /* adjust this to match your header height */
}
#pokemon-link {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  pointer-events: none; /* 🔒 disabled until animation ends */
}
#pokemon {
  width: 800px;
  opacity: 0;
  position: fixed;
  top: 50%;  /* start centered */
  left: 50%;
  transform: translate(-50%, -50%) scale(0.5);
  z-index: 9999;
  animation: pokeFadeIn 1.5s ease forwards,
             pokeMoveToCorner 2s ease forwards;
  animation-delay: 0s, 1.5s, 4s;
}
#pokemon:hover {
  transform: scale(1.2); /* ✅ hover grow */
}
@keyframes pokeFadeIn {
  from { opacity: 0; transform: translate(-50%, -45%) scale(0.5); }
  to   { opacity: 1; transform: translate(-50%, -45%) scale(1); }
}

@keyframes pokeMoveToCorner {
  from { top: 50%; left: 50%; transform: translate(-50%, -45%) scale(1); }
  to   { top: 90%; left: 90%; transform: translate(-45%, -45%) scale(0.7); }
}