/* ============================================================
   BULLZ EYE BILLIARDS — Shared Styles
   Covers: CSS variables, reset, typography, navbar, footer,
   WhatsApp button, section headings, buttons, animations
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;900&family=Inter:wght@300;400;500;600;700&family=Cinzel:wght@600;700;800;900&display=swap');

/* --- CSS Variables --- */
:root {
  --bg: #ffffff;
  --surface: #f5f5f5;
  --surface2: #eaeaea;
  --border: #dddddd;
  --gold: #d4a843;
  --gold-light: #e8c56a;
  --gold-dark: #b8891e;
  --red: #c0392b;
  --neon: #00c853;
  --text: #1a1a1a;
  --muted: #444444;
  --white: #ffffff;
  --font-sans: 'Inter', sans-serif;
  --font-serif: 'Playfair Display', serif;
  --nav-h: 140px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

/* --- Typography --- */
h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-serif);
  line-height: 1.15;
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: #000000;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border);
}

/* Make navbar transparent at the top of the homepage */
body.home-page .navbar:not(.scrolled) {
  background: transparent !important;
  box-shadow: none !important;
}

/* Ensure navbar links/elements remain white/readable on the dark hero background at the top of the homepage, even in light mode */
body.home-page .navbar:not(.scrolled) .nav-links > li > a {
  color: #ffffff !important;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.8), 0 0 16px rgba(255, 255, 255, 0.5) !important;
}

body.home-page .navbar:not(.scrolled) .brand-text .sub-title {
  color: #ffffff !important;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.8), 0 0 16px rgba(255, 255, 255, 0.5) !important;
}

body.home-page .navbar:not(.scrolled) .nav-toggle span {
  background: #ffffff !important;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 100%;
  /* Stretch header content to screen borders */
  padding: 0 45px;
  /* Spacious margin from absolute viewport edges */
}

/* --- Global Brand Logo & Header Layout --- */
.brand-container {
  display: flex;
  flex-direction: column;
  /* Vertical layout: logo on top, text below */
  align-items: center;
  /* Centered layout */
  text-decoration: none;
  gap: 4px;
  /* Tiny gap between logo and text */
  margin-left: 0;
  /* Shift brand container to the absolute left corner of container */
  transition: transform 0.3s ease;
}

.brand-logo {
  width: 102px;
  /* Premium larger size as requested */
  height: 102px;
  border-radius: 50%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.brand-container:hover .brand-logo {
  transform: scale(1.05);
}

.brand-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Centered text stack */
  text-align: center;
}

.brand-text .main-title {
  color: var(--gold);
  font-size: 1.15rem;
  /* Premium visible size */
  font-weight: 800;
  text-transform: uppercase;
  font-family: 'Cinzel', 'Playfair Display', serif;
  letter-spacing: 1.2px;
  line-height: 1.1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.brand-text .sub-title {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: #ffffff;
  text-transform: uppercase;
  line-height: 1.1;
  margin-top: 2px;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.8), 0 0 16px rgba(255, 255, 255, 0.5);
}

/* --- Theme Toggle Visibility Rules --- */
.theme-toggle-btn {
  display: none !important;
  /* Hide globally by default */
}

/* Only show theme toggle button at the top of the homepage */
body.home-page .navbar:not(.scrolled) .theme-toggle-btn {
  display: flex !important;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  transform: translateY(-10px);
}

.nav-links a {
  font-size: 1.00rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.8), 0 0 16px rgba(255, 255, 255, 0.5);
  transition: color 0.2s, text-shadow 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.25s ease;
  transform-origin: left;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
  text-shadow: 0 0 8px rgba(212, 168, 67, 0.8), 0 0 16px rgba(212, 168, 67, 0.5);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

/* --- Dropdown Menus --- */
.nav-links .dropdown {
  position: relative;
}
.nav-links .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #ffffff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  z-index: 1001;
  border-radius: 4px;
  padding: 10px 0;
}
.nav-links .dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-links .dropdown-menu li {
  display: block;
}
.nav-links .dropdown-menu a {
  display: block;
  padding: 10px 20px;
  color: #1a1a1a;
  text-shadow: none;
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: capitalize;
  letter-spacing: 0.05em;
}
.nav-links .dropdown-menu a::after {
  display: none;
}
.nav-links .dropdown-menu a:hover {
  background-color: #f5f5f5;
  color: var(--gold);
  text-shadow: none;
}

.btn-quote {
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  background: var(--gold);
  color: #000;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 2px solid var(--gold);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.btn-quote:hover {
  background: transparent;
  color: var(--gold);
  box-shadow: 0 0 16px rgba(212, 168, 67, 0.35);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: rgba(10, 10, 10, 0.97);
  backdrop-filter: blur(20px);
  padding: 2rem 1.5rem 2.5rem;
  flex-direction: column;
  gap: 1.5rem;
  border-top: 1px solid var(--border);
  z-index: 999;
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a {
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.8), 0 0 16px rgba(255, 255, 255, 0.5);
  transition: color 0.2s, text-shadow 0.2s;
}

.nav-mobile a:hover,
.nav-mobile a.active {
  color: var(--gold);
  text-shadow: 0 0 8px rgba(212, 168, 67, 0.8), 0 0 16px rgba(212, 168, 67, 0.5);
}

/* Mobile Dropdown */
.mobile-dropdown-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.mobile-dropdown {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 4px;
  margin-left: 1rem;
  padding: 10px 0;
  gap: 0.5rem;
}
.mobile-dropdown a {
  color: #1a1a1a;
  text-shadow: none;
  font-size: 0.9rem;
  padding: 5px 15px;
  text-transform: capitalize;
}
.mobile-dropdown a:hover {
  background-color: #f5f5f5;
  color: var(--gold);
  text-shadow: none;
}

.nav-mobile .btn-quote {
  align-self: flex-start;
  margin-top: 0.5rem;
}

/* ============================================================
   FLOATING ACTION BUTTONS (Right Side — Scroll Up + WhatsApp)
   ============================================================ */
.floating-actions {
  position: fixed;
  bottom: 28px;
  right: 25px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  /* Scroll-up वर, WhatsApp खाली */
  align-items: center;
  gap: 12px;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.whatsapp-btn {
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
  animation: waPulse 2.5s infinite;
  text-decoration: none;
  will-change: transform;
}

.whatsapp-btn:hover {
  transform: scale(1.1) translateY(-4px);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.55);
  animation: none;
}

.whatsapp-btn svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

@keyframes waPulse {

  0%,
  100% {
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  }

  50% {
    box-shadow: 0 4px 28px rgba(37, 211, 102, 0.7);
  }
}

.scroll-up-btn {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #1f232d, #0d0f13);
  color: #d4af37;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5),
    inset 0 1.5px 0 rgba(255, 255, 255, 0.15),
    inset 0 -2px 6px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(212, 175, 55, 0.25);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    box-shadow 0.3s ease,
    background 0.3s ease,
    color 0.3s ease;
  text-decoration: none;
  will-change: transform;
}

.scroll-up-btn:hover {
  background: linear-gradient(135deg, #ffe066, #d4af37, #b38f1b);
  color: #0d0f13;
  border-color: rgba(255, 255, 255, 0.4);
  transform: scale(1.1) translateY(-4px);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.4),
    inset 0 1.5px 0 rgba(255, 255, 255, 0.3),
    inset 0 -2px 6px rgba(0, 0, 0, 0.2);
}

.scroll-up-btn svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  transition: transform 0.3s ease;
}

.scroll-up-btn:hover svg {
  transform: translateY(-2px);
}

/* ============================================================
   FLOATING CALL BUTTON (Left Side)
   ============================================================ */
.floating-left-actions {
  position: fixed;
  bottom: 30px;
  left: 25px;
  z-index: 99999;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.call-btn { 
  background: #d4af37;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.4);
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  animation: goldenGlow 2s infinite ease-in-out;
  will-change: transform;
}

.call-btn:hover { 
  transform: translateY(-4px) scale(1.08); 
}

.call-btn svg { 
  fill: #000000; 
  width: 26px; 
  height: 26px; 
}

@keyframes goldenGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7), 0 4px 14px rgba(0,0,0,0.4);
  }
  50% {
    box-shadow: 0 0 0 15px rgba(212, 175, 55, 0), 0 4px 20px rgba(212, 175, 55, 0.4);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0), 0 4px 14px rgba(0,0,0,0.4);
  }
}

/* ============================================================
   SECTION HEADINGS
   ============================================================ */
.section-heading {
  text-align: center;
  margin-bottom: 4rem;
}

.section-heading.left {
  text-align: left;
}

.section-heading .subtitle {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.section-heading .subtitle::before,
.section-heading .subtitle::after {
  content: '';
  display: inline-block;
  width: 40px;
  height: 1px;
  background: var(--gold);
  opacity: 0.5;
}

.section-heading.left .subtitle::before {
  display: none;
}

.section-heading h2 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  color: #060c5e;
  margin-bottom: 1rem;
}

.section-heading p {
  max-width: 600px;
  margin: 0 auto;
  color: black;
  font-size: 1rem;
  line-height: 1.7;
}

.section-heading.left p {
  margin: 0;
}

/* ============================================================
   COMMON BUTTONS
   ============================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 36px;
  background: var(--gold);
  color: #000;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 2px solid var(--gold);
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-primary:hover {
  background: transparent;
  color: var(--gold);
  box-shadow: 0 0 20px rgba(212, 168, 67, 0.35);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 36px;
  background: transparent;
  color: #cd6503;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 2px solid rgba(212, 168, 67, 0.4);
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(212, 168, 67, 0.07);
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: #050505;
  border-top: 1px solid var(--border);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}

.footer-brand .logo-main {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold);
}

.footer-brand .logo-sub {
  font-size: 0.6rem;
  letter-spacing: 0.35em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-brand p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.9rem;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.footer-social a:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(212, 168, 67, 0.08);
}

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col ul li a {
  font-size: 0.875rem;
  color: var(--muted);
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: var(--gold);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.footer-contact-item .icon {
  width: 16px;
  color: var(--gold);
  margin-top: 3px;
  flex-shrink: 0;
  font-size: 0.85rem;
}

.footer-contact-item p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.5;
}

.footer-bottom {
  padding: 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--muted);
}

.footer-bottom .made-in {
  color: var(--gold);
}

/* ============================================================
   REVEAL ANIMATIONS (triggered by JS IntersectionObserver)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

.reveal-delay-5 {
  transition-delay: 0.5s;
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-h: 85px;
    /* Slightly shorter navbar on mobile */
  }

  .navbar .container {
    padding: 0 20px;
    /* Tighter padding on mobile screens */
  }

  .brand-container {
    margin-left: 0;
    gap: 2px;
  }

  .brand-logo {
    width: 66px;
    /* Scale logo down for mobile comfort */
    height: 66px;
  }

  .brand-text .main-title {
    font-size: 0.95rem;
    /* Slightly smaller font for mobile title */
  }

  .brand-text .sub-title {
    font-size: 0.45rem;
  }

  .nav-links,
  .btn-quote {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ============================================================
   ACCESSORIES SELECTOR STYLES (Shared across Homepage & Accessories page)
   ============================================================ */
.acc-circles-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem 1.75rem;
}

.acc-circle-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  cursor: pointer;
  transition: transform 0.25s;
  text-decoration: none;
}

.acc-circle-item:hover {
  transform: translateY(-6px);
}

.acc-circle-item:hover .acc-circle {
  border-color: var(--gold);
  box-shadow: 0 0 22px rgba(212, 168, 67, 0.35);
}

.acc-circle-item:hover .acc-circle-label {
  color: var(--gold);
}

.acc-circle-item.active .acc-circle {
  border-color: var(--gold);
  box-shadow: 0 0 28px rgba(212, 168, 67, 0.5);
}

.acc-circle-item.active .acc-circle-label {
  color: var(--gold);
  font-weight: 600;
}

.acc-circle {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.acc-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
  background: #111;
}

.acc-circle-item:hover .acc-circle img {
  transform: scale(1.1);
}

.acc-circle-label {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  max-width: 110px;
  transition: color 0.25s;
  line-height: 1.3;
}

@media(max-width: 600px) {
  .acc-circle {
    width: 80px;
    height: 80px;
  }
  .acc-circle-label {
    font-size: 0.68rem;
    max-width: 80px;
  }
  .acc-circles-wrap {
    gap: 1.5rem 1rem;
  }
}