/* ===============================
   RinBike - Custom Styles
   =============================== */

/* Reset & Base */
* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }
body {
  font-family: 'Poppins', sans-serif;
  background:#fff;
  color:#111;
  line-height:1.6;
  overflow-x:hidden;
}
img { max-width:100%; display:block; }
a { text-decoration:none; transition:0.3s; }
a:hover { color:#FF6B35; }

/* Sections */
section { padding:80px 0; }
.section-title { font-size:2rem; font-weight:700; margin-bottom:40px; }

/* ================= HERO SLIDER ================= */
.hero-slider { position:relative; height:100vh; }
.hero-slide {
  position:absolute; inset:0;
  opacity:0; visibility:hidden;
  display:flex; align-items:center;
  transition:opacity 0.8s ease;
}
.hero-slide.active { opacity:1; visibility:visible; z-index:10; }
.hero-bike { max-width:455px; margin-left:-65px; animation:float 6s ease-in-out infinite; !important}
@keyframes float {
  0%,100% { transform:translateY(0); }
  50% { transform:translateY(-15px); }
}
.hero-pagination { position:absolute; bottom:30px; left:50%; transform:translateX(-50%); display:flex; gap:10px; }
.hero-pagination .dot {
  width:12px; height:12px; border-radius:50%;
  background:rgba(255,255,255,0.5);
  cursor:pointer;
  transition:0.3s;
}
.hero-pagination .dot.active { background:#fff; width:30px; border-radius:20px; }

/* ================= PRODUCT CARDS ================= */
.product-card {
  background:#fff;
  border:1px solid #eee;
  border-radius:10px;
  text-align:center;
  transition:0.3s;
}
.product-card:hover {
  transform:translateY(-8px);
  box-shadow:0 8px 20px rgba(0,0,0,0.1);
}
.product-card h3 { font-size:1.1rem; margin:10px 0; }
.product-card p { font-size:0.9rem; color:#555; }

/* ================= COLOR BIKES ================= */
.color-bike {
  border-radius:15px;
  padding:30px;
  text-align:center;
  color:#fff;
}
.color-bike img { max-width:220px; margin:0 auto 20px; }

/* ================= SUSTAINABILITY ================= */
.sustainability { background:#003049; color:#fff; }
.sustainability ul { margin-top:20px; padding-left:20px; list-style:disc; }

/* ================= RINBIKE WORLD ================= */
.rinbike-world .box {
  background:#000; color:#fff;
  padding:30px; border-radius:10px;
  transition:0.3s;
}
.rinbike-world .box:hover { background:#FF6B35; }

/* ================= ITALIAN DESIGN ================= */
.italian-design img { border-radius:10px; box-shadow:0 4px 20px rgba(0,0,0,0.1); }

/* ================= GO GREEN ================= */
.go-green { background:linear-gradient(135deg,#27ae60,#219150); color:#fff; text-align:center; }

/* ================= FOOTER ================= */
.rinbike-footer a { color:#aaa; font-size:0.9rem; }
.rinbike-footer a:hover { color:#fff; }

/* ================= FLOAT BUTTONS ================= */
.scroll-to-top {
  opacity:0; visibility:hidden;
  transition:0.3s;
}
.scroll-to-top.visible { opacity:1; visibility:visible; }
.whatsapp-float { font-size:24px; }

/* ================= RESPONSIVE ================= */
@media(max-width:1024px){
  h1{ font-size:2rem; }
  section{ padding:60px 0; }
}
@media(max-width:768px){
  .hero-slide { flex-direction:column; text-align:center; }
  .hero-bike { max-width:280px; margin-top:20px; }
  .products-grid, .color-bikes-grid { grid-template-columns:1fr !important; }
}


/* ================= PRELOADER ================= */
#preloader {
  position: fixed;
  inset: 0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

#preloader .loader {
  width: 50px;
  height: 50px;
  border: 5px solid #eee;
  border-top: 5px solid #FF6B35; /* brand color */
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

body.loaded #preloader {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease;
}

/* ================= Slider ================= */

.hero-slide {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 5;
}
.hero-bike {
  max-width: 745px;
	margin-left:-260px;
  animation: float 6s ease-in-out infinite;
}
.hero-pagination .dot.active {
  background: #fff;
  width: 30px;
  border-radius: 20px;
}

