/************************************
  COLOR VARIABLES
************************************/
:root {
    --bs-primary: #0f5132;
    --bs-secondary: #6b7280;
    --bs-light: #f9fafb;
    --bs-dark: #1f2937;
    --bs-white: #ffffff;
}

/************************************
  GLOBAL
************************************/
body { color: var(--bs-dark); }


.h1, .h2, .h3, .h4, .h5, .h6 {
    color: var(--bs-dark);
}

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

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

/************************************
  SPINNER
************************************/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility .5s;
    z-index: 99999;
}

#spinner.show {
    opacity: 1;
    visibility: visible;
}

/************************************
  BUTTONS
************************************/
.btn {
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    background: #0c4228;
    border-color: #0c4228;
}

.btn-outline-primary {
    border-color: var(--bs-primary);
    color: var(--bs-primary);
}

.btn-outline-primary:hover {
    background: var(--bs-primary);
    color: var(--bs-white);
}

/* Square buttons */
.btn-square,
.btn-sm-square,
.btn-lg-square,
.btn-xl-square,
.btn-xxl-square {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.btn-square { width: 38px; height: 38px; }
.btn-sm-square { width: 32px; height: 32px; }
.btn-lg-square { width: 48px; height: 48px; }
.btn-xl-square { width: 60px; height: 60px; }
.btn-xxl-square { width: 75px; height: 75px; }

/************************************
  BACK TO TOP
************************************/
.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bs-primary);
    color: var(--bs-white);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99;
    transition: 0.3s;
}

.back-to-top:hover {
    background: #0c4228;
}

/************************************
  NAVBAR (FIXED)
************************************/
.sticky-top {
    position: sticky;
    top: 0;
    z-index: 1050;
    transition: 0.5s;
}

.navbar {
    background: var(--bs-white);
    box-shadow: 0 2px 20px rgba(15,81,50,0.1);
}

.navbar .nav-link {
    font-weight: 600;
    text-transform: uppercase;
    padding: 20px 0;
    margin-right: 30px;
    color: var(--bs-dark);
}

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

/* Mobile Navbar */
@media (max-width: 991.98px) {
    .navbar .nav-link {
        margin-right: 0;
        padding: 12px 0;
    }

    .navbar-collapse {
        background: #ffffff;
        padding: 15px 0;
        border-top: 1px solid #e5e7eb;
    }
}

/************************************
  ABOUT
************************************/
.about-img {
    position: relative;
    padding-left: 45px;
}

.about-img::before {
    content: "";
    position: absolute;
    width: 200px;
    height: 300px;
    border: 5px solid var(--bs-primary);
    top: -25px;
    left: 0;
    z-index: -1;
    animation: animateUpDown 3s ease-in-out infinite;
}

@keyframes animateUpDown {
    0% { top: -25px; }
    50% { top: -45px; }
    100% { top: -25px; }
}

/************************************
  FEATURES – CARD STRUCTURE
************************************/

/* SECTION BACKGROUND */
.feature {
  background: linear-gradient(
    90deg,
    rgba(15, 81, 50, 0.95),
    rgba(31, 41, 55, 0.95)
  );
}

/* CARD */
.feature-card {
  background: var(--bs-white);
  border-radius: 18px;
  height: 100%;
  border: 1px solid rgba(15, 81, 50, 0.08);
  transition: all 0.35s ease;
  box-shadow: none;
}

/* CARD BODY */
.feature-card .card-body {
  padding: 3rem 2.25rem;
  display: flex;
  flex-direction: column;
}

/* HOVER */
.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 55px rgba(15, 81, 50, 0.15);
}

/* ICON */
.feature-icon {
  width: 75px;
  height: 75px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: transform 0.35s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.08);
}

/* TITLE */
.feature-card h5 {
  font-weight: 700;
  color: #0f5132;
  letter-spacing: 0.8px;
  margin-bottom: 0.75rem;
}

/* TEXT */
.feature-card p {
  font-size: 15px;
  line-height: 1.7;
  color: #4b5563;
  margin-bottom: 0;
}

/* MOBILE */
@media (max-width: 768px) {
  .feature-card .card-body {
    text-align: center;
    padding: 2.5rem 2rem;
  }

  .feature-icon {
    margin: 0 auto 1.5rem;
  }
}


/************************************
  SERVICES
************************************/
.service .service-inner {
    background: var(--bs-white);
    border-radius: 12px;
    box-shadow: 0 0 45px rgba(15,81,50,0.05);
    overflow: hidden;
    position: relative;
}

.service .service-inner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--bs-primary), rgba(15,81,50,0.9));
    height: 0;
    transition: 0.8s;
}

.service .service-inner:hover::before {
    height: 100%;
}

.service .service-item * {
    position: relative;
    z-index: 1;
    transition: 0.3s;
}

.service .service-inner:hover h5,
.service .service-inner:hover p {
    color: var(--bs-white);
}

/* SERVICE CARD IMAGE FIX */
.service-item {
  height: 100%;
}

.service-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* IMAGE WRAPPER */
.service-inner img {
  width: 100%;
  height: 220px;              /* FIXED HEIGHT */
  object-fit: cover;          /* CROPS IMAGE, NO DISTORTION */
  object-position: center;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

/* TEXT AREA */
.service-text {
  flex-grow: 1;
}

/* BUTTON ALIGNMENT */
.service-inner a.btn {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
}

/************************************
  CTA
************************************/
.cta-section {
    background: linear-gradient(
        135deg,
        #0f5132,
        #0c4228,
        #1f2937
    );
}

.cta-box {
    background: rgba(255,255,255,0.95);
    border-radius: 20px;
    padding: 60px 40px;
    box-shadow: 0 30px 60px rgba(15,81,50,0.25);
}

/************************************
  FOOTER
************************************/
.footer {
    background: var(--bs-dark);
    color: var(--bs-light);
}

.footer a {
    color: #cbd5e1;
    text-decoration: none;
    transition: 0.3s;
}

.footer a:hover {
    color: var(--bs-primary);
}

.copyright {
    background: #111827;
    color: #9ca3af;
}





/* ================= SECTION SPACING SYSTEM ================= */

/* Default large section gap */
.section-gap {
    padding-top: 100px;
    padding-bottom: 100px;
}

/* Medium gap */
.section-gap-md {
    padding-top: 80px;
    padding-bottom: 80px;
}

/* Small gap */
.section-gap-sm {
    padding-top: 60px;
    padding-bottom: 60px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .section-gap {
        padding-top: 70px;
        padding-bottom: 70px;
    }

    .section-gap-md {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .section-gap-sm {
        padding-top: 50px;
        padding-bottom: 50px;
    }
}




/* Section headings spacing */
.section-title,
.container > .text-center {
    margin-bottom: 60px;
}

@media (max-width: 768px) {
    .section-title,
    .container > .text-center {
        margin-bottom: 40px;
    }
}





/* ================= ENQUIRY SECTION FIX ================= */

.enquiry-section {
    background: linear-gradient(
        135deg,
        #0f5132 0%,
        #0c4228 60%,
        #1f2937 100%
    );
}

/* Layout control */
.enquiry-layout {
    min-height: 520px;
}

/* LEFT CONTENT */
.enquiry-section .col-lg-6:first-child {
    padding-right: 60px;
}

/* Headline */
.enquiry-section h1 {
    line-height: 1.2;
    margin-bottom: 24px;
}

/* Description */
.enquiry-section p {
    max-width: 520px;
    opacity: 0.95;
}

/* Icon rows */
.enquiry-section .d-flex.align-items-start {
    gap: 18px;
}

/* Icon box */
.enquiry-section .btn-lg-square {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* RIGHT FORM CARD */
.enquiry-section .bg-white {
    border-radius: 18px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.18);
}

/* FORM TITLE */
.enquiry-section h3 {
    font-weight: 800;
    letter-spacing: 1px;
}

/* SUBMIT BUTTON */
.enquiry-section button {
    font-size: 16px;
    letter-spacing: 0.8px;
}

/* ================= MOBILE FIX ================= */
@media (max-width: 991px) {

    .enquiry-layout {
        min-height: auto;
    }

    .enquiry-section .col-lg-6:first-child {
        padding-right: 12px;
        text-align: center;
    }

    .enquiry-section p {
        margin-left: auto;
        margin-right: auto;
    }

    .enquiry-section .d-flex.align-items-start {
        justify-content: center;
        text-align: left;
    }
}


/* Consistent section header spacing */
.container > .text-center {
    margin-bottom: 60px;
}

@media (max-width: 768px) {
    .container > .text-center {
        margin-bottom: 40px;
    }
}












/* ================= COMPACT MAP FIX ================= */

.compact-map-section {
    background: #f8fafc;
}

/* Map card */
.map-card {
    width: 100%;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
}

/* Map iframe */
.map-card iframe {
    width: 100%;
    height: 420px;              /* desktop height */
    border: 0;
    display: block;
}

/* Tablet */
@media (max-width: 991px) {
    .map-card iframe {
        height: 340px;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .map-card iframe {
        height: 260px;
    }
}



/* ================= HERO SLIDER ================= */

.custom-hero-slider {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 100svh;          /* mobile safe */
  overflow: hidden;
}

/* TRACK */
.slider-track {
  display: flex;
  height: 100%;
  transition: transform 0.8s ease-in-out;
}

/* SLIDE */
.slide {
  min-width: 100%;
  height: 100%;
  position: relative;
}

/* IMAGE */
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(34, 139, 90, 0.45),
    rgba(34, 139, 90, 0.25)
  );
  z-index: 1;
}


/* CONTENT */
.slide-content {
  position: absolute;
  inset: 0;
  z-index: 2;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;

  padding: 0 12%;
  color: #ffffff;
}

.slide-content h1 {
  font-size: clamp(34px, 4vw, 60px);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.15;
}

.slide-content p {
  font-size: 17px;
  margin: 20px 0;
  max-width: 620px;
}

.slide-content .btn {
  padding: 12px 32px;
  width: fit-content;
}
/* NAV CONTAINER */
.slider-nav {
  position: absolute;
  bottom: 40px;              /* below content */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 18px;                 /* space between buttons */
  z-index: 10;
}

/* NAV BUTTON */
.nav-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #0f5132;            /* bottle green */
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
  transition: all 0.3s ease;
}

/* HOVER EFFECT */
.nav-btn:hover {
  background: #0f5132;
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.35);
}

/* ACTIVE CLICK */
.nav-btn:active {
  transform: scale(0.95);
}

/* MOBILE TUNING */
@media (max-width: 768px) {
  .slider-nav {
    bottom: 25px;
  }

  .nav-btn {
    width: 42px;
    height: 42px;
    font-size: 20px;
  }
}

/* DOTS */
.slider-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
}

.slider-dots span {
  width: 12px;
  height: 12px;
  background: #cbd5e1;
  border-radius: 50%;
  margin: 0 6px;
  cursor: pointer;
}

.slider-dots .active {
  background: #22c55e;
}

/* ================= MOBILE ================= */
@media (max-width: 991px) {

  .custom-hero-slider {
    height: 100dvh;           /* address-bar safe */
  }

  .slide-content {
    padding: 0 20px;
    align-items: center;
    text-align: center;
  }

  .slide-content h1 {
    font-size: clamp(26px, 6vw, 34px);
  }

  .slide-content p {
    font-size: 14px;
    max-width: 90%;
  }

  .slide-content .btn {
    font-size: 14px;
    padding: 10px 26px;
  }

  .nav-btn {
    display: none;
  }
}

@media (max-width: 576px) {

  .slide-content h1 {
    font-size: 60px;
  }

  .slide-content p {
    font-size: 28px;
  }
}




/* ICON BOX */
.btn-lg-square {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* =========================
   MOBILE FIX
========================= */
@media (max-width: 768px) {

  /* Left section center */
  .enquiry-section .col-lg-6.text-white {
    text-align: center;
  }

  /* Each info row */
  .enquiry-section .d-flex.align-items-start {
    flex-direction: column;
    align-items: center !important;
    text-align: center;
  }

  .enquiry-section .btn-lg-square {
    margin: 0 0 10px 0 !important;
  }

  .enquiry-section h6 {
    font-size: 15px;
  }

  .enquiry-section span,
  .enquiry-section a {
    font-size: 14px;
    line-height: 1.6;
  }
}




/* TESTIMONIAL IMAGE FIX */
.testimonial-card img {
  width: 60px;
  height: 60px;
  object-fit: cover;        /* prevents stretching */
  object-position: center;
  border-radius: 50%;       /* perfect circle */
  flex-shrink: 0;
}



/* FEATURE CARD GAP FIX */
.feature-row {
  row-gap: 30px;      /* vertical gap */
}

@media (min-width: 992px) {
  .feature-row {
    column-gap: 24px; /* horizontal gap on desktop */
  }
}

/* FORCE FEATURES IN ONE LINE */
.feature-row {
  display: flex;
  flex-wrap: nowrap;          /* 🔑 prevents wrapping */
  gap: 24px;                  /* clean spacing */
}

/* EACH CARD WIDTH */
.feature-row > div {
  flex: 0 0 25%;              /* 4 cards = 25% each */
  max-width: 25%;
}

@media (max-width: 991px) {
  .feature-row {
    flex-wrap: wrap;          /* allow wrap on tablet/mobile */
  }

  .feature-row > div {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (max-width: 575px) {
  .feature-row > div {
    flex: 0 0 100%;
    max-width: 100%;
  }
}


/* ================= FEATURE ICON EFFECTS ================= */

/* ICON BASE */
.feature-icon {
  transition: 
    transform 0.4s ease,
    box-shadow 0.4s ease;
}

/* ICON HOVER */
.feature-item:hover .feature-icon {
  transform: translateY(-6px) rotate(4deg) scale(1.08);
  box-shadow: 0 15px 35px rgba(15, 81, 50, 0.35);
}

/* ICON INNER */
.feature-icon i {
  transition: transform 0.4s ease;
}

/* ICON INNER HOVER */
.feature-item:hover .feature-icon i {
  transform: scale(1.1);
}


/* ================= FOOTER BOTTOM ================= */

.footer-bottom {
  background-color: var(--bs-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px 0;
  font-size: 14px;
}

/* CENTER EVERYTHING */
.footer-inner {
  display: flex;
  align-items: center;           /* vertical center */
  justify-content: center;       /* horizontal center */
  text-align: center;
  gap: 6px;
  flex-wrap: wrap;               /* safe wrapping on small screens */
}

.footer-left,
.footer-right {
  color: var(--bs-light);
  line-height: 1.4;
}

/* DEV LINK */
.dev-link {
  color: var(--bs-primary);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.dev-link:hover {
  color: var(--bs-white);
}

/* HEART ICON */
.heart {
  color: #e63946;
  margin: 0 3px;
}

/* ================= MOBILE FIX ================= */
@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    gap: 4px;
  }
}
/************************************
  PORTFOLIO HERO
************************************/

.portfolio-hero {
    position: relative;
    padding: 120px 0 100px;
    background: linear-gradient(
        135deg,
        #0f5132 0%,
        #0c4228 55%,
        #1f2937 100%
    );
    color: var(--bs-white);
    overflow: hidden;
}

/* Subtle industrial overlay */
.portfolio-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at top right,
        rgba(255,255,255,0.08),
        transparent 60%
    );
}

/* Content */
.portfolio-hero-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
    margin: 0 auto;
}

.portfolio-hero h1 {
    font-size: clamp(34px, 4vw, 52px);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 18px;
    color: var(--bs-white);
}

.portfolio-hero p {
    font-size: 17px;
    line-height: 1.7;
    opacity: 0.95;
    margin-bottom: 26px;
}

/* Breadcrumb */
.portfolio-breadcrumb {
    font-size: 14px;
    letter-spacing: 0.5px;
}

.portfolio-breadcrumb a {
    color: #d1fae5;
    text-decoration: none;
    font-weight: 600;
}

.portfolio-breadcrumb span {
    margin: 0 6px;
    color: #bbf7d0;
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {
    .portfolio-hero {
        padding: 90px 0 80px;
    }

    .portfolio-hero p {
        font-size: 15px;
    }
}
/************************************
  PORTFOLIO SECTION
************************************/

/* FILTER */
.portfolio-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 50px;
}

.portfolio-filter button {
    padding: 10px 22px;
    border-radius: 999px;
    border: 1px solid var(--bs-primary);
    background: transparent;
    color: var(--bs-primary);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.portfolio-filter button.active,
.portfolio-filter button:hover {
    background: var(--bs-primary);
    color: var(--bs-white);
}

/* CARD */
.portfolio-item {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 18px 40px rgba(0,0,0,0.15);
    transition: transform 0.4s ease;
}

.portfolio-item:hover {
    transform: translateY(-8px);
}

/* IMAGE */
.portfolio-item img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.portfolio-item:hover img {
    transform: scale(1.08);
}

/* OVERLAY */
.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(15,81,50,0.15),
        rgba(15,81,50,0.95)
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 22px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.portfolio-overlay h5 {
    color: var(--bs-white);
    font-weight: 700;
    margin-bottom: 4px;
}

.portfolio-overlay span {
    font-size: 13px;
    color: #d1fae5;
    font-weight: 500;
}

/* MOBILE */
@media (max-width: 576px) {
    .portfolio-item img {
        height: 220px;
    }
}
/************************************
  PORTFOLIO LIGHTBOX
************************************/

.portfolio-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(15, 81, 50, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
    z-index: 99999;
}

.portfolio-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.portfolio-lightbox img {
    max-width: 90%;
    max-height: 85vh;
    border-radius: 14px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.45);
    animation: zoomIn 0.35s ease;
}

/* Close button */
.lightbox-close {
    position: absolute;
    top: 25px;
    right: 35px;
    font-size: 42px;
    color: #ffffff;
    cursor: pointer;
    font-weight: 300;
    transition: transform 0.2s ease;
}

.lightbox-close:hover {
    transform: scale(1.1);
}

/* Animation */
@keyframes zoomIn {
    from {
        transform: scale(0.85);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* MOBILE */
@media (max-width: 576px) {
    .lightbox-close {
        top: 15px;
        right: 20px;
        font-size: 34px;
    }
}
/************************************
  PORTFOLIO FILTER – VISIBILITY FIX
************************************/

/* Toggle button – hidden by default (DESKTOP FIRST) */
.portfolio-filter-toggle {
    display: none;
}

/* ================= MOBILE ONLY ================= */
@media (max-width: 991px) {

    /* Show toggle button */
    .portfolio-filter-toggle {
        display: flex;
        width: 100%;
        max-width: 280px;
        margin: 0 auto 16px;
        padding: 12px 20px;
        border-radius: 12px;
        border: 1px solid var(--bs-primary);
        background: var(--bs-primary);
        color: var(--bs-white);
        font-weight: 600;
        font-size: 15px;
        cursor: pointer;
        align-items: center;
        justify-content: space-between;
    }

    /* Hide filters by default on mobile */
    .portfolio-filter {
        display: none;
        flex-direction: column;
        gap: 10px;
        padding: 16px;
        background: var(--bs-white);
        border-radius: 14px;
        box-shadow: 0 20px 45px rgba(15,81,50,0.15);
        max-width: 280px;
        margin: 0 auto;
    }

    /* Show when toggled */
    .portfolio-filter.show {
        display: flex;
    }

    /* Full-width buttons on mobile */
    .portfolio-filter button {
        width: 100%;
        justify-content: center;
    }

    /* Arrow rotation */
    .portfolio-filter-toggle.active .arrow {
        transform: rotate(180deg);
    }
}

/* ================= DESKTOP ================= */
@media (min-width: 992px) {

    /* Always show filters */
    .portfolio-filter {
        display: flex !important;
        justify-content: center;
    }
}
/************************************
  PORTFOLIO – PROFESSIONAL
************************************/

/* ===============================
   PORTFOLIO GRID – GAP FIX
================================ */

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    align-items: stretch;
}


/* ITEM */
.portfolio-item {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: #000;
    cursor: pointer;
    box-shadow: 0 18px 40px rgba(0,0,0,0.15);
    transition: transform .4s ease, opacity .35s ease;
}

.portfolio-item:hover {
    transform: translateY(-8px);
}

/* IMAGE */
.portfolio-item img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    transition: transform .6s ease;
    user-select: none;
    -webkit-user-drag: none;
}

.portfolio-item:hover img {
    transform: scale(1.08);
}

/* BADGE */
.portfolio-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--bs-primary);
    color: #fff;
    font-size: 12px;
    padding: 5px 14px;
    border-radius: 999px;
    font-weight: 600;
    z-index: 2;
}

/* OVERLAY */
.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(15,81,50,0.15),
        rgba(15,81,50,0.95)
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 22px;
    opacity: 0;
    transition: opacity .35s ease;
}

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

.portfolio-overlay h5 {
    color: #fff;
    font-weight: 700;
}

.portfolio-overlay span {
    color: #d1fae5;
    font-size: 13px;
}

/* FILTER STATES */
.portfolio-item.hide {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
    display: none; /* 🔑 KEY FIX */
}

.portfolio-item.show {
    opacity: 1;
    transform: scale(1);
    display: block;
}

/************************************
  PORTFOLIO LIGHTBOX – PRO
************************************/

.portfolio-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s ease, visibility .35s ease;
    z-index: 99999;
}

.portfolio-lightbox.active {
    opacity: 1;
    visibility: visible;
}

/* Content wrapper */
.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 85vh;
    animation: lightboxZoom .4s ease;
}

/* Image */
.lightbox-content img {
    width: auto;
    max-width: 100%;
    max-height: 70vh;
    border-radius: 16px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.6);
    display: block;
    margin: 0 auto;
}

/* Info */
.lightbox-info {
    margin-top: 14px;
    text-align: center;
    color: #e5e7eb;
}

.lightbox-info h4 {
    margin: 0;
    font-weight: 700;
    font-size: 18px;
}

.lightbox-info span {
    font-size: 13px;
    color: #9ca3af;
}

/* Counter */
.lightbox-count {
    margin-top: 6px;
    font-size: 12px;
    opacity: 0.7;
}

/* Close button */
.lightbox-close {
    position: absolute;
    top: 25px;
    right: 35px;
    background: none;
    border: none;
    font-size: 44px;
    color: #ffffff;
    cursor: pointer;
    transition: transform .2s ease, opacity .2s ease;
    z-index: 10;
}

.lightbox-close:hover {
    transform: scale(1.1);
    opacity: 0.85;
}

/* Animation */
@keyframes lightboxZoom {
    from {
        transform: scale(0.92);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .lightbox-close {
        top: 15px;
        right: 18px;
        font-size: 36px;
    }

    .lightbox-content img {
        max-height: 60vh;
    }
}
/************************************
  LIGHTBOX NAVIGATION
************************************/

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.95);
    border: none;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    font-size: 26px;
    color: white;
    cursor: pointer;
    box-shadow: 0 18px 45px rgba(0,0,0,0.35);
    transition: all .25s ease;
    z-index: 10;
}

.lightbox-nav:hover {
    background: #0f5132;
    color: #ffffff;
    transform: translateY(-50%) scale(1.08);
}

.lightbox-nav.prev { left: 30px; }
.lightbox-nav.next { right: 30px; }

/* Mobile spacing */
@media (max-width: 768px) {
    .lightbox-nav {
        width: 44px;
        height: 44px;
        font-size: 22px;
    }

    .lightbox-nav.prev { left: 12px; }
    .lightbox-nav.next { right: 12px; }
}

/*EXTRA TM CSS*/

.logo-with-tm {
    position: relative;
    display: inline-block;
}

.logo-tm {
    position: absolute;
    top: 2px;
    right: -26px;

    width: 24px;
    height: 24px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 11px;
    font-weight: 600;
    color: #000;

    border: 1.5px solid #000;
    border-radius: 50%;
    background: #fff;
    line-height: 1;
}
