/* נשמר הרקע והסרגל העליון כמו המקור, הוספנו שדרוגים עיצוביים נוספים */

/* Reset כללי */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* רקע התמונה נשמר */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/bg/bg-camera.jpg');
    background-size: cover;
    background-position: center center;
    opacity: 0.3;
    z-index: -1;
}

/* סרגל ניווט נשמר */
header {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    padding: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.4);
    z-index: 10;
    transition: background-color 0.3s ease;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    max-height: 50px;
    transition: transform 0.3s ease;
}

nav ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    justify-content: center;
}

nav ul li {
    position: relative;
    margin-right: 20px;
}

nav ul li a {
    text-decoration: none;
    color: black;
    font-size: 18px;
    font-weight: bold;
    padding: 10px 20px;
    transition: color 0.3s ease;
}

nav ul li:hover > a {
    color: #e63946;
}

.dropdown {
    display: none;
    position: absolute;
    top: 160%;
    left: 0;
    background-color: rgba(255, 255, 255, 0.6);
    width: 200px;
    border: 2px solid #ccc;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    backdrop-filter: blur(6px);
}

nav ul li:hover .dropdown {
    display: block;
    pointer-events: auto;
    transform: translateY(10px);
    opacity: 1;
}

.dropdown a {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: black;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.dropdown a:hover {
    background-color: #f1f1f1;
}

/* גלריה בעיצוב גריד 3x2 */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 100px;
    padding: 20px;
    justify-items: center;
}

.gallery-item {
    position: relative;
    width: 320px;
    height: 320px;
    cursor: pointer;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-8px);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.4s ease;
    border-radius: 16px;
    filter: brightness(95%) contrast(105%);
}

.gallery-item:hover img {
    transform: scale(1.08);
    filter: brightness(110%) contrast(120%) blur(1px);
}

.family-name {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    background: rgba(255,255,255,0.5);
    backdrop-filter: blur(4px);
    padding: 10px 0;
    color: #333;
    font-weight: bold;
    font-size: 22px;
}

.family-name h3 {
    margin-bottom: 5px;
    font-size: 24px;
}

.family-name hr {
    width: 60%;
    margin: 0 auto;
    border: 1px solid #333;
    margin-top: 5px;
}

.overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 16px;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

/* Footer עיצוב */
.footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    padding: 10px 20px;
    background-color: rgba(255, 255, 255, 0.4);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    z-index: 10;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.4);
}

.footer .contact-info {
    margin-bottom: 8px;
    text-align: center;
}

.footer .contact-info span {
    font-size: 16px;
    font-weight: bold;
}

.footer .icons {
    font-size: 20px;
    display: flex;
    gap: 12px;
}

.footer .icons a {
    display: inline-block;
    width: 30px;
    height: 30px;
    overflow: hidden;
    border-radius: 50%;
}

.footer .icons img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.footer .icons a:hover img {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .footer {
        flex-direction: column;
    }

    .footer .contact-info span {
        font-size: 14px;
    }

    .footer .icons {
        gap: 10px;
    }

    .footer .icons a {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 768px) {
    .carousel-container {
        width: 100%; /* מתאימים את רוחב הקונטיינר לנייד */
    }

    .carousel-image {
        width: 100%; /* כל תמונה תיקח 100% מהרוחב */
    }

    .prev, .next {
        font-size: 20px; /* חצים קטנים יותר במובייל */
        padding: 8px; /* רווחים קטנים יותר במובייל */
    }
}