body {
  margin: 0;
  font-family: "abc-repro", sans-serif;
}

/* Header */
header {
  background: transparent;
  z-index: 1000;
  width: 100%;
 
}

/* Logo behavior */
#logo {
  transition: all 0.4s ease;
}
#logo.hidden {
  opacity: 0;
  transform: translateY(-10px);
}
#logo.small {
  transform: scale(0.95);
  opacity: 1;
}

/* Right menu background */
.menu-container {
  background-color: #F4E4C5;
  /* border: 1px solid #7f011e;*/
  
}

/* Bounce animation */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-5px); }
  60% { transform: translateY(-3px); }
}

/* Menu links */
.nav-link {
  color: #4b000b !important;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  transition: 0.3s;
}
.nav-link:hover {
  color: #800020 !important;
  animation: bounce 0.6s;
}

/* Contact button */
.contact-btn {
  background-color: #800020;
  color: #f8eddc !important;
  padding: 6px 18px;
  border-radius: 6px;
  transition: 0.3s;
}
.contact-btn:hover {
  background-color: #a83246;
  animation: bounce 0.6s;
}

/* --- MOBILE MENU --- */
.navbar-toggler {
  border: none;
  background: transparent !important;
  filter: invert(25%);
}

/* Hamburger icon styling (black lines) */
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(0,0,0,0.8)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 75%;
  height: 100vh;
  background-color: #F4E4C5;
  transition: right 0.4s ease;
  z-index: 2000;
  padding: 2rem;
}
.mobile-menu.active {
  right: 0;
}
.mobile-menu .close-btn {
  font-size: 2rem;
  cursor: pointer;
  text-align: right;
  margin-bottom: 1.5rem;
  color: #800020;
}
.mobile-menu ul {
  list-style: none;
  padding: 0;
}
.mobile-menu ul li {
  margin-bottom: 1rem;
}
.mobile-menu ul li a {
  color: #4b000b;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}
.mobile-menu ul li a:hover {
  color: #800020;
  animation: bounce 0.6s;
}

/*About US*/


/* SECTION TITLE */
.section-title {
  font-size: 4rem;
  font-weight: 700;
  color: #7F011E;
  position: relative;
  display: inline-block;
  font-family: "Awesome Serif", serif;
  transition: transform 0.3s ease-in-out;
  margin-bottom: 8px;
}

.section-title::after {
  content: "";
  width: 15px;
  height: 15px;
  background-color: #800020;
  display: inline-block;
  margin-left: 8px;
  vertical-align: middle;
}

@keyframes bounceHover {
  0% { transform: translateY(0); }
  30% { transform: translateY(-20px); }
  50% { transform: translateY(0); }
  70% { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}

.section-title:hover {
  animation: bounceHover 0.8s ease-in-out;
  transform: scale(1.05);
}

/* ABOUT TEXT */
.about-text {
  max-width: 860px;
  margin: 20px auto 40px auto;
  text-align: center;
  font-family: "ABC Repro";
  font-size: 20px;
  font-weight: 400;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.3s, transform 0.3s;
  padding: 0 20px; /* Added left-right spacing */
}

/* ABOUT IMAGE */
.about-image {
  overflow: hidden;
  border-radius: 12px;
  transform-origin: center center;
  transform: scale(1);
  transition: transform 0.3s, opacity 0.3s;
  margin-top: 60px;
}

.about-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

/* SECTION BASE */
section#about-section {
  position: relative;
  overflow: hidden;
  /*min-height: 100vh;*/
  padding-bottom: 40px;
}

/* RESPONSIVE FIXES */
@media (max-width: 768px) {
  .section-title {
    font-size: 2.2rem;
    margin-bottom: 10px;
  }

  .about-text {
    font-size: 16px;
    padding: 0 18px; /* more spacing for mobile */
  }

  .about-image {
    margin-top: 40px;
    padding: 0 18px; /* Add space on left-right for image */
  }
}


/* Project cards*/


/* Container padding */
section#projects .container-fluid {
  padding-left: 120px;
  padding-right: 120px;
}

/* ---- Filter Buttons ---- */
.filter-btns {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: center;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  padding-bottom: 5px;
}

.filter-btns::-webkit-scrollbar {
  display: none;
}

.filter-btns .btn {
  border: none;
  background: none;
  color: #444;
  font-weight: 500;
  margin-right: 20px;
  position: relative;
  padding: 0;
  transition: color 0.2s ease;
}

.filter-btns .btn.active,
.filter-btns .btn:hover {
  color: #000;
}

.filter-btns .btn.active::after,
.filter-btns .btn:hover::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #000;
}

/* ---- Project Grid ---- */
/*
.project-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start; 
  gap: 24px; 
}
*/
.project-grid {
  margin-top: 20px;
}

/* ---- Project Card ---- */
.project-card {
  position: relative;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  height: 420px;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  padding: 0;
  margin-bottom: 20px;

  /*flex: 0 0 calc(33.333% - 16px); *//* ensures 3 per row even with gaps */
}
/*
.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}  */

/* Hover zoom effect */
.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover img {
  transform: scale(1.08);
  filter: brightness(1.05);
}

/* Info Overlay */
.project-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: #f8eddc;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: "Awesome Serif", serif;
  padding: 12px 20px;
}

.project-info h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #000;
  margin: 0;
}

.project-info p {
  font-size: 0.9rem;
  color: #555;
  margin: 0;
}
.project-link {
  text-decoration: none;
  color: inherit;
  display: block;
}


/* ---- Responsive Fix ---- */
@media (max-width: 991px) {
  section#projects .container-fluid {
    padding-left: 40px;
    padding-right: 40px;
  }

  .project-card {
    flex: 0 0 calc(50% - 16px); /* 2 cards per row */
    height: 360px;
  }
}

@media (max-width: 767px) {
  /* Always keep filter left */
  .filter-btns {
    justify-content: flex-start !important;
    text-align: left;
  }

  /* Add proper side spacing on mobile */
  section#projects .container-fluid {
    padding-left: 40px !important;
    padding-right: 40px !important;
  }

  /* Make card full-width but balanced */
  .project-card {
    flex: 0 0 calc(100% - 0px); /* takes full width minus side padding */
    max-width: 100%;
    height: 340px; /* slightly taller to look better */
  }

  /* Keep cards aligned left */
  .project-grid {
    justify-content: flex-start;
  }
}






/*Project cards end*/

/*Footer*/

body {
  background-color: #f8eddc;
  font-family: 'ABC Repro', sans-serif !important;
  color: #3a2a2a;
}

.footer-section {
  background-color: #f8eddc;
}

.footer-line {
  width: 60%;
  border-top: 1px solid #3a2a2a;
  opacity: 0.6;
  margin-top: 15px;
}

/* Quote */
.footer-quote {
  font-family: 'Awesome Serif', serif;
  font-size: 1.6rem;
  color: #8b0000;
  line-height: 1.6;
  opacity: 0;
  max-width: 750px;
  margin: 0 auto;
  text-align: center;
  transition: opacity 0.5s ease-in-out;
  white-space: normal;
}

/* Hover Links */
.footer-link {
  color: #3a2a2a;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  font-family: 'ABC Repro', sans-serif;
}

.footer-link:hover {
  color: #a10000;
  transform: translateY(-2px);
}

/* Button */
.btn-danger {
  background-color: #a10000;
  border: none;
  transition: 0.3s ease;
}

.btn-danger:hover {
  background-color: #7a0000;
}

/* Footer Layout */
.footer-section .row {
  text-align: center;
}

.footer-section .row > .col-lg-4 {
  text-align: left; /* only the left column */
}
/* Add this at the bottom of your CSS */
.footer-section h5 {
  font-family: 'Awesome Serif', serif;
  font-weight: 600;
  color: #8b0000;
  letter-spacing: 0.5px;
}

@media (min-width: 768px) {
  .footer-section .row .col-lg-3,
  .footer-section .row .col-lg-4 {
    text-align: left !important; /* desktop */
  }
}



/* Responsive */
@media (max-width: 768px) {
  .footer-section {
    text-align: center;
    padding: 50px 25px;
  }

  .footer-quote {
    font-size: 1.25rem;
    margin: 30px 10px;
    max-width: 90%;
  }

  .footer-section .row > .col-lg-4 {
    text-align: center; /* center again on mobile */
  }

  .footer-line {
    width: 85%;
  }
}
