/* Premium Dark Luxury Theme for Jyoti Furniture & Interiors */

:root {
  --bg-primary: #050505;
  --bg-secondary: #0a0a0a;
  --bg-tertiary: #141414;
  --text-primary: #ffffff;
  --text-secondary: #b0b0b0;
  --accent-gold: #d4af37;
  --accent-gold-hover: #f3cf55;
  --border-color: rgba(255, 255, 255, 0.08);
  --glass-bg: rgba(5, 5, 5, 0.7);
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
}

html,
body {
  overflow-x: hidden;
  width: 100%;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.7;
  position: relative;
}

img {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: 700;
}

.text-gold {
  color: var(--accent-gold) !important;
}

.bg-dark-secondary {
  background-color: var(--bg-secondary) !important;
}

/* -----------------------------
   NAVBAR STYLES (Desktop & Mobile)
   ----------------------------- */
.navbar-premium {
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.4s ease;
  z-index: 1000;
}

.navbar-brand-premium {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary) !important;
  text-transform: uppercase;
  display: flex;
  align-items: center;
}

.navbar-brand-premium span.logo-box {
  background-color: var(--accent-gold);
  color: #000;
  font-weight: 900;
  padding: 2px 10px;
  margin-right: 10px;
  border-radius: 2px;
  font-size: 1.4rem;
  line-height: 1;
}

.nav-link-premium {
  color: #e0e0e0 !important;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  position: relative;
  padding: 8px 0 !important;
  margin: 0 15px;
  transition: color 0.3s ease;
  opacity: 0.8;
}

.nav-link-premium:hover,
.nav-link-premium.active {
  color: var(--accent-gold) !important;
  opacity: 1;
}

/* Underline Animation */
.nav-link-premium::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0px;
  left: 50%;
  background-color: var(--accent-gold);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link-premium:hover::after,
.nav-link-premium.active::after {
  width: 100%;
}

/* CTA Button */
.btn-nav-cta {
  background: linear-gradient(135deg, var(--accent-gold) 0%, #b08d55 100%);
  color: #000 !important;
  font-weight: 700;
  padding: 12px 28px !important;
  border-radius: 30px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.75rem;
  border: none;
  margin-left: 20px;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
  transition: all 0.3s ease;
}

.btn-nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

/* -----------------------------
   RESPONSIVE LOGIC
   ----------------------------- */

/* Desktop (Large Screens) */
@media (min-width: 992px) {
  .navbar-nav {
    align-items: center;
    /* Center items vertically in row */
  }
}

/* Mobile / Tablet (Collapsible) */
@media (max-width: 991px) {

  /* Prevent horizontal scroll from bootstrap rows if container padding is stripped */
  .row {
    margin-left: 0;
    margin-right: 0;
  }

  .container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .hero-content {
    margin-top: 100px;
    /* Less margin on mobile as navbar is smaller/collapses */
    padding: 0 20px;
  }

  .hero-title {
    font-size: 2.8rem;
  }

  .navbar-premium {
    padding: 10px 0;
    background: rgba(5, 5, 5, 0.98);
  }

  .navbar-brand-premium {
    font-size: 1.1rem;
    max-width: 75%;
    white-space: normal;
  }

  .navbar-brand-premium span.logo-box {
    font-size: 1rem;
    padding: 2px 6px;
    margin-right: 6px;
  }

  /* Mobile Dropdown Container */
  .navbar-collapse {
    background: #0a0a0a;
    padding: 20px;
    margin-top: 15px;
    border-top: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  }

  /* Mobile Links */
  .navbar-nav {
    align-items: flex-start;
    /* Left align items */
  }

  .nav-item {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  }

  .nav-link-premium {
    display: block;
    margin: 10px 0;
    font-size: 0.9rem;
    padding: 10px 0 !important;
  }

  /* Underline removal on mobile (optional, or keep generic) */
  .nav-link-premium::after {
    display: none;
  }

  .btn-nav-cta {
    margin-left: 0;
    margin-top: 20px;
    display: block;
    width: 100%;
    text-align: center;
  }

  .portfolio-overlay {
    opacity: 1;
    bottom: 0;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2.2rem;
  }

  .navbar-brand-premium {
    font-size: 1rem;
  }
}

/* -----------------------------
   GENERAL UI & SECTIONS
   ----------------------------- */
.hero-section {
  position: relative;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.7) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 15px;
  margin-top: 140px;
}

.hero-title {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
  font-size: 1.2rem;
  font-weight: 300;
  margin-bottom: 2.5rem;
  color: rgba(255, 255, 255, 0.9);
}

/* Animation Visibility Fix */
.element-animate,
.ftco-animate {
  opacity: 1;
  visibility: visible;
}

.element-animate.item-animate,
.ftco-animate.item-animate {
  opacity: 0;
  visibility: hidden;
}

.element-animate.element-animated,
.ftco-animate.element-animated {
  opacity: 1;
  visibility: visible;
  transition: all 0.5s ease;
}

/* Cards & Portfolio */
.service-card {
  background: var(--bg-secondary);
  padding: 40px 30px;
  height: 100%;
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-gold);
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  margin-bottom: 30px;
}

.portfolio-img {
  width: 100%;
  transition: transform 0.6s ease;
}

.portfolio-item:hover .portfolio-img {
  transform: scale(1.05);
}

.portfolio-overlay {
  position: absolute;
  bottom: -100px;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.85);
  padding: 20px;
  transition: all 0.3s ease;
  opacity: 0;
}

.portfolio-item:hover .portfolio-overlay {
  bottom: 0;
  opacity: 1;
}

.btn-premium {
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  padding: 12px 30px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
  background: transparent;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-premium:hover {
  background: var(--accent-gold);
  color: #000;
  text-decoration: none;
}

.btn-premium-filled {
  background: var(--accent-gold);
  color: #000;
}

footer {
  border-top: 1px solid var(--border-color);
  font-size: 0.9rem;
}

footer h3 {
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.form-control {
  background-color: var(--bg-secondary) !important;
  border: 1px solid var(--border-color);
  color: #fff !important;
  border-radius: 0;
  padding: 15px;
}

.form-control:focus {
  border-color: var(--accent-gold);
  box-shadow: none;
}