/* References Section */
.references-section {
    padding: 4rem 0;
    background: var(--light-bg);
}

/* References Preview on Homepage */
.references-preview {
    padding: 5rem 0 !important;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    position: relative;
    overflow: hidden;
    margin: 0 !important;
}

.references-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(0,102,204,0.03)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
    pointer-events: none;
}

.section-subtitle {
    text-align: center;
    font-size: 1.15rem;
    color: #666;
    margin-bottom: 3.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

/* References Slider Wrapper */
.references-slider-wrapper {
    position: relative !important;
    width: 100% !important;
    margin: 0 auto !important;
}

.references-slider-container {
    overflow: hidden !important;
    width: 100% !important;
    position: relative !important;
}

.references-grid-preview {
    display: flex !important;
    gap: 2.5rem !important;
    position: relative !important;
    z-index: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
    will-change: transform !important;
}


/* Slider Navigation Buttons */
.references-slider-nav {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 10 !important;
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    background: white !important;
    border: 2px solid var(--primary-color) !important;
    color: var(--primary-color) !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.2) !important;
    padding: 0 !important;
}

.references-slider-nav:hover {
    background: var(--primary-color) !important;
    color: white !important;
    transform: translateY(-50%) scale(1.1) !important;
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.35) !important;
}

.references-slider-nav:active {
    transform: translateY(-50%) scale(0.95) !important;
}

.references-slider-nav svg {
    width: 24px !important;
    height: 24px !important;
    flex-shrink: 0 !important;
}

.references-slider-prev {
    left: -24px !important;
}

.references-slider-next {
    right: -24px !important;
}

.references-slider-nav:disabled {
    opacity: 0.4 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

.reference-card-preview {
    background: white !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    cursor: pointer !important;
    position: relative !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    display: flex !important;
    flex-direction: column !important;
    margin: 0 !important;
    flex: 0 0 300px !important;
    min-width: 300px !important;
    width: 300px !important;
    height: 500px !important;
    max-height: 500px !important;
}

.reference-card-preview::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 3px !important;
    background: var(--primary-color) !important;
    transform: scaleX(0) !important;
    transform-origin: left !important;
    transition: transform 0.3s ease !important;
    z-index: 2 !important;
}

.reference-card-preview:hover::before {
    transform: scaleX(1) !important;
}

.reference-card-preview:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12) !important;
    border-color: var(--primary-color) !important;
    border-width: 1px !important;
}

.reference-image-wrapper-preview {
    position: relative !important;
    width: 100% !important;
    height: 260px !important;
    min-height: 260px !important;
    max-height: 260px !important;
    overflow: hidden !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border-radius: 0 !important;
    flex-shrink: 0 !important;
}

.reference-image-wrapper-preview.no-image {
    background: linear-gradient(135deg, #0066cc 0%, #004d99 50%, #003366 100%) !important;
    background-size: 200% 200% !important;
    animation: gradientShift 8s ease infinite !important;
    position: relative !important;
}

.reference-image-wrapper-preview.no-image::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="60" height="60" patternUnits="userSpaceOnUse"><path d="M 60 0 L 0 0 0 60" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="60" height="60" fill="url(%23grid)"/></svg>') !important;
    opacity: 0.4 !important;
    pointer-events: none !important;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.reference-text-placeholder {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 2rem !important;
    position: relative !important;
    z-index: 1 !important;
}

.reference-placeholder-icon {
    width: 48px !important;
    height: 48px !important;
    color: rgba(255, 255, 255, 0.9) !important;
    margin-bottom: 1rem !important;
    opacity: 0.8 !important;
    transition: all 0.3s ease !important;
}

.reference-card-preview:hover .reference-placeholder-icon {
    transform: scale(1.1) !important;
    opacity: 1 !important;
}

.reference-company-placeholder {
    color: white !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    text-align: center !important;
    line-height: 1.3 !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
    margin: 0 !important;
    word-break: break-word !important;
    max-width: 100% !important;
}

.reference-cover-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.reference-card-preview:hover .reference-cover-preview {
    transform: scale(1.05);
    filter: brightness(0.85);
}

.reference-overlay-preview {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(1px);
}

.reference-card-preview:hover .reference-overlay-preview {
    opacity: 1;
}

.reference-icon-preview {
    width: 32px !important;
    height: 32px !important;
    margin-bottom: 0.75rem !important;
    color: white !important;
    opacity: 0.9 !important;
    transition: transform 0.3s ease, opacity 0.3s ease !important;
    stroke-width: 2 !important;
}

.reference-card-preview:hover .reference-icon-preview {
    transform: scale(1.1) !important;
    opacity: 1 !important;
}

.reference-view-text-preview {
    color: white !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    padding: 0.75rem 2rem !important;
    background: var(--primary-color) !important;
    border-radius: 4px !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
    display: inline-block !important;
}

.reference-card-preview:hover .reference-view-text-preview {
    background: var(--primary-color) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

.reference-info-preview {
    padding: 1.75rem !important;
    text-align: center !important;
    flex-grow: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    align-items: center !important;
    background: white !important;
    border-top: none !important;
    min-height: 240px !important;
    flex-shrink: 0 !important;
}

.reference-company-preview {
    color: var(--primary-color) !important;
    font-size: 1.35rem !important;
    font-weight: 700 !important;
    margin-bottom: 0.75rem !important;
    transition: color 0.3s !important;
    line-height: 1.4 !important;
    letter-spacing: 0.5px !important;
}

.reference-card-preview:hover .reference-company-preview {
    color: var(--primary-color) !important;
}

.reference-detail-btn-preview {
    margin-top: 1.25rem !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 0.875rem 2.25rem !important;
    background: linear-gradient(135deg, var(--primary-color) 0%, #0052a3 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.2px !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.25), 0 2px 4px rgba(0, 102, 204, 0.15) !important;
    display: block !important;
    width: auto !important;
    position: relative !important;
    overflow: hidden !important;
    min-width: 160px !important;
}

.reference-detail-btn-preview::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent) !important;
    transition: left 0.5s ease !important;
}

.reference-detail-btn-preview:hover::before {
    left: 100% !important;
}

.reference-detail-btn-preview:hover {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #008a4d 100%) !important;
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow: 0 8px 20px rgba(0, 168, 89, 0.35), 0 4px 8px rgba(0, 168, 89, 0.2) !important;
}

.reference-detail-btn-preview:active {
    transform: translateY(-1px) scale(0.98) !important;
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.3) !important;
}

.references-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
}

/* View All References Button */
.reference-view-all-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.75rem !important;
    padding: 1rem 2.5rem !important;
    background: linear-gradient(135deg, var(--primary-color) 0%, #0052a3 100%) !important;
    color: white !important;
    text-decoration: none !important;
    border-radius: 8px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    cursor: pointer !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.3), 0 2px 6px rgba(0, 102, 204, 0.2) !important;
    position: relative !important;
    overflow: hidden !important;
    border: 2px solid transparent !important;
}

.reference-view-all-btn::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent) !important;
    transition: left 0.6s ease !important;
}

.reference-view-all-btn:hover::before {
    left: 100% !important;
}

.reference-view-all-btn::after {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 0 !important;
    height: 0 !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.3) !important;
    transform: translate(-50%, -50%) !important;
    transition: width 0.6s ease, height 0.6s ease !important;
}

.reference-view-all-btn:hover::after {
    width: 300px !important;
    height: 300px !important;
}

.reference-view-all-btn:hover {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #008a4d 100%) !important;
    transform: translateY(-4px) scale(1.05) !important;
    box-shadow: 0 12px 30px rgba(0, 168, 89, 0.4), 0 4px 12px rgba(0, 168, 89, 0.3) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.reference-view-all-btn:active {
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 0 6px 20px rgba(0, 168, 89, 0.3) !important;
}

.reference-view-all-btn svg {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    flex-shrink: 0 !important;
}

.reference-view-all-btn:hover svg {
    transform: translateX(4px) !important;
}

.reference-view-all-btn span {
    position: relative !important;
    z-index: 1 !important;
}

.reference-view-all-btn svg {
    position: relative !important;
    z-index: 1 !important;
}

.reference-card {
    background: white !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    position: relative !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    margin: 0 !important;
}

.reference-card::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 3px !important;
    background: var(--primary-color) !important;
    transform: scaleX(0) !important;
    transform-origin: left !important;
    transition: transform 0.3s ease !important;
    z-index: 2 !important;
}

.reference-card:hover::before {
    transform: scaleX(1) !important;
}

.reference-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12) !important;
    border-color: var(--primary-color) !important;
    border-width: 1px !important;
}

.reference-image-wrapper {
    position: relative !important;
    width: 100% !important;
    height: 280px !important;
    overflow: hidden !important;
    background: var(--light-bg) !important;
    border-radius: 0 !important;
}

.reference-image-wrapper.no-image {
    background: linear-gradient(135deg, #0066cc 0%, #004d99 50%, #003366 100%) !important;
    background-size: 200% 200% !important;
    animation: gradientShift 8s ease infinite !important;
    position: relative !important;
}

.reference-image-wrapper.no-image::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="60" height="60" patternUnits="userSpaceOnUse"><path d="M 60 0 L 0 0 0 60" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="60" height="60" fill="url(%23grid)"/></svg>') !important;
    opacity: 0.4 !important;
    pointer-events: none !important;
}

.reference-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.reference-card:hover .reference-cover {
    transform: scale(1.05) !important;
    filter: brightness(0.85) !important;
}

.reference-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(1px);
}

.reference-card:hover .reference-overlay {
    opacity: 1;
}

.reference-icon {
    width: 32px !important;
    height: 32px !important;
    margin-bottom: 0.75rem !important;
    color: white !important;
    opacity: 0.9 !important;
    transition: transform 0.3s ease, opacity 0.3s ease !important;
    stroke-width: 2 !important;
}

.reference-card:hover .reference-icon {
    transform: scale(1.1) !important;
    opacity: 1 !important;
}

.reference-view-text {
    color: white !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    padding: 0.75rem 2rem !important;
    background: var(--primary-color) !important;
    border-radius: 4px !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
    display: inline-block !important;
}

.reference-card:hover .reference-view-text {
    background: var(--primary-color) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

.reference-info {
    padding: 1.75rem !important;
    text-align: center !important;
    flex-grow: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    background: white !important;
    border-top: none !important;
}

.reference-company {
    color: var(--primary-color) !important;
    font-size: 1.35rem !important;
    font-weight: 700 !important;
    margin-bottom: 0.75rem !important;
    transition: color 0.3s !important;
    line-height: 1.4 !important;
    letter-spacing: 0.5px !important;
}

.reference-card:hover .reference-company {
    color: var(--primary-color) !important;
}

.reference-detail-btn {
    margin-top: 1.25rem !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 0.875rem 2.25rem !important;
    background: linear-gradient(135deg, var(--primary-color) 0%, #0052a3 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.2px !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.25), 0 2px 4px rgba(0, 102, 204, 0.15) !important;
    display: block !important;
    width: auto !important;
    position: relative !important;
    overflow: hidden !important;
    min-width: 160px !important;
}

.reference-detail-btn::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent) !important;
    transition: left 0.5s ease !important;
}

.reference-detail-btn:hover::before {
    left: 100% !important;
}

.reference-detail-btn:hover {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #008a4d 100%) !important;
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow: 0 8px 20px rgba(0, 168, 89, 0.35), 0 4px 8px rgba(0, 168, 89, 0.2) !important;
}

.reference-detail-btn:active {
    transform: translateY(-1px) scale(0.98) !important;
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.3) !important;
}

/* Lightbox */
.reference-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.reference-lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.lightbox-container {
    position: relative;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    animation: slideUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    line-height: 1;
}

.lightbox-close:hover {
    background: rgba(255, 0, 0, 0.8);
    transform: rotate(90deg);
}

.lightbox-header {
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, #004499 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lightbox-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.lightbox-counter {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.lightbox-content-wrapper {
    position: relative;
    flex: 1;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.lightbox-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.lightbox-slide {
    display: none;
    width: 100%;
    height: 100%;
    padding: 2rem;
}

.lightbox-slide.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s;
}

.lightbox-slide img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Lightbox Placeholder for No Images */
.lightbox-slide-no-image {
    background: linear-gradient(135deg, #0066cc 0%, #004d99 50%, #003366 100%) !important;
    background-size: 200% 200% !important;
    animation: gradientShift 8s ease infinite !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.lightbox-slide-no-image::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="60" height="60" patternUnits="userSpaceOnUse"><path d="M 60 0 L 0 0 0 60" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="60" height="60" fill="url(%23grid)"/></svg>') !important;
    opacity: 0.5 !important;
    pointer-events: none !important;
    z-index: 0 !important;
}

.lightbox-placeholder-content {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 4rem 3rem !important;
    position: relative !important;
    z-index: 1 !important;
    min-height: 400px !important;
}

.lightbox-placeholder-icon {
    width: 96px !important;
    height: 96px !important;
    color: rgba(255, 255, 255, 1) !important;
    margin-bottom: 2.5rem !important;
    opacity: 1 !important;
    filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.4)) !important;
    transition: transform 0.3s ease !important;
    stroke-width: 2 !important;
}

.lightbox-slide-no-image:hover .lightbox-placeholder-icon {
    transform: scale(1.1) !important;
}

.lightbox-placeholder-title {
    color: white !important;
    font-size: 3rem !important;
    font-weight: 800 !important;
    text-align: center !important;
    line-height: 1.2 !important;
    text-shadow: 0 6px 20px rgba(0, 0, 0, 0.5), 0 2px 4px rgba(0, 0, 0, 0.3) !important;
    margin: 0 !important;
    word-break: break-word !important;
    max-width: 85% !important;
    letter-spacing: -0.5px !important;
}

@media (max-width: 768px) {
    .lightbox-placeholder-content {
        padding: 3rem 2rem !important;
        min-height: 300px !important;
    }
    
    .lightbox-placeholder-icon {
        width: 72px !important;
        height: 72px !important;
        margin-bottom: 2rem !important;
    }
    
    .lightbox-placeholder-title {
        font-size: 2rem !important;
        max-width: 95% !important;
    }
}

/* Lightbox Thumbnail Placeholder */
.lightbox-thumbnail-no-image {
    background: linear-gradient(135deg, #0066cc 0%, #004d99 50%, #003366 100%) !important;
    background-size: 200% 200% !important;
    animation: gradientShift 8s ease infinite !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    overflow: hidden !important;
}

.lightbox-thumbnail-no-image::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: url('data:image/svg+xml,<svg width="30" height="30" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="30" height="30" patternUnits="userSpaceOnUse"><path d="M 30 0 L 0 0 0 30" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="30" height="30" fill="url(%23grid)"/></svg>') !important;
    opacity: 0.4 !important;
    pointer-events: none !important;
}

.lightbox-thumbnail-placeholder {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255, 255, 255, 0.08) !important;
    position: relative !important;
    z-index: 1 !important;
    transition: background 0.3s ease !important;
}

.lightbox-thumbnail-no-image:hover .lightbox-thumbnail-placeholder {
    background: rgba(255, 255, 255, 0.15) !important;
}

.lightbox-thumbnail-placeholder svg {
    width: 28px !important;
    height: 28px !important;
    color: rgba(255, 255, 255, 1) !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3)) !important;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.lightbox-nav:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.lightbox-prev {
    left: 1rem;
}

.lightbox-next {
    right: 1rem;
}

.lightbox-thumbnails {
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
    background: #f8f9fa;
    overflow-x: auto;
    justify-content: center;
}

.lightbox-thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s;
    flex-shrink: 0;
}

.lightbox-thumbnail:hover {
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.lightbox-thumbnail.active {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(0, 168, 89, 0.3);
}

.lightbox-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .references-slider-wrapper {
        padding: 0 3rem !important;
    }

    .references-slider-prev {
        left: 0 !important;
    }

    .references-slider-next {
        right: 0 !important;
    }

    .references-slider-nav {
        width: 40px !important;
        height: 40px !important;
    }

    .references-slider-nav svg {
        width: 20px !important;
        height: 20px !important;
    }

    .references-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .references-grid-preview {
        gap: 1.5rem !important;
    }

    .reference-card-preview {
        flex: 0 0 280px !important;
        min-width: 280px !important;
        width: 280px !important;
        height: 480px !important;
        max-height: 480px !important;
    }

    .references-preview {
        padding: 3rem 0;
    }

    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2.5rem;
        padding: 0 1rem;
    }

    .reference-image-wrapper-preview {
        height: 240px !important;
        min-height: 240px !important;
        max-height: 240px !important;
    }

    .reference-info-preview {
        min-height: 240px !important;
    }

    .reference-info-preview {
        padding: 1.5rem;
    }

    .reference-company-preview {
        font-size: 1.1rem;
    }

    .reference-detail-btn-preview {
        padding: 0.75rem 1.75rem !important;
        font-size: 0.85rem !important;
        width: 100% !important;
        max-width: 220px !important;
        min-width: auto !important;
        letter-spacing: 1px !important;
    }

    .reference-detail-btn {
        padding: 0.75rem 1.75rem !important;
        font-size: 0.85rem !important;
        width: 100% !important;
        max-width: 220px !important;
        min-width: auto !important;
        letter-spacing: 1px !important;
    }

    .reference-view-all-btn {
        padding: 0.875rem 2rem !important;
        font-size: 0.9rem !important;
        letter-spacing: 1.2px !important;
        gap: 0.5rem !important;
    }

    .reference-view-all-btn svg {
        width: 18px !important;
        height: 18px !important;
    }

    .reference-card-preview:hover {
        transform: translateY(-8px) scale(1.01);
    }

    .reference-image-wrapper {
        height: 240px;
    }

    .lightbox-container {
        width: 95%;
        max-height: 95vh;
    }

    .lightbox-header {
        padding: 1rem;
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .lightbox-header h2 {
        font-size: 1.2rem;
    }

    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .lightbox-prev {
        left: 0.5rem;
    }

    .lightbox-next {
        right: 0.5rem;
    }

    .lightbox-slide {
        padding: 1rem;
    }

    .lightbox-thumbnail {
        width: 60px;
        height: 60px;
    }
}
