/* 
  G&B Interiors - Custom Premium Styles 
*/

:root {
  --primary-color: #D4AF37; /* Premium Gold/Brass */
  --primary-hover: #b5952f;
  --dark-color: #0f172a; /* Slate 900 */
  --light-bg: #f8fafc; /* Slate 50 */
  --text-color: #334155; /* Slate 700 */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
}

body, html {
  font-family: var(--font-body);
  color: var(--text-color);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .font-playfair {
  font-family: var(--font-heading);
  color: var(--dark-color);
}

.text-primary {
  color: var(--primary-color) !important;
}

.bg-light-custom {
  background-color: var(--light-bg);
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.btn-primary:hover, .btn-primary:focus {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
}

.section-heading {
  font-weight: 700;
  letter-spacing: 1px;
}

.accent-line {
  height: 3px;
  width: 60px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

.max-w-700 {
  max-width: 700px;
}

.text-custom {
  font-size: 1.1rem;
  line-height: 1.8;
}

/* Base Padding */
.page-section {
  padding: 6rem 0;
}

/* ================= Navbar ================= */
#mainNav {
  padding: 1.5rem 0;
  transition: padding 0.3s, background-color 0.3s, box-shadow 0.3s;
  background-color: transparent;
}

#mainNav .brand-logo {
  height: 45px; /* adjust based on logo image */
  transition: all 0.3s ease;
  filter: brightness(0) invert(1); /* makes logo white when navbar is transparent */
}

#mainNav .navbar-nav .nav-item .nav-link {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  transition: color 0.3s ease;
}

#mainNav .navbar-nav .nav-item .nav-link:hover,
#mainNav .navbar-nav .nav-item .nav-link.active {
  color: var(--primary-color);
}

#mainNav.navbar-shrink {
  padding: 0.75rem 0;
  background-color: #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

#mainNav.navbar-shrink .nav-link {
  color: var(--dark-color);
}

#mainNav.navbar-shrink .brand-logo {
  filter: none; /* Return to original color */
  height: 38px;
}

#mainNav.navbar-shrink .navbar-toggler i {
  color: var(--dark-color) !important;
}

/* ================= Hero Carousel Section ================= */
#hero {
  position: relative;
  min-height: 100vh;
}

#heroCarousel,
#heroCarousel .carousel-inner,
#heroCarousel .carousel-item {
  min-height: 100vh;
}

.hero-slide {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-size: cover;
  background-position: center center;
  animation: heroZoom 8s ease-in-out forwards;
}

@keyframes heroZoom {
  from { transform: scale(1); }
  to   { transform: scale(1.08); }
}

.hero-slide-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.5) 100%);
  z-index: 1;
}

.hero-caption-wrapper {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 2;
  pointer-events: none;
}

.hero-caption-wrapper .container {
  pointer-events: auto;
}

#heroCarousel .carousel-control-prev,
#heroCarousel .carousel-control-next {
  z-index: 3;
  width: 5%;
}

#heroCarousel .carousel-indicators {
  z-index: 3;
}

#heroCarousel .carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.6);
  background-color: transparent;
  opacity: 0.7;
  transition: all 0.3s;
}

#heroCarousel .carousel-indicators button.active {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  opacity: 1;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 300;
  max-width: 800px;
  color: rgba(255,255,255,0.85);
  line-height: 1.6;
}

/* ================= About Section ================= */
.icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgba(212, 175, 55, 0.1);
  color: var(--primary-color);
  font-size: 1.5rem;
  flex-shrink: 0;
}

/* ================= Services Section ================= */
.service-card {
  background-color: #fff;
  border-radius: 12px;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: 1px solid rgba(0,0,0,0.03);
  height: 100%;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border-color: rgba(212, 175, 55, 0.3);
}

.service-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.1);
}

.service-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* ================= Contact Section ================= */
.contact-section {
  position: relative;
  background: url("https://images.unsplash.com/photo-1574362848149-11496d93a7c7?auto=format&fit=crop&q=80&w=2000") no-repeat center center;
  background-size: cover;
  padding: 8rem 0;
}

.contact-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-color: rgba(15, 23, 42, 0.9);
}

.contact-form {
  border: none;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(212, 175, 55, 0.25);
}

/* ================= Footer ================= */
.btn-social {
  height: 2.5rem;
  width: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 100%;
}

/* ================= Animations ================= */
.reveal-fade, .reveal-slide-left, .reveal-slide-right {
  opacity: 0;
  visibility: hidden;
  transition: all 0.8s ease-out;
}

.reveal-fade {
  transform: translateY(30px);
}

.reveal-slide-left {
  transform: translateX(-50px);
}

.reveal-slide-right {
  transform: translateX(50px);
}

.active.reveal-fade, 
.active.reveal-slide-left, 
.active.reveal-slide-right {
  opacity: 1;
  visibility: visible;
  transform: translate(0, 0);
}

/* ================= Projects Gallery ================= */
.portfolio-filters li {
  cursor: pointer;
  display: inline-block;
  padding: 8px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 5px;
  transition: all 0.3s ease;
  color: var(--text-color);
  background-color: transparent;
}

.portfolio-filters li:hover,
.portfolio-filters li.filter-active {
  color: #fff;
  background-color: var(--primary-color);
  box-shadow: 0 4px 10px rgba(212, 175, 55, 0.4);
}

.portfolio-item {
  transition: all 0.4s ease-in-out;
}

.portfolio-wrap {
  cursor: pointer;
}

.portfolio-wrap::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 23, 42, 0.7);
  opacity: 0;
  transition: all 0.4s ease-in-out;
  z-index: 1;
}

.portfolio-wrap:hover::before {
  opacity: 1;
}

.portfolio-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: all 0.5s ease;
}

.portfolio-wrap:hover .portfolio-img {
  transform: scale(1.1);
}

.portfolio-info {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  opacity: 0;
  z-index: 2;
  transition: all 0.4s ease-in-out;
  transform: translateY(20px);
}

.portfolio-wrap:hover .portfolio-info {
  opacity: 1;
  transform: translateY(0);
}

.portfolio-lightbox {
  width: 45px;
  height: 45px;
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.portfolio-lightbox:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
}

/* ================= Rich Modal Styles ================= */
.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: transparent; 
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.1); 
  border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.2); 
}

/* Modal sizing adjustments to accommodate thumbnails */
#projectCarousel {
  height: 40vh; /* Shorter to leave room for thumbnails */
}

@media (min-width: 992px) {
  #projectCarousel {
    height: 70vh; 
  }
}

.avatar {
  font-family: var(--font-body);
  font-size: 0.9rem;
}

/* ================= Thumbnail Slider ================= */
.thumbnail-slider-container {
  display: flex;
  overflow-x: auto;
  gap: 10px;
  background-color: var(--dark-color);
  /* Use custom scrollbar defined above */
}

/* Make thumbnail scrollbar horizontal and clean on dark bg */
.thumbnail-slider-container::-webkit-scrollbar {
  height: 6px;
}
.thumbnail-slider-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
}

.thumbnail-slider-container::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.4);
}

.thumbnail-item {
  flex: 0 0 auto;
  width: 100px;
  height: 70px;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.5;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.thumbnail-item:hover {
  opacity: 0.8;
}

.thumbnail-item.active {
  opacity: 1;
  border-color: var(--primary-color);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.thumbnail-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ================= Image Zoom Overlay ================= */
.zoom-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 1060; /* Higher than bootstrap modal (1055) */
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  cursor: zoom-out;
}

.zoom-overlay.show {
  opacity: 1;
}

.zoom-overlay img {
  max-width: 95vw;
  max-height: 95vh;
  object-fit: contain;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.zoom-overlay.show img {
  transform: scale(1);
}

.zoom-overlay-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  z-index: 1061;
  background: rgba(0,0,0,0.5);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background 0.2s;
}

.zoom-overlay-close:hover {
  background: rgba(255,255,255,0.2);
}

.zoomable-image {
  cursor: zoom-in;
}

