/* --- ייבוא פונט Rubik מ-Google Fonts עבור מראה מודרני ויפה --- */
@import url('https://fonts.googleapis.com/css2?family=Rubik:wght=400;500;700;800&display=swap');

/* --- הגדרות בסיס --- */
html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Rubik', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    direction: rtl;
    background-color: #000000;
    color: #ffffff;
    overflow-x: hidden;
}

/* --- חלק הגיבור (Hero) --- */
.hero-header {
    background: linear-gradient(rgba(0, 0, 0, 0), rgb(0, 0, 0)),
    url('images/hero-image.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 85vh;
    display: flex;
    flex-direction: column;
}

.main-nav {
    display: flex;
    flex-direction: column; 
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 5px 5% 20px 5%; 
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: transparent;
    gap: 5px; 
}

.main-logo {
    height: 350px;
    width: auto;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 35px; 
    justify-content: center; 
}

.nav-links a {
    color: #ffffff; 
    text-decoration: none;
    font-size: 1.50rem; 
    font-weight: 900; 
    position: relative;
    padding: 5px 0;
    display: inline-block;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 3px; 
    bottom: 0;
    left: 0;
    background-color: #000000; 
    transform-origin: bottom center;
    transition: transform 0.3s ease-out; 
}

.nav-links a:hover {
    color: #333333; 
}

.nav-links a:hover::after {
    transform: scaleX(1); 
}

.hero-content {
    flex: 1;
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    width: 100%;
}

.hero-text-wrapper h1 {
    font-size: 4rem;
    color: #ffffff; /* שונה לשחור לבקשתך */
    margin-bottom: 20px;
    font-weight: 800;
}

.hero-text-wrapper p {
    font-size: 1.4rem;
    color: #ffffff; /* שונה לשחור לבקשתך */
    margin-bottom: 70px;
    font-weight: 700; /* הוספת עובי קל כדי שהטקסט השחור יקרא טוב יותר על גבי הרקע */
}

.btn-hero {
    display: inline-block;
    background-color: #ffffff;
    color: #000000;
    padding: 18px 45px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.2rem;
    text-decoration: none;
    transition: 0.3s;
}

.btn-hero:hover {
    background-color: #000000;
}

.phone-num-black {
    color: #000;
}

/* --- אודות --- */
.about-section {
    background-color: #111111;
    padding: 80px 5%;
    text-align: center;
}

.container-small {
    max-width: 800px;
    margin: 0 auto;
}

.about-section h2 {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 20px;
}

.about-section p {
    font-size: 1.5rem;
    line-height: 1.8;
    color: #cfcfcf;
}

/* --- שירותים --- */
.services-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 5%;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.8rem;
    color: #ffffff;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 30px;
}

.service-card {
    background-color: #111111;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(255,255,255,0.05);
    transition: 0.3s;
    overflow: hidden;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(255,255,255,0.12);
}

.card-image-box {
    position: relative;
    height: 220px;
}

.card-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px 15px 0 0;
}

.floating-icon {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ffffff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #000000;
    border: 5px solid #111111;
}

.card-text-box {
    padding: 45px 20px 30px;
    text-align: center;
    color: #ffffff;
}

/* --- מערכת פופ-אפ לגלריה (Modal) --- */
.modal {
    display: none; 
    position: fixed; 
    z-index: 2000; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.92);
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    user-select: none;
}

.modal-content-wrapper {
    max-width: 80%;
    max-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 25px rgba(255,255,255,0.1);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.modal-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #ffffff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    z-index: 2100;
}

.modal-close:hover {
    color: #bfbfbf;
}

.modal-nav-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 30px;
    padding: 15px 25px;
    cursor: pointer;
    border-radius: 5px;
    transition: 0.3s;
    z-index: 2100;
}

.modal-nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* --- Features Bar --- */
.features-bar {
    background-color: #0a0a0a;
    display: flex;
    justify-content: space-around;
    padding: 40px 10%;
}

.feature-item {
    color: #ffffff;
    text-align: center;
}

.feature-item i {
    color: #ffffff;
    font-size: 2.5rem;
    margin-bottom: 15px;
}

/* --- Footer --- */
.footer-section {
    background-color: #000000;
    color: #ffffff;
    padding: 80px 5%;
    text-align: center;
}

.btn-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.btn-footer-call,
.btn-footer-whatsapp {
    background-color: #ffffff;
    color: #000000;
    padding: 15px 40px;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    border: none;
    transition: 0.3s;
}

.btn-footer-call:hover,
.btn-footer-whatsapp:hover {
    background-color: #d9d9d9;
    transform: scale(1.05);
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-text-wrapper h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .main-nav {
        flex-direction: column;
        gap: 10px;
        padding: 15px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        /* התוספת שלך: מוריד את התפריט קצת למטה רק בטלפונים */
        margin-top: 15px;
    }

    .main-logo {
        height: 70px;
    }

    .hero-text-wrapper h1 {
        font-size: 2.2rem;
        line-height: 1.3;
        text-align: center;
    }

    .hero-text-wrapper p {
        font-size: 1rem;
        text-align: center;
    }

    .hero-content {
        justify-content: center;
        text-align: center;
    }

    .btn-hero {
        padding: 12px 25px;
        font-size: 1rem;
    }

    .services-section {
        padding: 50px 20px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .card-image-box {
        height: 180px;
    }

    .about-section {
        padding: 50px 20px;
    }

    .about-section h2 {
        font-size: 2rem;
    }

    .about-section p {
        font-size: 1rem;
    }

    .features-bar {
        flex-direction: column;
        gap: 20px;
        padding: 30px 20px;
    }

    .btn-group {
        flex-direction: column;
        gap: 15px;
    }

    .hero-header {
        background-attachment: scroll;
    }
    
    .modal-content-wrapper {
        max-width: 100%;
    }
    
    .modal-nav-btn {
        padding: 10px 15px;
        font-size: 20px;
    }
    
    .modal-close {
        top: 15px;
        right: 20px;
        font-size: 35px;
    }
}

@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}