/* ==========================================================================
   LINE Brown Farm - Custom Stylesheet
   Theme: Cute Organic Farming, LINE Green, Warm Wood, Sunny Yellow
   ========================================================================== */

/* Custom Font Families */
@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;500;600;700;800&family=Prompt:wght@300;400;500;600;700&display=swap');

:root {
  --line-green: #06C755;
  --line-green-hover: #05B34C;
  --line-green-dark: #008D36;
  --wood-brown: #5A3825;
  --wood-light: #8B5E3C;
  --wood-accent: #D4A373;
  --sunny-yellow: #FFD836;
  --warm-bg: #FFFDF7;
  --soft-green-bg: #E8F8EE;
  --card-bg: #FFFFFF;
}

body {
  font-family: 'Kanit', 'Prompt', sans-serif;
  background-color: var(--warm-bg);
  color: #333333;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #f1ebd9;
}
::-webkit-scrollbar-thumb {
  background: var(--line-green);
  border-radius: 5px;
  border: 2px solid #f1ebd9;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--line-green-dark);
}

/* Header & Glass Navbar */
.nav-glass {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(6, 199, 85, 0.12);
  border-bottom: 3px solid #E2F4E8;
}

.nav-link {
  position: relative;
  font-weight: 600;
  color: #4A4A4A;
  transition: all 0.3s ease;
}
.nav-link:hover, .nav-link.active {
  color: var(--line-green-dark);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 3px;
  background: var(--line-green);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}
.nav-link:hover::after, .nav-link.active::after {
  width: 80%;
}

/* Floating Animation */
@keyframes floatAnim {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(1.5deg);
  }
}
.animate-float {
  animation: floatAnim 4s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 15px rgba(6, 199, 85, 0.4);
  }
  50% {
    box-shadow: 0 0 30px rgba(6, 199, 85, 0.8);
  }
}
.animate-pulse-glow {
  animation: pulseGlow 2.5s infinite;
}

/* Cute Wooden Card Framing */
.wood-card {
  background: #FFFFFF;
  border: 3px solid #E5D5C5;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(90, 56, 37, 0.08);
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.wood-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(90, 56, 37, 0.16);
  border-color: var(--line-green);
}

.wood-badge {
  background: linear-gradient(135deg, var(--wood-brown) 0%, var(--wood-light) 100%);
  color: #FFFFFF;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(90, 56, 37, 0.25);
}

/* Green Gradient Buttons */
.btn-line-green {
  background: linear-gradient(135deg, #06C755 0%, #00B147 100%);
  color: #FFFFFF;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(6, 199, 85, 0.35);
  transition: all 0.25s ease;
  border: 2px solid #5BF398;
}
.btn-line-green:hover {
  background: linear-gradient(135deg, #05B34C 0%, #00963C 100%);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 25px rgba(6, 199, 85, 0.45);
}
.btn-line-green:active {
  transform: translateY(1px);
}

.btn-yellow {
  background: linear-gradient(135deg, #FFD836 0%, #F5C518 100%);
  color: #4A3200;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(255, 216, 54, 0.4);
  border: 2px solid #FFE98A;
  transition: all 0.25s ease;
}
.btn-yellow:hover {
  background: linear-gradient(135deg, #FFE052 0%, #E0B205 100%);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 25px rgba(255, 216, 54, 0.55);
}

/* Gallery Grid Card */
.gallery-item {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border: 4px solid #FFFFFF;
  transition: all 0.3s ease;
}
.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: 0 14px 32px rgba(6, 199, 85, 0.25);
  border-color: var(--line-green);
}
.gallery-item .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 199, 85, 0.85) 0%, rgba(0, 0, 0, 0.2) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
}
.gallery-item:hover .overlay {
  opacity: 1;
}

/* Play Badge for Video Thumbnails */
.play-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(6, 199, 85, 0.9);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  border: 3px solid #FFFFFF;
  transition: all 0.3s ease;
}
.gallery-item:hover .play-badge {
  transform: translate(-50%, -50%) scale(1.15);
  background: #FFD836;
  color: #333;
}

/* Lightbox Modal Styles */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(12, 24, 16, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 1rem;
}
.lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  position: relative;
  max-width: 1000px;
  width: 95%;
  max-height: 85vh;
  background: #000000;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  border: 4px solid var(--line-green);
  transform: scale(0.9);
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.lightbox-modal.active .lightbox-content {
  transform: scale(1);
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  background: rgba(255, 255, 255, 0.85);
  color: #333333;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  z-index: 10;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}
.lightbox-nav-btn:hover {
  background: var(--line-green);
  color: #FFFFFF;
  transform: translateY(-50%) scale(1.1);
}
.lightbox-prev {
  left: 1rem;
}
.lightbox-next {
  right: 1rem;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  background: rgba(0, 0, 0, 0.6);
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  z-index: 10;
  border: 2px solid rgba(255, 255, 255, 0.3);
}
.lightbox-close:hover {
  background: #FF4747;
  color: #FFFFFF;
  transform: rotate(90deg) scale(1.1);
}

/* Feature Icon Circles */
.icon-circle {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #E8F8EE 0%, #C3F0D4 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--line-green-dark);
  font-size: 2.25rem;
  box-shadow: 0 8px 20px rgba(6, 199, 85, 0.15);
  border: 3px solid #FFFFFF;
}

/* Responsive Iframe Container */
.aspect-video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  background: #000;
}
.aspect-video-container iframe,
.aspect-video-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: contain;
}

/* Cute Farm Ribbon Header */
.farm-ribbon {
  background: linear-gradient(135deg, #06C755 0%, #00963C 100%);
  color: white;
  padding: 0.5rem 2rem;
  border-radius: 30px;
  display: inline-block;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(6, 199, 85, 0.25);
  border: 2px solid #A8F0C6;
}

/* Floating Leaf Decorator */
.leaf-bg {
  background-image: radial-gradient(#06c75518 1.5px, transparent 1.5px), radial-gradient(#ffd83620 1.5px, #fffdf7 1.5px);
  background-size: 60px 60px;
  background-position: 0 0, 30px 30px;
}
