/* ===== Projects Page Styles ===== */
#projects {
    padding-top: 80px;
}

/* ===== Search Bar ===== */
.search-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Input fields styling */
.input-group .form-control,
.input-group .form-select {
    border-radius: 5px;
}

/* "Show Live Demos" button */
#toggle-live-demo {
    min-width: 160px;
    white-space: nowrap;
}

/* ===== Project Cards ===== */
.project-card {
    display: block;
    animation: fadeInProjects 0.5s ease-in-out;
}

/* Adjusts search input field sizes */
.input-group .form-control {
    flex: 3;
}

.input-group .form-select {
    flex: 0.6;
}

.input-group .btn {
    flex: 0.1;
}

/* Fade-in animation for project cards */
@keyframes fadeInProjects {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Hover effect for project cards */
.card:hover {
    transform: scale(1.02);
    transition: transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* ===== Scroll Animation for Project Cards ===== */
.project-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Becomes visible when in viewport */
.project-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hide the GitHub explore button initially */
#github-explore-btn {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* ===== Modal General Styles ===== */
.modal-dialog {
    max-width: clamp(50%, 51vw, 75%);
}

.modal-content {
    border-radius: 10px;
}

/* Remove padding only for images inside the modal */
.modal-body {
    padding: 0;
}

/* Maintain padding for modal content below the image */
.modal-content-wrapper {
    padding: 0px 1.5rem 1.5rem 1.5rem !important;
}

/* ===== Modal & Swiper Slider Adjustments ===== */
.swiper-container {
    width: 100%;
    height: clamp(320px, 50vh, 500px);
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #ddd;
}

/* ===== Responsive Adjustments for Modal Dialog ===== */
@media (max-width: 1200px) {
    .modal-dialog {
        max-width: 65%;
    }
}

@media (max-width: 900px) {
    .modal-dialog {
        max-width: 75%;
    }
}

@media (max-width: 600px) {
    .modal-dialog {
        max-width: 85%;
    }
}

/* ===== Image Adjustments inside Swiper Slider ===== */
.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

/* Ensures images fit the available space */
.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: fill;
}

/* ===== Swiper Navigation Buttons (Prev / Next) ===== */
.swiper-button-next,
.swiper-button-prev {
    color: white !important;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;    
    transition: background 0.3s ease;
}

/* Hover effect for navigation buttons */
.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* Adjust the navigation button size */
.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 27px !important;
}

/* ===== Swiper Pagination Position ===== */
.swiper-pagination {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
}

/* ===== Information Button (Inside Project Cards) ===== */
.info-button {
    position: absolute;
    top: 5px;
    right: 10px;
    background: white;
    border: none;
    color: #333;
    font-size: 16px;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

/* Hover effect for the information button */
.info-button:hover {
    background: #ddd;
    transform: scale(1.1);
}

/* ===== Modal Content Styling ===== */
.modal-content-wrapper h5 {
    font-weight: bold;
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-content-wrapper i {
    color: #007bff;
}

/* ===== Styling for Tabs in Modal ===== */
/* Organizes list items into columns if there are more than 5 elements */
.tab-pane ul {
    column-count: auto; 
    column-width: 200px; 
    max-height: 250px; 
    overflow-y: auto; 
    padding-left: 0; 
}

/* Ensures list items do not break across columns */
.tab-pane ul li {
    display: block;
    break-inside: avoid-column; 
    margin-bottom: 8px; 
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    .tab-pane ul {
        column-count: 1; 
    }
}
