/* Complete Gallery Styles */
.gallery-section {
    background: linear-gradient(to bottom, #f8f9fa, #fff);
    padding: 60px 0;
    overflow: hidden;
}

/* Recent Projects Title Styling */
.section-title {
    position: relative;
    font-size: 2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 40px;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background: #ff5e14;
    transition: width 0.3s ease;
}

.section-title:hover::after {
    width: 100px;
}

/* Fixed grid layout */
#gallery-container {
    margin: 0 -10px;
}

.gallery-item {
    padding: 10px;
    margin-bottom: 20px;
}

.gallery-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 300px;
    width: 100%;
    background: #fff;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    backface-visibility: hidden;
}

/* Before/After Labels */
.gallery-card .before-label,
.gallery-card .after-label {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255, 94, 20, 0.9);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    z-index: 3;
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.gallery-card:hover .gallery-image {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, 
        rgba(0,0,0,0.9) 0%,
        rgba(0,0,0,0.7) 50%,
        transparent 100%);
    padding: 30px 20px 20px;
    color: white;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
    transform: translateY(0);
}

.gallery-description {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    font-weight: 500;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

/* Load More Button */
#load-more {
    background: #ff5e14;
    color: white;
    border: 2px solid #ff5e14;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 20px;
}

#load-more:hover {
    background: white;
    color: #ff5e14;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 94, 20, 0.3);
}

#load-more:active {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 94, 20, 0.3);
}

#load-more span {
    display: inline-block;
    transition: all 0.3s ease;
}

#load-more:hover span {
    transform: translateX(5px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .gallery-card {
        height: 250px;
    }
    
    .gallery-description {
        font-size: 0.9rem;
    }
    
    #load-more {
        padding: 12px 25px;
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.75rem;
    }
}

/* Animation for new items */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gallery-item {
    animation: fadeInUp 0.5s ease forwards;
}
/* Lightbox Styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    margin: 20px;
    animation: scaleIn 0.3s ease;
}

.lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 40px;
    height: 40px;
    background: #ff5e14;
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: white;
    color: #ff5e14;
    transform: rotate(90deg);
}

.lightbox-description {
    position: absolute;
    bottom: -60px;
    left: 0;
    right: 0;
    color: white;
    text-align: center;
    padding: 15px;
    font-size: 1rem;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Make gallery items clickable */
.gallery-card {
    cursor: pointer;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .lightbox-close {
        top: 10px;
        right: 10px;
    }
    
    .lightbox-description {
        bottom: 20px;
        font-size: 0.9rem;
    }
}
/* LOADER */
/* AMZY Loader Styles */
.loader-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(248, 248, 248, 0.9);
    z-index: 1000;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: 'Arial Black', sans-serif;
  }
  
  .amzy-loader {
    position: relative;
    width: 300px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .letter {
    font-size: 48px;
    font-weight: bold;
    position: relative;
    color: #FF4500;
    margin: 0 5px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
  }
  
  /* A animation */
  .letter:nth-child(1) {
    animation: construct 2s infinite;
  }
  
  /* M animation */
  .letter:nth-child(2) {
    animation: hammer 2s infinite;
  }
  
  /* Z animation */
  .letter:nth-child(3) {
    animation: zigzag 2s infinite;
  }
  
  /* Y animation */
  .letter:nth-child(4) {
    animation: paint 2s infinite;
  }
  
  @keyframes construct {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px) rotate(-10deg); }
  }
  
  @keyframes hammer {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(15px) scale(1.2); }
  }
  
  @keyframes zigzag {
    0%, 100% { transform: skewX(0); }
    50% { transform: skewX(-20deg); }
  }
  
  @keyframes paint {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(10px) rotate(10deg); }
  }
  
  .tools {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
  }
  
  .tool {
    position: absolute;
    font-size: 24px;
    opacity: 0;
    color: #666;
    animation: toolFloat 3s infinite;
  }
  
  .tool:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
  .tool:nth-child(2) { top: 60%; left: 80%; animation-delay: 0.5s; }
  .tool:nth-child(3) { top: 30%; left: 50%; animation-delay: 1s; }
  .tool:nth-child(4) { top: 70%; left: 30%; animation-delay: 1.5s; }
  
  @keyframes toolFloat {
    0% { transform: translateY(0) rotate(0); opacity: 0; }
    50% { opacity: 0.8; }
    100% { transform: translateY(-50px) rotate(360deg); opacity: 0; }
  }
  
  .progress-text {
    margin-top: 30px;
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
  }
  
  .progress-text::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #FF4500;
    animation: progress 2s infinite;
  }
  
  @keyframes progress {
    0% { width: 0%; }
    50% { width: 100%; }
    100% { width: 0%; }
  }

