/* ===================== ROOT VARIABLES ===================== */
:root {
  --gold: #d4af37;
  --gold-light: #f5d76e;
  --purple: #2b004f;
  --bg: #000;
  --font: 'Cinzel', serif;
}

/* ===================== GLOBAL STYLES ===================== */
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: #fff;
  overflow-x: hidden;
  transition: background 0.3s ease;
}

* {
  transition: all 0.3s ease-in-out;
  box-sizing: border-box;
}

/* ===================== HEADER ===================== */
header {
  background: var(--purple);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--gold);
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

header img {
  height: 55px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

header img:hover {
  transform: scale(1.05);
}

/* ===================== NAVIGATION ===================== */
.hamburger {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  gap: 6px;
  padding: 0;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(10px, 10px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex: 1;
  justify-content: flex-end;
}

nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}

nav ul li {
  position: relative;
  white-space: nowrap;
}

nav a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  position: relative;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

nav a::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

nav a:hover {
  color: var(--gold-light);
}

/* ===================== RESPONSIVE HEADER ===================== */
@media (max-width: 768px) {
  header {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--purple);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    border-bottom: 2px solid var(--gold);
    padding: 0;
  }

  .nav-menu.active {
    max-height: 500px;
    padding: 1rem 2rem;
  }

  nav {
    width: 100%;
    flex-direction: column;
    gap: 1rem;
    order: 3;
  }

  nav ul {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }

  nav ul li {
    width: 100%;
  }

  nav a {
    display: block;
    padding: 0.5rem 0;
  }

  .search-bar {
    width: 100%;
  }

  .search-bar input {
    width: 100%;
  }

  nav ul li a.active::after {
    width: 30px;
  }
}

/* ===================== SEARCH BAR ===================== */
.search-bar {
  position: relative;
}

.search-bar input {
  padding: 8px 35px 8px 15px;
  border-radius: 20px;
  border: 1px solid var(--gold);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-family: var(--font);
  outline: none;
  width: 180px;
  transition: all 0.3s ease;
}

.search-bar input::placeholder {
  color: #ccc;
  font-family: var(--font);
}

.search-bar input:focus {
  width: 240px;
  border-color: var(--gold-light);
}

.search-bar button {
  position: absolute;
  right: 8px;
  top: 6px;
  background: none;
  border: none;
  color: var(--gold);
  cursor: pointer;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.search-bar button:hover {
  color: var(--gold-light);
}

/* ===================== HERO SLIDER ===================== */
.hero-slider {
  position: relative;
  height: 60vh;
  overflow: hidden;
  background: #000;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: contain; /* show entire image */
  background-repeat: no-repeat;
  background-position: center;
  background-color: #000;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-caption {
  position: absolute;
  bottom: 10%;
  left: 5%;
  background: rgba(0,0,0,0.6);
  color: var(--gold-light);
  padding: 1rem 2rem;
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  max-width: 80%;
}

/* ===================== FEATURED SERVICE ===================== */
.featured-service {
  padding: 4rem 2rem;
  text-align: center;
  background: linear-gradient(180deg, var(--purple), #000);
}

.featured-service h1 {
  color: var(--gold);
  font-size: 2.5rem;
}

.featured-service p {
  max-width: 900px;
  margin: 1rem auto 2rem;
  color: #ddd;
  line-height: 1.8;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
  gap: 2rem;
}

.service-box {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--gold);
  padding: 2rem;
  border-radius: 10px;
  transition: transform .3s, box-shadow .3s;
}

.service-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 20px rgba(212,175,55,0.4);
}

/* ===================== GRID SHOWCASE ===================== */
.showcase {
  padding: 4rem 2rem;
  background: #000;
  text-align: center;
}

.grid-header h2 {
  color: var(--gold-light);
  font-size: 2rem;
  margin-bottom: .5rem;
}

.grid-header p {
  color: #ccc;
  margin-bottom: 2rem;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
  gap: 1.5rem;
}

.grid-item {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--gold);
  border-radius: 10px;
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}

.grid-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 25px rgba(245,215,110,0.4);
}

.grid-item img {
  width: 100%;
  height: 250px;
  object-fit: contain; /* ensure full image visible */
  background-color: #000; /* clean background fill */
  border-radius: 10px 10px 0 0;
}

.grid-item h3 {
  padding: 1rem;
  color: var(--gold-light);
}

/* ===================== CARD COMPONENT ===================== */
.card {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--gold);
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  padding: 1rem;
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 20px rgba(212,175,55,0.4);
}

.card img {
  width: 100%;
  height: 280px;
  object-fit: contain; /* show full image */
  object-position: center;
  background-color: #000;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.card h3 {
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.card p {
  color: #ccc;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ===================== BRAND TICKER ===================== */
.brand-ticker {
  background: linear-gradient(90deg,var(--gold),var(--gold-light),var(--gold));
  color: var(--purple);
  padding: 0.8rem 0;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
}

.ticker-content {
  display: inline-block;
  animation: scroll 70s linear infinite;
}

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

/* ===================== FOOTER ===================== */
footer {
  text-align: center;
  background: var(--purple);
  color: #fff;
  padding: 2rem 1rem;
  border-top: 2px solid var(--gold);
}

footer a {
  color: var(--gold);
  font-weight: 700;
}

/* ===================== INTRO ANIMATION ===================== */
#intro-animation {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  animation: fadeOut 1s ease 3s forwards;
}

#intro-animation img {
  width: 200px;
  animation: zoomIn 1.5s ease forwards;
}

@keyframes fadeOut {
  to { opacity: 0; visibility: hidden; }
}

@keyframes zoomIn {
  0% { transform: scale(0.7); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* ===================== RESPONSIVE DESIGN ===================== */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  nav ul {
    flex-direction: column;
    gap: 0.5rem;
  }

  .search-bar {
    margin-top: 0.5rem;
    width: 100%;
    display: flex;
    justify-content: flex-start;
  }

  .search-bar input {
    width: 100%;
  }

  .hero-slider {
    height: 45vh;
  }

  .hero-caption {
    font-size: 0.9rem;
    padding: 0.8rem 1.5rem;
  }

  .card img,
  .grid-item img {
    height: 200px;
  }
}
