/* ═══════════════════════════════════════════
   JUMINO - Makeup Tutorial Website
   Color Palette from Logo:
   Mint Green, Soft Yellow, Light Blue,
   Clover Green accent, Red accent
   ═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Playfair+Display:wght@700;800&display=swap');

/* ─── CSS Variables ─── */
:root {
  --mint: #B5EAD7;
  --mint-light: #D4F5E9;
  --mint-dark: #7BCBA6;
  --yellow: #FFEEAD;
  --yellow-light: #FFF5D1;
  --blue: #C7CEEA;
  --blue-light: #E0E4F5;
  --green: #2D8B46;
  --green-dark: #1E6B33;
  --red: #E63946;
  --red-dark: #C5303C;
  --cream: #FFF9F0;
  --brown: #3D2B1F;
  --brown-light: #6B4E3D;
  --white: #FFFFFF;
  --shadow: 0 8px 32px rgba(61, 43, 31, 0.12);
  --shadow-hover: 0 12px 40px rgba(61, 43, 31, 0.2);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Reset & Base ─── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--cream);
  color: var(--brown);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ─── Plaid Background Pattern (matches logo) ─── */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 35px,
      rgba(181, 234, 215, 0.15) 35px,
      rgba(181, 234, 215, 0.15) 70px
    ),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 35px,
      rgba(255, 238, 173, 0.15) 35px,
      rgba(255, 238, 173, 0.15) 70px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 50px,
      rgba(199, 206, 234, 0.1) 50px,
      rgba(199, 206, 234, 0.1) 100px
    );
  pointer-events: none;
  z-index: 0;
}

/* ─── Floating Decorative Elements ─── */
.floating-clover {
  position: fixed;
  font-size: 24px;
  opacity: 0.12;
  animation: floatClover 15s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.floating-clover:nth-child(1) { top: 10%; left: 5%; animation-delay: 0s; font-size: 30px; }
.floating-clover:nth-child(2) { top: 30%; right: 8%; animation-delay: 3s; font-size: 22px; }
.floating-clover:nth-child(3) { bottom: 20%; left: 10%; animation-delay: 6s; font-size: 26px; }
.floating-clover:nth-child(4) { top: 60%; right: 15%; animation-delay: 9s; font-size: 20px; }
.floating-clover:nth-child(5) { bottom: 40%; left: 20%; animation-delay: 12s; font-size: 28px; }

@keyframes floatClover {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-20px) rotate(10deg); }
  50% { transform: translateY(-10px) rotate(-5deg); }
  75% { transform: translateY(-25px) rotate(8deg); }
}

/* ─── Navbar ─── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255, 249, 240, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 2px solid rgba(181, 234, 215, 0.4);
  padding: 0 24px;
  transition: var(--transition);
}

.navbar.scrolled {
  box-shadow: 0 4px 20px rgba(61, 43, 31, 0.1);
}

.nav-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--brown);
}

.nav-logo img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--mint);
  transition: var(--transition);
}

.nav-logo:hover img {
  transform: scale(1.08) rotate(5deg);
  border-color: var(--green);
}

.nav-logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 6px;
}

.nav-links a {
  text-decoration: none;
  color: var(--brown);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 50px;
  transition: var(--transition);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--mint);
  color: var(--green-dark);
}

.nav-links a.active {
  font-weight: 600;
}

/* ─── Hamburger Menu ─── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border: none;
  background: none;
  z-index: 1001;
}

.hamburger span {
  width: 24px;
  height: 2.5px;
  background: var(--brown);
  border-radius: 2px;
  transition: var(--transition);
}

/* ─── Page Container ─── */
.page {
  display: none;
  min-height: 100vh;
  padding-top: 88px;
  padding-bottom: 40px;
  position: relative;
  z-index: 1;
  animation: fadeInPage 0.5s ease-out;
}

.page.active {
  display: block;
}

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

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Hero Section ─── */
.hero {
  text-align: center;
  padding: 50px 20px 40px;
}

.hero-logo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--mint);
  box-shadow: 0 8px 30px rgba(45, 139, 70, 0.2);
  margin-bottom: 20px;
  animation: logoFloat 4s ease-in-out infinite;
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 42px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--red), #FF6B6B);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.hero .subtitle {
  font-size: 16px;
  color: var(--brown-light);
  font-weight: 400;
  margin-bottom: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero .divider {
  font-size: 18px;
  color: var(--mint-dark);
  margin: 16px 0;
  letter-spacing: 4px;
}

.hero-description {
  max-width: 600px;
  margin: 0 auto;
  font-size: 15px;
  line-height: 1.8;
  color: var(--brown-light);
}

/* ─── Team Section ─── */
.team-section {
  padding: 30px 0 40px;
}

.section-title {
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--brown);
  margin-bottom: 8px;
}

.section-subtitle {
  text-align: center;
  font-size: 14px;
  color: var(--brown-light);
  margin-bottom: 30px;
  letter-spacing: 1px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
}

.team-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 2px solid transparent;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.team-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--mint), var(--yellow), var(--blue));
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--mint);
}

.team-card .number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--mint), var(--mint-dark));
  color: var(--white);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 14px;
}

.team-card .name {
  font-size: 15px;
  font-weight: 600;
  color: var(--brown);
  margin-bottom: 4px;
}

.team-card .role {
  font-size: 12px;
  color: var(--brown-light);
}

/* ─── Canva Embed ─── */
.embed-section {
  padding: 30px 0 20px;
}

.embed-container {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
}

.embed-container iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

/* ─── Trinket (Python) Embed ─── */
.trinket-embed {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
}

.trinket-embed iframe {
  display: block;
  width: 100%;
  height: 680px;
  border: none;
}

@media (max-width: 600px) {
  .trinket-embed iframe { height: 480px; }
}

/* ─── Tutorial Categories (Product/Tutorial Page) ─── */
.categories-section {
  padding: 30px 0;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  max-width: 1060px;
  margin: 0 auto;
}

.category-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  border: 2px solid transparent;
}

.category-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-hover);
  border-color: var(--green);
}

.category-card-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: var(--transition);
}

.category-card:hover .category-card-image {
  transform: scale(1.05);
}

.category-card-image-wrapper {
  overflow: hidden;
  height: 180px;
}

.category-card-body {
  padding: 16px;
}

.category-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--brown);
  margin-bottom: 4px;
}

.category-card-count {
  font-size: 12px;
  color: var(--brown-light);
  display: flex;
  align-items: center;
  gap: 4px;
}

.category-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 600;
  color: var(--white);
  margin-top: 8px;
}

.badge-douyin { background: linear-gradient(135deg, #25F4EE, #FE2C55); }
.badge-korean { background: linear-gradient(135deg, #FF9A9E, #FECFEF); color: var(--brown); }
.badge-baddie { background: linear-gradient(135deg, #2C2C2C, #555); }
.badge-scandinavian { background: linear-gradient(135deg, #A8D8B9, #6BBF8A); }
.badge-softglam { background: linear-gradient(135deg, #F5CBA7, #E8A87C); color: var(--brown); }

/* ─── Slideshow Modal ─── */
.slideshow-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(10px);
  z-index: 2000;
  animation: fadeIn 0.3s ease-out;
}

.slideshow-overlay.active {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.slideshow-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  z-index: 2001;
}

.slideshow-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
}

.slideshow-close {
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(255,255,255,0.15);
  color: var(--white);
  font-size: 22px;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.slideshow-close:hover {
  background: var(--red);
  transform: rotate(90deg);
}

.slideshow-container {
  position: relative;
  width: 90%;
  max-width: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slideshow-image-wrapper {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slideshow-image {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 0 60px rgba(0,0,0,0.5);
  transition: var(--transition);
  animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

.slideshow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: none;
  background: rgba(255,255,255,0.18);
  color: var(--white);
  font-size: 22px;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.slideshow-btn:hover {
  background: var(--green);
  transform: translateY(-50%) scale(1.1);
}

.slideshow-btn.prev { left: -60px; }
.slideshow-btn.next { right: -60px; }

.slideshow-counter {
  text-align: center;
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  margin-top: 16px;
  font-weight: 500;
}

.slideshow-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 12px;
  flex-wrap: wrap;
  max-width: 300px;
}

.slideshow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}

.slideshow-dot.active {
  background: var(--mint);
  transform: scale(1.3);
}

/* ─── Design Process Page ─── */
.design-section {
  padding: 30px 0;
}

.design-steps {
  max-width: 700px;
  margin: 0 auto;
}

.design-step {
  display: flex;
  gap: 20px;
  margin-bottom: 28px;
  padding: 24px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-left: 4px solid var(--mint);
}

.design-step:hover {
  transform: translateX(6px);
  border-left-color: var(--green);
}

.design-step:nth-child(2n) {
  border-left-color: var(--yellow);
}
.design-step:nth-child(2n):hover {
  border-left-color: var(--red);
}
.design-step:nth-child(3n) {
  border-left-color: var(--blue);
}
.design-step:nth-child(3n):hover {
  border-left-color: var(--green);
}

.step-number {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--mint-dark));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
}

.step-content h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--brown);
}

.step-content p {
  font-size: 14px;
  color: var(--brown-light);
  line-height: 1.7;
}

/* ─── Footer ─── */
.footer {
  text-align: center;
  padding: 30px 20px;
  background: linear-gradient(135deg, var(--mint-light), var(--yellow-light), var(--blue-light));
  border-top: 2px solid rgba(181, 234, 215, 0.4);
  position: relative;
  z-index: 1;
}

.footer-brand {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 6px;
}

.footer-text {
  font-size: 13px;
  color: var(--brown-light);
}

.footer-text .heart {
  color: var(--red);
  -webkit-text-fill-color: var(--red);
  animation: heartBeat 1.5s ease-in-out infinite;
  display: inline-block;
}

@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

.footer-members {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 10px;
  font-size: 12px;
  color: var(--brown-light);
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--cream);
}
::-webkit-scrollbar-thumb {
  background: var(--mint-dark);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--green);
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: rgba(255, 249, 240, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 16px;
    gap: 4px;
    border-bottom: 2px solid var(--mint);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  }

  .nav-links.open {
    display: flex;
  }

  .hamburger {
    display: flex;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero h1 { font-size: 30px; }
  .hero-logo { width: 100px; height: 100px; }
  .team-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .categories-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .slideshow-btn.prev { left: 5px; }
  .slideshow-btn.next { right: 5px; }
  .slideshow-container { width: 95%; }
  .section-title { font-size: 24px; }
}

@media (max-width: 480px) {
  .team-grid { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 26px; }
  .nav-content { height: 60px; }
}
