/* =========================================================
   CHINNA Salem ALL STORES
   Modern 3D / Animated / Colorful Store Directory CSS
   ========================================================= */

/* =========================
   ROOT VARIABLES
========================= */

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary: #0ea5e9;
  --cyan: #06b6d4;
  --purple: #7c3aed;
  --pink: #ec4899;
  --orange: #f97316;
  --yellow: #f59e0b;
  --green: #10b981;
  --red: #ef4444;

  --text-main: #172033;
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;

  --bg: #f5f8ff;
  --bg-light: #f8fafc;
  --white: #ffffff;
  --border: rgba(148, 163, 184, 0.22);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-sm: 0 5px 15px rgba(15, 23, 42, 0.06);

  --shadow-md: 0 15px 35px rgba(15, 23, 42, 0.1);

  --shadow-lg: 0 25px 60px rgba(15, 23, 42, 0.15);

  --shadow-blue: 0 20px 50px rgba(37, 99, 235, 0.22);

  --transition: 0.35s cubic-bezier(0.22, 1, 0.36, 1);

  --container: 1240px;
}

/* =========================
   RESET
========================= */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  color: var(--text-main);
  background:
    radial-gradient(
      circle at 10% 10%,
      rgba(37, 99, 235, 0.08),
      transparent 30%
    ),
    radial-gradient(
      circle at 90% 20%,
      rgba(236, 72, 153, 0.07),
      transparent 25%
    ),
    var(--bg);

  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;

  background-image:
    linear-gradient(rgba(37, 99, 235, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.025) 1px, transparent 1px);

  background-size: 50px 50px;

  pointer-events: none;
  z-index: -1;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  border: none;
  cursor: pointer;
}

/* =========================
   CONTAINER
========================= */

.container {
  width: min(calc(100% - 40px), var(--container));

  margin-inline: auto;
}

/* =========================
   HEADER
========================= */

.header {
  position: sticky;
  top: 0;
  z-index: 1000;

  width: 100%;

  background: rgba(255, 255, 255, 0.82);

  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);

  border-bottom: 1px solid rgba(148, 163, 184, 0.15);

  box-shadow: 0 5px 30px rgba(15, 23, 42, 0.05);

  animation: headerDown 0.7s ease both;
}

.header .container {
  min-height: 76px;

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

  gap: 30px;
}

/* =========================
   LOGO
========================= */

.logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;

  font-size: clamp(18px, 2vw, 24px);
  font-weight: 900;

  letter-spacing: -0.8px;

  background: linear-gradient(
    135deg,
    var(--primary),
    var(--purple),
    var(--pink)
  );

  -webkit-background-clip: text;
  background-clip: text;

  color: transparent;

  transition: var(--transition);
}

.logo::before {
  content: "🏪";

  width: 40px;
  height: 40px;

  display: grid;
  place-items: center;

  border-radius: 12px;

  background: linear-gradient(135deg, var(--primary), var(--secondary));

  color: white;

  font-size: 20px;

  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.25);

  transition: var(--transition);
}

.logo:hover {
  transform: translateY(-2px);
}

.logo:hover::before {
  transform: rotate(-8deg) scale(1.08);
}

/* =========================
   NAVIGATION
========================= */

.header nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header nav a {
  position: relative;

  padding: 10px 15px;

  border-radius: 12px;

  color: var(--text-muted);

  font-size: 14px;
  font-weight: 700;

  transition: var(--transition);
}

.header nav a::after {
  content: "";

  position: absolute;

  left: 15px;
  right: 15px;
  bottom: 5px;

  height: 2px;

  border-radius: 10px;

  background: linear-gradient(90deg, var(--primary), var(--purple));

  transform: scaleX(0);

  transform-origin: center;

  transition: var(--transition);
}

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

  background: rgba(243, 224, 52, 0.884);

  transform: translateY(-2px);
}

.header nav a:hover::after {
  transform: scaleX(1);
}

/* =========================
   HERO
========================= */

.hero {
  position: relative;

  min-height: 650px;

  display: flex;
  align-items: center;

  overflow: hidden;

  isolation: isolate;

  background: linear-gradient(135deg, #eef5ff 0%, #f5f3ff 45%, #fff5fb 100%);

  padding: 90px 0 110px;
}

/* Animated gradient layer */

.hero::before {
  content: "";

  position: absolute;

  width: 600px;
  height: 600px;

  top: -280px;
  left: -200px;

  border-radius: 50%;

  background: radial-gradient(circle, rgba(37, 99, 235, 0.25), transparent 68%);

  filter: blur(10px);

  animation: heroBlob 9s ease-in-out infinite alternate;

  z-index: -2;
}

.hero::after {
  content: "";

  position: absolute;

  width: 500px;
  height: 500px;

  right: -180px;
  bottom: -220px;

  border-radius: 50%;

  background: radial-gradient(
    circle,
    rgba(236, 72, 153, 0.18),
    transparent 70%
  );

  animation: heroBlob2 10s ease-in-out infinite alternate;

  z-index: -2;
}

/* =========================
   HERO GRID
========================= */

.hero .container {
  position: relative;

  display: grid;

  grid-template-columns:
    minmax(0, 1.1fr)
    minmax(360px, 0.9fr);

  align-items: center;

  gap: 60px;
}

/* =========================
   HERO CONTENT
========================= */

/* =====================================================
   HERO HEADING
   Fully Responsive - Desktop / Laptop / Tablet / Mobile
===================================================== */

.hero h1 {
  width: 100%;
  max-width: 760px;

  margin: 0;

  font-size: clamp(
    2rem,
    /* minimum: 32px */ 5vw,
    /* responsive size */ 4.75rem /* maximum: 76px */
  );

  line-height: 1.06;

  letter-spacing: clamp(-1px, -0.15vw, -3px);

  font-weight: 900;

  color: var(--text-dark);

  text-wrap: balance;

  overflow-wrap: break-word;

  animation: heroText 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Gradient text */

.hero h1 span {
  display: inline;

  background: linear-gradient(
    135deg,
    var(--primary),
    var(--purple),
    var(--pink)
  );

  -webkit-background-clip: text;
  background-clip: text;

  -webkit-text-fill-color: transparent;

  color: transparent;
}

/* =====================================================
   LARGE DESKTOP
   1440px+
===================================================== */

@media (min-width: 1440px) {
  .hero h1 {
    max-width: 820px;

    font-size: 76px;

    line-height: 1.02;

    letter-spacing: -3px;
  }
}

/* =====================================================
   DESKTOP
   1200px - 1439px
===================================================== */

@media (min-width: 1200px) and (max-width: 1439px) {
  .hero h1 {
    max-width: 740px;

    font-size: 64px;

    line-height: 1.04;

    letter-spacing: -2.5px;
  }
}

/* =====================================================
   LAPTOP
   992px - 1199px
===================================================== */

@media (min-width: 992px) and (max-width: 1199px) {
  .hero h1 {
    max-width: 650px;

    font-size: 56px;

    line-height: 1.06;

    letter-spacing: -2px;
  }
}

/* =====================================================
   TABLET
   768px - 991px
===================================================== */

@media (min-width: 768px) and (max-width: 991px) {
  .hero h1 {
    max-width: 700px;

    margin-left: auto;
    margin-right: auto;

    font-size: 50px;

    line-height: 1.08;

    letter-spacing: -1.7px;

    text-align: center;
  }
}

/* =====================================================
   SMALL TABLET
   600px - 767px
===================================================== */

@media (min-width: 600px) and (max-width: 767px) {
  .hero h1 {
    max-width: 620px;

    margin-left: auto;
    margin-right: auto;

    font-size: 44px;

    line-height: 1.1;

    letter-spacing: -1.4px;

    text-align: center;
  }
}

/* =====================================================
   LARGE MOBILE
   480px - 599px
===================================================== */

@media (min-width: 480px) and (max-width: 599px) {
  .hero h1 {
    max-width: 520px;

    margin-left: auto;
    margin-right: auto;

    font-size: 40px;

    line-height: 1.1;

    letter-spacing: -1.2px;

    text-align: center;
  }
}

/* =====================================================
   MOBILE
   375px - 479px
===================================================== */

@media (min-width: 375px) and (max-width: 479px) {
  .hero h1 {
    max-width: 100%;

    margin-left: auto;
    margin-right: auto;

    font-size: 34px;

    line-height: 1.12;

    letter-spacing: -0.9px;

    text-align: center;
  }
}

.star {
  width: 20px;
  height: 20px;
  position: relative;
  top: 5px;
}
.star.full {
  fill: #ffe658; /* Gold color */
}

/* =====================================================
   VERY SMALL MOBILE
   Below 375px
===================================================== */

@media (max-width: 374px) {
  .hero h1 {
    max-width: 100%;

    font-size: 30px;

    line-height: 1.15;

    letter-spacing: -0.6px;

    text-align: center;
  }
}
.hero p {
  max-width: 650px;

  margin-top: 25px;

  color: var(--text-muted);

  font-size: clamp(16px, 2vw, 20px);

  line-height: 1.8;

  animation: heroText 1s 0.12s both;
}

/* =========================
   SEARCH BOX
========================= */

.search-box {
  position: relative;

  display: flex;

  width: min(100%, 650px);

  margin-top: 35px;

  padding: 8px;

  border-radius: 18px;

  background: rgba(255, 255, 255, 0.92);

  border: 1px solid rgba(255, 255, 255, 0.9);

  box-shadow: 0 20px 50px rgba(37, 99, 235, 0.15);

  backdrop-filter: blur(15px);

  animation: heroText 1s 0.24s both;
}

.search-box input:focus {
  border-radius: 18px;
  border: 2px solid rgba(235, 214, 25, 0.938);
  outline: none;
  font-size: 20px;
}

/* =========================
   SEARCH ERROR
========================= */

.search-error {
  position: fixed;
  top: 25px;
  left: 50%;
  z-index: 9999;

  display: flex;
  align-items: center;
  gap: 10px;

  padding: 13px 16px;

  background: #fff;
  color: #d32f2f;

  border: 1px solid #ffb3b3;
  border-left: 5px solid #e53935;

  border-radius: 10px;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);

  font-size: 15px;
  font-weight: 600;

  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -20px);

  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    visibility 0.3s ease;
}

/* Show error */
.search-error.show {
  opacity: 1;
  margin-top: 70px;
  visibility: visible;
  transform: translate(-50%, 0);
}

/* Warning icon */
.error-icon {
  width: 24px;
  height: 24px;

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

  background: #ffebee;
  color: #e53935;

  border-radius: 50%;

  font-size: 14px;
  font-weight: 800;
}

/* Close X */
.error-close {
  width: 25px;
  height: 25px;

  margin-left: 8px;
  padding: 0;

  border: none;
  background: transparent;

  color: #999;

  font-size: 24px;
  line-height: 1;

  cursor: pointer;

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

  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.error-close:hover {
  color: #d32f2f;
  transform: scale(1.15);
}

/* =========================
   SEARCH BUTTON
========================= */

.search-box button {
  cursor: pointer;
  border: none;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 600px) {
  .search-error {
    width: calc(100% - 30px);
    top: 15px;

    font-size: 14px;
    padding: 12px 13px;
  }

  .error-close {
    margin-left: auto;
  }
}

.search-box input {
  width: 100%;

  min-width: 0;

  padding: 17px 20px;

  border: none;
  outline: none;

  background: transparent;

  color: var(--text-dark);

  font-size: 16px;
}

.search-box input::placeholder {
  color: #94a3b8;
}

.search-box button {
  flex-shrink: 0;

  padding: 14px 27px;

  border-radius: 13px;

  color: white;

  font-weight: 800;

  background: linear-gradient(135deg, var(--primary), var(--purple));

  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.28);

  transition: var(--transition);
}

.search-box button:hover {
  transform: translateY(-3px) scale(1.03);

  box-shadow: 0 15px 35px rgba(37, 99, 235, 0.35);
}

.search-box button:active {
  transform: scale(0.97);
}

/* =========================
   HERO 3D VISUAL
========================= */

.hero-visual {
  position: relative;

  min-height: 420px;

  perspective: 1200px;

  display: grid;
  place-items: center;
}

/* Main 3D card */

.hero-visual .store-card-3d {
  position: relative;

  width: min(100%, 380px);

  min-height: 330px;

  padding: 35px;

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

  text-align: center;

  border-radius: 35px;

  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.95),
    rgba(239, 246, 255, 0.85)
  );

  border: 1px solid rgba(255, 255, 255, 0.9);

  box-shadow:
    30px 30px 70px rgba(37, 99, 235, 0.16),
    inset 0 1px 0 white;

  transform: rotateY(-12deg) rotateX(7deg);

  transform-style: preserve-3d;

  animation: cardFloat 5s ease-in-out infinite;
}

/* Card glow */

.hero-visual .store-card-3d::before {
  content: "";

  position: absolute;

  inset: -2px;

  border-radius: inherit;

  background: linear-gradient(
    135deg,
    var(--primary),
    var(--purple),
    var(--pink)
  );

  z-index: -1;

  filter: blur(25px);

  opacity: 0.25;
}

/* Store icon */

.store-3d-icon {
  width: 110px;
  height: 110px;

  display: grid;
  place-items: center;

  border-radius: 30px;

  font-size: 55px;

  background: linear-gradient(135deg, #dbeafe, #ede9fe);

  box-shadow: 0 25px 40px rgba(37, 99, 235, 0.15);

  transform: translateZ(55px);

  animation: iconFloat 4s ease-in-out infinite;
}

.store-card-3d h3 {
  margin-top: 25px;

  font-size: 26px;

  color: var(--text-dark);

  transform: translateZ(40px);
}

.store-card-3d p {
  margin-top: 8px;

  font-size: 14px;

  color: var(--text-muted);

  transform: translateZ(30px);
}

/* =========================
   FLOATING 3D ELEMENTS
========================= */

.floating-store {
  position: absolute;

  width: 80px;
  height: 80px;

  display: grid;
  place-items: center;

  border-radius: 22px;

  background: rgba(255, 255, 255, 0.88);

  border: 1px solid rgba(255, 255, 255, 0.9);

  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);

  font-size: 35px;

  backdrop-filter: blur(15px);

  transform-style: preserve-3d;

  z-index: 5;
}

.floating-store.one {
  top: 5%;
  left: 5%;

  animation: floatOne 5s ease-in-out infinite;
}

.floating-store.two {
  right: 0;
  top: 20%;

  animation: floatTwo 6s ease-in-out infinite;
}

.floating-store.three {
  bottom: 3%;
  left: 8%;

  animation: floatThree 5.5s ease-in-out infinite;
}

/* =========================
   STATS
========================= */

.stats {
  position: relative;

  margin-top: -45px;

  z-index: 20;
}

.stats .container {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 20px;
}

.stat-card {
  position: relative;

  padding: 28px;

  text-align: center;

  border-radius: 22px;

  background: rgba(255, 255, 255, 0.9);

  border: 1px solid rgba(255, 255, 255, 0.95);

  box-shadow: var(--shadow-md);

  backdrop-filter: blur(15px);

  transition: var(--transition);

  overflow: hidden;
}

.stat-card::before {
  content: "";

  position: absolute;

  width: 120px;
  height: 120px;

  right: -50px;
  top: -50px;

  border-radius: 50%;

  background: rgba(37, 99, 235, 0.08);
}

.stat-card:hover {
  transform: translateY(-8px) rotateX(2deg);

  box-shadow: var(--shadow-lg);
}

.stat-card strong {
  display: block;

  font-size: 34px;
  line-height: 1;

  font-weight: 950;

  background: linear-gradient(135deg, var(--primary), var(--purple));

  -webkit-background-clip: text;
  background-clip: text;

  color: transparent;
}

.stat-card span {
  display: block;

  margin-top: 8px;

  color: var(--text-muted);

  font-size: 14px;
  font-weight: 700;
}

/* =========================
   GENERAL SECTION
========================= */

section:not(.hero) {
  padding: 100px 0;
}

section h2 {
  position: relative;

  margin-bottom: 45px;

  text-align: center;

  font-size: clamp(30px, 4vw, 46px);

  line-height: 1.1;

  letter-spacing: -1.5px;

  color: var(--text-dark);

  font-weight: 900;
}

section h2::after {
  content: "";

  display: block;

  width: 60px;
  height: 5px;

  margin: 17px auto 0;

  border-radius: 20px;

  background: linear-gradient(
    90deg,
    var(--primary),
    var(--purple),
    var(--pink)
  );
}

/* =========================
   CATEGORIES
========================= */

.categories {
  position: relative;

  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.category-grid {
  display: grid;

  grid-template-columns: repeat(5, 1fr);

  gap: 20px;
}

.category-grid a {
  position: relative;

  min-height: 170px;

  padding: 28px 20px;

  display: flex;

  flex-direction: column;

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

  text-align: center;

  border-radius: 25px;

  background: linear-gradient(145deg, white, #f8fafc);

  border: 1px solid var(--border);

  box-shadow: var(--shadow-sm);

  font-size: 18px;
  font-weight: 850;

  color: var(--text-dark);

  overflow: hidden;

  transform-style: preserve-3d;

  transition: var(--transition);
}

/* category icons */

.category-grid a:nth-child(1)::before {
  content: "🛏️";
  font-size: 40px;
}

.category-grid a:nth-child(2)::before {
  content: "📱";
  font-size: 40px;
}

.category-grid a:nth-child(3)::before {
  content: "🛒";
  font-size: 40px;
}

.category-grid a:nth-child(4)::before {
  content: "💡";
  font-size: 40px;
}

.category-grid a:nth-child(5)::before {
  content: "👕";
  font-size: 40px;
}

.category-grid a:nth-child(6)::before {
  content: "👟";
  font-size: 40px;
}

.category-grid a:nth-child(7)::before {
  content: "📿";
  font-size: 40px;
}

.category-grid a:nth-child(8)::before {
  content: "🎂";
  font-size: 40px;
}

.category-grid a:nth-child(9)::before {
  content: "🕶";
  font-size: 40px;
}

.categories .category-grid a:nth-child(10)::before {
  content: "💠";
  font-size: 40px;
}

.categories .category-grid a:nth-child(11)::before {
  content: "🎨";
  font-size: 40px;
}

.categories .category-grid a:nth-child(12)::before {
  content: "🏋️";
  font-size: 40px;
}

.category-grid a:nth-child(13)::before {
  content: "🍚";
  font-size: 40px;
}

.category-grid a:nth-child(14)::before {
  content: "🌾";
  font-size: 40px;
}

.category-grid a:nth-child(15)::before {
  content: "💉";
  font-size: 40px;
}

.category-grid a:nth-child(16)::before {
  content: "🏥";
  font-size: 40px;
}

.categories .category-grid a:nth-child(17)::before {
  content: "🧸";
  font-size: 40px;
}

.category-grid a:nth-child(18)::before {
  content: "🚂";
  font-size: 40px;
}

.category-grid a:nth-child(19)::before {
  content: "💇‍♂️";
  font-size: 40px;
}

.category-grid a:nth-child(20)::before {
  content: "💆🏻‍♀️";
  font-size: 40px;
}

.category-grid a:nth-child(21)::before {
  content: "✂️";
  font-size: 40px;
}

.category-grid a:nth-child(22)::before {
  content: "💇‍♀️";
  font-size: 40px;
}

.category-grid a:nth-child(23)::before {
  content: "👨🏻‍🔧";
  font-size: 40px;
}

.category-grid a:nth-child(24)::before {
  content: "𓌉◯𓇋";
  font-size: 40px;
}

.category-grid a:nth-child(25)::before {
  content: "🧵";
  font-size: 40px;
}

.category-grid a:nth-child(26)::before {
  content: "💰";
  font-size: 40px;
}

.category-grid a:nth-child(27)::before {
  content: "🖥️";
  font-size: 40px;
}

.category-grid a:nth-child(28)::before {
  content: "🥤🥪";
  font-size: 30px;
}

.category-grid a:nth-child(29)::before {
  content: "📸";
  font-size: 40px;
}

.category-grid a:nth-child(30)::before {
  content: "🍱";
  font-size: 40px;
}

.category-grid a:nth-child(31)::before {
  content: "🏗️";
  font-size: 40px;
}

.category-grid a:nth-child(32)::before {
  content: "🌿";
  font-size: 40px;
}

.category-grid a:nth-child(33)::before {
  content: "🥫";
  font-size: 40px;
}

.category-grid a:nth-child(34)::before {
  content: "💻";
  font-size: 40px;
}

.category-grid a:nth-child(35)::before {
  content: "🔬";
  font-size: 40px;
}

.category-grid a:nth-child(36)::before {
  content: "🍎";
  font-size: 40px;
}

.category-grid a:nth-child(37)::before {
  content: "🥦";
  font-size: 40px;
}

.category-grid a:nth-child(38)::before {
  content: "🥚";
  font-size: 40px;
}

.category-grid a:nth-child(39)::before {
  content: "⌨️";
  font-size: 40px;
}

.category-grid a:nth-child(40)::before {
  content: "🐕";
  font-size: 40px;
}

.category-grid a:nth-child(41)::before {
  content: "⚽";
  font-size: 40px;
}

.category-grid a:nth-child(42)::before {
  content: "🌱";
  font-size: 40px;
}

.category-grid a:nth-child(43)::before {
  content: "📖";
  font-size: 40px;
}

.category-grid a:nth-child(44)::before {
  content: "🏫";
  font-size: 40px;
}

.category-grid a:nth-child(45)::before {
  content: "💸⃤";
  font-size: 40px;
}

.category-grid a:nth-child(46)::before {
  content: "⚙️";
  font-size: 40px;
}

.category-grid a:nth-child(47)::before {
  content: "🌾";
  font-size: 40px;
}

.category-grid a:nth-child(48)::before {
  content: "🪑📺";
  font-size: 30px;
}

.category-grid a:nth-child(49)::before {
  content: "🛠️";
  font-size: 40px;
}

.category-grid a:nth-child(50)::before {
  content: "🚗";
  font-size: 40px;
}

.category-grid a:nth-child(51)::before {
  content: "🌱🚰";
  font-size: 30px;
}

.category-grid a:nth-child(52)::before {
  content: "👗";
  font-size: 40px;
}

.category-grid a:nth-child(53)::before {
  content: "⚡";
  font-size: 40px;
}

.category-grid a:nth-child(54)::before {
  content: "📹";
  font-size: 40px;
}

.category-grid a:nth-child(55)::before {
  content: "🤝";
  font-size: 40px;
}
.category-grid a:nth-child(56)::before {
  content: "🧨";
  font-size: 40px;
}

.category-grid a::before {
  width: 95px;
  height: 95px;

  display: grid;
  place-items: center;

  margin-bottom: 15px;

  border-radius: 20px;

  background: linear-gradient(135deg, #eff6ff, #f5f3ff);

  font-size: 30px;

  box-shadow: 0 12px 25px rgba(37, 99, 235, 0.1);

  transform: translateZ(30px);

  transition: var(--transition);
}

.category-grid a::after {
  content: "";

  position: absolute;

  width: 150px;
  height: 150px;

  right: -70px;
  bottom: -70px;

  border-radius: 50%;

  background: linear-gradient(
    135deg,
    rgba(37, 99, 235, 0.08),
    rgba(124, 58, 237, 0.1)
  );

  transition: var(--transition);
}

.category-grid a:hover {
  transform: translateY(-12px) rotateX(4deg) rotateY(-3deg);

  border-color: rgba(37, 99, 235, 0.18);

  box-shadow: 0 25px 55px rgba(37, 99, 235, 0.15);
}

.category-grid a:hover::before {
  transform: translateZ(50px) rotate(-6deg) scale(1.08);
}

.category-grid a:hover::after {
  transform: scale(1.5);
}

/* =========================
   STORES
========================= */

.stores {
  position: relative;

  background:
    radial-gradient(circle at 0% 50%, rgba(37, 99, 235, 0.06), transparent 30%),
    radial-gradient(
      circle at 100% 20%,
      rgba(236, 72, 153, 0.06),
      transparent 30%
    );
}

.store-grid {
  display: grid;

  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 30px;
}

/* =========================
   STORE CARD
========================= */

.store-card {
  position: relative;

  background: rgba(255, 255, 255, 0.95);

  border: 1px solid rgba(148, 163, 184, 0.16);

  border-radius: 25px;

  overflow: hidden;

  box-shadow: var(--shadow-md);

  transform-style: preserve-3d;

  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s ease,
    border-color 0.45s ease;

  animation: storeReveal 0.8s ease both;
}

/* Different animation delay */

.store-card:nth-child(1) {
  animation-delay: 0.05s;
}

.store-card:nth-child(2) {
  animation-delay: 0.1s;
}

.store-card:nth-child(3) {
  animation-delay: 0.15s;
}

.store-card:nth-child(4) {
  animation-delay: 0.2s;
}

.store-card:nth-child(5) {
  animation-delay: 0.25s;
}

/* Card top glow */

.store-card::before {
  content: "";

  position: absolute;

  width: 180px;
  height: 180px;

  top: -100px;
  right: -70px;

  border-radius: 50%;

  background: radial-gradient(circle, rgba(37, 99, 235, 0.14), transparent 70%);

  pointer-events: none;

  transition: var(--transition);
}

.store-card:hover {
  transform: translateY(-15px) rotateX(2deg) rotateY(-2deg);

  box-shadow: 0 35px 70px rgba(15, 23, 42, 0.16);

  border-color: rgba(37, 99, 235, 0.22);
}

.store-card:hover::before {
  transform: scale(1.6);
}

/* =========================
   STORE IMAGE
========================= */

.store-card img {
  height: 250px;

  object-fit: contain;

  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);

  transform-origin: center;
}

.store-card:hover img {
  transform: scale(1.08);
}

/* Image overlay */

.store-card > img {
  position: relative;
}
.store-rating {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  font-weight: 600;
  padding-top: 10px;
}

/* =========================
   STORE CONTENT
========================= */

.store-content {
  position: relative;

  padding: 25px;

  background: rgba(255, 255, 255, 0.96);
}

.store-content h3 {
  margin-bottom: 10px;

  font-size: 23px;

  line-height: 1.2;

  color: var(--text-dark);

  font-weight: 900;

  letter-spacing: -0.5px;
}

.store-content p {
  margin-top: 5px;

  color: var(--text-muted);

  font-size: 14px;
}

/* Store location */

.store-content p:last-of-type {
  display: flex;

  align-items: center;

  gap: 5px;

  color: #475569;

  font-weight: 650;
}

.store-content p:last-of-type::before {
  content: "📍";

  font-size: 14px;
}

/* =========================
   VIEW STORE BUTTON
========================= */

.store-content > a {
  position: relative;

  display: inline-flex;

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

  width: 100%;

  margin-top: 20px;

  padding: 13px 18px;

  border-radius: 13px;

  color: white;

  background: linear-gradient(135deg, var(--primary), var(--purple));

  font-size: 14px;

  font-weight: 850;

  overflow: hidden;

  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.2);

  transition: var(--transition);
}

.store-content > a::before {
  content: "";

  position: absolute;

  top: 0;
  left: -100%;

  width: 70%;
  height: 100%;

  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.35),
    transparent
  );

  transform: skewX(-20deg);

  transition: 0.6s;
}

.store-content > a:hover {
  transform: translateY(-3px);

  box-shadow: 0 15px 35px rgba(37, 99, 235, 0.3);
}

.store-content > a:hover::before {
  left: 140%;
}

/* =========================
   ABOUT
========================= */

.about {
  position: relative;

  background: linear-gradient(135deg, #eef5ff, #f5f3ff);

  overflow: hidden;
}

.about::before {
  content: "";

  position: absolute;

  width: 350px;
  height: 350px;

  left: -180px;
  top: 50%;

  transform: translateY(-50%);

  border-radius: 50%;

  background: rgba(37, 99, 235, 0.08);

  filter: blur(10px);
}

.about .container {
  position: relative;

  max-width: 900px;

  text-align: center;

  padding: 50px;

  border-radius: 30px;

  background: rgba(255, 255, 255, 0.75);

  border: 1px solid rgba(255, 255, 255, 0.9);

  box-shadow: var(--shadow-md);

  backdrop-filter: blur(15px);
}

.about p {
  color: var(--text-muted);

  font-size: 17px;

  margin-top: 10px;
}

/* =========================
   FOOTER
========================= */

footer {
  position: relative;

  padding: 45px 0;

  background: linear-gradient(135deg, #0f172a, #172554, #312e81);

  color: rgba(255, 255, 255, 0.8);

  text-align: center;

  overflow: hidden;
}

footer::before {
  content: "";

  position: absolute;

  width: 400px;
  height: 400px;

  top: -300px;
  left: 50%;

  transform: translateX(-50%);

  border-radius: 50%;

  background: rgba(59, 130, 246, 0.2);

  filter: blur(30px);
}

footer p {
  position: relative;

  font-size: 14px;
}

/* =========================
   SEARCH RESULT MESSAGE
========================= */

.no-results {
  grid-column: 1 / -1;

  padding: 50px 20px;

  text-align: center;

  border-radius: 22px;

  background: rgba(255, 255, 255, 0.85);

  border: 1px dashed #cbd5e1;

  color: var(--text-muted);
}

.no-results strong {
  display: block;

  margin-bottom: 8px;

  font-size: 20px;

  color: var(--text-dark);
}

/* =========================
   KEYFRAME ANIMATIONS
========================= */

@keyframes headerDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroText {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroBlob {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  100% {
    transform: translate3d(120px, 80px, 0) scale(1.2);
  }
}

@keyframes heroBlob2 {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  100% {
    transform: translate3d(-100px, -80px, 0) scale(1.2);
  }
}

@keyframes cardFloat {
  0%,
  100% {
    transform: rotateY(-12deg) rotateX(7deg) translateY(0);
  }

  50% {
    transform: rotateY(-7deg) rotateX(4deg) translateY(-15px);
  }
}

@keyframes iconFloat {
  0%,
  100% {
    transform: translateZ(55px) translateY(0) rotate(0deg);
  }

  50% {
    transform: translateZ(55px) translateY(-12px) rotate(3deg);
  }
}

@keyframes floatOne {
  0%,
  100% {
    transform: translateY(0) rotate(-8deg);
  }

  50% {
    transform: translateY(-25px) rotate(5deg);
  }
}

@keyframes floatTwo {
  0%,
  100% {
    transform: translateY(0) rotate(8deg);
  }

  50% {
    transform: translateY(20px) rotate(-5deg);
  }
}

@keyframes floatThree {
  0%,
  100% {
    transform: translateY(0) rotate(5deg);
  }

  50% {
    transform: translateY(-18px) rotate(-5deg);
  }
}

@keyframes storeReveal {
  from {
    opacity: 0;

    transform: translateY(40px) scale(0.96);
  }

  to {
    opacity: 1;

    transform: translateY(0) scale(1);
  }
}

/* =========================
   TABLET
========================= */

@media (max-width: 1050px) {
  .hero {
    min-height: auto;

    padding: 80px 0 100px;
  }

  .hero .container {
    grid-template-columns: 1fr;

    text-align: center;
  }

  .hero p {
    margin-inline: auto;
  }

  .search-box {
    margin-inline: auto;
  }

  .hero-visual {
    min-height: 400px;
  }

  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .store-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =========================
   TABLET SMALL
========================= */

@media (max-width: 800px) {
  .header .container {
    min-height: 68px;
  }

  .header nav {
    gap: 2px;
  }

  .header nav a {
    padding: 8px 10px;

    font-size: 13px;
  }

  .stats .container {
    grid-template-columns: 1fr;

    width: min(calc(100% - 40px), 500px);
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =========================
   MOBILE
========================= */

@media (max-width: 600px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .header .container {
    flex-direction: column;

    gap: 8px;

    padding: 12px 0;
  }

  .header nav {
    width: 100%;

    justify-content: center;

    flex-wrap: wrap;
  }

  .header nav a {
    font-size: 12px;

    padding: 7px 9px;
  }

  /* HERO */

  .hero {
    padding: 65px 0 80px;
  }

  .hero h1 {
    font-size: clamp(38px, 12vw, 58px);

    letter-spacing: -2px;
  }

  .hero p {
    font-size: 15px;

    line-height: 1.7;
  }

  .search-box {
    padding: 6px;

    border-radius: 15px;
  }

  .search-box input {
    padding: 13px 12px;

    font-size: 14px;
  }

  .search-box button {
    padding: 12px 16px;

    font-size: 13px;
  }

  /* 3D VISUAL */

  .hero-visual {
    min-height: 330px;
  }

  .hero-visual .store-card-3d {
    width: 280px;

    min-height: 270px;

    padding: 25px;

    border-radius: 27px;
  }

  .store-3d-icon {
    width: 80px;
    height: 80px;

    font-size: 40px;

    border-radius: 22px;
  }

  .store-card-3d h3 {
    font-size: 21px;
  }

  .floating-store {
    width: 58px;
    height: 58px;

    border-radius: 16px;

    font-size: 25px;
  }

  /* SECTIONS */

  section:not(.hero) {
    padding: 75px 0;
  }

  section h2 {
    margin-bottom: 32px;

    font-size: 30px;
  }

  /* CATEGORY */

  .category-grid {
    grid-template-columns: repeat(2, 1fr);

    gap: 13px;
  }

  .category-grid a {
    min-height: 140px;

    padding: 20px 10px;

    border-radius: 20px;

    font-size: 14px;
  }

  .category-grid a::before {
    width: 53px;
    height: 53px;

    font-size: 25px;

    border-radius: 16px;
  }

  /* STORE */

  .store-grid {
    grid-template-columns: 1fr;

    gap: 22px;
  }

  .store-card img {
    height: 250px;
  }

  .store-content {
    padding: 21px;
  }

  .store-content h3 {
    font-size: 21px;
  }

  /* ABOUT */

  .about .container {
    padding: 30px 20px;

    border-radius: 22px;
  }

  .about p {
    font-size: 15px;
  }
}

/* =========================
   VERY SMALL PHONES
========================= */

@media (max-width: 380px) {
  .logo {
    font-size: 16px;
  }

  .logo::before {
    width: 34px;
    height: 34px;

    font-size: 17px;
  }

  .header nav a {
    padding: 6px 7px;

    font-size: 11px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .search-box {
    flex-direction: column;

    background: transparent;

    box-shadow: none;

    gap: 8px;
  }

  .search-box input {
    background: white;

    border-radius: 13px;

    box-shadow: var(--shadow-sm);
  }

  .search-box button {
    width: 100%;
  }

  .category-grid {
    gap: 10px;
  }

  .category-grid a {
    min-height: 125px;
  }
}

/* ============================================================
   WEBSITE DEVELOPER SECTION
============================================================ */

.developer-section {
  position: relative;
  overflow: hidden;

  padding: 100px 0;

  background:
    radial-gradient(
      circle at 15% 50%,
      rgba(255, 214, 10, 0.12),
      transparent 30%
    ),
    linear-gradient(135deg, #0b1020, #111827);
}

/* ============================================================
   DEVELOPER CARD
============================================================ */

.developer-card {
  position: relative;

  display: grid;
  grid-template-columns: 380px 1fr;
  align-items: center;

  gap: 70px;

  max-width: 1050px;
  margin: auto;

  padding: 55px;

  background: rgba(255, 255, 255, 0.06);

  border: 1px solid rgba(255, 255, 255, 0.12);

  border-radius: 30px;

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);

  animation: developerCardIn 1s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ============================================================
   CARD ANIMATION
============================================================ */

@keyframes developerCardIn {
  from {
    opacity: 0;
    transform: translateY(50px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ============================================================
   IMAGE AREA
============================================================ */

.developer-image-wrapper {
  position: relative;

  width: 300px;
  height: 300px;

  margin: auto;

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

/* ============================================================
   GLOW
============================================================ */

.developer-glow {
  position: absolute;

  width: 260px;
  height: 260px;

  border-radius: 50%;

  background: #ffd60a;

  filter: blur(80px);

  opacity: 0.25;

  animation: developerGlow 4s ease-in-out infinite;
}

@keyframes developerGlow {
  0%,
  100% {
    transform: scale(0.9);
    opacity: 0.2;
  }

  50% {
    transform: scale(1.15);
    opacity: 0.35;
  }
}

/* ============================================================
   DEVELOPER IMAGE
============================================================ */

.developer-image {
  position: relative;

  width: 230px;
  height: 230px;

  padding: 7px;

  border-radius: 50%;

  background: linear-gradient(135deg, #ffd60a, #ffffff, #ffd60a);

  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);

  animation: developerFloat 5s ease-in-out infinite;

  z-index: 2;
}

.developer-image img {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;

  border-radius: 50%;

  background: #ffffff;
}

@keyframes developerFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

/* ============================================================
   FLOATING ICONS
============================================================ */

.developer-float {
  position: absolute;

  z-index: 5;

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

  width: 48px;
  height: 48px;

  border-radius: 14px;

  background: rgba(255, 255, 255, 0.1);

  border: 1px solid rgba(255, 255, 255, 0.2);

  backdrop-filter: blur(10px);

  color: #ffffff;

  font-size: 20px;

  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.float-code {
  top: 15px;
  left: 5px;

  animation: floatCode 3s ease-in-out infinite;
}

.float-web {
  right: 0;
  top: 75px;

  animation: floatWeb 3.5s ease-in-out infinite;
}

.float-star {
  left: 15px;
  bottom: 30px;

  color: #ffd60a;

  animation: floatStar 2.8s ease-in-out infinite;
}

@keyframes floatCode {
  0%,
  100% {
    transform: translateY(0) rotate(-8deg);
  }

  50% {
    transform: translateY(-12px) rotate(5deg);
  }
}

@keyframes floatWeb {
  0%,
  100% {
    transform: translateY(0) rotate(8deg);
  }

  50% {
    transform: translateY(10px) rotate(-5deg);
  }
}

@keyframes floatStar {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-10px) rotate(180deg);
  }
}

/* ============================================================
   CONTENT
============================================================ */

.developer-content {
  color: #ffffff;
}

.developer-label {
  display: inline-block;

  margin-bottom: 12px;

  padding: 7px 14px;

  border-radius: 50px;

  background: rgba(255, 214, 10, 0.12);

  border: 1px solid rgba(255, 214, 10, 0.3);

  color: #ffd60a;

  font-size: 12px;

  font-weight: 800;

  letter-spacing: 1.8px;
}

.developer-content h2 {
  margin: 0;

  font-size: clamp(20px, 3vw, 28px);
  line-height: 1.2;

  font-weight: 600;
  letter-spacing: -0.5px;

  background: linear-gradient(90deg, #ffd60a, #ff9bf2);

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.developer-content h3 {
  margin: 12px 0 20px;

  font-size: 18px;

  color: #d1d5db;

  font-weight: 600;
}

.developer-content p {
  max-width: 620px;

  margin-bottom: 25px;

  color: #aeb6c5;

  font-size: 16px;

  line-height: 1.8;
}

/* ============================================================
   SERVICES
============================================================ */

.developer-services {
  display: flex;
  flex-wrap: wrap;

  gap: 10px;

  margin-bottom: 30px;
}

.developer-services span {
  padding: 9px 13px;

  border-radius: 10px;

  background: rgba(255, 255, 255, 0.07);

  border: 1px solid rgba(255, 255, 255, 0.1);

  color: #e5e7eb;

  font-size: 13px;

  transition:
    transform 0.3s ease,
    background 0.3s ease;
}

.developer-services span:hover {
  transform: translateY(-4px);

  background: rgba(255, 214, 10, 0.12);
}

/* ============================================================
   BUTTON
============================================================ */

.developer-button {
  display: inline-flex;

  align-items: center;
  gap: 12px;

  padding: 14px 22px;

  border-radius: 12px;

  background: #ffd60a;

  color: #111827;

  text-decoration: none;

  font-size: 14px;

  font-weight: 800;

  box-shadow: 0 10px 30px rgba(255, 214, 10, 0.2);

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.developer-button span {
  font-size: 20px;

  transition: transform 0.3s ease;
}

.developer-button:hover {
  transform: translateY(-4px);

  box-shadow: 0 15px 35px rgba(255, 214, 10, 0.35);
}

.developer-button:hover span {
  transform: translateX(5px);
}

/* ============================================================
   RESPONSIVE
============================================================ */

@media (max-width: 850px) {
  .developer-section {
    padding: 70px 0;
  }

  .developer-card {
    grid-template-columns: 1fr;

    gap: 40px;

    padding: 40px 25px;

    text-align: center;
  }

  .developer-image-wrapper {
    width: 270px;
    height: 270px;
  }

  .developer-services {
    justify-content: center;
  }

  .developer-button {
    margin: auto;
  }
}

@media (max-width: 500px) {
  .developer-section {
    padding: 55px 15px;
  }

  .developer-card {
    padding: 35px 20px;

    border-radius: 24px;
  }

  .developer-image-wrapper {
    width: 230px;
    height: 230px;
  }

  .developer-image {
    width: 180px;
    height: 180px;
  }

  .developer-glow {
    width: 200px;
    height: 200px;
  }

  .developer-float {
    width: 40px;
    height: 40px;

    font-size: 16px;
  }

  .developer-content h2 {
    font-size: 38px;
  }

  .developer-content h3 {
    font-size: 15px;
  }

  .developer-content p {
    font-size: 14px;
  }
}

/* =========================
   ACCESSIBILITY
========================= */

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.35);

  outline-offset: 3px;
}

/* =========================
   REDUCED MOTION
========================= */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;

    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;

    transition-duration: 0.01ms !important;
  }
}
