:root {
    --primary-color: #251e1d;
    --secondary-color: #b9845f;
    --secondary-color-h: 24, 41%, 55%; /* HSL values for #b9845f */
    --accent-color: #ddb8a2;
    --secondary-light: #f7ede6;
}

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
}

.navbar {
    background-color: var(--primary-color) !important;
    padding: 0.8rem 0;
}

.navbar-brand {
    padding: 0;
}

.header-logo {
    height: 35px;
    transition: transform 0.3s ease;
}

.nav-link {
    font-weight: 500;
    margin: 0 1rem;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hero {
    position: relative;
    background: linear-gradient(45deg, rgba(221,184,162,0.9) 0%, rgba(185,132,95,0.9) 100%);
    overflow: hidden;
    mix-blend-mode: multiply;
    backdrop-filter: blur(2px);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><path fill="%23ffffff10" d="M49,-65C62.4,-53.3,70.3,-35.9,72.4,-18.3C74.5,-0.6,70.7,17.4,62.8,33.7C54.9,50.1,42.9,64.8,27.9,71.6C12.9,78.4,-5.2,77.3,-21.6,71.1C-38.1,64.8,-53,53.4,-62.3,38.1C-71.6,22.8,-75.4,3.6,-70.3,-12.1C-65.2,-27.8,-51.3,-40.9,-37.2,-52.3C-23.2,-63.7,-8.9,-73.4,6.6,-82C22.1,-90.6,44.2,-98.1,49,-65Z"/></svg>');
    background-size: cover;
}

.nav-link:hover {
    color: var(--secondary-color) !important;
}

.btn-primary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

h1, h2, h3 {
    color: var(--secondary-color) !important;
}

/* Hero Text Styling */
/* Header Logo */
/* Header Logo */
.header-logo {
    height: 35px;
    transition: transform 0.3s ease;
}

.header-logo:hover {
    transform: scale(1.1);
}

/* Hero Text */
.hero-title {
    font-size: 3.2rem;
    color: var(--secondary-color) !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1.3;
}

.hero-subtext {
    font-size: 1.2rem;
    color: var(--accent-color) !important;
    line-height: 1.5;
    max-width: 600px;
    margin: 0 auto;
}

.stat-highlight {
    color: #ffd700;
    font-weight: 700;
}

.stat-number {
    color: var(--secondary-color);
    font-size: 2.5rem;
    font-weight: bold;
}

/* Gallery Grid Styles */
#gallery-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 0.5rem;
}
.gallery-img-wrap {
  opacity: 0;
  transform: scale(0.85) translateY(30px);
  transition: opacity 0.7s cubic-bezier(.4,2,.3,1), transform 0.7s cubic-bezier(.4,2,.3,1);
  will-change: transform, opacity;
  border-radius: 1.2rem;
  overflow: hidden;
  box-shadow: 0 4px 24px 0 rgba(37,30,29,0.10);
  background: #fff;
  cursor: pointer;
}
.gallery-img-wrap.show {
  opacity: 1;
  transform: scale(1) translateY(0);
}
.gallery-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(.4,2,.3,1), box-shadow 0.4s;
  border-radius: 1.2rem;
  box-shadow: 0 2px 8px 0 rgba(37,30,29,0.08);
}
.gallery-img-wrap:hover .gallery-img {
  transform: scale(1.08) rotate(-1deg);
  box-shadow: 0 8px 32px 0 rgba(37,30,29,0.18);
}
.gallery-img-wrap {
  perspective: 600px;
}

/* Carousel Styles */
.carousel-img {
  max-height: 420px;
  object-fit: cover;
  width: 100%;
  box-shadow: 0 8px 32px 0 rgba(37,30,29,0.18);
  border-radius: 1.5rem;
  transition: transform 0.5s cubic-bezier(.4,2,.3,1);
}
.carousel-img:hover {
  transform: scale(1.04) rotate(-1deg);
}

/* Think Tank Description */
.think-tank-desc {
  background: linear-gradient(90deg, #ddb8a2 0%, #fff 100%);
  border-radius: 1.2rem;
  box-shadow: 0 2px 16px 0 rgba(37,30,29,0.08);
  padding: 2.5rem 1.5rem;
}

/* Horizontal Queue Styles */
#gallery-horizontal-queue-section {
  position: relative;
  overflow: visible;
}
#horizontal-queue-wrapper {
  position: relative;
  overflow: hidden;
  max-width: 100vw;
  background: #fff;
  border-radius: 1.2rem;
  box-shadow: 0 2px 16px 0 rgba(37,30,29,0.08);
  padding: 1.2rem 2.5rem;
  min-height: 210px;
}
/* Glider.js queue styles */
#horizontal-queue {
  display: flex;
  align-items: center;
}
.queue-img-wrap {
  flex: 0 0 160px;
  height: 180px;
  margin: 0 0.5rem;
  border-radius: 1.2rem;
  overflow: hidden;
  box-shadow: 0 2px 8px 0 rgba(37,30,29,0.08);
  background: #f8f6f4;
  cursor: pointer;
  transition: box-shadow 0.3s, transform 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.queue-img-wrap:hover {
  box-shadow: 0 8px 32px 0 rgba(37,30,29,0.18);
  transform: scale(1.06) rotate(-1deg);
}
.queue-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1.2rem;
  transition: filter 0.3s;
  filter: brightness(98%) contrast(1.08);
}
.queue-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(37,30,29,0.85);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.5rem;
  z-index: 2;
  cursor: pointer;
  box-shadow: 0 2px 8px 0 rgba(37,30,29,0.18);
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
}
.queue-nav-btn.left { left: 0.5rem; }
.queue-nav-btn.right { right: 0.5rem; }
.queue-nav-btn:hover { background: var(--secondary-color); color: #251e1d; opacity: 1; }
@media (max-width: 900px) {
  .queue-img-wrap { flex-basis: 120px; height: 120px; }
  #horizontal-queue-wrapper { min-height: 130px; padding: 1rem 1.2rem; }
}
@media (max-width: 600px) {
  .queue-img-wrap { flex-basis: 80px; height: 80px; }
  #horizontal-queue-wrapper { min-height: 80px; padding: 0.5rem 0.5rem; }
  .motion-video { height: 160px; }
}

/* Carousel Parallax */
.carousel-parallax {
  will-change: transform;
  transition: transform 0.5s cubic-bezier(.4,2,.3,1);
}

/* Queue Drag/Swipe */
#horizontal-queue-wrapper.dragging {
  cursor: grabbing;
  user-select: none;
}

/* Motion Image Section */
.motion-image-container {
  position: relative;
  max-width: 420px;
  margin: 0 auto;
  border-radius: 1.2rem;
  box-shadow: 0 2px 16px 0 rgba(37,30,29,0.08);
  background: #fff;
  overflow: hidden;
  min-height: 320px;
}
.motion-image-scroll {
  width: 100%;
  height: 320px;
  overflow-y: hidden;
  transition: box-shadow 0.3s;
}
.motion-image-container:hover .motion-image-scroll {
  overflow-y: scroll;
  box-shadow: 0 8px 32px 0 rgba(37,30,29,0.18);
}
.motion-image {
  width: 100%;
  height: 600px;
  object-fit: cover;
  object-position: center top;
  transition: object-position 0.5s cubic-bezier(.4,2,.3,1);
  pointer-events: none;
  user-select: none;
  border-radius: 1.2rem;
}
.motion-scrollbar {
  position: absolute;
  right: 8px;
  top: 12px;
  width: 6px;
  height: 90%;
  background: rgba(185,132,95,0.15);
  border-radius: 4px;
  display: none;
}
.motion-image-container:hover .motion-scrollbar {
  display: block;
}
@media (max-width: 600px) {
  .motion-image-container { max-width: 98vw; min-height: 180px; }
  .motion-image-scroll, .motion-image { height: 180px; }
}

/* Motion Video Section */
.motion-video-container {
  position: relative;
  max-width: 420px;
  margin: 0 auto;
  border-radius: 1.2rem;
  box-shadow: 0 2px 16px 0 rgba(37,30,29,0.08);
  background: #fff;
  overflow: hidden;
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.motion-video {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 1.2rem;
  background: #000;
  transition: filter 0.3s;
}
.motion-video-caption {
  font-size: 1rem;
  color: #251e1d;
  margin-top: 0.5rem;
}
@media (max-width: 600px) {
  .motion-video-container { max-width: 98vw; min-height: 120px; }
  .motion-video { height: 160px; }
}

/* Site Footer Styles */
.site-footer {
  width: 100vw;
  background: #251e1d;
  color: #fff;
  font-size: 1rem;
  border-top: 1px solid #b9845f22;
  box-shadow: 0 -2px 12px 0 rgba(37,30,29,0.04);
  padding: 0;
  margin: 0;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}
.site-footer .footer-inner {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 1.2rem 1.5rem;
  gap: 2.5rem;
}
.site-footer .footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.2rem;
  min-width: 180px;
}
.site-footer .footer-brand img {
  height: 38px;
  width: auto;
  margin-bottom: 0.5rem;
}
.site-footer .footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  font-size: 1rem;
  margin-top: 0.2rem;
}
.site-footer .footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #ddb8a2;
  font-size: 1rem;
}
.site-footer .footer-contact-item a {
  color: #ddb8a2;
  text-decoration: none;
  transition: color 0.2s;
}
.site-footer .footer-contact-item a:hover {
  color: #fff;
  text-decoration: underline;
}
.site-footer .footer-icon {
  font-size: 1.2rem;
  width: 1.5em;
  text-align: center;
}
.site-footer .footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.1rem;
  min-width: 140px;
  margin-left: 2.5rem;
}
.site-footer .footer-link {
  color: #ddb8a2;
  text-decoration: none;
  font-size: 1.05rem;
  transition: color 0.2s;
}
.site-footer .footer-link:hover {
  color: #fff;
  text-decoration: underline;
}
.site-footer .footer-copy {
  align-self: flex-end;
  color: #ddb8a2;
  font-size: 0.98rem;
  text-align: right;
  min-width: 180px;
}
@media (max-width: 900px) {
  .site-footer .footer-inner {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem 0.7rem 1rem 0.7rem;
  }
  .site-footer .footer-brand,
  .site-footer .footer-links,
  .site-footer .footer-copy {
    align-items: center;
    text-align: center;
    margin-left: 0;
    min-width: unset;
  }
  .site-footer .footer-links {
    margin: 0.5rem 0;
  }
}
@media (max-width: 600px) {
  .site-footer .container {
    flex-direction: column !important;
    text-align: center;
    gap: 0.7rem;
  }
}
/* Fade-in Section Animation */
.fade-in-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4,0,0.2,1), transform 0.8s cubic-bezier(0.4,0,0.2,1);
  will-change: opacity, transform;
}
.fade-in-section.is-visible {
  opacity: 1;
  transform: none;
}

.bg-secondary-light {
    background-color: var(--secondary-light) !important;
}
