/* ========================================
   BEEONIA - CSS Stylesheet
   Responsive Design for Web & Mobile
   ======================================== */

/* CSS Variables */
:root {
  --bg-primary: #0d1026;
  --bg-secondary: #141836;
  --bg-footer: #0a0c1a;
  --text-primary: #ffffff;
  --text-secondary: #a0a5c0;
  --accent-gold: #c9a227;
  --accent-gold-light: #e8c547;
  --accent-honey: #d4a574;
  --border-color: rgba(255, 255, 255, 0.1);
  --shadow-gold: rgba(201, 162, 39, 0.3);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-display: "Cinzel", serif;
  --font-body: "Cormorant Garamond", serif;
  --font-ui: "Montserrat", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

/* ========================================
   Header
   ======================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 2rem;
  background: linear-gradient(180deg, var(--bg-primary) 0%, transparent 100%);
  transition: var(--transition-smooth);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.3em;
  color: var(--text-primary);
  font-weight: 400;
}

.nav {
  display: flex;
  gap: 2.5rem;
}

.nav-link {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-gold);
  transition: var(--transition-smooth);
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link:hover::after {
  width: 100%;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font-ui);
  font-size: 0.8rem;
}

.lang-btn {
  color: var(--text-secondary);
  padding: 0.3rem 0.5rem;
  transition: var(--transition-smooth);
  font-weight: 500;
}

.lang-btn.active,
.lang-btn:hover {
  color: var(--text-primary);
}

.lang-divider {
  color: var(--text-secondary);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
}

.mobile-menu-btn span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition-smooth);
}

/* Mobile Navigation */
.mobile-nav {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  background: var(--bg-secondary);
  padding: 1.5rem;
  flex-direction: column;
  gap: 1rem;
  z-index: 999;
  transform: translateY(-100%);
  opacity: 0;
  transition: var(--transition-smooth);
}

.mobile-nav.active {
  transform: translateY(0);
  opacity: 1;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
  min-height: 100vh;
  padding: 120px 2rem 4rem;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto 4rem;
  text-align: center;
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-secondary);
  font-style: italic;
}

.hero-tagline strong,
.hero-tagline em {
  color: var(--text-primary);
  font-style: normal;
}

/* ========================================
   Section Titles
   ======================================== */
.section-title {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.4em;
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.section-title::before,
.section-title::after {
  content: "·";
  color: var(--accent-gold);
}

/* ========================================
   Gallery - Polaroid Clothesline
   ======================================== */
.gallery-section {
  background-color: var(--bg-secondary);
  padding: 4rem 0;
  margin: 0 -2rem;
  padding-bottom: 4rem;
  overflow: hidden;
}

/* Wrapper with arrows */
.clothesline-wrapper {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
}

/* Navigation arrows */
.clothesline-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(13, 16, 38, 0.7);
  border: 1px solid rgba(201, 162, 39, 0.4);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  cursor: pointer;
  transition: var(--transition-smooth);
  backdrop-filter: blur(4px);
}

.clothesline-arrow:hover {
  background: rgba(201, 162, 39, 0.2);
  border-color: var(--accent-gold);
  transform: translateY(-50%) scale(1.1);
}

.clothesline-arrow svg {
  width: 22px;
  height: 22px;
}

.clothesline-arrow--left {
  left: 1rem;
}

.clothesline-arrow--right {
  right: 1rem;
}

/* Viewport */
.clothesline-viewport {
  overflow: hidden;
  padding: 0 2rem;
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
}

.clothesline-viewport:active {
  cursor: grabbing;
}

/* Track - horizontal scroll container */
.clothesline-track {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  padding: 40px 60px 40px 60px;
  min-width: max-content;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

/* ---- The Rope ---- */
.clothesline-rope {
  position: absolute;
  top: 58px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    #8B6914 3%,
    #a07d1c 20%,
    #8B6914 50%,
    #a07d1c 80%,
    #8B6914 97%,
    transparent 100%
  );
  border-radius: 2px;
  z-index: 1;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* Rope texture */
.clothesline-rope::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 8px,
    rgba(255, 255, 255, 0.08) 8px,
    rgba(255, 255, 255, 0.08) 10px
  );
}

/* Rope slight sag effect */
.clothesline-rope::after {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(139, 105, 20, 0.3) 50%,
    transparent 100%
  );
  border-radius: 50%;
}

/* ---- Fairy Lights ---- */
.clothesline-lights {
  position: absolute;
  top: 50px;
  left: 0;
  right: 0;
  height: 30px;
  z-index: 2;
  pointer-events: none;
}

.fairy-light {
  position: absolute;
  top: 0;
  width: 8px;
  height: 12px;
  border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
  animation: fairyGlow 2s ease-in-out infinite alternate;
}

/* Wire from rope to bulb */
.fairy-light::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
}

/* Light colors - warm tones */
.fairy-light:nth-child(4n+1) {
  background: radial-gradient(ellipse at center, #ffe066, #f0c030);
  box-shadow: 0 0 6px 2px rgba(255, 224, 102, 0.5),
              0 0 12px 4px rgba(255, 224, 102, 0.2);
  animation-delay: 0s;
}

.fairy-light:nth-child(4n+2) {
  background: radial-gradient(ellipse at center, #ffd6a0, #e8a050);
  box-shadow: 0 0 6px 2px rgba(255, 214, 160, 0.5),
              0 0 12px 4px rgba(255, 214, 160, 0.2);
  animation-delay: 0.5s;
}

.fairy-light:nth-child(4n+3) {
  background: radial-gradient(ellipse at center, #fff5cc, #f0d870);
  box-shadow: 0 0 6px 2px rgba(255, 245, 204, 0.5),
              0 0 12px 4px rgba(255, 245, 204, 0.2);
  animation-delay: 1s;
}

.fairy-light:nth-child(4n) {
  background: radial-gradient(ellipse at center, #ffe0b2, #e8b060);
  box-shadow: 0 0 6px 2px rgba(255, 224, 178, 0.5),
              0 0 12px 4px rgba(255, 224, 178, 0.2);
  animation-delay: 1.5s;
}

@keyframes fairyGlow {
  0% {
    opacity: 0.6;
    filter: brightness(0.8);
  }
  50% {
    opacity: 1;
    filter: brightness(1.3);
  }
  100% {
    opacity: 0.7;
    filter: brightness(0.9);
  }
}

/* ---- Polaroid Item (pin + card) ---- */
.polaroid-item {
  position: relative;
  z-index: 5;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 20px;
  transform: rotate(var(--rotation, 0deg));
  transition: transform 0.4s ease;
}

.polaroid-item:hover {
  transform: rotate(0deg) scale(1.04);
  z-index: 10;
}

/* ---- Clothespin (CSS-drawn) ---- */
.clothespin {
  position: relative;
  width: 16px;
  height: 40px;
  z-index: 6;
  margin-bottom: -6px;
}

.clothespin-top {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 10px;
  background: linear-gradient(180deg, #c4a35a, #9e8040);
  border-radius: 3px 3px 0 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.clothespin-body {
  position: absolute;
  top: 10px;
  left: 1px;
  width: 6px;
  height: 28px;
  background: linear-gradient(180deg, #d4b06a, #b8943e);
  border-radius: 0 0 2px 2px;
  box-shadow: inset -1px 0 0 rgba(0, 0, 0, 0.15);
}

.clothespin-body--right {
  left: auto;
  right: 1px;
  background: linear-gradient(180deg, #c8a45e, #a88636);
  box-shadow: inset 1px 0 0 rgba(0, 0, 0, 0.15);
}

.clothespin-spring {
  position: absolute;
  top: 13px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 6px;
  border: 1.5px solid #888;
  border-radius: 50%;
  background: transparent;
}

/* ---- Polaroid Card (Instax style) ---- */
.polaroid-card {
  background: #faf9f6;
  padding: 10px 10px 0 10px;
  border-radius: 3px;
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.3),
    0 1px 3px rgba(0, 0, 0, 0.2),
    inset 0 0 0 1px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.3s ease;
  width: 260px;
}

.polaroid-item:hover .polaroid-card {
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.4),
    0 2px 6px rgba(0, 0, 0, 0.3),
    inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}

/* Photo area */
.polaroid-photo {
  width: 240px;
  height: 240px;
  overflow: hidden;
  border-radius: 2px;
  background: #e0ddd5;
}

.polaroid-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.9) contrast(1.02);
  transition: filter 0.3s ease;
}

.polaroid-item:hover .polaroid-photo img {
  filter: saturate(1) contrast(1.05);
}

/* Wide polaroid variant (landscape photos) */
.polaroid-item--wide .polaroid-card {
  width: 340px;
}

.polaroid-item--wide .polaroid-photo {
  width: 320px;
  height: 240px;
}

/* Caption area - Instax bottom */
.polaroid-caption {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 8px 16px;
  min-height: 56px;
}

.polaroid-date {
  font-family: 'Courier New', 'Lucida Console', monospace;
  font-size: 11px;
  color: #888;
  letter-spacing: 1px;
  margin-bottom: 3px;
}

.polaroid-location {
  font-family: var(--font-body);
  font-size: 13px;
  color: #555;
  font-style: italic;
  letter-spacing: 0.5px;
}

/* ---- Carousel buttons (for products & reviews) ---- */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: var(--transition-smooth);
  cursor: pointer;
}

.carousel-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--accent-gold);
}

.carousel-btn svg {
  width: 24px;
  height: 24px;
}

.carousel-btn.prev {
  left: 1rem;
}

.carousel-btn.next {
  right: 1rem;
}

/* ---- Responsive Polaroid ---- */
@media (max-width: 768px) {
  .gallery-section {
    padding: 3rem 0;
  }

  .clothesline-track {
    gap: 1.5rem;
    padding: 40px 40px 30px 40px;
  }

  .polaroid-card {
    width: 210px;
    padding: 8px 8px 0 8px;
  }

  .polaroid-photo {
    width: 194px;
    height: 194px;
  }

  .polaroid-item--wide .polaroid-card {
    width: 274px;
  }

  .polaroid-item--wide .polaroid-photo {
    width: 258px;
    height: 194px;
  }

  .polaroid-caption {
    padding: 10px 6px 14px;
    min-height: 48px;
  }

  .polaroid-date {
    font-size: 10px;
  }

  .polaroid-location {
    font-size: 12px;
  }

  .clothesline-arrow {
    width: 36px;
    height: 36px;
  }

  .clothesline-arrow svg {
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 480px) {
  .gallery-section {
    padding: 2rem 0;
  }

  .clothesline-track {
    gap: 1.2rem;
    padding: 35px 30px 20px 30px;
  }

  .polaroid-card {
    width: 180px;
    padding: 6px 6px 0 6px;
  }

  .polaroid-photo {
    width: 168px;
    height: 168px;
  }

  .polaroid-item--wide .polaroid-card {
    width: 236px;
  }

  .polaroid-item--wide .polaroid-photo {
    width: 224px;
    height: 168px;
  }

  .clothesline-rope {
    top: 53px;
  }

  .clothesline-lights {
    top: 45px;
  }

  .fairy-light {
    width: 6px;
    height: 9px;
  }

  .clothesline-arrow--left {
    left: 0.5rem;
  }

  .clothesline-arrow--right {
    right: 0.5rem;
  }
}

/* ========================================
   Products Section
   ======================================== */
.products-section {
  margin-bottom: 4rem;
}

.products-carousel {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 60px;
  overflow: hidden;
}

.products-track {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.5s ease;
  padding: 1rem 0;
}

.product-card {
  min-width: calc(33.333% - 1rem);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.02) 100%
  );
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.product-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

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

.product-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 24px;
  height: 24px;
  background: var(--accent-gold);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--bg-primary);
}

.product-info {
  padding: 1rem;
  text-align: center;
}

.product-info h3 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.3rem;
}

.product-info p {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* ========================================
   Product Modal
   ======================================== */
.product-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
}

.product-modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(13, 16, 38, 0.95);
  backdrop-filter: blur(20px);
}

.modal-content {
  position: relative;
  max-width: 900px;
  width: 90%;
  max-height: 90vh;
  background: var(--bg-secondary);
  border-radius: 12px;
  display: flex;
  overflow: hidden;
  transform: scale(0.9) translateY(20px);
  transition: var(--transition-smooth);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.product-modal.active .modal-content {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: var(--transition-smooth);
}

.modal-close:hover {
  background: var(--accent-gold);
  color: var(--bg-primary);
}

.modal-image {
  flex: 0 0 50%;
  max-height: 500px;
}

.modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-info {
  flex: 1;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.modal-info h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.modal-origin {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--accent-gold);
  margin-bottom: 1.5rem;
}

.modal-description {
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.modal-details {
  display: flex;
  gap: 2rem;
  margin-bottom: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.modal-weight,
.modal-price {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.1em;
}

.modal-price {
  color: var(--accent-gold);
}

.modal-harvest {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-style: italic;
}

/* ========================================
   Science / Literature Section
   ======================================== */
.science-section {
  padding: 4rem 2rem;
  background: var(--bg-primary);
  margin-bottom: 0;
}

.science-subtitle {
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  text-align: center;
  max-width: 700px;
  margin: 0 auto 2.5rem;
  font-style: italic;
}

.science-categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.category-btn {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.category-btn:hover {
  border-color: rgba(201, 162, 39, 0.4);
  color: var(--text-primary);
  background: rgba(201, 162, 39, 0.08);
}

.category-btn.active {
  background: rgba(201, 162, 39, 0.15);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.science-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto 2rem;
}

.science-card {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.04) 0%,
    rgba(255, 255, 255, 0.01) 100%
  );
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 1.5rem;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.science-card:hover {
  border-color: rgba(201, 162, 39, 0.3);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  transform: translateY(-3px);
}

.science-card-title {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-primary);
}

.science-card-date {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--accent-gold);
  letter-spacing: 0.03em;
}

.science-card-summary {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
  font-style: italic;
}

.science-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
}

.science-tag {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 0.2rem 0.6rem;
  border-radius: 10px;
  background: rgba(201, 162, 39, 0.1);
  color: var(--accent-gold);
  border: 1px solid rgba(201, 162, 39, 0.2);
}

.science-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent-gold);
  transition: var(--transition-smooth);
  margin-top: 0.3rem;
  text-decoration: none;
}

.science-card-link:hover {
  color: var(--accent-gold-light);
}

.science-card-link svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.science-card-link:hover svg {
  transform: translateX(3px);
}

/* Science Pagination */
.science-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.pagination-btn {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 500;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pagination-btn:hover {
  border-color: rgba(201, 162, 39, 0.4);
  color: var(--text-primary);
  background: rgba(201, 162, 39, 0.08);
}

.pagination-btn.active {
  background: rgba(201, 162, 39, 0.15);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.pagination-btn.disabled {
  opacity: 0.3;
  cursor: default;
  pointer-events: none;
}

.pagination-btn svg {
  width: 16px;
  height: 16px;
}

/* Science Section Scroll Reveal */
.science-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.science-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Science Section Responsive */
@media (max-width: 768px) {
  .science-section {
    padding: 3rem 1.5rem;
  }

  .science-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .science-categories {
    gap: 0.5rem;
    margin-bottom: 2rem;
  }

  .category-btn {
    font-size: 0.75rem;
    padding: 0.4rem 0.9rem;
  }

  .science-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .science-card {
    padding: 1.2rem;
  }

  .science-card-title {
    font-size: 0.95rem;
  }

  .science-card-summary {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .science-section {
    padding: 2rem 1rem;
  }

  .science-subtitle {
    font-size: 0.9rem;
  }

  .category-btn {
    font-size: 0.7rem;
    padding: 0.35rem 0.75rem;
  }

  .science-card {
    padding: 1rem;
  }

  .science-card-title {
    font-size: 0.9rem;
  }

  .science-card-summary {
    font-size: 0.85rem;
  }

  .science-card-link {
    font-size: 0.75rem;
  }

  .pagination-btn {
    width: 32px;
    height: 32px;
    font-size: 0.75rem;
  }
}

/* ========================================
   About Section
   ======================================== */
.about-section {
  padding: 0rem 2rem;
}

.about-content {
  max-width: 900px;
  margin: 0 auto 6rem;
}

.about-item {
  display: flex;
  align-items: center;
  gap: 3rem;
  margin-bottom: 4rem;
}

.about-item.reverse {
  flex-direction: row-reverse;
  text-align: right;
}

.about-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 300;
  color: var(--accent-gold);
  letter-spacing: 0.2em;
  flex-shrink: 0;
}

.about-text {
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

/* ========================================
   Team Section
   ======================================== */
.team-section {
  padding: 4rem;
  padding-bottom: 4rem;
  background: var(--bg-secondary);
  margin: 0 -2rem;
  padding-left: 2rem;
  padding-right: 2rem;
}

.team-grid {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto;
}

.team-member {
  text-align: center;
  width: 200px;
}

.member-image {
  width: 120px;
  height: 120px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--accent-gold);
  position: relative;
}

.member-image::before {
  content: "";
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border: 2px solid var(--accent-gold);
  border-radius: 50%;
  opacity: 0.3;
}

.member-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-name {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.3rem;
}

.member-title {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  color: var(--accent-gold);
  margin-bottom: 1rem;
}

.member-social {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
}

.social-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.social-icon svg {
  width: 16px;
  height: 16px;
}

.social-icon.instagram {
  background: linear-gradient(
    45deg,
    #f09433,
    #e6683c,
    #dc2743,
    #cc2366,
    #bc1888
  );
}

.social-icon.linkedin {
  background: #0077b5;
}

.social-icon.email {
  background: #ea4335;
}

.social-icon.facebook {
  background: #1877f2;
}

.social-icon:hover {
  transform: scale(1.1);
}

/* ========================================
   Contact Section | Burası bir işe yaramıyor silinecek.
   ======================================== */
.contact-section {
  padding: 4rem 2rem;
  text-align: center;
}

.contact-info {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-family: var(--font-ui);
  font-size: 0.9rem;
}

.contact-item svg {
  width: 20px;
  height: 20px;
  color: var(--accent-gold);
}

/* ========================================
   Customer Reviews Section (Timeline Design)
   ======================================== */
.testimonials-section {
  padding: 4rem 0rem;
  margin-bottom: 0rem;
}

.testimonials-section.visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
  margin-bottom: -4rem;
}

.reviews-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 4rem;
  align-items: center;
}

/* Timeline - now horizontal cards */
.reviews-timeline {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  position: relative;
}

.timeline-line {
  display: none;
}

.timeline-track {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: center;
  gap: 2rem;
  width: 100%;
  max-width: 1000px;
  cursor: grab;
  user-select: none;
  transition: transform 0.5s ease;
}

/* Reviews carousel wrapper */
.reviews-carousel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0 60px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Reviews carousel specific button styling */
.reviews-carousel .carousel-btn {
  position: relative;
  top: auto;
  transform: none;
  flex-shrink: 0;
}

.reviews-carousel .carousel-btn.prev {
  left: auto;
}

.reviews-carousel .carousel-btn.next {
  right: auto;
}

.timeline-track:active {
  cursor: grabbing;
}

.timeline-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem 1.5rem;
  transition: all 400ms cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  min-height: 320px;
  flex: 1;
  max-width: 280px;
}

.timeline-item.prev,
.timeline-item.next {
  opacity: 0.4;
  transform: scale(0.85);
  max-width: 240px;
}

.timeline-item.active {
  opacity: 1;
  transform: scale(1);
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(201, 162, 39, 0.3);
  box-shadow: 0 10px 40px rgba(201, 162, 39, 0.15);
  max-width: 320px;
  min-height: 360px;
}

.timeline-item.active .review-avatar {
  width: 80px;
  height: 80px;
  font-size: 1.5rem;
  border-color: var(--accent-gold);
  box-shadow: 0 0 30px rgba(201, 162, 39, 0.5);
}

.timeline-item.active .reviewer-name {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1.1rem;
}

/* Avatar */
.review-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-ui);
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  flex-shrink: 0;
  transition: all 400ms cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: var(--accent-gold);
}

/* Avatar colors */
.review-avatar.color-1 {
  background: linear-gradient(135deg, #c9a227, #e8c547);
}
.review-avatar.color-2 {
  background: linear-gradient(135deg, #667eea, #764ba2);
}
.review-avatar.color-3 {
  background: linear-gradient(135deg, #e44d6e, #f5576c);
}
.review-avatar.color-4 {
  background: linear-gradient(135deg, #4facfe, #00c6fb);
}
.review-avatar.color-5 {
  background: linear-gradient(135deg, #43e97b, #38d9a9);
}
.review-avatar.color-6 {
  background: linear-gradient(135deg, #fa709a, #fee140);
}
.review-avatar.color-7 {
  background: linear-gradient(135deg, #a18cd1, #c084fc);
}
.review-avatar.color-8 {
  background: linear-gradient(135deg, #f97316, #fbbf24);
}

/* Reviewer Info */
.reviewer-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  width: 100%;
}

.reviewer-name {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 400ms ease;
  text-align: center;
  line-height: 1.3;
}

.reviewer-stars {
  display: flex;
  gap: 3px;
  justify-content: center;
}

.reviewer-stars .star {
  font-size: 0.9rem;
  color: var(--accent-gold);
}

/* Review Content - now inside cards */
.review-content {
  display: none;
}

/* Review text inside timeline items */
.timeline-item .review-text-card {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  font-style: italic;
  text-align: center;
  margin-top: auto;
  transition: opacity 400ms ease;
  padding: 0 0.5rem;
}

.timeline-item.prev .review-text-card,
.timeline-item.next .review-text-card {
  font-size: 0.85rem;
  opacity: 0.7;
}

.timeline-item.active .review-text-card {
  font-size: 1.1rem;
  color: var(--text-primary);
}

/* Review date link styling */
.review-date-link {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
  margin-top: 0.5rem;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.review-date-link:hover {
  color: var(--accent-gold);
  background: rgba(201, 162, 39, 0.1);
}

.timeline-item.active .review-date-link {
  font-size: 0.95rem;
  color: var(--accent-gold-light);
}

.timeline-item.active .review-date-link:hover {
  color: var(--accent-gold);
  background: rgba(201, 162, 39, 0.15);
}

.review-stars {
  display: none;
}

/* Responsive Design for Reviews */
@media (max-width: 900px) {
  .reviews-carousel {
    padding: 0 20px;
    gap: 0.5rem;
  }

  .timeline-track {
    gap: 1.5rem;
  }

  .timeline-item {
    padding: 1.5rem 1rem;
    min-height: 280px;
    max-width: 240px;
  }

  .timeline-item.active {
    max-width: 280px;
    min-height: 320px;
  }

  .timeline-item.prev,
  .timeline-item.next {
    max-width: 200px;
  }

  .review-avatar {
    width: 50px;
    height: 50px;
    font-size: 1rem;
  }

  .timeline-item.active .review-avatar {
    width: 70px;
    height: 70px;
    font-size: 1.3rem;
  }

  .reviewer-name {
    font-size: 0.85rem;
  }

  .timeline-item.active .reviewer-name {
    font-size: 1rem;
  }

  .timeline-item .review-text-card {
    font-size: 0.9rem;
  }

  .timeline-item.active .review-text-card {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .reviews-carousel {
    padding: 0 10px;
    gap: 0.5rem;
  }

  .reviews-carousel .carousel-btn {
    width: 40px;
    height: 40px;
  }

  .timeline-track {
    gap: 1rem;
  }

  .timeline-item {
    padding: 1.2rem 0.8rem;
    min-height: 260px;
    max-width: 200px;
  }

  .timeline-item.active {
    max-width: 240px;
    min-height: 300px;
  }

  .timeline-item.prev,
  .timeline-item.next {
    max-width: 160px;
  }

  .review-avatar {
    width: 45px;
    height: 45px;
    font-size: 0.9rem;
  }

  .timeline-item.active .review-avatar {
    width: 60px;
    height: 60px;
    font-size: 1.1rem;
  }

  .reviewer-name {
    font-size: 0.8rem;
  }

  .timeline-item.active .reviewer-name {
    font-size: 0.95rem;
  }

  .timeline-item .review-text-card {
    font-size: 0.85rem;
  }

  .timeline-item.active .review-text-card {
    font-size: 0.95rem;
  }

  .review-date-link {
    font-size: 0.8rem;
  }

  .timeline-item.active .review-date-link {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .reviews-carousel {
    padding: 0 5px;
    gap: 0.25rem;
  }

  .reviews-carousel .carousel-btn {
    width: 36px;
    height: 36px;
  }

  .reviews-carousel .carousel-btn svg {
    width: 18px;
    height: 18px;
  }

  .reviews-container {
    padding: 1.5rem 0.5rem;
  }

  .timeline-track {
    gap: 0.75rem;
  }

  .timeline-item {
    padding: 1rem 0.6rem;
    min-height: 240px;
    max-width: 160px;
  }

  .timeline-item.active {
    max-width: 200px;
    min-height: 280px;
  }

  .timeline-item.prev,
  .timeline-item.next {
    max-width: 130px;
  }

  .review-avatar {
    width: 40px;
    height: 40px;
    font-size: 0.8rem;
  }

  .timeline-item.active .review-avatar {
    width: 55px;
    height: 55px;
    font-size: 1rem;
  }

  .reviewer-name {
    font-size: 0.7rem;
  }

  .timeline-item.active .reviewer-name {
    font-size: 0.85rem;
  }

  .timeline-item .review-text-card {
    font-size: 0.75rem;
  }

  .timeline-item.active .review-text-card {
    font-size: 0.9rem;
  }

  .review-date-link {
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
  }

  .timeline-item.active .review-date-link {
    font-size: 0.85rem;
  }
}

/* ========================================
   Footer
   ======================================== */
.footer {
  background: var(--bg-footer);
  padding: 3rem 2rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 3rem;
  align-items: flex-start;
}

.footer-logo {
  flex-shrink: 0;
}

.footer-logo img {
  width: 216px;
  height: auto;
}

.footer-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.52rem;
  justify-content: flex-start;
}

/* Desktop: Center both footer sections together */
@media (min-width: 769px) {
  .footer-container {
    justify-content: center;
  }

  .footer-main {
    flex: 0 0 auto;
    min-width: 320px;
  }
}

.back-to-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-family: var(--font-ui);
  font-size: 0.8rem;
  transition: var(--transition-smooth);
}

.back-to-top:hover {
  color: var(--text-primary);
}

.back-to-top svg {
  width: 16px;
  height: 16px;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.social-link svg {
  width: 18px;
  height: 18px;
}

.social-link:hover {
  background: var(--accent-gold);
  color: var(--bg-primary);
}

.social-link.youtube:hover {
  background: #ff0000;
  color: white;
}

.footer-location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-family: var(--font-ui);
  font-size: 0.85rem;
}

.footer-location svg {
  width: 18px;
  height: 18px;
}

.footer-nav {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-nav a {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.footer-nav a:hover {
  color: var(--text-primary);
}

.footer-copyright {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-align: center;
}

/* ========================================
   Responsive Design
   ======================================== */

/* Tablet */
@media (max-width: 1024px) {
  .product-card {
    min-width: calc(50% - 0.75rem);
  }

  .about-item {
    gap: 2rem;
  }

  .about-number {
    font-size: 3rem;
  }
}

/* Mobile Large */
@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .mobile-nav {
    display: flex;
  }

  .hero {
    padding: 100px 1.5rem 3rem;
  }

  .hero-tagline {
    font-size: 1.2rem;
  }

  .products-carousel {
    padding: 0 50px;
  }

  .product-card {
    min-width: 100%;
  }

  .modal-content {
    flex-direction: column;
    max-height: 95vh;
    overflow-y: auto;
  }

  .modal-image {
    flex: none;
    height: 250px;
  }

  .modal-info {
    padding: 1.5rem;
  }

  .modal-info h2 {
    font-size: 1.4rem;
  }

  .partners-logos {
    gap: 2rem;
  }

  .about-item,
  .about-item.reverse {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .about-number {
    font-size: 2.5rem;
  }

  .team-grid {
    gap: 2rem;
    flex-direction: column;
    align-items: center;
  }

  .team-member {
    width: 200px;
  }

  .member-image {
    width: 100px;
    height: 100px;
  }

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

  .footer-nav {
    gap: 1rem;
  }
}

/* Mobile Small */
@media (max-width: 480px) {
  .header {
    padding: 1rem;
  }

  .logo {
    font-size: 1.2rem;
    letter-spacing: 0.2em;
  }

  .hero-tagline {
    font-size: 1rem;
  }

  .section-title {
    font-size: 0.85rem;
    letter-spacing: 0.3em;
  }

  .carousel-btn {
    width: 36px;
    height: 36px;
  }

  .carousel-btn svg {
    width: 18px;
    height: 18px;
  }

  .products-carousel {
    padding: 0 40px;
  }

  .product-image {
    height: 160px;
  }

  .modal-info h2 {
    font-size: 1.2rem;
  }

  .modal-description {
    font-size: 1rem;
  }

  .modal-details {
    flex-direction: column;
    gap: 0.5rem;
  }

  .partner-logo span {
    font-size: 0.8rem !important;
  }

  .about-text {
    font-size: 1rem;
  }

  .member-name {
    font-size: 0.75rem;
  }

  .member-title {
    font-size: 0.65rem;
  }

  .footer-logo img {
    width: 90px;
  }
}

/* Touch Device Optimizations */
@media (hover: none) {
  .product-card:hover {
    transform: none;
  }

  .product-card:active {
    transform: scale(0.98);
  }

  .carousel-btn:hover {
    background: rgba(255, 255, 255, 0.1);
  }

  .carousel-btn:active {
    background: rgba(255, 255, 255, 0.2);
  }
}

/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    padding-top: 80px;
    min-height: auto;
  }

  .modal-content {
    flex-direction: row;
    max-height: 95vh;
  }

  .modal-image {
    flex: 0 0 40%;
    height: auto;
  }
}

/* High DPI Screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .product-image img,
  .polaroid-photo img,
  .member-image img {
    image-rendering: -webkit-optimize-contrast;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.hero-content {
  animation: fadeInUp 0.8s ease-out;
}

.section-title {
  animation: fadeInUp 0.6s ease-out;
}

/* Scroll Reveal */
.gallery-section,
.products-section,
.partners-section,
.about-item,
.team-member,
.testimonials-section,
.science-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.gallery-section.visible,
.products-section.visible,
.partners-section.visible,
.about-item.visible,
.team-member.visible,
.testimonials-section.visible,
.science-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Swipe Indicator for Mobile */
@media (max-width: 768px) {
  .products-carousel::after {
    content: "";
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
  }
}

/* ========================================
   FAQ Section
   ======================================== */
.faq-section {
  padding: 4rem 2rem;
  background: var(--bg-secondary);
  margin: 0 -2rem;
  padding-left: 2rem;
  padding-right: 2rem;
  padding-bottom: 4rem;
}

.faq-container {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 1rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.faq-item:hover {
  border-color: rgba(201, 162, 39, 0.3);
}

.faq-item.active {
  border-color: var(--accent-gold);
  box-shadow: 0 4px 20px rgba(201, 162, 39, 0.15);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-primary);
  text-align: left;
  transition: var(--transition-smooth);
  cursor: pointer;
}

.faq-question:hover {
  background: rgba(255, 255, 255, 0.05);
}

.faq-item.active .faq-question {
  background: rgba(201, 162, 39, 0.08);
}

.faq-number {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--accent-gold);
  opacity: 0.6;
  flex-shrink: 0;
  width: 40px;
}

.faq-item.active .faq-number {
  opacity: 1;
}

.faq-title {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 500;
  flex: 1;
  line-height: 1.4;
}

.faq-icon {
  width: 24px;
  height: 24px;
  color: var(--text-secondary);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: var(--accent-gold);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 2000px;
}

.faq-answer-content {
  padding: 1rem 1.5rem 1.5rem 4.5rem;
}

.faq-answer-content p {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.faq-answer-content p:last-child {
  margin-bottom: 0;
}

/* FAQ Subsections */
.faq-subsection {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.02);
  border-left: 3px solid var(--accent-gold);
  border-radius: 0 8px 8px 0;
}

.faq-subsection h4 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  color: var(--accent-gold);
  margin-bottom: 0.75rem;
}

.faq-subsection p {
  margin-bottom: 0 !important;
  font-size: 0.95rem !important;
}

/* FAQ Highlight Text */
.faq-highlight {
  font-style: italic;
  color: var(--accent-gold-light) !important;
  padding: 1rem;
  background: rgba(201, 162, 39, 0.08);
  border-radius: 8px;
  text-align: center;
}

/* FAQ Table */
.faq-table {
  margin: 1.5rem 0;
  overflow-x: auto;
}

.faq-table table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-ui);
  font-size: 0.9rem;
}

.faq-table th,
.faq-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border: 1px solid var(--border-color);
}

.faq-table th {
  background: rgba(201, 162, 39, 0.1);
  color: var(--accent-gold);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.faq-table td {
  color: var(--text-secondary);
}

.faq-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

/* FAQ References */
.faq-references {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
}

.faq-references .ref-title {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  width: 100%;
  margin-bottom: 0.25rem;
}

.faq-references a {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--accent-gold);
  opacity: 0.8;
  transition: var(--transition-smooth);
  padding: 0.25rem 0.5rem;
  background: rgba(201, 162, 39, 0.05);
  border-radius: 4px;
}

.faq-references a:hover {
  opacity: 1;
  background: rgba(201, 162, 39, 0.15);
}

/* FAQ Scroll Reveal */
.faq-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.faq-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* FAQ Responsive Design */
@media (max-width: 768px) {
  .faq-section {
    padding: 3rem 1.5rem;
  }

  .faq-question {
    padding: 1.25rem 1rem;
    gap: 1rem;
  }

  .faq-number {
    font-size: 1.2rem;
    width: 30px;
  }

  .faq-title {
    font-size: 1rem;
  }

  .faq-icon {
    width: 20px;
    height: 20px;
  }

  .faq-answer-content {
    padding: 0.8rem 1rem 1rem 3rem;
  }

  .faq-answer-content p {
    font-size: 0.95rem;
  }

  .faq-subsection {
    padding: 0.75rem 1rem;
  }

  .faq-subsection h4 {
    font-size: 0.85rem;
  }

  .faq-table th,
  .faq-table td {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .faq-section {
    padding: 2rem 1rem;
  }

  .faq-question {
    padding: 1rem 0.75rem;
    gap: 0.75rem;
  }

  .faq-number {
    font-size: 1rem;
    width: 25px;
  }

  .faq-title {
    font-size: 0.9rem;
  }

  .faq-answer-content {
    padding: 0 0.75rem 1rem 2.5rem;
  }

  .faq-answer-content p {
    font-size: 0.9rem;
    line-height: 1.7;
  }

  .faq-table th,
  .faq-table td {
    padding: 0.4rem 0.5rem;
    font-size: 0.75rem;
  }

  .faq-references a {
    font-size: 0.7rem;
  }
}

/* ========================================
   Mascot Popup
   ======================================== */
.mascot-popup {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  opacity: 1;
  visibility: visible;
}

.mascot-popup.dragging {
  user-select: none;
}

.mascot-speech-bubble {
  width: 280px;
  flex-shrink: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--accent-gold);
  border-radius: 16px;
  padding: 16px 18px;
  position: relative;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: scale(0.8) translateX(20px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.mascot-speech-bubble.visible {
  opacity: 1;
  visibility: visible;
  transform: scale(1) translateX(0);
}

.mascot-speech-bubble::after {
  content: "";
  position: absolute;
  right: -12px;
  bottom: 30px;
  border-width: 10px;
  border-style: solid;
  border-color: transparent transparent transparent var(--accent-gold);
}

.mascot-speech-bubble::before {
  content: "";
  position: absolute;
  right: -9px;
  bottom: 31px;
  border-width: 9px;
  border-style: solid;
  border-color: transparent transparent transparent var(--bg-secondary);
  z-index: 1;
}

.mascot-text {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-primary);
  margin: 0;
}

.mascot-image {
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.2s ease;
}

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

.mascot-image:active {
  transform: scale(0.95);
}

.mascot-popup.dragging .mascot-image {
  cursor: grabbing;
  transform: scale(1.1);
}

.mascot-image img {
  width: 90px;
  height: auto;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
  pointer-events: none;
}

/* Mascot Popup - Flipped state (when on left side of screen) */
.mascot-popup.flipped {
  flex-direction: row-reverse;
}

.mascot-popup.flipped .mascot-speech-bubble {
  transform: scale(0.8) translateX(-20px);
}

.mascot-popup.flipped .mascot-speech-bubble.visible {
  transform: scale(1) translateX(0);
}

/* Flip the pointer to the left side */
.mascot-popup.flipped .mascot-speech-bubble::after {
  right: auto;
  left: -12px;
  border-color: transparent var(--accent-gold) transparent transparent;
}

.mascot-popup.flipped .mascot-speech-bubble::before {
  right: auto;
  left: -9px;
  border-color: transparent var(--bg-secondary) transparent transparent;
}

/* Mirror the mascot image when on the left side of the screen */
.mascot-popup.flipped .mascot-image img {
  transform: scaleX(-1);
}

/* Mascot Popup Responsive */
@media (max-width: 768px) {
  .mascot-popup {
    right: 12px;
    bottom: 12px;
    gap: 8px;
  }

  .mascot-speech-bubble {
    width: 220px;
    padding: 12px 14px;
    border-radius: 12px;
  }

  .mascot-text {
    font-size: 0.85rem;
    line-height: 1.5;
  }

  .mascot-image img {
    width: 60px;
  }

  .mascot-speech-bubble::after {
    right: -10px;
    bottom: 20px;
    border-width: 8px;
  }

  .mascot-speech-bubble::before {
    right: -7px;
    bottom: 21px;
    border-width: 7px;
  }

  /* Flipped state for mobile */
  .mascot-popup.flipped .mascot-speech-bubble::after {
    left: -10px;
    border-width: 8px;
  }

  .mascot-popup.flipped .mascot-speech-bubble::before {
    left: -7px;
    border-width: 7px;
  }
}
