.projects-content p,
.projects-content h3 {
    color: #fff;
}

.projects-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    background: transparent !important;
    box-shadow: none;
    border: none;
    padding: 10px 0;
}

.projects-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
    background: transparent !important;
    box-shadow: none;
    border: none;
    padding: 10px 0;
}

.project-item,
.project-page-item {
    perspective: 1000px;
    height: 300px;
    position: relative;
    width: calc(50% - 15px);
    margin-bottom: 30px;
    background: transparent !important;
}

@media (max-width: 768px) {
    .project-item,
    .project-page-item {
        width: 100%;
    }
}

.card {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s;
    border-radius: 12px;
    cursor: pointer;
}

.card.flipped {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    width: 100%;
    height: 100%;
    position: absolute;
    backface-visibility: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background: transparent;
}

/* Remove shadow from container elements */
.project-item,
.project-page-item {
    box-shadow: none !important;
    background: transparent !important;
    border: none !important;
}

.card-front {
    z-index: 2;
    transform: rotateY(0deg);
    overflow: hidden;
    border-radius: 12px;
    background: transparent;
}
 
.card-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.project-image-single,
.project-image-slider {
    width: 100%;
    height: 100%;
    position: relative;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
}

.slider-container {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.slide {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    border-radius: 12px;
}

.slide.active {
    opacity: 1;
}

/* Removed slider navigation dots */
.slider-nav {
    display: none;
}

.card-back {
    background: transparent;
    transform: rotateY(180deg);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
    box-sizing: border-box;
}

.card-back .back-content {
    width: 100%;
}

.card-back .back-content h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #1F497D;
}

.card-back .back-content p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* Project Image Spotlight Section */
.image-spotlight-section {
    background: #f8f9fa;
    padding: 50px 0;
}

.image-spotlight-section .section-heading h2 {
    color: #1F497D;
    margin-bottom: 10px;
}

.image-spotlight-section .section-heading p {
    color: #666;
    font-size: 16px;
}

.spotlight-carousel {
    position: relative;
}

.spotlight-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    height: 400px;
}

.spotlight-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.spotlight-image .overlay {
    background-color: rgba(31, 73, 125, 0.7);
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    display: block;
    visibility: hidden;
    opacity: 0;
    z-index: 1;
    transition: all 0.3s ease;
}

.spotlight-item:hover .overlay {
    visibility: visible;
    opacity: 1;
}

.spotlight-image .overlay-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px 20px;
    color: white;
    text-align: left;
    border-radius: 0 0 12px 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 70%, transparent 100%);
    z-index: 2;
}

.spotlight-item:hover .overlay-content {
    opacity: 1;
}

.spotlight-image .overlay-content p {
    margin: 0 0 5px 0;
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.spotlight-image .overlay-content h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    max-height: 60px;
    overflow: hidden;
}

.spotlight-image .view-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #333;
    font-size: 18px;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transform: scale(0.9);
    z-index: 10;
}

.spotlight-item:hover .view-icon {
    opacity: 1;
    transform: scale(1);
}

/* Spotlight Carousel Navigation */
.spotlight-carousel .owl-nav {
    position: absolute;
    top: -60px;
    right: 0;
}

.spotlight-carousel .owl-nav div {
    width: 36px;
    height: 36px;
    background-color: #1F497D;
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    transition: all 0.3s ease;
}

.spotlight-carousel .owl-nav div:hover {
    background-color: #FF6600;
    transform: scale(1.1);
}

.spotlight-carousel .owl-nav div.owl-prev {
    margin-left: 0;
}

/* Spotlight trigger icon for project cards */
.project-page-item .view-icon.spotlight-trigger {
    background-color: rgba(255, 102, 0, 0.9); /* Orange color for spotlight */
    color: white;
}

.project-page-item .view-icon.spotlight-trigger:hover {
    background-color: rgba(255, 255, 255, 0.9);
    color: #FF6600;
}

/* Image Focus Modal */
.image-focus-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
}

.image-focus-content {
    position: relative;
    margin: 0 auto;
    padding: 0;
    width: 90%;
    max-width: 1200px;
    height: 90vh;
}

.image-focus-slide {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.image-focus-slide img {
    max-width: 100%;
    max-height: 80%;
    object-fit: contain;
    border-radius: 8px;
}

.image-focus-info {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    text-align: center;
    color: white;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
}

.image-focus-info h3 {
    margin: 0 0 10px 0;
    font-size: 24px;
    color: white;
}

.image-focus-info p {
    margin: 0;
    font-size: 16px;
    color: #ddd;
}

.image-focus-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
}

.image-focus-close:hover,
.image-focus-close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

.image-focus-prev,
.image-focus-next {
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 30px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    cursor: pointer;
    z-index: 10001;
}

.image-focus-prev {
    left: 15px;
    border-radius: 3px 0 0 3px;
}

.image-focus-next {
    right: 15px;
    border-radius: 0 3px 3px 0;
}

.image-focus-prev:hover,
.image-focus-next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

@media (max-width: 992px) {
    .spotlight-item {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .spotlight-item {
        height: 250px;
    }
    
    .image-spotlight-section {
        padding: 30px 0;
    }
    
    .spotlight-carousel .owl-nav {
        top: -50px;
    }
    
    .image-focus-content {
        width: 95%;
        height: 85%;
    }
    
    .image-focus-slide img {
        max-height: 70%;
    }
    
    .image-focus-info {
        bottom: 10px;
        padding: 10px;
    }
    
    .image-focus-info h3 {
        font-size: 18px;
    }
    
    .image-focus-info p {
        font-size: 14px;
    }
    
    .image-focus-close {
        top: 10px;
        right: 20px;
        font-size: 30px;
    }
    
    .image-focus-prev,
    .image-focus-next {
        padding: 12px;
        font-size: 24px;
        margin-top: -30px;
    }
}

@media (max-width: 576px) {
    .spotlight-item {
        height: 200px;
    }
    
    .spotlight-carousel .owl-nav {
        top: -45px;
    }
    
    .spotlight-carousel .owl-nav div {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
    
    .image-focus-content {
        height: 80%;
    }
    
    .image-focus-slide img {
        max-height: 60%;
    }
    
    .image-focus-info h3 {
        font-size: 16px;
    }
    
    .image-focus-info p {
        font-size: 12px;
    }
    
    .image-focus-prev,
    .image-focus-next {
        padding: 8px;
        font-size: 20px;
        margin-top: -20px;
    }
}
