/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Bai+Jamjuree:wght@400;500;600&display=swap");

/*=============== VARIABLES ===============*/
:root{
  --primary:#0BDA51;
  --primary-dark:#08b944;

  --dark:#0f0f0f;
  --dark-soft:#1a1a1a;

  --text-main:#222;
  --text-muted:#666;

  --bg-light:#f5f6f7;
  --bg-card:#ffffff;

  --radius-sm:6px;
  --radius-md:12px;
  --radius-lg:20px;

  --shadow-sm:0 6px 14px rgba(0,0,0,.08);
  --shadow-md:0 16px 40px rgba(0,0,0,.15);

  --container-width:1200px;
}

/*=============== GLOBAL ===============*/
*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  font-family:"Bai Jamjuree",sans-serif;
  color:var(--text-main);
  background:#fff;
  line-height:1.65;
}

a{
  text-decoration:none;
}

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

/*=============== CONTAINER ===============*/
.container{
  width:90%;
  max-width:var(--container-width);
  margin:auto;
}

/*=============== NAVBAR ===============*/
.header{
  background:#111;
  color:#fff;
  position:sticky;
  top:0;
  z-index:100;
}

.nav{
  width:90%;
  margin:auto;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:14px 0;
}

.logo{
  font-size:1.6rem;
  font-weight:600;
  color:#fff;
}

.nav-links{
  list-style:none;
  display:flex;
  gap:2rem;
}

.nav-links a{
  color:#fff;
  font-weight:500;
  position:relative;
  transition:.3s;
}

.nav-links a::after{
  content:"";
  position:absolute;
  bottom:-6px;
  left:0;
  width:0;
  height:2px;
  background:var(--primary);
  transition:.3s;
}

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

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

/*=============== HERO ===============*/
.hero{
  min-height:75vh;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:4rem 1rem;

  background:
          linear-gradient(to right,rgba(0,0,0,.75),rgba(0,0,0,.25)),
          url("https://via.placeholder.com/1600x900") center/cover no-repeat;

  color:#fff;
  position:relative;
  overflow:hidden;
}

.hero-content{
  max-width:650px;
}

.hero h1{
  font-size:clamp(2.6rem,5vw,3.6rem);
  margin-bottom:1rem;
}

.hero p{
  font-size:1.1rem;
  margin-bottom:2rem;
  color:#e5e5e5;
}

/* subtle animated lighting */
.hero::before{
  content:"";
  position:absolute;
  inset:0;

  background:
          radial-gradient(circle at 20% 40%, rgba(11,218,81,.15), transparent 40%),
          radial-gradient(circle at 80% 60%, rgba(11,218,81,.1), transparent 45%);

  animation:heroGlow 12s ease-in-out infinite alternate;
}

@keyframes heroGlow{
  from{transform:scale(1);opacity:.7;}
  to{transform:scale(1.2);opacity:1;}
}

/*=============== BUTTONS ===============*/
.btn{
  display:inline-block;
  padding:.75rem 1.75rem;
  border-radius:var(--radius-sm);
  font-weight:600;
  cursor:pointer;
  transition:.25s;
}

.primary{
  background:var(--primary);
  color:#000;
}

.primary:hover{
  background:var(--primary-dark);
  transform:translateY(-2px);
  box-shadow:var(--shadow-sm);
}

.secondary{
  background:var(--dark-soft);
  color:#fff;
}

.secondary:hover{
  background:#000;
}

/*=============== INVENTORY ===============*/
.inventory{
  padding:4rem 0 2rem;
  text-align:center;
}

.inventory h2{
  font-size:2rem;
}

/*=============== DROPDOWN FILTERS ===============*/
.inventory > div:first-child {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 2rem;
}

.inventory-filters {
  margin: 20px 0;
}

.inventory select {
  padding: 0.5rem 0.75rem;
  margin-right: 20px;
  border-radius: var(--radius-sm);
  border: 1px solid #ccc;
  font-size: 1rem;
  background-color: var(--bg-card);
  color: var(--text-main);
  cursor: pointer;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.inventory select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 5px rgba(11, 218, 81, 0.5);
}

.inventory select option {
  padding: 0.5rem;
}

/*=============== CARDS ===============*/
.card-container {
  padding-top: 20px;
  padding-bottom: 80px;
}

.card-content {
  margin-inline: 1rem;
  overflow: hidden;
}

.swiper-slide {
  cursor: default;
}

.swiper-slide button{
  touch-action:manipulation;
}

.card-article, .card-button, .card-img {
  pointer-events: auto !important;
  user-select: none;
  cursor: pointer;
}

.card-article{
  background:var(--bg-card);
  border-radius:var(--radius-lg);
  overflow:hidden;
  display:flex;
  flex-direction:column;
  height:520px;

  box-shadow:var(--shadow-sm);
  transition:.35s;
}

.card-image{
  height:240px;
  overflow:hidden;
}

.card-image img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .6s cubic-bezier(.22,.61,.36,1);
}

.card-data{
  background:var(--bg-light);
  padding:1.5rem 2rem;
  flex:1;
  display:flex;
  flex-direction:column;
}

.card-name{
  font-size:1.25rem;
  font-weight:600;
  margin-bottom:.5rem;
}

.card-meta{
  display:flex;
  justify-content:space-between;
  font-size:.9rem;
  font-weight:600;
}

.card-description{
  padding-top:10px;
  font-size:.95rem;
  color:var(--text-muted);
}

.card-button{
  margin-top:auto;
  background:var(--primary);
  color:#000;
  padding:.6rem 1.25rem;
  border-radius:var(--radius-sm);
  font-weight:600;
  transition:.25s;
  pointer-events:auto;
}

.card-button:hover{
  background:var(--primary-dark);
  transform:translateY(-2px);
}

/*=============== SWIPER ===============*/
.swiper-button-prev:after,
.swiper-button-next:after{
  content:"";
}

.swiper-button-prev,
.swiper-button-next{
  width:50px;
  height:50px;
  border-radius:50%;
  background:white;
  box-shadow:0 6px 18px rgba(0,0,0,.15);

  display:flex;
  align-items:center;
  justify-content:center;

  font-size:2rem;
  color:var(--dark);
  transition:.25s;
}

.swiper-button-prev:hover,
.swiper-button-next:hover{
  background:var(--primary);
  color:black;
}

/*=============== GALLERY MODAL ===============*/
.gallery-modal{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.9);
  display:none;
  justify-content:center;
  align-items:center;
  z-index:1000;
}

.gallery-content{
  width:90%;
  max-width:900px;
  position:relative;
}

.gallery-img{
  width:100%;
  border-radius:var(--radius-md);
}

.gallery-close{
  position:absolute;
  right:0;
  top:-40px;
  font-size:2rem;
  color:white;
  cursor:pointer;
}

.gallery-next,
.gallery-prev{
  color:white;
}

/*=============== CONTACT ===============*/
.contact{
  width:90%;
  margin:60px auto;
}

.contact-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:40px;
}

.map{
  height:300px;
  border-radius:var(--radius-md);
  box-shadow:var(--shadow-sm);
}

.contact-form{
  background:var(--bg-light);
  padding:20px;
  border-radius:var(--radius-md);
}

.contact-item{
  display:flex;
  gap:15px;
  padding:15px 0;
  border-bottom:1px solid #ddd;
}

.contact-item:last-child{
  border-bottom:none;
}

.contact-item div:first-child{
  width:40px;
  height:40px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--primary);
}

.contact-item img{
  width:20px;
}

/*=============== FOOTER ===============*/
.footer{
  background:var(--dark);
  color:#ccc;
  padding:2rem 0;
  border-top:1px solid rgba(255,255,255,.08);
}

.footer-bottom{
  text-align:center;
  font-size:.9rem;
}

/*=============== RESPONSIVE ===============*/
@media (max-width:768px){

  .nav-links{
    display:none;
    flex-direction:column;
    background:#111;
    padding:10px;
    position:absolute;
    right:20px;
    top:60px;
  }

  .contact-grid{
    grid-template-columns:1fr;
  }

}

/*=============== BREAKPOINTS ===============*/
@media (max-width:320px){
  .card-data{
    padding:1rem;
  }
}

@media (min-width:768px){

  .card-content{
    margin-inline:3rem;
  }

  .swiper-button-prev,
  .swiper-button-next{
    display:flex;
  }

}

@media (min-width:1120px){

  .card-container{
    max-width:1120px;
    margin:auto;
  }

  .swiper-button-prev{
    left:-1rem;
  }

  .swiper-button-next{
    right:-1rem;
  }

}