/* --- 1. SETTINGS & VARIABLES --- */
:root {
  --neon-green: #39ff14;
  --neon-glow: 0 0 10px rgba(57, 255, 20, 0.5), 0 0 20px rgba(57, 255, 20, 0.3);
  --bg-dark: #0a0a0a;
  --card-glass: rgba(255, 255, 255, 0.03);
  --border-glass: rgba(255, 255, 255, 0.1);
  --text-main: #ffffff;
  --text-muted: #b0b0b0;
}


html {
  scroll-behavior: smooth;
  font-size: 90%;
  /* Scale down global font size */
}

body {
  margin: 0;
  padding: 0;
  font-family: "Kanit", sans-serif;
  background-color: var(--bg-dark);
  background-image: radial-gradient(circle at 50% 50%, #0f2e18 0%, #000000 70%);
  color: var(--text-main);
  overflow-x: hidden;
}

/* --- 2. ANIMATIONS (SCROLL REVEAL) --- */
/* คลาสสำหรับซ่อน Element ก่อน */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease-out;
}

/* คลาสเมื่อ Element ปรากฏ (JS จะเติมคลาสนี้ให้) */
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger Delay: ให้สินค้าเด้งขึ้นทีละตัว ไม่พร้อมกัน */
.delay-100 {
  transition-delay: 0.1s;
}

.delay-200 {
  transition-delay: 0.2s;
}

.delay-300 {
  transition-delay: 0.3s;
}

/* --- 3. HEADER (FLOATING PILL GLASSMORPHISM) --- */
header {
  position: fixed;
  width: fit-content;
  white-space: nowrap;
  gap: 100px;
  max-width: 95%;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  padding: 10px 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: headerGlow 3s infinite alternate;
  overflow: hidden;
}

header::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(57, 255, 20, 0.05),
    rgba(57, 255, 20, 0.2),
    rgba(57, 255, 20, 0.05),
    transparent
  );
  transition: none;
  animation: lightSweep 4s infinite linear;
  pointer-events: none;
}

@keyframes lightSweep {
  0% {
    left: -100%;
  }

  20% {
    left: 100%;
  }

  100% {
    left: 100%;
  }
}

@keyframes headerGlow {
  0% {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.1);
  }

  100% {
    box-shadow:
      0 0 20px rgba(57, 255, 20, 0.2),
      0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: rgba(57, 255, 20, 0.4);
  }
}

header:hover {
  background: rgba(0, 0, 0, 0.6);
  border-color: rgba(57, 255, 20, 0.3);
}

.logo {
  font-family: "Kanit", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo span {
  color: var(--neon-green);
  text-shadow: var(--neon-glow);
  animation: textNeonPulse 2s infinite alternate;
}

@keyframes textNeonPulse {
  0% {
    text-shadow: 0 0 5px rgba(57, 255, 20, 0.5);
  }

  100% {
    text-shadow:
      0 0 15px rgba(57, 255, 20, 0.8),
      0 0 25px rgba(57, 255, 20, 0.4);
  }
}

nav ul {
  display: flex;
  gap: 25px;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav a {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  position: relative;
  transition: 0.3s;
  letter-spacing: 1px;
}

/* เส้นวิ่งใต้เมนู */
nav a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--neon-green);
  transition: width 0.3s;
}

nav a:hover::after {
  width: 100%;
}

nav a:hover,
nav a.active {
  color: var(--neon-green);
}

nav a.active::after {
  width: 100%;
}

/* --- HAMBURGER MENU (MOBILE ONLY) --- */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

.hamburger .bar {
  display: block;
  width: 28px;
  height: 3px;
  background-color: var(--neon-green);
  border-radius: 3px;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  box-shadow: 0 0 8px rgba(57, 255, 20, 0.5);
}

/* Hamburger Animation: Transform to X */
.hamburger.active .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active .bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.active .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* --- MOBILE NAVIGATION DROPDOWN --- */
#mobile-nav-container {
  display: none;
}

@media (max-width: 768px) {
  header {
    padding: 12px 20px;
    justify-content: space-between;
    width: 85%;
    max-width: 85%;
  }

  .hamburger {
    display: flex;
  }

  /* Hide desktop nav on mobile */
  .desktop-nav {
    display: none !important;
  }

  /* Show mobile nav container on mobile */
  #mobile-nav-container {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    z-index: 9999;
    pointer-events: none;
  }

  nav#mobile-nav {
    position: fixed;
    top: 85px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    width: 90%;
    max-width: 400px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(57, 255, 20, 0.3);
    border-radius: 20px;
    padding: 12px 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow:
      0 15px 40px rgba(0, 0, 0, 0.4),
      0 0 20px rgba(57, 255, 20, 0.1);
    z-index: 999;
  }

  nav#mobile-nav.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }

  nav#mobile-nav ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  nav#mobile-nav ul li {
    width: 100%;
    text-align: center;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease;
    border: none !important;
  }

  nav#mobile-nav.active ul li {
    opacity: 1;
    transform: translateY(0);
  }

  /* Stagger animation for each menu item */
  nav#mobile-nav.active ul li:nth-child(1) {
    transition-delay: 0.1s;
  }

  nav#mobile-nav.active ul li:nth-child(2) {
    transition-delay: 0.15s;
  }

  nav#mobile-nav.active ul li:nth-child(3) {
    transition-delay: 0.2s;
  }

  nav#mobile-nav.active ul li:nth-child(4) {
    transition-delay: 0.25s;
  }

  nav#mobile-nav.active ul li:nth-child(5) {
    transition-delay: 0.3s;
  }

  nav#mobile-nav ul li a {
    display: block;
    padding: 8px 30px;
    font-size: 1.1rem;
    font-weight: 500;
    color: #fff;
    transition: all 0.3s ease;
    border: none !important;
  }

  nav#mobile-nav ul li a:hover {
    background: rgba(57, 255, 20, 0.1);
    color: var(--neon-green);
    padding-left: 40px;
  }

  nav#mobile-nav ul li a.active {
    color: #fff;
    background: transparent;
  }

  /* ลบเส้นใต้ ::after สำหรับ mobile nav */
  nav#mobile-nav ul li a::after {
    display: none !important;
  }
}

/* Icons & Tools */
.tools {
  display: flex;
  gap: 15px;
  align-items: center;
}

.icon-box {
  position: relative;
  cursor: pointer;
  font-size: 1.1rem;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-box:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--neon-green);
}

.badge {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--neon-green);
  color: black;
  font-size: 0.6rem;
  padding: 2px 5px;
  border-radius: 50%;
  font-weight: bold;
}

/* --- 4. HERO SECTION (PARALLAX) --- */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  /* Parallax Effect: ภาพพื้นหลังจะเลื่อนช้ากว่าปกติ */
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 1)),
    url("../images/hero-bg-updated.webp?v=1.2");
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

/* Fix background visibility on mobile/tablet */
@media (max-width: 1024px) {
  .hero {
    background-attachment: scroll !important;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  will-change: transform, opacity;
}

.hero h1 {
  font-family: "Kanit", sans-serif;
  font-size: 5rem;
  margin: 0;
  line-height: 1.1;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  transform: translateY(20px);
  animation: floatUp 1s ease-out forwards;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-top: 20px;
  animation: floatUp 1s ease-out 0.3s forwards;
  opacity: 0;
}

@keyframes floatUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Modern Neon Button */
.btn-main {
  margin-top: 40px;
  padding: 15px 50px;
  font-size: 1.2rem;
  font-family: "Kanit", sans-serif;
  font-weight: bold;
  color: var(--neon-green);
  background: transparent;
  border: 2px solid var(--neon-green);
  border-radius: 50px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: 0.4s;
  z-index: 1;
  animation: floatUp 1s ease-out 0.6s forwards;
  opacity: 0;
}

.btn-main::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: var(--neon-green);
  z-index: -1;
  transition: 0.4s cubic-bezier(0.65, 0, 0.076, 1);
  /* Animation Curve */
}

.btn-main:hover {
  color: black;
  box-shadow: 0 0 30px rgba(57, 255, 20, 0.6);
}

.btn-main:hover::before {
  width: 100%;
}

/* --- 5. PRODUCTS SECTION --- */
.section {
  padding: 120px 5% 40px;
  position: relative;
  scroll-margin-top: 100px;
}

.section-header {
  text-align: center;
  margin-bottom: 25px;
}

.section-header h2 {
  font-family: "Kanit", sans-serif;
  font-size: 3rem;
  margin: 0;
}

.section-header span {
  color: var(--neon-green);
}

/* Filter Tabs */
.filter-container {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--card-glass);
  color: white;
  border: 1px solid var(--border-glass);
  padding: 10px 25px;
  border-radius: 30px;
  cursor: pointer;
  transition: 0.3s;
  font-family: "Kanit", sans-serif;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--neon-green);
  color: black;
  box-shadow: var(--neon-glow);
  border-color: var(--neon-green);
  transform: scale(1.05);
}

/* Product Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.card {
  background: rgba(20, 20, 20, 0.6);
  border: 1px solid var(--border-glass);
  border-radius: 15px;
  overflow: hidden;
  transition: 0.4s ease;
  position: relative;
}

.card:hover {
  transform: translateY(-10px);
  border-color: var(--neon-green);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.card-img-box {
  height: 250px;
  overflow: hidden;
  position: relative;
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.6s ease;
}

/* Zoom Effect on Hover */
.card:hover img {
  transform: scale(1.1);
}

.card-info {
  padding: 20px;
}

.card-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 5px;
}

.card-sub {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-glass);
  padding-top: 15px;
  margin-top: 15px;
}

.price {
  color: var(--neon-green);
  font-size: 1.4rem;
  font-family: "Kanit", sans-serif;
}

.add-btn {
  background: white;
  color: black;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.3s;
}

.add-btn:hover {
  background: var(--neon-green);
  transform: rotate(90deg);
}

/* --- 6. SERVICES (Hover Cards) --- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 320px));
  /* Constrain column width */
  gap: 20px;
  /* Reduce gap */
  justify-content: center;
  /* Center the grid */
}

.service-card {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  padding: 30px 25px;
  text-align: center;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  max-width: 320px;
  margin: 0 auto;
  color: var(--text-main);
  display: block;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.service-card::after {
  content: "";
  position: absolute;
  top: 10px;
  right: 10px;
  width: 20px;
  height: 20px;
  border-top: 2px solid rgba(57, 255, 20, 0.3);
  border-right: 2px solid rgba(57, 255, 20, 0.3);
  border-radius: 0 5px 0 0;
  transition: 0.3s;
  opacity: 0;
}

.service-card:hover::after {
  opacity: 1;
  top: 15px;
  right: 15px;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(57, 255, 20, 0.1) 0%,
    transparent 40%
  );
  opacity: 0;
  transition: 0.4s;
}

.service-card:hover::before {
  opacity: 1;
}

.service-card:hover {
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-10px);
  border-color: var(--neon-green);
  box-shadow: 0 15px 40px rgba(57, 255, 20, 0.15);
}

.service-icon {
  font-size: 2.5rem;
  color: var(--neon-green);
  margin-bottom: 15px;
  transition: 0.4s;
}

.service-card:hover .service-icon {
  transform: scale(1.2) rotate(10deg);
  text-shadow: var(--neon-glow);
}

.service-card h3 {
  color: white;
  /* Fix for potential purple links */
  margin-top: 10px;
  font-size: 1.4rem;
}

.service-card .btn {
  border: 1px solid var(--border-glass);
  border-radius: 50px;
  transition: 0.3s;
  display: inline-block;
  color: var(--text-muted);
  /* Default color */
}

.service-card:hover .btn {
  background: var(--neon-green);
  color: black;
  border-color: var(--neon-green);
}

/* --- 7. REVIEWS (Testimonial Cards) --- */
.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.review-card {
  background: var(--card-glass);
  border: 1px solid var(--border-glass);
  padding: 30px;
  border-radius: 20px;
  position: relative;
  transition: 0.3s;
}

.review-card:hover {
  border-color: var(--neon-green);
  background: rgba(255, 255, 255, 0.05);
}

.review-text {
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.6;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.author-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--neon-green);
}

.author-info h4 {
  margin: 0;
  font-size: 1.1rem;
  color: white;
}

.author-info p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--neon-green);
}

.rating {
  color: #ffcc00;
  margin-bottom: 10px;
}

/* --- FOOTER (MODERN REDESIGN) --- */
footer {
  background: #000;
  padding: 25px 5% 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  position: relative;
  overflow: hidden;
}

/* Subtle background accent for footer */
footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    var(--neon-green),
    transparent
  );
  opacity: 0.3;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 60px;
}

.footer-col h3 {
  color: white;
  font-family: "Kanit", sans-serif;
  font-size: 1.05rem;
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
}

.footer-col h3::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--neon-green);
}

.footer-about p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #888;
  margin-top: 5px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 5px;
}

.footer-links a {
  color: #888;
  text-decoration: none;
  font-size: 0.95rem;
  transition: 0.3s;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--neon-green);
  transform: translateX(5px);
}

.qr-box {
  text-align: left;
}

.qr-img {
  width: 100px;
  background: rgba(255, 255, 255, 0.05);
  padding: 8px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 8px;
  transition: 0.3s;
}

.qr-img:hover {
  border-color: var(--neon-green);
  transform: scale(1.05);
}

.qr-box p {
  font-size: 0.9rem;
  color: var(--neon-green);
  font-weight: 600;
}

.contact-info p {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 6px;
  font-size: 0.9rem;
  color: #888;
}

.contact-info i {
  color: var(--neon-green);
  font-size: 1.1rem;
  margin-top: 3px;
}

.footer-social-simple {
  margin-top: 15px;
  display: flex;
  gap: 20px;
}

.footer-social-simple a {
  font-size: 1.5rem;
  color: #555;
  transition: 0.3s;
}

.footer-social-simple a:hover {
  color: var(--neon-green);
  transform: translateY(-3px);
}

.footer-bottom {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
  font-size: 0.85rem;
  color: #444;
}

/* Footer Responsiveness */
@media (max-width: 992px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 600px) {
  footer {
    padding: 60px 5% 30px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-col h3::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .contact-info p {
    justify-content: center;
  }

  .footer-social-simple {
    justify-content: center;
  }

  .qr-box {
    text-align: center;
  }

  .qr-img {
    display: inline-block;
  }
}

/* Mobile Responsiveness for Footer */
@media (max-width: 768px) {
  footer {
    padding: 30px 15px 20px;
  }

  .footer-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "about about"
      "menu qr"
      "contact contact";
    text-align: center;
    gap: 20px 15px;
    padding: 0;
  }

  .footer-col {
    padding: 0;
  }

  .footer-about {
    grid-area: about;
  }

  .footer-about img {
    width: 120px !important;
    margin-bottom: 10px !important;
  }

  .footer-about p {
    font-size: 0.8rem;
    line-height: 1.4;
    padding: 0 5px;
    margin-bottom: 10px;
  }

  .footer-col:nth-child(2) {
    grid-area: menu;
    text-align: left;
    padding-left: 30px;
  }

  .footer-col h3 {
    font-size: 1rem;
    margin-bottom: 10px;
  }

  .footer-col h3::after {
    display: none;
  }

  .footer-links {
    padding-left: 0;
  }

  .footer-links li {
    margin-bottom: 5px;
  }

  .footer-links a {
    font-size: 0.85rem;
  }

  .qr-box {
    grid-area: qr;
    text-align: center;
  }

  .qr-box .qr-img img {
    max-width: 80px !important;
    border-radius: 6px !important;
  }

  .qr-box p {
    font-size: 0.75rem;
    margin-top: 5px;
  }

  .contact-info {
    grid-area: contact;
  }

  .contact-info p {
    justify-content: center;
    font-size: 0.85rem;
    margin-bottom: 6px !important;
  }

  .footer-social-simple {
    justify-content: center;
    gap: 15px;
  }

  .footer-social-simple a {
    font-size: 1.1rem;
  }

  .footer-bottom {
    padding: 12px 10px;
    margin-top: 15px;
  }

  .footer-bottom p {
    font-size: 0.7rem;
    line-height: 1.4;
  }
}

/* --- 10. REVIEW SLIDER (Works Page) --- */
.review-slider-container {
  overflow: hidden;
  padding: 20px 0;
  position: relative;
  width: 100%;
  mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
}

.review-slider-track {
  display: flex;
  gap: 30px;
  width: max-content;
  animation: scrollSlider 40s linear infinite;
}

.review-slider-track:hover {
  animation-play-state: paused;
}

.review-slide {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 30px;
  width: 350px;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: 0.4s;
  position: relative;
}

.review-slide:hover {
  border-color: var(--neon-green);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-5px);
}

.review-user {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.review-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neon-green);
  font-weight: bold;
}

.review-content {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
  font-style: italic;
}

.review-stars {
  color: #ffcc00;
  margin-top: 10px;
}

@keyframes scrollSlider {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* --- 11. GALLERY GRID (Works Page) --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  padding: 20px 0;
}

.gallery-item {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  aspect-ratio: 4/3;
  border: 1px solid var(--border-glass);
  transition: 0.4s;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  padding: 20px;
  opacity: 0;
  transition: 0.4s;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* Expandable Grid Styles */
.gallery-grid {
  transition: max-height 0.8s ease-in-out;
  overflow: hidden;
}

.gallery-item.hidden-item {
  display: none;
}

/* Compact View All Button Below Grid */
.gallery-view-all-container {
  display: flex;
  justify-content: center;
  padding: 30px 0;
  width: 100%;
}

.gallery-view-all-btn {
  background: linear-gradient(
    135deg,
    rgba(57, 255, 20, 0.1),
    rgba(0, 0, 0, 0.8)
  );
  border: 2px solid var(--neon-green);
  color: var(--neon-green);
  padding: 15px 40px;
  border-radius: 40px;
  font-size: 1.1rem;
  font-weight: 700;
  font-family: "Kanit", sans-serif;
  cursor: pointer;
  transition: 0.3s;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 0 15px rgba(57, 255, 20, 0.2);
  letter-spacing: 0.5px;
}

.gallery-view-all-btn:hover {
  background: var(--neon-green);
  color: #000;
  box-shadow: 0 0 25px rgba(57, 255, 20, 0.5);
  transform: translateY(-2px);
}

.gallery-view-all-btn i {
  font-size: 1.2rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-10px);
  }

  60% {
    transform: translateY(-5px);
  }
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* Mobile */
@media (max-width: 768px) {
  header {
    padding: 15px 20px;
  }

  nav ul {
    display: none;
  }

  /* ซ่อนเมนูบนมือถือเพื่อความง่าย */
  .hero h1 {
    font-size: 3rem;
  }
}

/* --- 12. PORTFOLIO SLIDER (Homepage) --- */
.portfolio-slider-container {
  overflow: hidden;
  padding: 20px 0;
  position: relative;
  width: 100%;
  mask-image: linear-gradient(
    to right,
    transparent,
    black 5%,
    black 95%,
    transparent
  );
}

.portfolio-slider-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: scrollSlider 60s linear infinite;
}

.portfolio-slider-track:hover {
  animation-play-state: paused;
}

.portfolio-slide {
  width: 300px;
  height: 225px;
  /* 4:3 Aspect Ratio */
  flex-shrink: 0;
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid var(--border-glass);
  position: relative;
  cursor: pointer;
}

.portfolio-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.portfolio-slide:hover img {
  transform: scale(1.1);
}

.portfolio-slide .gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
  padding: 15px;
  opacity: 0;
  transition: 0.3s;
}

.portfolio-slide:hover .gallery-overlay {
  opacity: 1;
}

/* --- 13. LIGHTBOX (Gallery Modal) --- */
.lightbox {
  position: fixed;
  z-index: 2000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  display: none;
  /* Hidden by default */
  justify-content: center;
  align-items: center;
  flex-direction: column;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  opacity: 1;
}

.lightbox-content {
  max-width: 90%;
  max-height: 80vh;
  border-radius: 10px;
  box-shadow: 0 0 50px rgba(57, 255, 20, 0.2);
}

.close-lightbox {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 3rem;
  cursor: pointer;
  transition: 0.3s;
}

.close-lightbox:hover {
  color: var(--neon-green);
  transform: rotate(90deg);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: white;
  background: rgba(255, 255, 255, 0.1);
  padding: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: 0.3s;
  user-select: none;
  width: 45px;
  height: 45px;
  display: flex;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.lightbox-nav:hover {
  background: var(--neon-green);
  color: black;
}

.prev-btn {
  left: 20px;
}

.next-btn {
  right: 20px;
}

/* --- 14. WHY CHOOSE US --- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  padding-top: 20px;
}

.why-card {
  text-align: center;
  padding: 30px 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  transition: 0.4s;
  background: transparent;
}

.why-card:hover {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 15px;
  transform: scale(1.02);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.why-icon {
  font-size: 2.5rem;
  color: var(--text-muted);
  margin-bottom: 15px;
  transition: 0.4s;
}

.why-card:hover .why-icon {
  color: var(--neon-green);
  transform: scale(1.2);
  text-shadow: 0 0 20px rgba(57, 255, 20, 0.5);
}

.why-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  font-family: "Kanit", sans-serif;
  letter-spacing: 1px;
}

/* Remove border on mobile */
@media (max-width: 768px) {
  .why-card {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 40px;
  }

  .why-card:last-child {
    border-bottom: none;
  }
}

/* --- 15. CONTACT FORM --- */
.contact-form-container {
  max-width: 600px;
  margin: 40px auto 0;
  padding: 30px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  color: var(--neon-green);
  font-family: "Kanit", sans-serif;
  letter-spacing: 1px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 15px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  color: white;
  font-family: "Kanit", sans-serif;
  font-size: 1rem;
  transition: 0.3s;
  outline: none;
  box-sizing: border-box;
  /* Fix padding issue */
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--neon-green);
  box-shadow: 0 0 10px rgba(57, 255, 20, 0.2);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* --- 16. CONTACT PAGE LAYOUT --- */
.contact-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 50px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: flex-start;
}

.contact-form-wrapper,
.contact-info-wrapper {
  flex: 1;
  min-width: 300px;
  padding: 40px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 25px;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  transition: 0.4s;
  position: relative;
}

.contact-form-wrapper::before,
.contact-info-wrapper::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 40px;
  height: 40px;
  border-top: 2px solid var(--neon-green);
  border-left: 2px solid var(--neon-green);
  border-radius: 25px 0 0 0;
  opacity: 0.5;
}

.contact-form-wrapper::after,
.contact-info-wrapper::after {
  content: "";
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 40px;
  height: 40px;
  border-bottom: 2px solid var(--neon-green);
  border-right: 2px solid var(--neon-green);
  border-radius: 0 0 25px 0;
  opacity: 0.5;
}

.contact-form-wrapper:hover,
.contact-info-wrapper:hover {
  border-color: rgba(57, 255, 20, 0.3);
  background: rgba(255, 255, 255, 0.03);
}

.info-item {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.info-item p,
.info-item h2 {
  margin: 0 !important;
}

/* Contact Section Mobile */
@media (max-width: 768px) {
  .contact-container {
    padding: 0 15px;
    gap: 25px;
  }

  .contact-form-wrapper,
  .contact-info-wrapper {
    min-width: unset;
    width: 100%;
    padding: 25px 20px;
    margin: 0 5px;
  }
}

/* --- 15. FAQ SECTION --- */
.faq-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: 15px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: 0.3s;
}

.faq-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--neon-green);
}

.faq-question {
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 500;
}

.faq-question h3 {
  font-size: 1.2rem;
  margin: 0;
  font-family: "Kanit", sans-serif;
  color: var(--text-light);
}

.faq-question i {
  color: var(--neon-green);
  font-size: 1.2rem;
  transition: 0.3s;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: all 0.5s ease;
  padding: 0 25px;
  opacity: 0;
}

/* Active State */
.faq-item.active {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--neon-green);
  box-shadow: 0 0 15px rgba(57, 255, 20, 0.1);
}

.faq-item.active .faq-question i {
  transform: rotate(45deg);
  /* Turn + into x */
  color: #ff4757;
  /* Optional: change color to red when open */
}

.faq-item.active .faq-answer {
  max-height: 200px;
  /* Adjust based on content length */
  padding-bottom: 25px;
  opacity: 1;
}

.faq-answer p {
  color: #bbb;
  line-height: 1.6;
  margin: 0;
}

/* --- 18. VIDEO GALLERY --- */
.video-grid {
  display: flex;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  overflow-x: auto;
  padding: 20px 10px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

/* Hide scrollbar for video-grid */
.video-grid::-webkit-scrollbar {
  height: 8px;
}
.video-grid::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}
.video-grid::-webkit-scrollbar-thumb {
  background: var(--neon-green);
  border-radius: 4px;
}

.video-card {
  min-width: 320px;
  flex: 0 0 auto;
  scroll-snap-align: start;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  overflow: hidden;
  transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  position: relative;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.video-card::after {
  content: "";
  position: absolute;
  top: 5px;
  right: 5px;
  width: 15px;
  height: 15px;
  border-top: 2px solid var(--neon-green);
  border-right: 2px solid var(--neon-green);
  opacity: 0.3;
  pointer-events: none; /* Add pointer-events none so it doesn't block iframe clicks */
}

.video-card:hover {
  border-color: var(--neon-green);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.video-iframe-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  /* 16:9 Aspect Ratio */
  height: 0;
  background: #000;
}

.video-iframe-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.video-info {
  padding: 15px 20px;
  text-align: left;
  background: rgba(0, 0, 0, 0.3);
}

.video-info h3 {
  font-size: 1.1rem;
  color: white;
  font-family: "Kanit", sans-serif;
  margin: 0;
  letter-spacing: 0.5px;
}

.youtube-btn {
  border-color: #ff0000 !important;
  color: #ff0000 !important;
}

.youtube-btn:hover {
  background: #ff0000 !important;
  color: #fff !important;
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.4) !important;
}

.youtube-btn::before {
  background: #ff0000 !important;
}

@media (max-width: 768px) {
  .video-card {
    min-width: 280px;
  }
}

/* --- 17. PROCESS SECTION --- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 20px auto 0;
  text-align: center;
  position: relative;
}

.process-item {
  position: relative;
  padding: 20px;
}

/* Connecting Line (Desktop) */
@media (min-width: 992px) {
  .process-item:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 55px;
    right: -50%;
    width: 100%;
    height: 2px;
    background: repeating-linear-gradient(
      to right,
      var(--neon-green) 0,
      var(--neon-green) 5px,
      transparent 5px,
      transparent 10px
    );
    opacity: 0.3;
    z-index: -1;
  }
}

.step-number {
  font-family: "Kanit", sans-serif;
  font-size: 4rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.05);
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  z-index: -1;
}

.step-icon {
  width: 70px;
  height: 70px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--neon-green);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 20px;
  font-size: 1.8rem;
  color: var(--neon-green);
  box-shadow: 0 0 15px rgba(57, 255, 20, 0.2);
  transition: 0.3s;
}

.process-item:hover .step-icon {
  background: var(--neon-green);
  color: #000;
  box-shadow: 0 0 30px rgba(57, 255, 20, 0.6);
  transform: scale(1.1);
}

.process-item h3 {
  font-family: "Kanit", sans-serif;
  color: white;
  font-size: 1.2rem;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.process-item p {
  font-size: 0.9rem;
  color: #aaa;
  line-height: 1.6;
}

/* --- 19. STATS SECTION --- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.stat-item {
  padding: 20px;
}

.stat-item i {
  font-size: 2.5rem;
  color: var(--neon-green);
  margin-bottom: 15px;
  opacity: 0.8;
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 5px;
  font-family: "Kanit", sans-serif;
  line-height: 1;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

/* --- 20. FLOATING CONTACT BUTTONS --- */
.floating-contact {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 2100;
}

.float-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  color: white;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-decoration: none;
  cursor: pointer;
  position: relative;
}

.float-btn.line {
  background: #06c755;
  /* Line Brand Color */
}

.float-btn.facebook {
  background: #1877f2;
}

.float-btn.youtube {
  background: #ff0000;
}

.float-btn.phone {
  background: var(--neon-green);
  color: black;
}

.float-btn:hover {
  transform: scale(1.1) translateY(-5px);
  box-shadow: 0 15px 30px rgba(57, 255, 20, 0.3);
}

.float-btn .tooltip {
  position: absolute;
  right: 75px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 8px 15px;
  border-radius: 8px;
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
  backdrop-filter: blur(5px);
  border: 1px solid var(--border-glass);
}

.float-btn:hover .tooltip {
  opacity: 1;
  right: 70px;
}

/* --- 21. FEATURED SPECIES SECTION --- */
.species-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.species-card {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 25px;
  border: 1px solid var(--border-glass);
  overflow: hidden;
  transition: 0.4s;
  position: relative;
  height: 400px;
}

.species-card:hover {
  border-color: var(--neon-green);
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.species-img-box {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.species-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.6s;
}

.species-card:hover .species-img-box img {
  transform: scale(1.1);
}

.species-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--neon-green);
  color: black;
  padding: 5px 15px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  z-index: 2;
}

.species-info {
  padding: 25px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95), transparent);
  position: absolute;
  bottom: 0;
  width: 100%;
  box-sizing: border-box;
  z-index: 1;
}

.species-info h3 {
  margin: 0;
  font-size: 1.5rem;
  color: white;
}

.species-info p {
  margin: 10px 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* --- 22. BOOKING FLOW SECTION --- */
.booking-steps {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 60px auto 0;
}

.booking-step {
  flex: 1;
  min-width: 250px;
  text-align: center;
  padding: 40px 30px 30px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 25px;
  border: 1px solid var(--border-glass);
  position: relative;
  transition: 0.4s;
  backdrop-filter: blur(10px);
}

.booking-step:hover {
  background: rgba(57, 255, 20, 0.05);
  border-color: var(--neon-green);
  transform: translateY(-5px);
}

.step-count {
  width: 45px;
  height: 45px;
  background: var(--neon-green);
  color: black;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 800;
  font-size: 1.2rem;
  margin: 0 auto 20px;
  box-shadow: 0 0 20px rgba(57, 255, 20, 0.4);
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
}

.booking-step i {
  font-size: 2.5rem;
  color: white;
  margin-bottom: 20px;
}

.booking-step h3 {
  margin-bottom: 12px;
  color: var(--neon-green);
  font-size: 1.3rem;
}

.booking-step p {
  color: #aaa;
  font-size: 0.95rem;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .floating-contact {
    bottom: 20px;
    right: 20px;
  }

  .float-btn {
    width: 55px;
    height: 55px;
    font-size: 1.3rem;
  }

  .booking-steps {
    gap: 60px;
    padding-top: 20px;
  }

  .species-card {
    height: 350px;
  }
}

/* --- Species Detail Modal --- */
/* --- Species Detail Modal (New Design) --- */
.species-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow-y: hidden;
  overflow-x: hidden;
  background-color: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.species-modal.active {
  opacity: 1;
}

.species-modal-content {
  background: #111827;
  /* Tailwind gray-900 */
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 90%;
  max-width: 850px;
  height: 520px;
  /* Fixed height for PC */
  border-radius: 20px;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  box-sizing: border-box;
}

.species-modal-content *, 
.species-modal-content *::before, 
.species-modal-content *::after {
  box-sizing: border-box;
}

.modal-flex-container {
  display: flex;
  flex-direction: row;
  height: 100%;
  width: 100%;
}

.modal-image-half {
  width: 50%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.modal-img-object {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.modal-gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent, #111827);
  /* Md gradient */
  z-index: 1;
}

.modal-info-half {
  width: 50%;
  padding: 2rem;
  /* p-12 */
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
  background: #111827;
  overflow-y: auto;
  overflow-x: hidden;
}

.modal-icon-box {
  width: 3rem;
  height: 3rem;
  /* h-14 */
  border-radius: 1rem;
  /* rounded-2xl */
  background: rgba(255, 255, 255, 0.05);
  /* bg-white/5 */
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--neon-green);
  margin-bottom: 1rem;
  /* mb-6 */
}

.modal-title {
  font-size: 1.875rem;
  /* text-4xl */
  font-weight: 700;
  color: white;
  margin: 0 0 0.5rem 0;
  /* mb-2 */
  font-family: "Kanit", sans-serif;
}

.modal-subtitle {
  color: var(--neon-green);
  /* text-emerald-400 */
  font-size: 0.875rem;
  /* text-sm */
  font-weight: 500;
  margin-bottom: 1rem;
  /* mb-6 */
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-description {
  color: #9ca3af;
  /* text-gray-400 */
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.625;
  margin-bottom: 1.25rem;
  /* mb-8 */
}

.modal-tags-title {
  color: white;
  font-weight: 600;
  margin: 0 0 1rem 0;
  /* mb-4 */
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
}

.modal-tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  /* gap-2 */
  margin-bottom: 1.25rem;
}

.modal-tag {
  padding: 0.25rem 0.75rem;
  /* px-3 py-1 */
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  /* rounded-lg */
  font-size: 0.75rem;
  /* text-xs */
  color: #d1d5db;
  /* text-gray-300 */
}

.modal-pro-tip {
  padding: 0.75rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  /* bg-white/5 */
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 1.25rem;
}

.pro-tip-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: #6b7280;
  /* text-gray-500 */
  text-transform: uppercase;
  letter-spacing: 0.1em;
  /* tracking-widest */
  margin: 0 0 0.5rem 0;
  font-style: italic;
}

.pro-tip-content {
  color: #d1d5db;
  /* text-gray-300 */
  font-size: 0.75rem;
  font-weight: 300;
  line-height: 1.5;
  margin: 0;
}

.modal-actions {
  margin-top: auto;
}

.modal-cta-btn {
  display: inline-block;
  width: 100%;
  padding: 1rem;
  background: var(--neon-green);
  color: black;
  text-align: center;
  border-radius: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  transition: 0.3s;
  font-family: "Kanit", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 10px 15px -3px rgba(57, 255, 20, 0.2);
}

.modal-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 25px -5px rgba(57, 255, 20, 0.3);
  filter: brightness(1.1);
}

/* --- Improved Design for Text-Only Modal --- */
.species-modal-content.no-image {
  max-width: 600px;
  height: auto;
  max-height: 85vh;
  background: radial-gradient(circle at top right, rgba(57, 255, 20, 0.05), transparent), #111827;
  display: flex;
  flex-direction: column;
}
.modal-info-half.full-width {
  padding: 2.5rem;
  align-items: center;
  text-align: center;
  overflow-y: auto;
  overflow-x: hidden;
}

.no-image .modal-title {
  font-size: 2rem;
  background: linear-gradient(to bottom, #fff, #9ca3af);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.75rem;
}

/* Mobile Responsiveness for No-Image Modal */
@media (max-width: 768px) {
  .species-modal-content.no-image {
    width: 95%;
    max-height: 90vh;
  }

  .modal-info-half.full-width {
    padding: 2.5rem 1.5rem;
  }

  .no-image .modal-title {
    font-size: 2rem;
  }

  .no-image .modal-description {
    font-size: 1rem;
  }

  .no-image .modal-tag {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
  }
}

.no-image .modal-subtitle {
  justify-content: center;
  font-size: 1rem;
  margin-bottom: 2rem;
}

.no-image .modal-description {
  font-size: 1.15rem;
  max-width: 600px;
  color: #e5e7eb;
}

.no-image .modal-tags-section {
  width: 100%;
  max-width: 600px;
  margin-bottom: 2.5rem;
}

.no-image .modal-tags-title {
  justify-content: center;
  color: #9ca3af;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.no-image .modal-tags-container {
  justify-content: center;
  gap: 1rem;
}

.no-image .modal-tag {
  padding: 0.6rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  color: white;
  border-radius: 12px;
  transition: 0.3s;
}

.no-image .modal-tag:hover {
  background: rgba(57, 255, 20, 0.1);
  border-color: rgba(57, 255, 20, 0.3);
  color: var(--neon-green);
  transform: translateY(-2px);
}

.no-image .modal-pro-tip {
  max-width: 500px;
  width: 100%;
  background: rgba(57, 255, 20, 0.03);
  border: 1px solid rgba(57, 255, 20, 0.1);
  border-left: 4px solid var(--neon-green);
  padding: 1rem;
  text-align: left;
}

.no-image .pro-tip-content {
  font-size: 0.85rem;
  color: #d1d5db;
}

.no-image .modal-actions {
  width: 100%;
  max-width: 300px;
}

.no-image .modal-icon-box {
  transform: scale(1.2);
  margin-bottom: 2rem;
  box-shadow: 0 0 20px rgba(57, 255, 20, 0.1);
}

/* This rule was already present, but the instruction included it again. Keeping the new one. */
.modal-cta-btn:hover {
  box-shadow: 0 20px 25px -5px rgba(57, 255, 20, 0.4);
  transform: translateY(-2px);
}

/* --- Fish Doctor Quiz (Premium Redesign) --- */
.doctor-container {
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  /* Container is now invisible layout wrapper */
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 20px 0;
  max-width: 600px;
  /* Reduced width for tighter layout */
  margin: 0 auto;
}

.quiz-step {
  animation: slideUpFade 0.5s ease-out forwards;
}

@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.quiz-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.quiz-option {
  background: rgba(255, 255, 255, 0.02);
  /* Very subtle transparent glass */
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 40px 20px;
  border-radius: 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.quiz-option:hover {
  border-color: var(--neon-green);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.quiz-option::before {
  display: none;
  /* Remove fancy gradient */
}

.quiz-option i {
  font-size: 3.5rem;
  color: var(--neon-green);
  /* Always green as in ref */
  margin-bottom: 20px;
  display: block;
  transition: all 0.3s ease;
  filter: none;
}

.quiz-option:hover i {
  transform: scale(1.1);
}

.quiz-option span {
  color: #eee;
  font-size: 1.2rem;
  font-weight: 600;
  /* Bold like ref */
  transition: 0.3s;
  position: relative;
  z-index: 2;
}

/* Result Card Styling */
#quiz-result {
  padding: 20px;
}

#result-icon {
  font-size: 4rem;
  /* Smaller icon */
  margin-bottom: 10px;
  text-shadow: 0 0 30px rgba(57, 255, 20, 0.3);
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.advice-box {
  background: rgba(255, 255, 255, 0.02);
  /* Transparent Glass */
  border-left: 4px solid var(--neon-green);
  padding: 15px 20px;
  /* Compact padding */
  border-radius: 0 10px 10px 0;
  margin: 20px 0;
  /* Reduced margin */
  text-align: left;
  color: #ddd;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-left-width: 4px;
}

.btn-secondary {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ccc;
  padding: 12px 30px;
  border-radius: 50px;
  transition: 0.3s;
  font-size: 0.9rem;
  font-family: "Kanit", sans-serif;
  /* Explicitly set font */
  font-weight: 300;
}

.btn-secondary:hover {
  border-color: white;
  color: white;
  background: rgba(255, 255, 255, 0.05);
}

.close-species-modal {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10;
  transition: 0.3s;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.close-species-modal:hover {
  background: var(--neon-green);
  color: black;
}

@media (max-width: 768px) {
  .species-modal-content {
    height: auto;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    /* Scroll on mobile if needed */
    flex-direction: column;
    display: flex;
    width: 95% !important;
    margin: 10px auto;
  }

  .modal-flex-container {
    flex-direction: column;
    height: auto;
  }

  .modal-image-half {
    width: 100%;
    height: 250px;
    /* h-[250px] */
  }

  .modal-gradient-overlay {
    background: linear-gradient(to top, #111827, transparent);
    /* Mobile gradient */
  }

  .modal-info-half {
    width: 100% !important;
    padding: 1.5rem;
  }

  .modal-title {
    font-size: 1.875rem;
    /* text-3xl */
  }
}


/* Utility Class for Expandable Sections */
.hidden-item {
  display: none !important;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
