@import url('https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900&display=swap');


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

body {
  background: #0f1014;
  color: #ffffff;

  font-family: "Rubik", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
}

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

/* <!-- ================= HEADER ================= --> */
.navbar {
  width: 100%;
  background: #000000;
  padding: 12px 4%;
  position: sticky;
  top: 0;
  z-index: 1000;

}

/* container keeps everything on one row; allow shrink for search */
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  /* do NOT allow wrapping so links don't drop below */
  flex-wrap: nowrap;
}

/* logo fixed-size */
.logo {
  font-size: 25px;
  font-weight: 700;
  color: #fff;
  flex: 0 0 auto;
  /* never shrink to zero */
  white-space: nowrap;
}

.logo span {
  color: #e50914;
}

/* NAV LINKS: do not wrap, enable horizontal scroll when needed */
.nav-links {
  list-style: none;
  display: flex;
  gap: 16px;
  align-items: center;
  flex: 0 0 auto;
  /* keep natural width; don't stretch */
  white-space: nowrap;
  /* keep items in one line */
  overflow-x: auto;
  /* allow horizontal scroll if not enough space */
  -webkit-overflow-scrolling: touch;
  padding-bottom: 6px;
  /* small padding so scroll doesn't cut text */
}

/* hide native scrollbar but keep scrollable */
.nav-links::-webkit-scrollbar {
  height: 6px;
  display: none;
}

.nav-links {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

/* individual links */
.nav-links a {
  display: inline-block;
  color: #fff;
  font-size: 15px;
  padding: 6px 4px;
  text-decoration: none;

  /* font */
  font-family: "Rubik", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
}

.nav-links a:hover {
  color: #0c70ce;
  transform: scale(1.1);

}

/* make sure the hamburger/icon (if present) is shown at end */
.nav-links li img {
  display: block;
  height: 20px;
  width: auto;
}

/* Sidebar Setup */
.sidebar {
  position: fixed;
  top: 0;
  right: -280px;
  /* Shuru mein screen se bahar */
  width: 260px;
  height: 100vh;
  background: #0a0a0a;
  z-index: 10000;
  transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 20px rgba(0, 0, 0, 0.8);
}

.sidebar.active {
  right: 0;
  /* Click par andar aayega */
}

.sidebar-header {
  padding: 25px 20px;
  background: #e50914;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  font-size: 1.2rem;
  font-weight: bold;
}

#closeMenu {
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
}

.sidebar-content {
  display: flex;
  flex-direction: column;
  /* Sab ek ke niche ek */
  padding: 20px 0;
}

.sidebar-content a {
  color: #eee;
  padding: 15px 25px;
  text-decoration: none;
  font-size: 1.1rem;
  border-bottom: 1px solid #1a1a1a;
  transition: 0.3s;
}

.sidebar-content a:hover {
  background: #1a1a1a;
  color: #e50914;
  padding-left: 35px;
}

/* Background Overlay */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  display: none;
  backdrop-filter: blur(3px);
}

.menu-overlay.active {
  display: block;
}

/* ================= RESPONSIVE ADJUSTMENTS ================= */
/* tablet-ish: shrink search, smaller gaps */
@media (max-width:900px) {

  .nav-links {
    gap: 12px;
  }

  .nav-links a {
    font-size: 14px;
    padding: 6px 6px;
  }

  .logo {
    font-size: 20px;
  }
}

/* mobile narrow: make search tiny but present, ensure links remain visible (scrollable) */
@media (max-width:480px) {

  .navbar {
    height: 61px;
  }

  .nav-links {
    gap: 10px;
  }

  .nav-links a {
    font-size: 15px;
    padding: 4px 1px;
    margin: 1px 0px;
  }

  .logo {
    font-size: 23px;
    margin: 1px -4px;
  }

  ul .op {
    display: none;
  }
}

/* extra safety: force show nav-links if something else hides them */
@media (max-width:900px) {
  .nav-links {
    display: flex !important;
  }
}

/* ================== Categoryies Section ================== */

.category-section {
  width: 100%;
  padding: 23px 85px 11px 85px;
}

.category-section h1 {
  text-align: center;
  color: #fff;
  margin-bottom: 35px;
  font-size: 35px;
  position: relative;
  top: -25px;
}

/* cards container */

.ccards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px 15px;
}

/* card */

.ccards div {
  width: 276px;
  overflow: hidden;
  border-radius: 10px;
  transition: 0.3s;
  border: 2px solid transparent;
}

/* image */

.ccards img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}




/* ================== Responsive ================== */

/* ====== larg tv and desktoop ======= */
@media (min-width:1020px) {

  .ccards div:hover {
    transform: scale(1.06);
    cursor: pointer;
    border: 2px solid #ffffff;
  }
}

/* ======== solmol desktop===== */
@media (max-width:1440px) {

  .category-section {
    padding: 23px 40px 11px 40px;
  }

  .ccards div {
    width: calc((100% - 75px) / 6);
  }

  .ccards img {
    height: 300px;
  }


}

/* ======= laptop ===== */
@media (max-width:1280px) {

  .category-section {
    padding: 23px 40px 11px 40px;
  }

  .ccards div {
    width: calc((100% - 75px) / 6);
  }

  .ccards img {
    height: 250px;
  }

  .category-section h1 {
    font-size: 32px;
    margin-bottom: 45px;
    position: relative;
    top: -5px;
  }

}


/* ===== Tablet ===== */

@media (max-width:1024px) {

  .category-section {
    padding: 0px 5px;
  }

  .category-section h1 {
    font-size: 32px;
    margin-bottom: 45px;
    position: relative;
    top: 10px;
  }

  .ccards div {
    width: calc((100% - 45px) / 4);
  }

}


/* ===== Mobile ===== */

@media (max-width:480px) {

  .category-section {
    padding: -0px 8px;
  }

  .category-section h1 {
    font-size: 26px;
    margin-bottom: 35px;
    position: relative;
    top: 12px;
  }

  .ccards {
    gap: 15px 10px;
  }

  .ccards div {
    width: calc((100% - 20px) / 3);
  }

  .ccards img {
    height: 175px;
  }

}



/* ================= PERFECT ALIGNED FOOTER ================= */

footer {
  background: linear-gradient(to bottom, #0f1014, #2f0b0b);
  color: #fff;
  padding: 70px 6% 0;
  position: relative;
  overflow: hidden;
}


/* Copyright */
.copyright {
  text-align: center;
  padding: 20px 0;
  font-size: 13px;
  color: #aaa;
}

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

/* 📱 Small Mobile (320px – 480px) */
@media (max-width:480px) {

  footer {
    padding: 20px 8%;
  }

}