/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('foto/homepage-nov24-blog-d.jpg');
    background-size: cover;
    background-position: center;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: 76px;
}
.scroll-down {
    width: 50px;
    height: 50px;
    background: transparent;
    border: 2px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 30px auto 0;
    transition: all 0.3s ease;
    color: #fff;
    text-decoration: none;
}
.scroll-down:hover {
    background: #fff;
    color: #000;
    transform: translateY(5px);
}

.scroll-down i {
    font-size: 24px;
}

.hero-section h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-section p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Gallery Section */
.gallery-section {
    display: block;
    padding: 4rem 0;
    background-color: #000;
}

.gallery-filters {
    text-align: center;
    margin-bottom: 2rem;
}

.gallery-section #gallery-container:has(.empty-gallery),
.gallery-section #gallery-container > .col-12:has(.empty-gallery),
.gallery-section .empty-gallery,
.gallery-section .gallery-empty {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    position: static !important;
}

.gallery-section .empty-gallery,
.gallery-section .gallery-empty {
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 1.5rem;
    margin: 0 auto;
}

.gallery-section .gallery-empty i,
.gallery-section .empty-gallery i {
    font-size: 4rem;
    line-height: 1;
}

.gallery-section .gallery-empty h4,
.gallery-section .empty-gallery h4,
.gallery-section .gallery-empty p,
.gallery-section .empty-gallery p {
    width: 100%;
    text-align: center !important;
    margin-left: auto;
    margin-right: auto;
    opacity: 1 !important;
}

.gallery-section .gallery-empty h4,
.gallery-section .empty-gallery h4 {
    margin-top: 1rem;
    font-weight: 700;
}

.gallery-section .gallery-empty p,
.gallery-section .empty-gallery p {
    margin-top: 0.5rem;
}

body:not(.light-mode) .gallery-section .gallery-empty i,
body:not(.light-mode) .gallery-section .gallery-empty h4,
body:not(.light-mode) .gallery-section .empty-gallery i,
body:not(.light-mode) .gallery-section .empty-gallery h4 {
    color: #e5e5e5 !important;
}

body:not(.light-mode) .gallery-section .gallery-empty p,
body:not(.light-mode) .gallery-section .empty-gallery p {
    color: rgba(255, 255, 255, 0.72) !important;
}

body.light-mode .gallery-section .gallery-empty i,
body.light-mode .gallery-section .gallery-empty h4,
body.light-mode .gallery-section .empty-gallery i,
body.light-mode .gallery-section .empty-gallery h4 {
    color: #111 !important;
}

body.light-mode .gallery-section .gallery-empty p,
body.light-mode .gallery-section .empty-gallery p {
    color: #444 !important;
}

.filter-btn {
    background: none;
    border: 2px solid #333;
    padding: 8px 20px;
    margin: 0 5px;
    border-radius: 25px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: #333;
    color: white;
}

.gallery-grid {
    margin: -15px;
}

.gallery-item {
    padding: 15px;
    margin-bottom: 30px;
}

.gallery-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.gallery-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 20px;
    transition: bottom 0.3s ease;
}

.gallery-card:hover img {
    transform: scale(1.05);
}

.gallery-card:hover .gallery-overlay {
    bottom: 0;
}

.gallery-overlay h3 {
    margin: 0;
    font-size: 1.2rem;
}

.gallery-overlay p {
    margin: 5px 0 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .hero-section {
        height: 200px;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .filter-btn {
        margin-bottom: 10px;
    }

    .gallery-card img {
        height: 250px;
    }
}

/* Light Mode Styles */
.light-mode .gallery-section {
    background-color: #fff;
}

.light-mode .filter-btn {
    border-color: #ddd;
    color: #333;
}

.light-mode .filter-btn:hover,
.light-mode .filter-btn.active {
    background-color: #333;
    color: #fff;
}

.light-mode .gallery-overlay {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
}

/* Full Screen Image Modal */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    padding: 20px;
}

.image-modal-content {
    max-width: 90%;
    max-height: 90vh;
    margin: auto;
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: contain;
}

.image-modal-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
}

.image-modal-close:hover {
    color: #bbb;
}

/* Navigation Buttons */
.prev-btn,
.next-btn {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 30px;
    transition: 0.3s ease;
    border-radius: 3px;
    user-select: none;
    -webkit-user-select: none;
    background-color: rgba(0, 0, 0, 0.3);
    text-decoration: none;
}

.next-btn {
    right: 30px;
}

.prev-btn {
    left: 30px;
}

.prev-btn:hover,
.next-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
}

/* Animation for modal */
.image-modal-content {
    animation: zoom 0.3s ease-in-out;
}

@keyframes zoom {
    from {
        transform: translate(-50%, -50%) scale(0.1);
    }
    to {
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Responsive adjustments for modal */
@media only screen and (max-width: 700px) {
    .image-modal-content {
        max-width: 95%;
    }
    
    .image-modal-close {
        top: 10px;
        right: 15px;
        font-size: 30px;
    }

    .prev-btn,
    .next-btn {
        padding: 12px;
        font-size: 24px;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 10001;
    }

    .next-btn {
        right: 5px;
    }

    .prev-btn {
        left: 5px;
    }

    /* Okların dokunmatik ekranlarda daha iyi çalışması için */
    .prev-btn:active,
    .next-btn:active {
        background-color: rgba(0, 0, 0, 0.8);
    }
}
