:root {
  --main-color: #bf8c4c;
  --secondary-color: #232323;
  --white-color: #fff;
  --body-color: #828282;
  --border-color: #e4e4e4;
  --animation-duration: 0.5s ease;
}

/* Global */
body {
  font-family: "Roboto", sans-serif;
  color: var(--body-color);
  overflow-x: hidden;
}
.alt-font {
  font-family: "Poppins", serif;
}

*,
*::before,
*::after {
  padding: 0;
  margin: 0;
  box-sizing: inherit;
}
html {
  scroll-behavior: smooth;
  box-sizing: border-box;
}
clr {
  clear: both;
}

a:hover {
  text-decoration: none;
}
a {
  color: inherit;
  text-decoration: none;
}

a,
span {
  display: inline-block;
}

ul {
  list-style-type: none;
}
img {
  display: block;
}

.text-main {
  color: var(--main-color);
}

.text-small {
  font-size: 13px;
  line-height: 22px;
  font-weight: 500;
}
.text-extra-small {
  font-size: 12px;
  line-height: 16px;
  color: var(--body-color);
}
.text-medium {
  font-size: 14px;
  line-height: 20px;
  font-weight: 500 !important;
  letter-spacing: 2px;
}
.icon-very-small {
  font-size: 13px;
  margin-right: 10px;
}

.bg-main {
  background-color: var(--main-color);
}
.text-sec-color {
  color: var(--secondary-color);
}

.w-70 {
  width: 70%;
}
.section-padding {
  padding: 50px 0;
}

.bg-section {
  background-color: #f9f6f3;
}

.btn-custom {
  font-size: 12px;
  letter-spacing: 1px;
  padding: 12px 28px;
  border: 2px solid transparent;
  border-radius: 0%;
  text-transform: uppercase;
}
.main-btn {
  --background-color: var(--secondary-color);
  --color: var(--white-color);
  --padding: 13px 28px;
  margin-top: 20px;
  --border-color: transparent;
  --border-width: 2px;
  --hover-bg-color: transparent;
  --hover-color: var(--secondary-color);
  --hover-border-color: var(--secondary-color);
  --font-size: 12px;
  border-radius: 0;

  padding: var(--padding);
  border: var(--border-width) solid var(--secondary-color);
  background-color: var(--background-color);
  color: var(--color);
  font-size: var(--font-size);
  cursor: pointer;
  transition: all var(--animation-duration);
}

.main-btn:hover {
  background-color: transparent;
  color: var(--secondary-color);
}

.main-title .section-title {
  color: var(--main-color);
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: capitalize;
  font-family: "Poppins", serif;
  &::before {
    content: "";
    display: inline-block;
    width: 25px;
    height: 1px;
    background-color: var(--main-color);
    margin-right: 0.625rem;
  }
  &::after {
    content: "";
    display: inline-block;
    width: 25px;
    height: 1px;
    background-color: var(--main-color);
    margin-left: 0.625rem;
  }
}
.main-title h2 {
  font-weight: 700;
  color: var(--secondary-color);
  font-family: "Poppins", serif;
  text-transform: capitalize;
}
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.5s ease;
}

#loader.hidden {
  opacity: 0;
  pointer-events: none;
}

#main-content {
  display: none; 
}

.custom-loader {
  width: 70px;
  height: 70px;
  background: #ffa600;
  border-radius: 50px;
  mask: radial-gradient(circle 31px at 50% calc(100% + 13px), #000 95%, #0000)
      top 4px left 50%,
    radial-gradient(circle 31px, #000 95%, #0000) center,
    radial-gradient(circle 31px at 50% -13px, #000 95%, #0000) bottom 4px left
      50%,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  mask-repeat: no-repeat;
  animation: cu10 1.5s infinite;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

@keyframes cu10 {
  0% {
    -webkit-mask-size: 0 18px, 0 18px, 0 18px, auto;
  }
  16.67% {
    -webkit-mask-size: 100% 18px, 0 18px, 0 18px, auto;
  }
  33.33% {
    -webkit-mask-size: 100% 18px, 100% 18px, 0 18px, auto;
  }
  50% {
    -webkit-mask-size: 100% 18px, 100% 18px, 100% 18px, auto;
  }
  66.67% {
    -webkit-mask-size: 0 18px, 100% 18px, 100% 18px, auto;
  }
  83.33% {
    -webkit-mask-size: 0 18px, 0 18px, 100% 18px, auto;
  }
  100% {
    -webkit-mask-size: 0 18px, 0 18px, 0 18px, auto;
  }
}

/* Navbar */
.navbar {
  z-index: 9999 !important;
  position: fixed;
}

.nav-link,
.navbar i {
  color: var(--secondary-color);
}
.navbar .nav-img {
  width: 100px;
}

.navbar .navbar-toggler:focus {
  box-shadow: none;
}
.navbar .navbar-nav .nav-link.active,
.navbar .navbar-nav .nav-link:focus,
.navbar .navbar-nav .nav-link:hover {
  color: var(--main-color);
}

.navbar .main-menu {
  position: static;
  top: 100%;
  left: 0;
  right: 0;
  padding-inline: 30px;
  z-index: 99;
}
@media (min-width: 992px) {
  .navbar .main-menu {
    background-color: transparent;
    position: static;
  }
}

/* Home section */
.home {
  background-image: url(../imgs/cover.png);
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  padding-bottom: 3rem;
}

.home .home-link::before {
  content: "";
  position: absolute;
  width: 30px;
  height: 30px;
  background-color: var(--main-color);
  border-radius: 15px;
  opacity: 0.7;
  left: -10px;
  transition: width var(--animation-duration);
}
.home .home-link:hover::before {
  width: calc(100% + 30px);
}

.home .home-link i {
  transition: transform var(--animation-duration);
}
.home .home-link:hover i {
  transform: translateX(30%);
}

.home .home-img {
  position: relative;
  right: -50px;
  transition: transform var(--animation-duration);
}
.home .home-img:hover {
  transform: matrix(1, 0, 0, 1, -22, 3);
}
/* Services */
.services .service-icon i {
  font-size: 3rem;
  color: var(--main-color);
}

/* =====================================
   ABOUT SECTION — MATCHED WITH THEME
   ===================================== */

.about-wrapper{
  display:grid;
  grid-template-columns: 1.1fr 1fr;
  gap:60px;
  align-items:center;
}

/* LEFT IMAGES */
.about-images{
  display:flex;
  flex-direction:column;
  gap:25px;
}

.img-box{
  overflow:hidden;
  border-radius:0; /* sharp like your theme */
  border:1px solid var(--border-color);
}

.img-box img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform 0.5s ease;
}

.img-box:hover img{
  transform:scale(1.05);
}

/* sizes */
.img-big{
  height:420px;
}

.img-small{
  height:260px;
  margin-left:60px;
}

/* RIGHT CONTENT */
.about-content{
  max-width:520px;
}

.about-subtitle{
  color:var(--main-color);
  letter-spacing:2px;
  font-size:14px;
  font-weight:600;
  text-transform:uppercase;
  margin-bottom:12px;
}

.about-title{
  font-family:"Poppins", serif; /* same as your site */
  color:var(--secondary-color);
  font-size:36px;
  line-height:1.3;
  font-weight:700;
  margin-bottom:18px;
}

.about-text{
  color:var(--body-color);
  line-height:1.8;
  margin-bottom:25px;
}

/* RESPONSIVE */
@media(max-width:992px){

  .about-wrapper{
    grid-template-columns:1fr;
    gap:40px;
  }

  .img-small{
    margin-left:0;
  }

  .about-content{
    max-width:100%;
  }
}


/* ============================================
   SPECIALIZATION SECTION - COMPLETE UPDATED CSS
   ============================================ */

.specialization {
  background: linear-gradient(180deg, #f9f6f3 0%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}

.specialization::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(191, 140, 76, 0.1) 0%, transparent 70%);
  z-index: 0;
}

.specialization::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(35, 35, 35, 0.05) 0%, transparent 70%);
  z-index: 0;
}

.specialization .container {
  position: relative;
  z-index: 2;
}

.specialization .main-title {
  position: relative;
  z-index: 3;
}

.specialization .main-title .section-title {
  font-size: 15px;
  letter-spacing: 3px;
  margin-bottom: 15px;
  position: relative;
}

.specialization .main-title h2 {
  font-size: 42px;
  line-height: 1.2;
  position: relative;
  padding-bottom: 20px;
  margin-bottom: 15px;
}

.specialization .main-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--main-color);
  border-radius: 2px;
}

/* Specialization Box Container */
.specialization .row {
  position: relative;
  z-index: 3;
}

.specialization-box {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  height: 420px;
  background: var(--white-color);
  border: 1px solid rgba(228, 228, 228, 0.3);
}

.specialization-box:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
  border-color: rgba(191, 140, 76, 0.2);
}

/* Specialization Content */
.specialization-content {
  position: relative;
  height: 100%;
  width: 100%;
}

.specialization-content img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
  transition: transform 0.8s ease, filter 0.6s ease;
}

.specialization-box:hover .specialization-content img {
  transform: scale(1.15);
  filter: brightness(1.05);
}

/* Arrow Button */
.specialization-content a {
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  bottom: 25px;
  right: 25px;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 4;
  cursor: pointer;
}

.specialization-content a i {
  color: var(--white-color);
  font-size: 18px;
  transition: transform 0.3s ease;
}

.specialization-content a:hover {
  background: var(--main-color);
  border-color: var(--main-color);
  transform: scale(1.2) rotate(90deg);
  box-shadow: 0 0 20px rgba(191, 140, 76, 0.4);
}

.specialization-content a:hover i {
  transform: translateX(3px);
}

/* Banner Content (Overlay) */
.banner-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(
    to top, 
    rgba(35, 35, 35, 0.98) 0%, 
    rgba(35, 35, 35, 0.85) 50%, 
    rgba(35, 35, 35, 0.4) 100%
  );
  padding: 25px 30px !important;
  border-radius: 0 0 15px 15px;
  transform: translateY(calc(100% - 85px));
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 3;
  min-height: 85px;
}

.specialization-box:hover .banner-content {
  transform: translateY(0);
  background: linear-gradient(
    to top, 
    rgba(35, 35, 35, 0.98) 0%, 
    rgba(35, 35, 35, 0.92) 100%
  );
  padding-bottom: 30px !important;
}

/* Title in Banner */
.banner-content span {
  color: var(--white-color);
  font-family: "Poppins", serif;
  font-size: 24px !important;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 12px;
  display: block;
  transition: all 0.4s ease;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.specialization-box:hover .banner-content span {
  margin-bottom: 15px;
  transform: translateY(-2px);
}

/* Description in Banner */
.banner-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px !important;
  line-height: 1.7;
  margin-bottom: 25px;
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.5s ease 0.1s;
  max-height: 0;
  overflow: hidden;
  font-weight: 400;
}

.specialization-box:hover .banner-content p {
  opacity: 1;
  transform: translateY(0);
  max-height: 120px;
  margin-bottom: 25px;
}

/* View More Button */
.banner-content .secondary-btn {
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.5s ease 0.2s;
  padding: 12px 32px;
  font-size: 13px;
  letter-spacing: 1.5px;
  font-weight: 600;
  border: 2px solid var(--main-color);
  background-color: var(--main-color);
  color: var(--white-color);
  text-transform: uppercase;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.banner-content .secondary-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--white-color);
  transition: left 0.4s ease;
  z-index: -1;
}

.banner-content .secondary-btn:hover {
  color: var(--main-color);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(191, 140, 76, 0.3);
}

.banner-content .secondary-btn:hover::before {
  left: 0;
}

.specialization-box:hover .banner-content .secondary-btn {
  opacity: 1;
  transform: translateY(0);
}

/* Arrow button animation on hover */
.specialization-box:hover .specialization-content a {
  transform: translateY(100px);
  opacity: 0;
}

/* Gradient Overlay for Images */
.specialization-content::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 2;
  border-radius: 15px;
}

.specialization-box:hover .specialization-content::before {
  opacity: 1;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

@media (max-width: 1199px) {
  .specialization-box {
    height: 380px;
  }
  
  .banner-content {
    padding: 20px 25px !important;
    transform: translateY(calc(100% - 75px));
    min-height: 75px;
  }
  
  .banner-content span {
    font-size: 22px !important;
  }
  
  .banner-content p {
    font-size: 14px !important;
  }
}

@media (max-width: 992px) {
  .specialization-box {
    height: 350px;
  }
  
  .banner-content {
    padding: 18px 22px !important;
    transform: translateY(calc(100% - 70px));
    min-height: 70px;
  }
  
  .banner-content span {
    font-size: 20px !important;
  }
  
  .banner-content p {
    font-size: 14px !important;
    line-height: 1.6;
  }
  
  .specialization-content a {
    width: 44px;
    height: 44px;
    bottom: 20px;
    right: 20px;
  }
}

@media (max-width: 768px) {
  .specialization .main-title h2 {
    font-size: 36px;
  }
  
  .specialization-box {
    height: 320px;
    max-width: 500px;
    margin: 0 auto 25px;
  }
  
  .specialization .row.g-4 {
    row-gap: 25px !important;
  }
  
  .banner-content {
    padding: 16px 20px !important;
    transform: translateY(calc(100% - 65px));
    min-height: 65px;
  }
  
  .banner-content span {
    font-size: 18px !important;
    margin-bottom: 8px;
  }
  
  .banner-content p {
    font-size: 13px !important;
    margin-bottom: 20px;
    line-height: 1.5;
  }
  
  .banner-content .secondary-btn {
    padding: 10px 24px;
    font-size: 12px;
  }
}

@media (max-width: 576px) {
  .specialization .main-title h2 {
    font-size: 32px;
    padding-bottom: 15px;
  }
  
  .specialization .main-title .section-title {
    font-size: 14px;
    letter-spacing: 2px;
  }
  
  .specialization-box {
    height: 300px;
    border-radius: 12px;
  }
  
  .specialization-content img {
    border-radius: 12px;
  }
  
  .banner-content {
    padding: 14px 18px !important;
    transform: translateY(calc(100% - 60px));
    border-radius: 0 0 12px 12px;
    min-height: 60px;
  }
  
  .banner-content span {
    font-size: 17px !important;
    margin-bottom: 6px;
  }
  
  .banner-content p {
    font-size: 12px !important;
    margin-bottom: 15px;
  }
  
  .banner-content .secondary-btn {
    padding: 9px 20px;
    font-size: 11px;
    letter-spacing: 1px;
  }
  
  .specialization-content a {
    width: 40px;
    height: 40px;
    bottom: 15px;
    right: 15px;
  }
  
  .specialization-content a i {
    font-size: 16px;
  }
}

@media (max-width: 400px) {
  .specialization-box {
    height: 280px;
  }
  
  .banner-content {
    padding: 12px 16px !important;
    transform: translateY(calc(100% - 55px));
    min-height: 55px;
  }
  
  .banner-content span {
    font-size: 16px !important;
  }
  
  .banner-content p {
    font-size: 11px !important;
    margin-bottom: 12px;
  }
}

/* Animation for Specialization Boxes */
@keyframes specializationFadeIn {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.specialization-box {
  animation: specializationFadeIn 0.8s ease forwards;
  opacity: 0;
}

.specialization-box:nth-child(1) { animation-delay: 0.1s; }
.specialization-box:nth-child(2) { animation-delay: 0.2s; }
.specialization-box:nth-child(3) { animation-delay: 0.3s; }
.specialization-box:nth-child(4) { animation-delay: 0.4s; }
.specialization-box:nth-child(5) { animation-delay: 0.5s; }
.specialization-box:nth-child(6) { animation-delay: 0.6s; }
/* Products */
.product .product-items a {
  transform: translateX(20%);
  transform-origin: left center;
  transition: transform cubic-bezier(0.2, 0.95, 0.25, 1) 0.5s;
}
.product .product-items i {
  transform: scale(0) translateX(0);
  transition: transform cubic-bezier(0.2, 0.95, 0.25, 1) 0.5s;
  transform-origin: left center;
}
.product .product-items:hover i {
  transform: scale(1) translateX(0);
  color: var(--main-color);
}
.product .product-items:hover a {
  transform: translateX(0);
  color: var(--main-color);
}
/* ============================================
   IDEA SECTION - BEAUTIFUL & PERFECTLY ALIGNED
   ============================================ */

.idea {
  position: relative;
  overflow: hidden;
}

.idea .container-fluid {
  max-width: 1400px;
  margin: 0 auto;
}

/* Fix for all images to have same height */
.row.g-0 {
  --image-height: 350px;
}

/* Large Image Container */
.idea-large-img {
  height: calc(var(--image-height) * 2 + 1px); /* 2 rows height */
  position: relative;
  overflow: hidden;
  background-color: #f5f5f5;
}

.idea-large-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.idea-large-img:hover img {
  transform: scale(1.08);
}

/* Small & Medium Images - FIXED HEIGHT */
.idea-small-img,
.idea-medium-img {
  height: var(--image-height);
  position: relative;
  overflow: hidden;
  background-color: #f5f5f5;
}

.idea-small-img img,
.idea-medium-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.idea-small-img:hover img,
.idea-medium-img:hover img {
  transform: scale(1.1);
  filter: brightness(1.05);
}

/* Image Overlays - Large Image */
.img-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 40%,
    rgba(35, 35, 35, 0.9) 100%
  );
  display: flex;
  align-items: flex-end;
  padding: 40px;
  opacity: 1;
  transition: all 0.5s ease;
}

.img-overlay .overlay-content {
  transform: translateY(20px);
  transition: transform 0.5s ease 0.2s;
}

.idea-large-img:hover .img-overlay .overlay-content {
  transform: translateY(0);
}

.overlay-content h3 {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.overlay-content p {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0;
  max-width: 80%;
}

/* Image Overlays - Small/Medium Images */
.img-overlay-small {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(35, 35, 35, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.idea-small-img:hover .img-overlay-small,
.idea-medium-img:hover .img-overlay-small {
  opacity: 1;
}

.img-overlay-small span {
  color: var(--white-color);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 12px 24px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  transform: scale(0.9);
  transition: all 0.3s ease;
}

.idea-small-img:hover .img-overlay-small span,
.idea-medium-img:hover .img-overlay-small span {
  transform: scale(1);
  border-color: var(--main-color);
  background-color: rgba(191, 140, 76, 0.2);
}

/* Text Boxes - PERFECT HEIGHT MATCH */
.idea-text-box {
  height: var(--image-height);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px !important;
  position: relative;
  transition: all 0.4s ease;
  overflow: hidden;
}

.idea-text-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Text Box Typography */
.idea-text-box h3 {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 15px;
}

.idea-text-box h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--main-color);
  transition: width 0.3s ease;
}

.idea-text-box:hover h3::after {
  width: 80px;
}

/* White text for dark backgrounds */
.bg-main .idea-text-box h3,
[style*="background-color: #232323"] .idea-text-box h3 {
  color: var(--white-color);
}

.bg-main .idea-text-box h3::after,
[style*="background-color: #232323"] .idea-text-box h3::after {
  background-color: var(--white-color);
}

/* Paragraph Styling */
.idea-text-box p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--body-color);
  margin-bottom: 25px;
}

.bg-main .idea-text-box p,
[style*="background-color: #232323"] .idea-text-box p {
  color: rgba(255, 255, 255, 0.9);
}

/* Button Styling */
.idea-content-btn .secondary-btn {
  padding: 12px 32px;
  font-size: 13px;
  letter-spacing: 1.5px;
  font-weight: 600;
  border: 2px solid;
  border-radius: 4px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  z-index: 1;
  display: inline-block;
  width: fit-content;
}

/* Default button (light background) */
.bg-section .secondary-btn {
  background-color: var(--main-color);
  border-color: var(--main-color);
  color: var(--white-color);
}

.bg-section .secondary-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--white-color);
  transition: left 0.4s ease;
  z-index: -1;
}

.bg-section .secondary-btn:hover {
  color: var(--main-color);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(191, 140, 76, 0.3);
}

.bg-section .secondary-btn:hover::before {
  left: 0;
}

/* Button on main color background */
.bg-main .secondary-btn {
  background-color: var(--white-color);
  border-color: var(--white-color);
  color: var(--main-color);
}

.bg-main .secondary-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--main-color);
  transition: left 0.4s ease;
  z-index: -1;
}

.bg-main .secondary-btn:hover {
  color: var(--white-color);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
}

.bg-main .secondary-btn:hover::before {
  left: 0;
}

/* Button on dark background */
[style*="background-color: #232323"] .secondary-btn {
  background-color: var(--main-color);
  border-color: var(--main-color);
  color: var(--white-color);
}

[style*="background-color: #232323"] .secondary-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--white-color);
  transition: left 0.4s ease;
  z-index: -1;
}

[style*="background-color: #232323"] .secondary-btn:hover {
  color: var(--main-color);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(191, 140, 76, 0.3);
}

[style*="background-color: #232323"] .secondary-btn:hover::before {
  left: 0;
}

/* Grid Lines - For Perfect Alignment */
.row.g-0 > div {
  border-right: 1px solid rgba(228, 228, 228, 0.3);
  border-bottom: 1px solid rgba(228, 228, 228, 0.3);
}

.row.g-0 > div:last-child {
  border-right: none;
}

.row.g-0:last-child > div {
  border-bottom: none;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1200px) {
  .row.g-0 {
    --image-height: 320px;
  }
  
  .idea-text-box {
    padding: 35px !important;
  }
  
  .overlay-content h3 {
    font-size: 24px;
  }
  
  .idea-text-box h3 {
    font-size: 22px;
  }
  
  .idea-text-box p {
    font-size: 15px;
  }
}

@media (max-width: 992px) {
  .row.g-0 {
    --image-height: 280px;
  }
  
  .idea-large-img {
    height: calc(var(--image-height) * 2 + 1px);
  }
  
  .img-overlay {
    padding: 30px;
  }
  
  .idea-text-box {
    padding: 30px !important;
  }
  
  .overlay-content h3 {
    font-size: 22px;
  }
  
  .idea-text-box h3 {
    font-size: 20px;
    margin-bottom: 15px;
  }
  
  .idea-text-box p {
    font-size: 14px;
    margin-bottom: 20px;
  }
  
  .img-overlay-small span {
    font-size: 18px;
    padding: 10px 20px;
  }
  
  .idea-content-btn .secondary-btn {
    padding: 10px 28px;
    font-size: 12px;
  }
}

@media (max-width: 768px) {
  .row.g-0 {
    --image-height: 250px;
  }
  
  .col-sm-4, .col-sm-6 {
    width: 100% !important;
    flex: 0 0 100% !important;
  }
  
  .idea-large-img {
    height: var(--image-height);
    margin-bottom: 0;
  }
  
  .idea-small-img,
  .idea-medium-img,
  .idea-text-box {
    height: var(--image-height);
  }
  
  /* Reorder for mobile */
  .flex-column-reverse.flex-sm-row {
    flex-direction: column !important;
  }
  
  .img-overlay {
    padding: 25px;
  }
  
  .idea-text-box {
    padding: 25px !important;
  }
  
  .overlay-content h3 {
    font-size: 20px;
  }
  
  .overlay-content p {
    font-size: 14px;
  }
  
  .idea-text-box h3 {
    font-size: 18px;
  }
  
  .idea-text-box p {
    font-size: 13px;
  }
  
  .img-overlay-small span {
    font-size: 16px;
    padding: 8px 16px;
  }
  
  .idea-content-btn .secondary-btn {
    padding: 9px 24px;
    font-size: 11px;
  }
}

@media (max-width: 576px) {
  .row.g-0 {
    --image-height: 220px;
  }
  
  .img-overlay {
    padding: 20px;
  }
  
  .idea-text-box {
    padding: 20px !important;
  }
  
  .overlay-content h3 {
    font-size: 18px;
  }
  
  .overlay-content p {
    font-size: 13px;
    max-width: 100%;
  }
  
  .idea-text-box h3 {
    font-size: 17px;
  }
  
  .idea-text-box p {
    font-size: 12px;
    margin-bottom: 15px;
  }
  
  .img-overlay-small span {
    font-size: 14px;
    padding: 6px 14px;
    letter-spacing: 1px;
  }
  
  .idea-content-btn .secondary-btn {
    padding: 8px 20px;
    font-size: 10px;
  }
}

/* Smooth Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.idea-large-img,
.idea-small-img,
.idea-medium-img,
.idea-text-box {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

.idea-large-img { animation-delay: 0.1s; }
.idea-small-img:nth-child(1) { animation-delay: 0.2s; }
.idea-small-img:nth-child(2) { animation-delay: 0.3s; }
.idea-text-box:nth-child(1) { animation-delay: 0.4s; }
.idea-text-box:nth-child(2) { animation-delay: 0.5s; }
.idea-medium-img:nth-child(1) { animation-delay: 0.6s; }
.idea-medium-img:nth-child(2) { animation-delay: 0.7s; }
.idea-text-box:nth-child(3) { animation-delay: 0.8s; }

/* Loading Optimization */
.idea-large-img img,
.idea-small-img img,
.idea-medium-img img {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Logo */
.logo a .logo-img {
  width: 100%;
  opacity: 0.6;
  transition: opacity var(--animation-duration);
}

.logo a:hover .logo-img {
  opacity: 1;
}

/* ============================================
   GALLERY SECTION - ENHANCED VERSION
   ============================================ */

.gallery {
  background-color: #f9f9f9;
  position: relative;
}

.gallery::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.gallery .container {
  max-width: 1400px;
  position: relative;
  z-index: 1;
}

/* Gallery Title Styling */
.gallery .main-title {
  margin-bottom: 60px;
}

.gallery .main-title .section-title {
  font-size: 15px;
  letter-spacing: 3px;
  margin-bottom: 15px;
}

.gallery .main-title h2 {
  font-size: 42px;
  line-height: 1.2;
  position: relative;
  padding-bottom: 20px;
}

.gallery .main-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--main-color);
}

/* Gallery Grid Layout */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

@media (min-width: 1200px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 576px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

/* ============================================
   GALLERY SECTION - ENHANCED WITH FILTER
   ============================================ */

.gallery {
  background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
  position: relative;
}

.gallery::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

/* Gallery Filter */
.gallery-filter {
  position: relative;
  z-index: 10;
}

.gallery-filter-btn {
  background: transparent;
  border: 2px solid var(--border-color);
  color: var(--body-color);
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.gallery-filter-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--main-color);
  transition: left 0.4s ease;
  z-index: -1;
}

.gallery-filter-btn:hover,
.gallery-filter-btn.active {
  color: var(--white-color);
  border-color: var(--main-color);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(191, 140, 76, 0.2);
}

.gallery-filter-btn:hover::before,
.gallery-filter-btn.active::before {
  left: 0;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
  position: relative;
}

@media (min-width: 1200px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 576px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

/* Gallery Item */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  background: var(--white-color);
  height: 320px;
  opacity: 1;
  transform: scale(1);
  animation: galleryItemAppear 0.6s ease forwards;
}

.gallery-item.hidden {
  display: none;
  animation: none;
}

.gallery-item.fade-out {
  animation: galleryItemDisappear 0.4s ease forwards;
}

@keyframes galleryItemAppear {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes galleryItemDisappear {
  from {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
  to {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }
}

.gallery-item:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
  display: block;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* Category Badge */
.gallery-category {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--main-color);
  color: var(--white-color);
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  border-radius: 6px;
  z-index: 3;
  box-shadow: 0 4px 12px rgba(191, 140, 76, 0.3);
  transition: all 0.3s ease;
}

.gallery-item:hover .gallery-category {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(191, 140, 76, 0.4);
}

/* Overlay Effect */
.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(35, 35, 35, 0) 0%,
    rgba(35, 35, 35, 0.85) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  opacity: 0;
  transition: opacity 0.5s ease;
  border-radius: 12px;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* Content Styling */
.gallery-content {
  transform: translateY(20px);
  transition: transform 0.5s ease 0.1s;
}

.gallery-item:hover .gallery-content {
  transform: translateY(0);
}

.gallery-content h3 {
  color: var(--white-color);
  font-family: "Poppins", serif;
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.3;
}

.gallery-content p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 20px;
  max-width: 90%;
}

/* View Button */
.gallery-view-btn {
  display: inline-flex;
  align-items: center;
  color: var(--white-color);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 10px 0;
  border-bottom: 2px solid var(--main-color);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.gallery-view-btn::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: var(--white-color);
  transition: left 0.4s ease;
}

.gallery-view-btn:hover {
  color: var(--main-color);
}

.gallery-view-btn:hover::before {
  left: 0;
}

.gallery-view-btn i {
  margin-left: 10px;
  transition: transform 0.3s ease;
}

.gallery-view-btn:hover i {
  transform: translateX(5px);
}

/* Gallery Button (Load More) */
.gallery-button {
  padding-top: 40px;
  text-align: center;
  position: relative;
}

.gallery-button::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.gallery-button .secondary-btn {
  font-size: 15px;
  letter-spacing: 2px;
  padding: 16px 48px;
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  color: var(--white-color);
  border-radius: 6px;
  text-transform: uppercase;
  font-weight: 600;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.gallery-button .secondary-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--main-color);
  transition: left 0.4s ease;
  z-index: -1;
}

.gallery-button .secondary-btn:hover {
  border-color: var(--main-color);
  color: var(--white-color);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(191, 140, 76, 0.3);
}

.gallery-button .secondary-btn:hover::before {
  left: 0;
}

/* Animation for items */
.gallery-item:nth-child(1) { animation-delay: 0.1s; }
.gallery-item:nth-child(2) { animation-delay: 0.2s; }
.gallery-item:nth-child(3) { animation-delay: 0.3s; }
.gallery-item:nth-child(4) { animation-delay: 0.4s; }
.gallery-item:nth-child(5) { animation-delay: 0.5s; }
.gallery-item:nth-child(6) { animation-delay: 0.6s; }
.gallery-item:nth-child(7) { animation-delay: 0.7s; }
.gallery-item:nth-child(8) { animation-delay: 0.8s; }
.gallery-item:nth-child(9) { animation-delay: 0.9s; }
.gallery-item:nth-child(10) { animation-delay: 1s; }
.gallery-item:nth-child(11) { animation-delay: 1.1s; }
.gallery-item:nth-child(12) { animation-delay: 1.2s; }

/* Responsive adjustments */
@media (max-width: 992px) {
  .gallery-item {
    height: 280px;
  }
  
  .gallery-content h3 {
    font-size: 20px;
  }
  
  .gallery-content p {
    font-size: 14px;
  }
  
  .gallery-filter-btn {
    padding: 10px 20px;
    font-size: 13px;
    margin-bottom: 5px;
  }
}

@media (max-width: 768px) {
  .gallery-item {
    height: 250px;
  }
  
  .gallery-overlay {
    padding: 20px;
  }
  
  .gallery-content h3 {
    font-size: 18px;
    margin-bottom: 8px;
  }
  
  .gallery-content p {
    font-size: 13px;
    margin-bottom: 15px;
  }
  
  .gallery-category {
    top: 15px;
    right: 15px;
    padding: 8px 14px;
    font-size: 12px;
  }
  
  .gallery-button .secondary-btn {
    padding: 14px 35px;
    font-size: 14px;
  }
}

@media (max-width: 576px) {
  .gallery-item {
    height: 220px;
  }
  
  .gallery-grid {
    gap: 15px;
  }
  
  .gallery-filter {
    margin-bottom: 30px;
  }
  
  .gallery-filter-btn {
    padding: 8px 16px;
    font-size: 12px;
    letter-spacing: 1px;
  }
}
/* Types */
.types .type-item {
  background-size: cover;
  p {
    font-size: 1.8rem;
    line-height: 2.5rem;
    margin-bottom: 20px;
    font-weight: 600 !important;
  }
  i {
    font-size: 28px;
    color: #b7b7b7;
  }
}

.types .type-item {
  position: relative;
  overflow: hidden;
}

.types .type-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform var(--animation-duration);
  z-index: 0;
}

.types .item-one::before {
  background-image: url(../imgs/home-decor-img-18.jpg);
}

.types .item-two::before {
  background-image: url(../imgs/home-decor-img-17.jpg);
}

.types .item-three::before {
  background-image: url(../imgs/home-decor-img-19.jpg);
}

.types .item-four::before {
  background-image: url(../imgs/home-decor-img-20.jpg);
}

.types .type-item:hover::before {
  transform: scale(1.1);
}

.types .type-content {
  position: relative;
  z-index: 1;
  background-color: var(--white-color);
  transition: all var(--animation-duration);
}

.types .type-item:hover .type-content {
  background-color: transparent;
}

.types .type-item:hover .type-content * {
  color: var(--white-color);
}

/* Home decor */
.home-decor .col-lg-4,
.home-decor .col-md-6 {
  padding: 0 !important;
}
.home-decor .card {
  width: 90%;
  border: none;
  --bs-card-border-width: 0;
  box-shadow: 0.1875rem 0.1875rem 0.9375rem 0 rgba(0, 0, 0, 0.1);
  img {
    transition: transform var(--animation-duration);
  }
}

.home-decor .card:hover img {
  transform: scale(1.1);
}
.home-decor .card .card-footer {
  padding: 15px 30px;
  background-color: var(--white-color);
}
.home-decor .card .card-footer .head-decor-date h6,
.home-decor .card .card-footer .head-decor-icon span {
  transition: all var(--animation-duration);
}
.home-decor .card .card-footer .head-decor-icon span:hover,
.home-decor .card .card-footer .head-decor-date h6:hover {
  color: var(--main-color);
}

.home-decor .middle-img .middle-div {
  position: absolute;
  left: 0;
  bottom: 0px;
  background-color: var(--white-color);
  padding: 13px 25px;
  line-height: 13px;
  font-weight: 500;
  font-size: 13px;
  z-index: 7;
  a {
    color: var(--main-color);
    transition: color var(--animation-duration);
  }
  a:hover {
    color: var(--secondary-color);
  }
}

.home-decor .middle-img {
  overflow: hidden;
}
.home-decor .card-body {
  padding-left: 2.5rem;
  padding-right: 2.5rem;
  background-color: var(--white-color);
  h5 {
    font-size: 16px;
    line-height: 28px;
    font-weight: 500;
    margin-bottom: 15px;
    transition: color var(--animation-duration);
    &:hover {
      color: var(--main-color);
    }
  }
  p {
    line-height: 26px;
    font-size: 15px;
    color: var(--body-color);
  }
}

/* Footer */
.footer {
  background-color: var(--secondary-color);
  .social-icons a {
    color: var(--white-color);
  }
  .footer-bottom img {
    width: 120px;
    max-height: 60px;
  }
}
.footer a {
  color: var(--body-color);
  transition: color var(--animation-duration);
}
.footer a:hover {
  color: var(--main-color);
}

/* =====================================
   CLIENT CARDS – RESPONSIVE FIX
   ===================================== */

/* Card base */
.client-card{
  background:#fff;
  border:1px solid var(--border-color);
  border-radius:14px;
  overflow:hidden;
  transition:0.3s ease;
  height:100%;
  display:flex;
  flex-direction:column;
}

.client-card:hover{
  transform:translateY(-6px);
  box-shadow:0 10px 25px rgba(0,0,0,0.08);
}

/* Header */
.client-header{
  padding:18px 20px;
  background:#f9f6f3;
}

.client-title{
  font-size:18px;
  font-weight:600;
  margin-bottom:4px;
  color:var(--secondary-color);
}

.client-product{
  font-size:13px;
  color:var(--main-color);
  font-weight:600;
}

/* Media (image/video same size) */
.client-media{
  width:100%;
  height:260px;
  overflow:hidden;
}

.client-media img,
.client-media video{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* Info */
.client-info{
  padding:18px 20px;
  font-size:14px;
  flex-grow:1;
}

.client-description{
  font-size:13px;
  line-height:1.6;
  margin-top:10px;
}

/* =====================================
   MOBILE RESPONSIVE
   ===================================== */

@media (max-width: 992px){

  .client-media{
    height:220px;
  }

}

@media (max-width: 768px){

  /* 1 card per row */
  .col-lg-4.col-md-6{
    width:100% !important;
    flex:0 0 100% !important;
  }

  .client-media{
    height:200px;
  }

  .client-title{
    font-size:16px;
  }

  .client-info{
    padding:15px;
  }

}

@media (max-width: 480px){

  .client-media{
    height:180px;
  }

  .client-title{
    font-size:15px;
  }

  .client-product{
    font-size:12px;
  }

  .client-description{
    font-size:12px;
  }

}


