/* Modern Reset */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Variables */
:root {
  --primary-color: #9EBE00;
  --secondary-color: #CD7C13;
  --dark-color: #110200;
  --light-color: #F7FDF7;
  --white: #FFFFFF;
  --black: #9EBE00;
  --gray: #110200;
  --light-gray: #F8F9FA;
  --tan: #F2c070;
  --font-primary: 'Montserrat', sans-serif;
  --font-secondary: 'Playfair Display', serif;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1), 0 1px 3px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 20px rgba(0,0,0,0.1), 0 6px 6px rgba(0,0,0,0.1);
  --shadow-xl: 0 10px 28px rgba(0,0,0,0.1), 0 10px 10px rgba(0,0,0,0.08);
}

/* Base Styles */
body {
  font-family: var(--font-primary);
  color: var(--dark-color);
  background-color: var(--light-gray);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-secondary);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.bg-light {
  background-color: var(--light-gray);
}

.bg-pattern {
  background-image: url('soy-pattern.png');
  background-size: 300px;
  background-repeat: repeat;
  background-color: var(--secondary-color);
  background-blend-mode: overlay;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
}

.btn-primary:hover {
  background-color: #8aa800;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: var(--white);
}

.btn-secondary:hover {
  background-color: #b56a0f;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-small {
  padding: 8px 16px;
  font-size: 0.9rem;
}

/* Preloader */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--white);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.preloader-spinner {
  display: flex;
  gap: 10px;
}

.bean {
  width: 20px;
  height: 20px;
  background-color: var(--primary-color);
  border-radius: 50%;
  animation: bounce 1.4s infinite ease-in-out;
}

.bean:nth-child(2) {
  animation-delay: 0.2s;
}

.bean:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes bounce {
  0%, 80%, 100% { 
    transform: scale(0);
  } 40% { 
    transform: scale(1);
  }
}

/* Header */
.sticky-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(158, 190, 0, 0.95);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  transition: all 0.3s ease;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo {
  height: 50px;
  transition: var(--transition);
}

.logo-text {
  font-family: var(--font-secondary);
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--dark-color);
}

.logo-text span {
  color: var(--white);
  font-weight: 400;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-link {
  position: relative;
  font-weight: 600;
  color: var(--dark-color);
  padding: 5px 0;
  overflow: hidden;
}

.nav-link span {
  position: relative;
  display: inline-block;
  transition: var(--transition);
}

.nav-link span::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.nav-link:hover span::before {
  transform: scaleX(1);
  transform-origin: left;
}

.mobile-menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary-color);
}

/* GIF Background */
.gif-background {
  width: 100%;
  height: 150px;
  background-color: #110200;
  overflow: hidden;
  position: relative;
  z-index: 0;
}

.gif-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hero Section */
.hero-subtitle-container {
  position: relative;
  display: inline-block;
  padding: 1rem;
  margin-top: 1rem;
  z-index: 1;
}

.slogan-bg-gif {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 0.4; /* Adjust for visibility */
  border-radius: 12px;
}

.hero-subtitle {
  position: relative;
  font-size: 1.25rem;
  font-weight: 500;
  color: #fff;
  text-align: center;
  z-index: 2;
}

.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: -50px;
  z-index: 1;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
}

.hero-content {
  text-align: center;
  color: var(--white);
  padding: 0 20px;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.title-line {
  display: block;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease forwards;
}

.title-line:nth-child(2) {
  animation-delay: 0.3s;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease 0.6s forwards;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-cta .btn {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease 0.9s forwards;
}

.hero-cta .btn-secondary {
  animation-delay: 1.1s;
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--white);
  opacity: 0;
  animation: fadeIn 1s ease 1.5s forwards;
}

.mouse {
  width: 25px;
  height: 40px;
  border: 2px solid var(--white);
  border-radius: 15px;
  position: relative;
  margin: 0 auto 10px;
}

.wheel {
  width: 4px;
  height: 8px;
  background-color: var(--white);
  border-radius: 2px;
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 2s infinite;
}

.arrow {
  width: 15px;
  height: 15px;
  border-right: 2px solid var(--white);
  border-bottom: 2px solid var(--white);
  transform: rotate(45deg);
  margin: 0 auto;
  animation: scrollArrow 2s infinite;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scrollWheel {
  0% {
    transform: translate(-50%, 0);
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  100% {
    transform: translate(-50%, 10px);
    opacity: 0;
  }
}

@keyframes scrollArrow {
  0%, 20% {
    transform: rotate(45deg) translate(0, 0);
    opacity: 0;
  }
  40% {
    opacity: 1;
  }
  80% {
    transform: rotate(45deg) translate(-5px, -5px);
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-title {
  font-size: 2.5rem;
  color: var(--dark-color);
  position: relative;
  display: inline-block;
  margin-bottom: 1.5rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--primary-color);
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--gray);
  max-width: 700px;
  margin: 0 auto;
}

.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px 0;
}

.divider-line {
  width: 50px;
  height: 2px;
  background-color: var(--primary-color);
}

.divider-icon {
  margin: 0 15px;
  color: var(--primary-color);
  font-size: 1.2rem;
}

/* About Section */
.about-content {
  display: flex;
  align-items: center;
  gap: 40px;
}

.about-image {
  flex: 1;
}

.image-frame {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.image-frame::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 20px;
  right: -20px;
  bottom: -20px;
  border: 3px solid var(--primary-color);
  border-radius: 10px;
  z-index: -1;
}

.about-text {
  flex: 1;
  padding: 40px;
  background-color: var(--secondary-color);
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  position: relative;
}

.about-text p {
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.signature {
  margin-top: 30px;
  text-align: right;
}

.signature img {
  max-width: 150px;
  display: inline-block;
}

/* Products Section */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.product-card {
  background-color: var(--primary-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.product-card.featured {
  border: 2px solid var(--dark-color);
}

.product-card.coming-soon {
  opacity: 0.8;
}

.product-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: var(--secondary-color);
  color: var(--white);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.product-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 600;
}

.product-info {
  padding: 20px;
}

.product-info h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--dark-color);
}

.product-description {
  color: var(--gray);
  margin-bottom: 15px;
  font-size: 0.95rem;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
}

.price {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--dark-color);
}

.price small {
  font-size: 0.9rem;
  color: var(--gray);
}

/* Gallery Section */
.gallery-container {
  position: relative;
  margin: 0 auto;
  max-width: 1200px;
  padding: 0 20px;
}

.gallery-track {
  display: flex;
  gap: 20px;
  transition: transform 0.5s ease;
  padding: 10px 0;
}

.gallery-item {
  min-width: calc(33.333% - 14px);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 15px;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  color: var(--white);
  font-weight: 600;
  transform: translateY(100%);
  transition: var(--transition);
}

.gallery-item:hover .gallery-caption {
  transform: translateY(0);
}

.gallery-controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  z-index: 10;
  pointer-events: none;
}

.gallery-nav {
  pointer-events: auto;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--white);
  color: var(--dark-color);
  border: none;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  margin: 0 10px;
}

.gallery-nav:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

.gallery-nav.prev {
  left: 0;
}

.gallery-nav.next {
  right: 0;
}

.gallery-pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.gallery-pagination .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--gray);
  cursor: pointer;
  transition: var(--transition);
}

.gallery-pagination .dot.active {
  background-color: var(--primary-color);
  transform: scale(1.2);
}

/* Quality Section */
.quality-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.quality-card {
  background-color: var(--white);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.quality-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.quality-icon {
  width: 70px;
  height: 70px;
  background-color: var(--primary-color);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 20px;
  font-size: 1.8rem;
}

.quality-card h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: var(--dark-color);
}

.quality-card p {
  color: var(--gray);
  font-size: 0.95rem;
}

/* Contact Section */
.contact-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.contact-icon {
  font-size: 1.5rem;
  color: var(--primary-color);
  min-width: 30px;
  text-align: center;
  margin-top: 3px;
}

.contact-detail h3 {
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.contact-detail a, 
.contact-detail p {
  color: var(--gray);
  transition: var(--transition);
}

.contact-detail a:hover {
  color: var(--primary-color);
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(158, 190, 0, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition);
  color: var(--primary-color);
}

.social-link:hover {
  background-color: var(--primary-color);
  color: var(--white);
  transform: translateY(-3px);
}

.contact-form {
  background-color: var(--white);
  padding: 30px;
  border-radius: 10px;
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 20px;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(158, 190, 0, 0.2);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

.submit-btn {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 12px 30px;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
}

.submit-btn:hover {
  background-color: #8aa800;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Footer */
.footer {
  background-color: var(--dark-color);
  color: var(--light-gray);
  padding: 60px 0 20px;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.legal-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.legal-links a {
  color: var(--light-gray);
  opacity: 0.7;
  transition: var(--transition);
}

.legal-links a:hover {
  color: var(--primary-color);
  opacity: 1;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: var(--white);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
  z-index: 999;
  border: none;
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: #8aa800;
  transform: translateY(-3px);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .about-content {
    flex-direction: column;
  }
  
  .about-text {
    padding: 30px;
  }
  
  .gallery-item {
    min-width: calc(50% - 10px);
  }
}

@media (max-width: 768px) {
  .main-nav {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: var(--shadow-md);
    padding: 20px;
    transform: translateY(-150%);
    opacity: 0;
    transition: var(--transition);
    z-index: 999;
  }
  
  .main-nav.active {
    transform: translateY(0);
    opacity: 1;
  }
  
  .main-nav ul {
    flex-direction: column;
    gap: 15px;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .gallery-item {
    min-width: 100%;
  }
  
  .gif-background {
    height: 100px;
  }
  
  .hero {
    margin-top: -30px;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-cta {
    flex-direction: column;
    gap: 15px;
  }
  
  .btn {
    width: 100%;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
  }
  
  .contact-form {
    order: -1;
  }
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInLeft {
  from {
    transform: translateX(-50px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(50px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* Utility Classes */
.text-primary {
  color: var(--primary-color);
}

.text-secondary {
  color: var(--secondary-color);
}

.text-center {
  text-align: center;
}

.mb-0 {
  margin-bottom: 0;
}

.mt-0 {
  margin-top: 0;
}

.py-0 {
  padding-top: 0;
  padding-bottom: 0;
}

.animate {
  opacity: 0;
  animation: fadeIn 1s ease forwards;
}

.animate-left {
  opacity: 0;
  animation: slideInLeft 1s ease forwards;
}

.animate-right {
  opacity: 0;
  animation: slideInRight 1s ease forwards;
}

.delay-1 {
  animation-delay: 0.2s;
}

.delay-2 {
  animation-delay: 0.4s;
}

.delay-3 {
  animation-delay: 0.6s;
}

.delay-4 {
  animation-delay: 0.8s;
}

.delay-5 {
  animation-delay: 1s;
}
