/* ==============================
   RENUKAMMATALLI TECHNOLOGIES
   Circular Products with Names CSS
================================= */

/* ================= GLOBAL ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

body {
  background: #f0fff5;
  color: #1b2b34;
  font-size: 15px;
  line-height: 1.5;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

a:hover {
  color: #2ecc71;
}

button {
  cursor: pointer;
  outline: none;
  border: none;
}

/* ================= HEADER ================= */
.site-header {
  background: linear-gradient(90deg, #a8e6cf, #00bfff);
  padding: 10px 20px;
  color: #fff;
  position: fixed;
  width: 100%;
  z-index: 999;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-header .brand img {
  height: 50px;
  transition: transform 0.3s ease;
}

.site-header .main-nav a {
  margin-left: 15px;
  font-weight: 600;
  color: #fff;
  font-size: 0.9rem;
  position: relative;
}

.site-header .main-nav a.active::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 2px;
  background: #2ecc71;
  border-radius: 2px;
}

.menu-toggle {
  display: none;
  font-size: 22px;
  color: #fff;
}

/* ================= HERO ================= */
.hero {
  background: linear-gradient(135deg, #b9fbc0, #00c6ff);
  text-align: center;
  padding: 100px 20px 60px;
  color: #fff;
  border-radius: 0 0 40px 40px;
}

.hero h2 {
  font-size: 2.4rem;
  margin-bottom: 12px;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.2);
}

.hero p {
  font-size: 1.1rem;
}

/* ================= CATEGORY MENU ================= */
.categories {
  display: flex;
  justify-content: flex-start;
  gap: 12px;
  margin: 20px 0;
  overflow-x: auto;
  padding: 0 10px;
  scrollbar-width: none;
}

.categories::-webkit-scrollbar {
  display: none;
}

.categories button {
  flex: 0 0 auto;
  padding: 8px 18px;
  border-radius: 40px;
  background: #e8f9f1;
  color: #0077b6;
  font-weight: 600;
  font-size: 0.85rem;
  position: relative;
  transition: all 0.3s ease;
  box-shadow: 0 3px 8px rgba(0,0,0,0.05);
}

.categories button.active {
  background: linear-gradient(90deg, #00bfff, #2ecc71);
  color: #fff;
  box-shadow: 0 6px 15px rgba(0,0,0,0.12);
}

.categories button::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -3px;
  width: 0;
  height: 3px;
  background: #2ecc71;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.categories button.active::after {
  width: 100%;
  left: 0;
}

/* ================= PRODUCTS GRID ================= */
.products {
  display: flex;
  flex-direction: column;
}

.category {
  display: none;
  animation: fadeIn 0.4s ease-in-out;
}

.category.active {
  display: block;
}

/* Grid: 4 products per row */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  margin-top: 20px;
}

/* Product card */
.product {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

/* Circular image */
.product img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  transition: transform 0.3s ease;
  box-shadow: 0 3px 12px rgba(0,0,0,0.08);
}

/* Product name below the circle */
.product-name {
  margin-top: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  color: #1b2b34;
  text-align: center;
  transition: color 0.3s ease;
}

/* Hover effects */
.product:hover img {
  transform: scale(1.08);
}

.product:hover .product-name {
  color: #2ecc71;
}

/* ================= MODAL ================= */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #fff;
  padding: 30px 20px;
  border-radius: 15px;
  max-width: 550px;
  width: 90%;
  text-align: center;
  box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

.modal-content h3 {
  color: #0077b6;
  margin-bottom: 12px;
}

.modal-content p {
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.5;
}

.modal-content .btn {
  padding: 10px 25px;
  border-radius: 30px;
  background: linear-gradient(90deg, #a8e6cf, #00bfff);
  color: #fff;
  font-weight: 600;
  transition: 0.3s;
}

.modal-content .btn:hover {
  background: linear-gradient(90deg, #00bfff, #a8e6cf);
}

.close {
  position: absolute;
  top: 12px;
  right: 15px;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  color: #0077b6;
}

/* ================= ANIMATIONS ================= */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1200px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .grid {
    grid-template-columns: 1fr;
  }
  .product img {
    width: 100px;
    height: 100px;
  }
  .product-name {
    font-size: 0.8rem;
  }
  .categories button {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
}

/* ================= FOOTER ================= */
.site-footer {
  background: #00bfff;
  color: #fff;
  padding: 50px 20px 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  margin-bottom: 25px;
}

.footer-col h4 {
  margin-bottom: 12px;
}

.footer-col ul {
  list-style: none;
  padding-left: 0;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col a {
  color: #fff;
  transition: 0.3s;
}

.footer-col a:hover {
  color: #ffd700;
}

.footer-whatsapp {
  display: inline-block;
  margin-top: 10px;
  color: #fff;
  font-weight: bold;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.3);
  padding-top: 12px;
  font-size: 0.85rem;
}