/* ============================================
   AWAN SPORTS INDUSTRY — Black & White Theme
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ── CSS Variables ── */
:root {
  --bg:        #ffffff;
  --bg2:       #f5f5f5;
  --bg3:       #ececec;
  --surface:   #ffffff;
  --border:    #e0e0e0;
  --text:      #111111;
  --text2:     #555555;
  --accent:    #111111;
  --accent-inv:#ffffff;
  --nav-bg:    #111111;
  --nav-text:  #ffffff;
  --footer-bg: #0a0a0a;
  --shadow:    rgba(0,0,0,0.08);
  --shadow-lg: rgba(0,0,0,0.15);
  --transition: 0.3s ease;
}

[data-theme="dark"] {
  --bg:        #0e0e0e;
  --bg2:       #181818;
  --bg3:       #222222;
  --surface:   #1a1a1a;
  --border:    #2e2e2e;
  --text:      #f0f0f0;
  --text2:     #aaaaaa;
  --accent:    #f0f0f0;
  --accent-inv:#111111;
  --nav-bg:    #050505;
  --nav-text:  #f0f0f0;
  --footer-bg: #050505;
  --shadow:    rgba(0,0,0,0.4);
  --shadow-lg: rgba(0,0,0,0.6);
}

/* ── Reset ── */
*, *::before, *::after {
  margin: 0; padding: 0;
  box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
  padding-bottom: 70px; /* for mobile bottom nav */
}

/* ── Typography ── */
h1, h2, h3 { font-family: 'Bebas Neue', sans-serif; letter-spacing: 0.04em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); color: var(--text); margin: 2rem 0 1.2rem; border-bottom: 2px solid var(--border); padding-bottom: 0.5rem; }
h3 { font-size: clamp(1.2rem, 3vw, 1.8rem); color: var(--text); margin: 1.5rem 0 1rem; }

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ── Container ── */
.container { width: 92%; max-width: 1200px; margin: 0 auto; padding: 2rem 0; }

/* ════════════════════════════
   TOP BAR / HEADER
════════════════════════════ */
.top-bar {
  background: var(--nav-bg);
  color: var(--nav-text);
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 900;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-container img {
  height: 42px;
  width: 42px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.3);
  object-fit: cover;
}

.logo-container h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  color: var(--nav-text);
}

/* Desktop Nav inside top-bar */
nav#desktopNav {
  display: flex;
  align-items: center;
  gap: 4px;
}

nav#desktopNav a {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 8px 14px;
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
}

nav#desktopNav a:hover,
nav#desktopNav a.active {
  background: rgba(255,255,255,0.12);
  color: #ffffff;
}

/* Right controls */
.top-bar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Dark/Light Toggle */
.theme-toggle {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--nav-text);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: background var(--transition);
}
.theme-toggle:hover { background: rgba(255,255,255,0.2); }

/* Hamburger (mobile only) */
.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--nav-text);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 6px;
}

/* ════════════════════════════
   MOBILE BOTTOM NAVBAR
════════════════════════════ */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 62px;
  background: var(--nav-bg);
  border-top: 1px solid var(--border);
  z-index: 800;
  justify-content: space-around;
  align-items: center;
  padding: 0 8px;
}

.bottom-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: rgba(255,255,255,0.5);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 6px 0;
  border-radius: 8px;
  transition: color var(--transition), background var(--transition);
}

.bottom-nav a i { font-size: 1.15rem; }

.bottom-nav a:hover,
.bottom-nav a.active {
  color: #ffffff;
  background: rgba(255,255,255,0.08);
}

/* ════════════════════════════
   MARQUEE
════════════════════════════ */
.marquee-container {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  padding: 10px 0;
  white-space: nowrap;
}

.marquee-text {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text2);
  padding-left: 100%;
  animation: marquee 20s linear infinite;
}

.marquee-text span { color: var(--text); font-weight: 600; }

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* ════════════════════════════
   HERO CAROUSEL
════════════════════════════ */
.carousel-container {
  position: relative;
  overflow: hidden;
  background: #000;
}

.carousel-slide {
  display: flex;
  height: 520px;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-slide img {
  min-width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.88;
}

.carousel-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 40px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: #fff;
  pointer-events: none;
}

.carousel-overlay h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  border: none;
  margin: 0 0 4px;
  color: #fff;
  letter-spacing: 0.06em;
}

.carousel-overlay p {
  font-size: 1rem;
  opacity: 0.8;
}

#prevBtn, #nextBtn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(6px);
  color: white;
  border: 1px solid rgba(255,255,255,0.25);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 50%;
  transition: background var(--transition);
}

#prevBtn:hover, #nextBtn:hover { background: rgba(255,255,255,0.25); }
#prevBtn { left: 16px; }
#nextBtn { right: 16px; }

.carousel-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all 0.3s;
}

.carousel-dot.active {
  background: #fff;
  width: 22px;
  border-radius: 3px;
}

/* ════════════════════════════
   PRODUCT GRID
════════════════════════════ */
.category {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 3rem;
}

.item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.item:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px var(--shadow-lg);
  border-color: var(--text);
}

.item img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.item:hover img { transform: scale(1.04); }

.item-label {
  padding: 12px 14px;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--text);
}

/* Legacy .item p selector */
.item p {
  padding: 12px 14px;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--text);
  margin: 0;
}

/* ════════════════════════════
   SECTION DIVIDER
════════════════════════════ */
.section-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 2.5rem 0 1.5rem;
}

.section-divider h3 {
  margin: 0;
  white-space: nowrap;
  font-size: 1.2rem;
  text-transform: uppercase;
}

.section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ════════════════════════════
   PRODUCT MODAL
════════════════════════════ */
.product-detail {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 1100;
  overflow-y: auto;
  backdrop-filter: blur(4px);
}

.product-content {
  background: var(--surface);
  max-width: 860px;
  margin: 40px auto;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.close-detail {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--text);
  color: var(--accent-inv);
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 12;
  transition: opacity var(--transition);
}

.close-detail:hover { opacity: 0.7; }

.product-carousel {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
}

.product-slide {
  display: flex;
  height: 100%;
  transition: transform 0.45s ease;
}

.product-slide img {
  min-width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.45);
  color: white;
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.carousel-btn:hover { background: rgba(0,0,0,0.75); }
.prev-btn { left: 12px; }
.next-btn { right: 12px; }

/* Slide counter dots */
.modal-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
}

.modal-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  transition: background 0.3s;
}

.modal-dot.active { background: #fff; }

.product-info {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.product-info h2 {
  border: none;
  margin: 0;
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.1;
}

.product-info .description {
  color: var(--text2);
  font-size: 0.92rem;
  line-height: 1.7;
}

.product-info .badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  width: fit-content;
}

.product-info .cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--text);
  color: var(--accent-inv);
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  transition: opacity var(--transition);
  width: fit-content;
  margin-top: auto;
}

.product-info .cta-btn:hover { opacity: 0.75; }

/* ════════════════════════════
   ABOUT PAGE
════════════════════════════ */
.about-hero {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 60px 0 40px;
  text-align: center;
}

.about-hero h2 {
  font-size: clamp(2.2rem, 6vw, 4rem);
  border: none;
  margin-bottom: 12px;
}

.about-hero p { color: var(--text2); max-width: 560px; margin: 0 auto; }

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin: 3rem 0;
}

.about-text p {
  color: var(--text2);
  margin-bottom: 1rem;
  font-size: 0.95rem;
  line-height: 1.75;
}

.about-image img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
  object-fit: cover;
}

.mission-vision {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 2rem 0;
}

.mission, .vision {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px;
}

.mission h3, .vision h3 {
  margin-bottom: 12px;
  font-size: 1.4rem;
}

.mission p, .vision p { color: var(--text2); font-size: 0.92rem; line-height: 1.7; }

/* Stats row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 2.5rem 0;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px 20px;
  text-align: center;
}

.stat-card .number {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3rem;
  line-height: 1;
  color: var(--text);
}

.stat-card .label { color: var(--text2); font-size: 0.85rem; margin-top: 6px; }

/* ════════════════════════════
   CONTACT PAGE
════════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 32px;
  margin: 2rem 0;
}

.contact-info {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px;
}

.contact-info h3 { margin-bottom: 20px; }

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.contact-item:last-of-type { border-bottom: none; }

.contact-item i {
  width: 38px;
  height: 38px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-item-text strong { display: block; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text2); margin-bottom: 3px; }
.contact-item-text span { font-size: 0.92rem; }

.social-media {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.social-media a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.95rem;
  color: white;
  transition: transform var(--transition), opacity var(--transition);
}

.social-media a:hover { transform: translateY(-3px); opacity: 0.85; }
.facebook  { background: #3b5998; }
.instagram { background: linear-gradient(45deg,#405de6,#833ab4,#c13584,#fd1d1d); }
.pinterest { background: #e60023; }
.whatsapp  { background: #25D366; }

/* Contact Form */
.contact-form-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px;
}

.contact-form-wrap h3 { margin-bottom: 20px; }

form label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text2);
  margin-bottom: 6px;
}

form input, form textarea {
  width: 100%;
  padding: 11px 14px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: 'DM Sans', sans-serif;
  margin-bottom: 16px;
  transition: border-color var(--transition), background var(--transition);
}

form input:focus, form textarea:focus {
  outline: none;
  border-color: var(--text);
  background: var(--surface);
}

form textarea { resize: vertical; min-height: 120px; }

form button[type="submit"] {
  width: 100%;
  padding: 13px;
  background: var(--text);
  color: var(--accent-inv);
  border: none;
  border-radius: 7px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: opacity var(--transition);
}

form button[type="submit"]:hover { opacity: 0.75; }

.map-container {
  margin: 2.5rem 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}

/* ════════════════════════════
   FOOTER
════════════════════════════ */
footer {
  background: var(--footer-bg);
  color: rgba(255,255,255,0.55);
  text-align: center;
  padding: 24px 20px;
  margin-top: 3rem;
  font-size: 0.85rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

footer a { color: rgba(255,255,255,0.75); }
footer a:hover { color: #fff; }

/* ════════════════════════════
   VIEW ALL BUTTON
════════════════════════════ */
.view-all-wrap { text-align: center; margin: 2rem 0 3rem; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--text);
  color: var(--accent-inv);
  padding: 13px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  transition: opacity var(--transition);
}

.btn-primary:hover { opacity: 0.75; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text);
  border: 2px solid var(--text);
  padding: 11px 26px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  transition: all var(--transition);
}

.btn-outline:hover { background: var(--text); color: var(--accent-inv); }

/* ════════════════════════════
   PRODUCTS PAGE FILTER
════════════════════════════ */
.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 1.5rem 0;
}

.filter-tab {
  padding: 7px 18px;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.83rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  background: var(--surface);
  color: var(--text2);
  transition: all var(--transition);
}

.filter-tab:hover, .filter-tab.active {
  background: var(--text);
  color: var(--accent-inv);
  border-color: var(--text);
}

/* ════════════════════════════
   WELCOME SECTION
════════════════════════════ */
.welcome-section {
  padding: 40px 0 20px;
}

.welcome-section h2 { border: none; font-size: clamp(1.8rem, 4vw, 3rem); }
.welcome-section p { color: var(--text2); max-width: 680px; font-size: 1rem; margin-bottom: 1.5rem; }

/* ════════════════════════════
   RESPONSIVE
════════════════════════════ */
@media (max-width: 900px) {
  .about-content, .mission-vision, .contact-grid {
    grid-template-columns: 1fr;
  }
  .stats-row { grid-template-columns: repeat(3, 1fr); }
  .product-content { grid-template-columns: 1fr; }
  .product-carousel { aspect-ratio: 16/9; }
}

@media (max-width: 768px) {
  body { padding-bottom: 70px; }

  /* Show bottom nav, hide desktop nav */
  .bottom-nav { display: flex; }
  nav#desktopNav { display: none; }
  .hamburger { display: none; }

  .logo-container h1 { font-size: 1.1rem; }

  .carousel-slide { height: 240px; }
  .carousel-overlay { padding: 20px; }

  .category { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
  .item img { height: 160px; }

  .stats-row { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .stat-card { padding: 20px 12px; }
  .stat-card .number { font-size: 2.2rem; }

  .product-content { margin: 16px; border-radius: 12px; }
  .product-info { padding: 20px 18px; }
}

@media (max-width: 480px) {
  .top-bar { padding: 0 14px; height: 56px; }
  .logo-container img { height: 34px; width: 34px; }
  .carousel-slide { height: auto; }
  .stats-row { grid-template-columns: repeat(3, 1fr); gap: 8px; }
}

/* ── Utility ── */
.text-muted { color: var(--text2); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }


.product-carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1 / 1;
  min-height: 320px;
}

.product-slide {
  display: flex;
  height: 100%;
  transition: transform 0.45s ease;
}

.product-slide img {
  min-width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-content {
  background: var(--surface);
  max-width: 900px;
  margin: 20px auto;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
}

@media (max-width: 900px) {
  .product-content {
    grid-template-columns: 1fr;
    margin: 16px;
    border-radius: 12px;
  }

  .product-carousel {
    min-height: 360px;
  }
}

@media (max-width: 480px) {
  .product-carousel {
    min-height: 300px;
  }

  .product-content {
    margin: 10px;
    border-radius: 10px;
  }
}