/* -------------------------------------
   GLOBAL RESET & VARIABLES
-------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@500;600&display=swap');
html {
  scroll-behavior: smooth;
}


*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

* {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

:root {
  /* 🌸 Light theme */
  --bg: #FDFCF9;
  --panel: #FFFFFF;
  --text: #2B2B2B;
  --muted: #8C8C8C;
  --brand: #c87383;
  --brand-2: #E8B6B1;
  --highlight: #F6EDE4;
  --gold: #D6C59A;
  --radius: 12px;
  --shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  --maxw: 1100px;
}

/* 🌙 Dark theme overrides */
.dark-mode {
  --bg: #0e1a2b;
  --panel: #142238;
  --text: #e0e6ef;
  --muted: #97a0b3;
  --brand: #3762a2;
  --brand-2: #1f4b8e;
  --highlight: #1c2e4a;
  --gold: #D6C59A;
}

body {
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Arial, sans-serif;
}

.container {
  width: min(92%, var(--maxw));
  margin: 0px auto;
}

/* -------------------------------------
   HEADER
-------------------------------------- */
.site-header {
  position: fixed;
  align-items: center;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px min(4vw, 16px);
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  border-bottom: 4px solid var(--gold);
}


.dark-mode .site-header {
  background: rgba(20, 34, 56, 0.8);
  border-bottom-color: var(--gold);
}

/* Wraps logo and brand text */
.logo-brand {
  display: flex;
  align-items: center; /* ✅ aligns logo + text together */
  gap: 12px;
}

/* Adjust logo size for better balance */
.logo-brand .logo img {
  height: 70px;  /* try 70–80px instead of 100px */
  width: auto;
  display: block;
}

.brand {
  display: flex;        /* ensures text centers on its own line-height */
  align-items: center;  /* ✅ centers text vertically within logo-brand */
  line-height: 1;       /* avoids extra space above/below */
  margin: 0;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  font-weight: 900;
  font-size: 2rem;
  color: var(--brand);
  letter-spacing: 0.5px;
  text-decoration: none;
  align-items: center;
  text-shadow:
    0 0 2px #fff,
    0 0 4px #fff,
    0 0 6px #fff,
    0 0 10px rgba(255, 255, 255, 0.6);
}

.brand span {
  color: color-mix(in srgb, var(--brand) 80%, white);
  transition: color 0.3s ease;
}

/* dark mode brand tweaks */
.dark-mode .brand {
  text-shadow:
    0 0 2px rgba(255,255,255,0.2),
    0 0 6px rgba(255,255,255,0.15);
}

.dark-mode .brand span {
  color: color-mix(in srgb, var(--brand) 60%, var(--gold) 40%);
}

/* Navigation */
.site-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-nav a {
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 999px;
  transition: all 0.3s ease;
  background: rgba(255, 240, 240, 0.65);
  backdrop-filter: blur(6px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.site-nav a:hover {
  color: #fff;
  background: var(--brand);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.site-nav a.active {
  color: #fff;
  background: linear-gradient(90deg, var(--brand), var(--gold));
}

/* Dark mode nav */
.dark-mode .site-nav a {
  background: rgba(28, 44, 71, 0.6);
}

.dark-mode .site-nav a:hover {
  background: var(--brand);
}

.dark-mode .site-nav a.active {
  color: #fff;
  background: linear-gradient(90deg, var(--brand), var(--gold));
}

/* -------------------------------------
   HERO SECTION
-------------------------------------- */
.hero {
  padding: 1rem;
  display: grid;
  gap: 1rem;
  text-align: center;
  margin-top: 120px; /* adjust to your header height */
}

.hero h1 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  line-height: 1.2;
  margin: 0 auto 0.75rem;
  font-family: 'Dancing Script', cursive;
  color: var(--brand);
  max-width: 1200px;
  padding: 0.5rem 1rem;
}

.hero p {
  color: var(--muted);
  margin: 0 auto;
  max-width: 60ch;
  line-height: 1.6;
}

/* -------------------------------------
   BUTTONS
-------------------------------------- */
.btn {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 20px;
  padding: 14px 0;
  border: none;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.05rem;
  background: linear-gradient(90deg, var(--brand), var(--gold));
  color: white;
  text-decoration: none;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: opacity 0.25s ease;
}

.btn:hover { opacity: 0.9; }

/* ------------------------------------- GRID & CARDS -------------------------------------- */
.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 24px;
}
.grid.two {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.card {
  background: #fff;
  padding: 20px;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  text-align: center;
  transition: background 0.3s ease, color 0.3s ease;
}
.card h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 auto;
  position: relative;
  padding-bottom: 6px;
}
.card h2::after {
  content: "";
  display: block;
  width: 60%;
  height: 2px;
  background: var(--gold);
  margin: 0 auto;
  border-radius: 2px;
}
.price-section .card {
  margin: 30px auto;
}

/* ------------------------------------- PRICE LIST -------------------------------------- */
.price-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px 40px;
  max-width: 800px;
  width: 100%;
}
.price-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: border-color 0.3s ease;
}
.price-list li span:first-child {
  font-weight: 500;
  color: var(--text);
}
.price-list li span:last-child {
  font-weight: 600;
  color: var(--gold);
}

/* ------------------------------------- FORMS -------------------------------------- */
.form .field {
  display: grid;
  gap: 6px;
  margin: 12px 0;
}
.form input,
.form textarea {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.1);
  background: rgba(247, 168, 184, 0.05);
  color: var(--text);
  transition: background 0.3s ease, border 0.3s ease;
}
.form input:focus,
.form textarea:focus {
  outline: 2px solid var(--brand);
  border-color: transparent;
}

/* ------------------------------------- ABOUT SECTION -------------------------------------- */
.about-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  margin: 0 auto;
  gap: 20px;
  transition: background 0.3s ease;
}



.about-text {
  flex: 1 1 300px;
}
.about-text h2 {
  font-size: 30px;
  line-height: 1.15;
  margin: 0;
  color: var(--brand);
}
.about-text p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
  max-width: 60ch;
}
.about-image {
  flex: 1 1 300px;
  text-align: right;
}
.about-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.button-container {
  max-width: 1000px;
  margin: 20px auto 0;
  text-align: center;
}

/* --- Subtle About Section Links --- */
.about-links {
  margin-top: 1rem;
  font-size: 0.95rem;
  text-align: left;
}

.about-links a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease, text-decoration 0.3s ease;
}

.about-links a:hover {
  color: var(--brand-dark);
  text-decoration: underline;
}


/* ------------------------------------- PORTFOLIO GALLERY -------------------------------------- */
.portfolio-gallery {
  text-align: center;
  padding: 4rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}
.portfolio-gallery h2 {
  font-family: 'Dancing Script', cursive;
  color: var(--brand);
  font-size: 3rem;
  margin-bottom: 0.5rem;
}
.portfolio-gallery p {
  color: var(--muted);
  margin-bottom: 2rem;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, opacity 0.4s ease;
}
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.gallery-item:hover img {
  transform: scale(1.05);
  opacity: 0.9;
}
.gallery-item:hover::after {
  opacity: 1;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
.lightbox-content {
  max-width: 90%;
  max-height: 80vh;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
}

/* ------------------------------------- BEFORE & AFTER FLIPBOOK -------------------------------------- */
.flipbook-wrapper {
  text-align: center;
  padding: 60px 20px;
  max-width: 1200px;
  margin: 60px auto;
  background: rgba(232, 182, 177, 0.05);
  border-radius: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(232, 182, 177, 0.1);
  transition: background 0.3s ease, border 0.3s ease;
}
.section-title {
  font-family: 'Dancing Script', cursive;
  font-size: 2.4rem;
  color: var(--brand);
  margin-bottom: 0.25em;
}
.section-subtitle {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 2.5em;
}

.flipbook-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  overflow: hidden;
  padding: 40px 20px;
  box-sizing: border-box;
  transition: background 0.3s ease;
}


.flipbook-slide {
  display: none;
}
.flipbook-slide.active {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  flex-wrap: nowrap;
  padding: 20px 0;
}
.flipbook-slide img {
  flex: 1 1 380px;
  max-width: 420px;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.flipbook-slide img:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}
.image-pair {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.caption {
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--muted);
  font-style: italic;
}
.flipbook-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--gold);
  font-size: 2.4rem;
  font-weight: 300;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0.75;
  z-index: 10;
}
.flipbook-arrow.left { left: 15px; }
.flipbook-arrow.right { right: 15px; }
.flipbook-arrow:hover {
  color: var(--brand);
  transform: translateY(-50%) scale(1.15);
  opacity: 1;
  text-shadow: 0 0 6px rgba(0,0,0,0.1);
}


/* ------------------------------------- DARK MODE FIXES FOR ABOVE SECTIONS -------------------------------------- */
body.dark-mode .card,
body.dark-mode .about-container,
body.dark-mode .flipbook-container {
  background: #1a2336;
  color: #dfe6f1;
  box-shadow: 0 4px 12px rgba(0,0,0,0.6);
}
body.dark-mode .flipbook-wrapper {
  background: rgba(27, 42, 73, 0.25);
  border-color: rgba(255,255,255,0.08);
}
body.dark-mode .price-list li {
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
body.dark-mode .gallery-item {
  box-shadow: 0 2px 12px rgba(0,0,0,0.7);
}

.certificates-wrapper {
  position: relative;
  width: 100vw; /* ensure full viewport width */
  padding: 40px 0;
  background-color: var(--bg);
  overflow-y: visible; /* let tall images breathe vertically */
  overflow-x: visible; /* modern way to hide horizontal overflow without clipping top/bottom */
}

.certificates {
  display: flex;
  align-items: center;  gap: 4rem;
  animation: scrollCertificates 30s linear infinite;
}

/* make certificates large enough for text readability */
.certificates img {
  width: 420px;  /* much larger size */
  height: auto;
  flex-shrink: 0;
  border-radius: 5px;
  transition: transform 0.3s ease;
}

/* zoom and pause on hover */
.certificates img:hover {
  transform: scale(1.05);
}

.certificates-wrapper:hover .certificates {
  animation-play-state: paused;
}


/* 🎬 Animation */
@keyframes scrollCertificates {
  from {
    transform: translateX(0); /* start where images are visible */
  }
  to {
    transform: translateX(-50%); /* slide across the duplicated set */
  }
}




/* -------------------------------------
   TRAINING SECTION
-------------------------------------- */
.training-section {
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  line-height: 1.7;
  padding: 3rem 2rem;
}




.training-section h2 {
  font-family: 'Dancing Script', cursive;
  font-size: 2.6rem;
  color: var(--brand);
  margin-bottom: 1rem;
}

.training-section h3 {
  font-size: 1.4rem;
  color: var(--brand);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.training-section p {
  color: var(--muted);
  max-width: 75ch;
  margin: 0.5rem auto 1.5rem;
}

.training-list {
  list-style: none;
  padding: 0;
  margin: 1rem auto 2rem;
  max-width: 600px;
  text-align: left;
}

.training-list li {
  background: rgba(232, 182, 177, 0.08);
  padding: 10px 16px;
  border-radius: 8px;
  margin-bottom: 10px;
  border-left: 4px solid var(--gold);
  transition: background 0.3s ease;
}

.training-list li:hover {
  background: var(--highlight);
}

/* Dark mode tweaks */
.dark-mode .training-section {
  background: #1a2336;
  color: var(--text);
  box-shadow: 0 4px 12px rgba(0,0,0,0.6);
}

.dark-mode .training-list li {
  background: rgba(255, 255, 255, 0.05);
  border-left-color: var(--brand);
}

.dark-mode .training-list li:hover {
  background: var(--highlight);
}

.section-divider {
  border: none;
  border-top: 2px solid var(--gold);
  width: 80%;
  margin: 3rem auto;
  opacity: 0.5;
}

.dark-mode .section-divider {
  border-top-color: var(--brand);
  opacity: 0.4;
}

/* --- Collapsible Training Sections --- */
.collapsible {
  cursor: pointer;
  position: relative;
  padding-right: 24px;
}

.collapsible::after {
  content: "▼";
  position: absolute;
  right: 0;
  top: 0;
  font-size: 1rem;
  color: var(--brand);
  transition: transform 0.3s ease;
}

.collapsible.active::after {
  transform: rotate(180deg);
}

.collapse-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.4s ease;
}

.collapse-content.open {
  max-height: 1000px; /* large enough for content */
  opacity: 1;
}



/* -------------------------------------
   FOOTER + THEME TOGGLE
-------------------------------------- */
.site-footer {
  margin: 40px 0 24px;
  text-align: center;
  color: var(--muted);
}

.theme-toggle {
  background: linear-gradient(90deg, var(--brand), var(--gold));
  color: white;
  border: none;
  border-radius: 999px;
  padding: 10px 20px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.theme-toggle:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.social-links { display: flex; justify-content: center; gap: 12px; margin-bottom: 10px; } 
.social-icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(90deg, var(--brand), var(--gold)); color: white; font-size: 1.2rem; text-decoration: none; transition: transform 0.2s ease, opacity 0.2s ease; } 
.social-icon:hover { transform: scale(1.1); opacity: 0.9; }

#rotate-me {
  transform: rotate(90deg);
  transform-origin: center;
}



/* -------------------------------------
   RESPONSIVE ENHANCEMENTS
-------------------------------------- */

/* 🧭 Tablets (≤ 1024px) */
@media (max-width: 1024px) {
  .logo img {
    height: 80px;
  }

  .site-nav a {
    padding: 8px 14px;
    font-size: 0.95rem;
  }

  .about-container {
    flex-direction: column;
    text-align: center;
  }

  .about-image {
    text-align: center;
  }

  .flipbook-slide.active {
    flex-wrap: wrap;
    gap: 20px;
  }
}

.nav-toggle {
  display: none;
}

/* ---------------- MOBILE NAVIGATION & HEADER ---------------- */
@media (max-width: 768px) {

  /* Header adjustments */
  .site-header {
    display: flex;
    justify-content: space-between; /* logo-brand left, hamburger right */
    align-items: center;
    padding: 10px 16px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(12px) saturate(150%);
  }

  /* Logo + Brand together */
  .logo-brand {
    display: flex;
    align-items: center;
    gap: 8px; /* spacing between logo and title */
  }

  .logo img {
    height: 70px;
    max-width: 80px;
  }

  .brand {
    font-size: 1.6rem;
    margin: 0; /* remove extra spacing */
  }

  /* Hamburger toggle */
  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 101;
  }

  .nav-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--text);
    border-radius: 3px;
    transition: all 0.3s ease;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  /* Navigation menu */
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--panel);
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    border-bottom: 2px solid var(--gold);
    transition: max-height 0.4s ease, opacity 0.3s ease;
    z-index: 99;
  }

  .site-nav.open {
    max-height: 400px; /* enough for all links */
    opacity: 1;
    padding-bottom: 10px;
    border-bottom: 4px solid var(--gold);
  }

  .site-nav a {
    width: 100%;
    text-align: center;
    padding: 14px 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    font-weight: 600;
  }

  .site-nav a:hover {
    background: var(--brand);
    color: #fff;
  }

  .site-nav a.active {
    color: #fff;
    background: linear-gradient(90deg, var(--brand), var(--gold));
  }

  /* Hero adjustments */
  .hero h1 {
    font-size: 2rem;
  }

  /* Grid & gallery adjustments */
  .grid,
  .price-list,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  /* About section */
  .about-container {
    flex-direction: column;
    text-align: center;
    padding: 16px;
  }

  .about-text h2 {
    font-size: 1.8rem;
  }

  .about-text p {
    font-size: 0.95rem;
  }

  /* Flipbook arrows & images */
  .flipbook-arrow {
    font-size: 1.8rem;
  }

  .flipbook-slide img {
    max-width: 90%;
  }

  /* Certificates carousel */
  .certificates {
    gap: 1.5rem;
    animation-duration: 80s;
  }

  .certificates img {
    width: 280px;
  }

  /* Training section adjustments */
  .training-section {
    padding: 2rem 1rem;
  }

  .training-section h2 {
    font-size: 2rem;
  }

  .training-section h3 {
    font-size: 1.2rem;
  }
}

