/* ================= RESET ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: linear-gradient(180deg, #f9fafb, #eef2f7);
}

/* ================= HEADER ================= */
.page-header {
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  padding: 18px 20px;
  position: sticky;
  top: 0;
  z-index: 100;
  animation: slideDown 0.6s ease;
}

.header-inner {
  max-width: 1200px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 15px;
}

.back-arrow {
  font-size: 28px;
  color: white;
  cursor: pointer;
  padding: 8px 14px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.back-arrow:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(-5px);
}

.title-box h1 {
  color: #fff;
  font-size: 24px;
}

.title-box p {
  color: #dbeafe;
  font-size: 14px;
}

/* ================= CATEGORY BUTTONS ================= */
.tile-varieties {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 10px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 75px;
  z-index: 90;
}

.tile-varieties::-webkit-scrollbar {
  display: none;
}

.tile-varieties a {
  white-space: nowrap;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.3s, box-shadow 0.3s;
  animation: fadeUp 0.8s ease both;
}

.tile-varieties a:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* COLORS */
.floor { background: linear-gradient(135deg, #2563eb, #1d4ed8); }
.kitchen { background: linear-gradient(135deg, #64748b, #475569); }
.wall { background: linear-gradient(135deg, #16a34a, #15803d); }
.bathroom { background: linear-gradient(135deg, #a16207, #854d0e); }
.ceramic { background: linear-gradient(135deg, #9333ea, #7e22ce); }
.granite { background: linear-gradient(135deg, #dc2626, #b91c1c); }
.marble { background: linear-gradient(135deg, #0f766e, #115e59); }
.parking { background: linear-gradient(135deg, #ca8a04, #a16207); }

/* ================= GRID ================= */
.tiles-grid {
  max-width: 1200px;
  margin: auto;
  padding: 4px 16px;
  background-color: rgba(248, 246, 240, 0.623);
}

.tiles-grid h2 {
  margin: 20px 0 20px;
  font-size: 22px;
  color: #1f2937;
  position: relative;
  animation: fadeLeft 0.6s ease;
}

.tiles-grid h2::after {
  content: "";
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #2563eb, transparent);
  display: block;
  margin-top: 6px;
  border-radius: 4px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
  border-radius: 10%;

}

/* ================= TILE CARD ================= */
.tile-card {
  background: #fff;
  backdrop-filter: blur(10px);
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  animation: fadeUp 0.7s ease both;
  background-color: #ecd578;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  
}

.tile-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.tile-card img {
  width: 97%;
  transition: transform 0.6s ease;
  margin-top: 5px;
}
.tile-card:hover img {
  transform: scale(1.12);
}

.tile-card p {
  padding: 10px 12px 2px;
  font-weight: 600;
  text-align: center;
  color: #a70000;
  font-size: 18px;
}

.tile-card small {
  display: block;
  text-align: center;
  color: black;
}

.tile-card strong {
  display: block;
  text-align: center;
  padding-bottom: 5px;
  color: #2563eb;
  font-size: 18px;
}
/* CONTACT CONTAINER */
.tile-contact {

  display: flex;
  flex-direction: row;
  gap: 5px;
  margin: 5px;
}

/* LINKS STYLE */
.tile-contact a {
  display: flex;
  align-items: center;
  gap: 5px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  background-color: rgb(255, 255, 255);
  color: #333;
  transition: all 0.35s ease;
}

/* ICON STYLE */
.tile-contact i {
  font-size: 16px;
  color: #e63946;
  transition: transform 0.35s ease;
}

/* HOVER EFFECT */
.tile-contact a:hover {
  background: #e63946;
  color: #fff;
  transform: translateX(6px);
  box-shadow: 0 6px 15px rgba(230, 57, 70, 0.3);
}

.tile-contact a:hover i {
  color: #fff;
  transform: scale(1.2) rotate(5deg);
}

/* MOBILE TOUCH ANIMATION */
.tile-contact a:active {
  transform: scale(0.97);
}

/* SMALL DEVICES */
@media (max-width: 480px) {
  .tile-contact a {
    font-size: 13px;
    padding: 7px 10px;
  }
}


/* ================= ANIMATIONS ================= */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {
  .title-box h1 {
    font-size: 20px;
  }

  .tile-card img {
    height: 180px;
  }

  .tiles-grid h2 {
    font-size: 20px;
  }
}
