:root {
  --color-bg: #0d0d0f;
  --color-charcoal: #101018;
  --color-gold: #c49b3f;
  --color-purple: #6a4bd9;
  --color-soft: #e8e3d4;
  --color-text-main: #f5f3ea;
  --color-text-muted: #b4b0a3;

  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow-soft: 0 18px 35px rgba(0, 0, 0, 0.6);

  --header-height: 72px;
}

/* Global Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: radial-gradient(circle at top, #141423 0%, #0d0d0f 55%, #050508 100%);
  color: var(--color-text-main);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
}

/* Background subtle particles */
.page-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.08) 0, transparent 45%),
    radial-gradient(circle at 80% 0%, rgba(106, 75, 217, 0.22) 0, transparent 55%),
    radial-gradient(circle at 0% 100%, rgba(196, 155, 63, 0.18) 0, transparent 60%);
  opacity: 0.28;
  z-index: -2;
}

/* Utility */
.container {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  font-family: "Cinzel", serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 1.6rem;
}

.section-header p {
  color: var(--color-text-muted);
  max-width: 540px;
  margin: 0.75rem auto 0;
  font-size: 0.95rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease,
    border-color 0.15s ease;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

.primary-btn {
  background: linear-gradient(135deg, var(--color-gold), #e0bf5d);
  color: #191919;
  box-shadow: var(--shadow-soft);
}

.primary-btn:hover {
  background: linear-gradient(135deg, #e0bf5d, var(--color-gold));
}

.secondary-btn {
  background: transparent;
  border-color: rgba(228, 210, 173, 0.4);
  color: var(--color-soft);
}

.secondary-btn:hover {
  background: rgba(228, 210, 173, 0.12);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-height);
  backdrop-filter: blur(18px);
  background: linear-gradient(to bottom,
      rgba(5, 5, 8, 0.92),
      rgba(5, 5, 8, 0.65),
      transparent);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  height: var(--header-height);
}

/* Brand */
.brand-link {
  font-family: "Cinzel Decorative", serif;
  font-size: 1.25rem;
  color: var(--color-soft);
  text-decoration: none;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Nav */
.main-nav {
  margin-left: auto;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-link {
  font-family: "Inter", system-ui;
  font-weight: 500;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-text-muted);
  text-decoration: none;
  position: relative;
  padding-bottom: 0.15rem;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-purple));
  transition: width 0.18s ease-out;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Search */
.header-search {
  margin-left: 1rem;
  flex-shrink: 0;
}

.header-search input {
  background: rgba(17, 17, 23, 0.9);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.45rem 0.9rem;
  font-size: 0.83rem;
  color: var(--color-soft);
  min-width: 180px;
}

.header-search input::placeholder {
  color: rgba(180, 176, 163, 0.7);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 0.2rem;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: 0.5rem;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--color-soft);
  border-radius: 2px;
}

/* Hero */
.hero-section {
  padding: 2.3rem 0 3rem;
  margin-top: -0.8rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 2.8rem;
  align-items: center;
}

.hero-text h1 {
  font-family: "Cinzel", serif;
  font-size: clamp(2rem, 2.6vw, 2.6rem);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero-text p {
  color: var(--color-text-muted);
  max-width: 420px;
  margin-bottom: 1.7rem;
  font-size: 0.96rem;
}

.hero-banner {
  position: relative;
}

.hero-banner-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(196, 155, 63, 0.5);
  box-shadow: var(--shadow-soft);
}

.hero-banner-image img {
  width: 100%;
  display: block;
  height: auto;
  transform: scale(1.02);
}

/* Social links bottom-left */
.social-links {
  position: absolute;
  left: 1.1rem;
  bottom: 1.1rem;
  background: rgba(6, 6, 10, 0.88);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid rgba(196, 155, 63, 0.6);
}

.social-links span {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-text-muted);
}

.social-icons {
  display: flex;
  gap: 0.35rem;
}

.social-icons a {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(196, 155, 63, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  text-decoration: none;
  color: var(--color-gold);
}

/* Products section */
.products-section {
  padding: 4rem 0 4.5rem;
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2.3rem;
}

.category-tab {
  border-radius: 999px;
  border: 1px solid rgba(196, 155, 63, 0.45);
  background: rgba(10, 10, 16, 0.9);
  padding: 0.45rem 1.1rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: background 0.14s ease, border-color 0.14s ease, color 0.14s ease,
    transform 0.12s ease;
}

.category-tab:hover {
  border-color: rgba(196, 155, 63, 0.85);
}

.category-tab.active {
  background: linear-gradient(135deg, rgba(196, 155, 63, 0.95), #e0bf5d);
  color: #171717;
  transform: translateY(-1px);
}

/* Category section */
.product-category {
  margin-bottom: 3rem;
}

.product-category h3 {
  font-family: "Cinzel", serif;
  font-size: 1.15rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.6rem;
}

/* Product card */
.product-card {
  background: radial-gradient(circle at top left,
      rgba(106, 75, 217, 0.25) 0,
      transparent 55%),
    #0b0b11;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    border-color 0.18s ease;

  /* 🔽 add these */
  max-width: 260px;   /* or 280 / 300 if you want bigger cards */
  width: 100%;
  margin-inline: auto;
}


.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(196, 155, 63, 0.7);
  box-shadow: var(--shadow-soft);
}

.product-image {
  width: 100%;
  height: 200px;              /* fixed frame height – change value if you want */
  background: #000;           /* black background behind images */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Make image fully visible without enlarging frame */
.product-image img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;   /* show full picture inside frame */
}



.product-info {
  padding: 0.9rem 1rem 1.1rem;
}

.product-info h4 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.product-info p {
  font-size: 0.86rem;
  color: var(--color-text-muted);
  margin-bottom: 0.7rem;
}

/* Contact section */
.contact-section {
  padding: 4rem 0 4.5rem;
  background: linear-gradient(160deg,
      rgba(5, 5, 8, 0.98),
      rgba(12, 9, 24, 0.96));
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 1.8rem;
}

.contact-card {
  background: radial-gradient(circle at top,
      rgba(196, 155, 63, 0.16) 0,
      transparent 55%),
    #0c0b11;
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-soft);
}

.contact-card h3 {
  font-family: "Cinzel", serif;
  font-size: 1.1rem;
  margin-bottom: 0.7rem;
}

.contact-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 1.1rem;
}

.contact-list {
  list-style: none;
  margin-bottom: 1rem;
}

.contact-list li {
  font-size: 0.92rem;
  margin-bottom: 0.4rem;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.modal.is-visible {
  display: flex;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(4, 4, 8, 0.85);
  backdrop-filter: blur(6px);
}

.modal-content {
  position: relative;
  z-index: 1;
  background: #050509;
  border-radius: 18px;
  border: 1px solid rgba(196, 155, 63, 0.6);
  padding: 1.3rem;
  width: min(720px, 100% - 2rem);
  box-shadow: var(--shadow-soft);
}

.modal-video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  background: #000;
}

.modal-video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.7rem;
  font-size: 1.6rem;
  background: transparent;
  color: var(--color-soft);
  border: none;
  cursor: pointer;
}

/* Footer */
.site-footer {
  padding: 1.4rem 0 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: #050508;
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
  }
}

@media (max-width: 880px) {
  .main-nav {
    position: absolute;
    inset-inline: 0;
    top: var(--header-height);
    background: rgba(6, 6, 10, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transform-origin: top;
    transform: scaleY(0);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.18s ease-out, opacity 0.18s ease-out;
  }

  .main-nav.open {
    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.8rem 1.6rem 1rem;
  }

  .header-search {
    margin-left: 0;
    flex: 1;
  }

  .header-search input {
    width: 100%;
    min-width: 0;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-banner {
    order: -1;
  }

  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  .hero-section {
    padding-top: 4rem;
  }

  .social-links {
    position: static;
    margin-top: 0.8rem;
  }

  .product-category h3 {
    text-align: center;
  }

  .product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.6rem;

  /* 🔽 add this */
  justify-items: center;
}

}

/* Tablet: make it 3 per row so they don't get too tiny */
@media (max-width: 992px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Phone: 2 products per row */
@media (max-width: 600px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 460px) {
  .header-inner {
    gap: 0.6rem;
  }

  .brand-link {
    font-size: 1.05rem;
  }

  .header-search {
    display: none;
  }

  .hero-text h1 {
    font-size: 1.7rem;
  }
}

.product-buttons {
  display: flex;
  gap: 5px;
  margin-top: 5px;
}

/* Social icon base */
.social-icon {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.social-icon i {
  line-height: 1;
}

/* YouTube (red) */
.social-icon--youtube {
  background: #ff0000;
  border-color: #ff0000;
  color: #ffffff;
}

/* Facebook (blue) */
.social-icon--facebook {
  background: #1877f2;
  border-color: #1877f2;
  color: #ffffff;
}

/* Instagram (gradient + white icon) */
.social-icon--instagram {
  background: radial-gradient(circle at 30% 30%, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5);
  border-color: #d62976;
  color: #ffffff;
}

/* Hover effect */
.social-icon:hover {
  transform: translateY(-1px);
  opacity: 0.9;
}

/* Proper icon styling */
.social-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #fff;
}

/* YouTube icon (red) */
.social-icon--youtube {
  background: #ff0000;
}

/* Facebook icon (blue) */
.social-icon--facebook {
  background: #1877f2;
}

/* Instagram icon (gradient) */
.social-icon--instagram {
  background: radial-gradient(circle at 30% 30%,
      #feda75,
      #fa7e1e,
      #d62976,
      #962fbf,
      #4f5bd5);
}

/* Hover effect */
.social-icon:hover {
  transform: scale(1.06);
  opacity: 0.9;
}

/* Reduce space below HERO section */
.hero-section {
  padding-bottom: 2rem;
  /* Reduce from big gap to smaller */
}

/* Reduce space above COURSES section title */
#courses.products-section {
  padding-top: 2rem;
  /* Reduce extra top padding */
  padding-bottom: 1rem;
  /* Already reduced bottom gap */
}

/* Reduce space above PRODUCTS section title */
#products.products-section {
  padding-top: 2rem;
}

/* Search bar with icon */
.header-search {
  position: relative;
}

.header-search .search-icon {
  position: absolute;
  top: 50%;
  left: 10px;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.header-search input {
  padding-left: 32px !important;
}

/* Reduce bottom section height inside product card */
.product-card .product-info {
  padding: 0.6rem 0.8rem;
}

/* Fully independent Courses section */
.courses-section {
  padding: 3rem 0;
  text-align: center;
}

.courses-title {
  font-family: "Cinzel", serif;
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.courses-subtitle {
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.courses-loop {
  width: 100%;
  overflow-x: auto;             /* allow horizontal scroll */
  overflow-y: hidden;
  padding: 1rem 0;
  position: relative;
  scroll-snap-type: x mandatory; /* snap cards */
  -webkit-overflow-scrolling: touch;
}

/* Track – no animation now */
.loop-track {
  display: flex;
  gap: 20px;
  width: max-content;
}

/* Each card behaves like a slide */
.loop-item {
  flex: 0 0 80%;              /* takes ~80% of width – shows 1 main card */
  max-width: 480px;
  background: #0c0c12;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  margin-inline: auto;
  scroll-snap-align: center;  /* snap to center when scrolling */
}

/* Course image */
.loop-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

/* Button under title */
.course-btn {
  margin-top: 10px;
  width: 100%;
  justify-content: center;
}



.loop-item img {
  width: 100%;
  height: 260px;   /* was 150/160 earlier – increase this for bigger picture */
  object-fit: cover;
  border-radius: 12px;
  display: block;
}


.loop-item h4 {
  margin-top: 8px;
  font-size: 0.9rem;
}

/* Infinite animation */
@keyframes loopMove {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.brand-link {
  font-family: "Cinzel Decorative", serif;
  font-size: 1.25rem;
  color: #CCA851;
  text-decoration: none;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Hide scrollbar for courses horizontal scroll */
.courses-loop {
  scrollbar-width: none;          /* Firefox */
}

.courses-loop::-webkit-scrollbar {
  display: none;                  /* Chrome / Edge / Safari */
}
