/* Reset and base styles */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Nunito', sans-serif;
    line-height: 1.6;
    color: #333;
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

header span {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: color 0.3s;
    cursor: pointer;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

nav {
    display: flex;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: color 0.3s;
}

nav a:hover {
    color: #007bff;
}

.hero {
    position: relative;
    height: calc(100vh - 50px);
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../assets/img/bg-hero.jpg');
    background-size: cover;
    background-position: center;
    margin-top: 60px;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero h2 {
    font-size: 2.0rem;
    margin-bottom: 1rem;
    color: #ffffff;
    font-weight: 300;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    max-width: 30ch;
    color: white;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: white;
}

button {
    background-color: #84CCDA;
    color: #333;
    border: none;
    padding: 0.8rem 1.5rem;
    margin-top: 1rem;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    /*transition: background-color 0.3s;*/
    transition: all 0.3s ease;
}

button:hover {
    background-color: #358aa1;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    color: white;
    transform: translateY(-2px);
}

button:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.email {
    unicode-bidi: bidi-override;
    direction: rtl;
}

section {
    padding: 5rem 2rem;
}

.text-center {
    text-align: center;
}

.sec1 {
    background-color: #fff;
}

.sec2 {
    background-color: #f8f9fa;
}

.flex-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.flex-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
}

.flex-item {
    flex: 1 1 400px;
}

.width-50 {
    width: 50%;
}

.image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.img-fluid {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
}

#contact a {
    text-decoration: underline;
    color: #333;
}

footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 2rem;
}

@media (prefers-color-scheme: dark) {
    .hero-section {
        background-image: url('../assets/img/bg-dark.png');
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    nav {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background-color: #fff;
        flex-direction: column;
        align-items: center;
        padding-top: 2rem;
        transition: left 0.3s;
    }

    nav.active {
        left: 0;
    }

    .hero {
        padding: 4rem 2rem 7rem;
    }

    .hero h2 {
        font-size: 2rem;
    }

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

    .hero p {
        font-size: 1rem;
    }

    .flex-item {
        width: 100%;
        flex: 1 1 auto;
    }

    .width-50 {
        width: 100%;
    }

    /* Improve contact section layout on mobile */
    .flex-wrapper {
        flex-direction: column;
    }

    .flex-item {
        width: 100%;
    }
}
