/* VARIABLES */
:root {
    --primary-color: #1a3048; /* Dark Blue from the design */
    --primary-light: #2c5282;
    --text-dark: #2d3748;
    --text-light: #718096;
    --bg-light: #f7fafc;
    --white: #ffffff;
    --border-color: #e2e8f0;
    
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Montserrat', sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* RESET & BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-color);
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.text-center {
    text-align: center;
}

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

.section-padding {
    padding: 80px 0;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-outline {
    border-color: var(--white);
    color: var(--white);
    background: transparent;
}

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

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

.btn-primary:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 48, 72, 0.2);
}

/* HEADER */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    background: transparent;
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    background: var(--white);
    padding: 15px 0;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.header.scrolled .nav-menu ul li a {
    color: var(--primary-color);
}

.header.scrolled .logo-icon {
    background-color: var(--primary-color);
}

.header.scrolled .hamburger {
    color: var(--primary-color);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-icon {
    width: 65px;
    height: 50px;
    background-color: var(--white);
    -webkit-mask: url('../img/logo-ga.png') no-repeat center;
    mask: url('../img/logo-ga.png') no-repeat center;
    -webkit-mask-size: contain;
    mask-size: contain;
    transition: var(--transition);
    display: block;
}

.logo-icon:hover {
    background-color: var(--primary-light);
}

.nav-menu ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-menu ul li a {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--white);
    letter-spacing: 1px;
    transition: var(--transition);
    position: relative;
}

.nav-menu ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-light);
    transition: var(--transition);
}

.nav-menu ul li a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    color: var(--white);
    cursor: pointer;
}

/* HERO SECTION */
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
}

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

.carousel-item {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slide-content {
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(26,48,72,0.4), rgba(26,48,72,0.8));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: 30px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.carousel-item.active .hero h1 {
    animation: slideUp 1s ease forwards;
}

.carousel-item.active .btn {
    animation: fadeIn 1.5s ease forwards;
}

.carousel-fade .carousel-item {
    opacity: 0;
    transition-duration: 1s;
    transition-property: opacity;
}

.carousel-fade .carousel-item.active,
.carousel-fade .carousel-item-next.carousel-item-start,
.carousel-fade .carousel-item-prev.carousel-item-end {
    opacity: 1;
}

.carousel-fade .active.carousel-item-start,
.carousel-fade .active.carousel-item-end {
    opacity: 0;
}

.carousel-indicators {
    z-index: 10;
    margin-bottom: 40px;
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 8px;
    background-color: var(--white);
    opacity: 0.5;
}

.carousel-indicators .active {
    opacity: 1;
    transform: scale(1.2);
}

.hero .carousel-control-prev,
.hero .carousel-control-next {
    width: 5%;
    z-index: 10;
}

/* NOSOTROS */
.nosotros {
    background-color: var(--white);
    padding-top: 60px;
    padding-bottom: 80px;
}

.section-title-left {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    text-align: left;
}

.nosotros-text {
    max-width: 100%;
    font-size: 1.05rem;
    color: var(--text-dark);
}

.nosotros-text p {
    margin-bottom: 1.2rem;
    line-height: 1.7;
}

.nosotros-text p:last-child {
    margin-bottom: 0;
}

/* MISION / VISION */
.mision-vision {
    position: relative;
    padding: 250px 0 0;
    overflow: hidden;
    background: url(../img/mission-bg.png) center / cover no-repeat;
}

.mv-bg {
    display: none;
}

.mv-container {
    position: relative;
    display: flex;
    justify-content: center;
    gap: 40px;
    z-index: 2;
    flex-wrap: wrap;
}

.mv-card {
    background: rgba(255, 255, 255, 0.92);
    padding: 40px;
    border-radius: 20px;
    width: calc(50% - 20px);
    max-width: 450px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    color: var(--primary-color);
}

.mv-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.mv-card h3 {
    margin-bottom: 15px;
    font-size: 1.6rem;
    font-weight: 700;
}

.mv-card p {
    font-size: 1rem;
    line-height: 1.6;
}

/* MARCAS */
.marcas {
    background: var(--bg-light);
}

.marcas-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 80px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.marca-item img {
    height: 60px;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.7);
    transition: var(--transition);
}

.marca-item:hover img {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.05);
}

/* SERVICIOS */
.servicios {
    background: var(--primary-color);
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.servicio-card {
    border: none !important;
    padding: 20px 10px;
    transition: var(--transition);
    background: transparent !important;
    box-shadow: none !important;
}

.servicio-card:hover {
    transform: translateY(-10px);
    background: transparent !important;
}

.servicio-icon {
    margin-bottom: 20px;
    text-align: center;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.icon-img {
    max-width: 50%;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    mix-blend-mode: screen;
    transition: var(--transition);
}

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

.servicio-card h4 {
    color: var(--white);
    margin-bottom: 15px;
    font-size: 1.1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.servicio-card p {
    color: rgba(255,255,255,0.8);
    font-size: 0.95rem;
}

/* PROYECTOS */
.proyectos {
    background: var(--white);
}

.bg-light-frame {
    background-color: var(--bg-light);
    border-radius: 24px;
    padding: 60px 40px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.02);
}

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

/* SECTORES CAROUSEL - HIGH SPECIFICITY FIX */
section.sectores {
    background: #f8f9fa;
    padding: 100px 0;
    font-family: 'Montserrat', sans-serif !important;
}

section.sectores h3 {
    text-transform: uppercase;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif !important;
    color: #22395C !important;
    margin-bottom: 50px;
    font-size: 2.2rem;
    width: 100%;
}

section.sectores .mid-row-01 {
    background: transparent;
    padding: 0;
    margin-bottom: 50px;
    position: relative;
    z-index: 10;
}

section.sectores .mg-bottm {
    margin-bottom: 40px;
    position: relative;
    border: 1px solid #4a90e2;
    border-radius: 20px;
    overflow: hidden;
    margin-left: 0;
    margin-right: 0;
}

section.sectores .mg-bottm > [class*="col-"] {
    padding-left: 0;
    padding-right: 0;
}

section.sectores .box-left {
    background-color: #22395C !important;
    padding: 60px 80px !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff !important;
    z-index: 1;
    border-radius: 0;
}

section.sectores .box-left h4 {
    text-transform: lowercase;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 2.2rem;
    line-height: 1.1;
    margin-bottom: 20px;
    color: #fff !important;
}

section.sectores .btn-ver-galeria {
    display: inline-block;
    align-self: flex-start;
    margin-top: 15px;
    padding: 10px 24px;
    background-color: transparent;
    color: #fff !important;
    border: 2px solid #E48C23;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.3s ease;
}

section.sectores .btn-ver-galeria:hover {
    background-color: #E48C23;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(228, 140, 35, 0.3);
}

section.sectores .box-left p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
    color: rgba(255,255,255,0.95) !important;
}

section.sectores .box-right {
    border-radius: 0;
    min-height: 480px !important;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

section.sectores .sombra {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 60%, rgba(0,0,0,0) 100%);
    z-index: 1;
}

section.sectores .box-right h6 {
    position: absolute;
    bottom: 30px;
    left: 30px;
    color: #fff !important;
    z-index: 2;
    margin: 0;
    font-size: 15px;
    font-family: 'Montserrat', sans-serif !important;
    text-align: left;
}

section.sectores .box-right h6 strong {
    display: block;
    font-weight: 700;
    font-size: 18px;
    text-transform: uppercase;
    margin-bottom: 5px;
}

section.sectores .linea-border {
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    border: 3px solid #E48C23;
    border-radius: 40px;
    z-index: -1;
    pointer-events: none;
}

/* Bootstrap Carousel Overrides */
section.sectores .carousel-control-prev, 
section.sectores .carousel-control-next {
    width: 12%;
    opacity: 0.9;
    z-index: 5;
}

section.sectores .carousel-control-prev-icon, 
section.sectores .carousel-control-next-icon {
    width: 3.5rem;
    height: 3.5rem;
    filter: drop-shadow(0 0 8px rgba(0,0,0,0.6));
}

/* Ensuring items are full height in the container */
section.sectores .carousel, 
section.sectores .carousel-inner, 
section.sectores .carousel-item, 
section.sectores .box-right {
    height: 100% !important;
}

/* MEDIA QUERIES FOR SECTORES */
@media (max-width: 767.98px) {
    section.sectores .box-left {
        border-radius: 25px 25px 0 0;
        padding: 40px 30px;
        text-align: center;
    }
    section.sectores .box-right {
        border-radius: 0 0 25px 25px;
        min-height: 350px !important;
    }
    section.sectores h3 {
        font-size: 2rem;
    }
    section.sectores .mid-row-01 {
        padding: 30px 15px;
    }
}

/* CONTACTO */
.contacto {
    background: var(--white);
}

.contacto-title {
    color: var(--primary-color);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 40px;
    text-transform: lowercase;
}

.contacto-wrapper {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    margin-top: 0;
}

.contacto-left {
    display: flex;
    flex-direction: column;
    padding-right: 30px;
}

.contacto-address {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 500;
}

.contacto-mapa {
    width: 100%;
}

.contacto-mapa iframe {
    height: 100%;
    min-height: 350px;
    border-radius: 8px;
}

.contacto-right {
    display: flex;
    flex-direction: column;
    padding-left: 30px;
}

.contacto-datos {
    margin-bottom: 30px;
}

.contacto-datos p {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 500;
}

.contacto-datos i {
    color: var(--primary-color);
    font-size: 1.3rem;
    width: 25px;
    text-align: center;
}

.contact-form-new {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group-new {
    display: flex;
    flex-direction: column;
}

.form-group-new label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
    text-transform: uppercase;
}

.form-group-new input,
.form-group-new textarea {
    width: 100%;
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    padding: 10px;
    background: var(--white);
    font-family: var(--font-body);
}

.form-footer-new {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.social-follow {
    display: flex;
    align-items: center;
    gap: 15px;
}

.social-follow span {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 500;
}

.social-icon {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-size: 1rem;
    transition: var(--transition);
}

.social-icon:hover {
    color: var(--white);
    opacity: 0.9;
}

.btn-enviar {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 10px 30px;
    border-radius: 20px;
    font-size: 1rem;
    font-family: var(--font-body);
    cursor: pointer;
    text-transform: uppercase;
    transition: var(--transition);
}

.btn-enviar:hover {
    opacity: 0.9;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(44,82,130,0.1);
}

/* FOOTER */
.footer {
    background: var(--white);
    padding: 30px 0;
    border-top: 1px solid var(--border-color);
}

.footer-logo-icon {
    width: 65px;
    height: 45px;
    background-color: var(--primary-color);
    -webkit-mask: url('../img/logo-ga.png') no-repeat center;
    mask: url('../img/logo-ga.png') no-repeat center;
    mask-size: contain;
    -webkit-mask-size: contain;
    margin: 0 auto 20px auto;
    display: block;
}

.footer p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ANIMATIONS */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.reveal-hidden {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}

.reveal-hidden.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .mv-card {
        width: 100%;
        max-width: 100%;
    }
    
    .proyecto-item, .proyecto-item:nth-child(even) {
        flex-direction: column;
    }
    
    .proyecto-img img {
        height: 300px;
    }
    
    .contacto-wrapper {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .header {
        background: var(--white);
    }
    .header.scrolled {
        padding: 15px 0;
    }
    .logo-icon {
        background-color: var(--primary-color);
    }
    .hamburger {
        color: var(--primary-color);
    }
    .hamburger {
        display: block;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        box-shadow: 0 10px 15px rgba(0,0,0,0.05);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: var(--transition);
        padding: 0;
    }
    
    .nav-menu.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
        padding: 20px 0;
    }
    
    .nav-menu ul {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .nav-menu ul li a {
        color: var(--primary-color);
    }

    .hero h1 {
        font-size: 2.2rem;
    }
    
    .h2 {
        font-size: 1.8rem;
    }
}

/* ==========================================
   GALERÍA DE PROYECTOS & LIGHTBOX
   ========================================== */

/* Active link style for navigation */
.nav-menu ul li a.active::after {
    width: 100%;
    background-color: var(--primary-light);
}

/* Header Solid variant for non-homepages */
.header.header-solid {
    background: var(--white);
    padding: 15px 0;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    position: fixed;
}
.header.header-solid .nav-menu ul li a {
    color: var(--primary-color);
}
.header.header-solid .logo-icon {
    background-color: var(--primary-color);
}
.header.header-solid .hamburger {
    color: var(--primary-color);
}

/* Gallery Banner */
.gallery-banner {
    position: relative;
    padding: 160px 0 80px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, #102a43 100%);
    text-align: center;
    color: var(--white);
    overflow: hidden;
}
.gallery-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('../img/mission-bg.png') center/cover no-repeat;
    opacity: 0.15;
    z-index: 1;
}
.gallery-banner .container {
    position: relative;
    z-index: 2;
}
.gallery-banner h1 {
    color: var(--white);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: var(--font-heading);
}
.gallery-banner p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
}

/* Filter Controls */
.filter-container {
    padding: 50px 0 30px 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}
.filter-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    padding: 10px 26px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-heading);
}
.filter-btn:hover {
    border-color: var(--primary-light);
    color: var(--primary-light);
    transform: translateY(-2px);
}
.filter-btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 10px rgba(26, 48, 72, 0.15);
}

/* Gallery Grid */
.gallery-grid-section {
    background-color: #f8f9fa;
    padding-bottom: 80px;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}
.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
    background-color: var(--bg-light);
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
}
.gallery-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.gallery-item:hover img {
    transform: scale(1.08);
}
.gallery-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(26, 48, 72, 0.95) 0%, rgba(26, 48, 72, 0.5) 60%, rgba(26, 48, 72, 0.1) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}
.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}
.gallery-item-category {
    font-size: 0.8rem;
    font-weight: 700;
    color: #E48C23;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 5px;
    transform: translateY(10px);
    transition: transform 0.4s ease 0.05s;
}
.gallery-item-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--white);
    margin: 0;
    transform: translateY(10px);
    transition: transform 0.4s ease 0.1s;
    line-height: 1.3;
}
.gallery-item-zoom {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    font-size: 1rem;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}
.gallery-item:hover .gallery-item-zoom {
    opacity: 1;
    transform: scale(1);
}
.gallery-item:hover .gallery-item-category,
.gallery-item:hover .gallery-item-title {
    transform: translateY(0);
}

/* Animations for Filtering */
.gallery-item.hidden {
    display: none;
}
.gallery-item.fade-in {
    animation: fadeInGalleryItem 0.45s ease forwards;
}
@keyframes fadeInGalleryItem {
    from {
        opacity: 0;
        transform: scale(0.92) translateY(15px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Lightbox Modal Styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 20, 32, 0.96);
    z-index: 2500;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.35s ease;
    backdrop-filter: blur(10px);
}
.lightbox.active {
    display: flex;
    opacity: 1;
}
.lightbox-content-wrapper {
    position: relative;
    max-width: 80%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.lightbox-img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.6);
    transform: scale(0.96);
    transition: transform 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.lightbox.active .lightbox-img {
    transform: scale(1);
}
.lightbox-info {
    width: 100%;
    text-align: center;
    color: var(--white);
    margin-top: 20px;
    animation: fadeIn 0.5s ease;
}
.lightbox-category {
    font-size: 0.8rem;
    font-weight: 700;
    color: #E48C23;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 5px;
}
.lightbox-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
}
.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 2.2rem;
    cursor: pointer;
    transition: var(--transition);
    z-index: 2510;
}
.lightbox-close:hover {
    color: #E48C23;
    transform: rotate(90deg);
}
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(5px);
    border: none;
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 2510;
}
.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #E48C23;
    transform: translateY(-50%) scale(1.05);
}
.lightbox-prev {
    left: 40px;
}
.lightbox-next {
    right: 40px;
}

/* Responsiveness overrides */
@media (max-width: 992px) {
    .gallery-banner h1 {
        font-size: 2.5rem;
    }
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 20px;
    }
    .lightbox-content-wrapper {
        max-width: 90%;
    }
    .lightbox-nav {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    .lightbox-prev {
        left: 20px;
    }
    .lightbox-next {
        right: 20px;
    }
}

@media (max-width: 768px) {
    .gallery-banner {
        padding: 130px 0 60px 0;
    }
    .gallery-banner h1 {
        font-size: 2rem;
    }
    .gallery-banner p {
        font-size: 0.95rem;
    }
    .filter-container {
        padding: 30px 0 20px 0;
        gap: 10px;
    }
    .filter-btn {
        padding: 8px 18px;
        font-size: 0.75rem;
    }
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .lightbox-nav {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }
    .lightbox-prev {
        left: 10px;
    }
    .lightbox-next {
        right: 10px;
    }
    .lightbox-close {
        top: 20px;
        right: 20px;
        font-size: 1.8rem;
    }
    .lightbox-title {
        font-size: 1.1rem;
    }
}
