/* Base Reset and Layout */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

html {
    scrollbar-width: none;
}

body {
    overflow: auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: url('../images/background-images/Home-background-main.jpg') no-repeat center center fixed;
    background-size: cover;
    -ms-overflow-style: none;
}

body::-webkit-scrollbar {
    display: none;
}

/* Header */
header {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    min-height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 50px;
    transition: transform 0.3s ease-in-out;
    transform: translateY(0);
}

.logo {
    color: white;
    font-size: 24px;
    font-weight: bold;
    margin-top: 9px;
}

/* Desktop Menu */
nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    gap: 20px;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 16px;
}

nav ul li a:hover {
    color: #FFC107;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
}

/* Mobile Responsive Menu */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    nav#main-nav {
        display: none;
        width: 100%;
        position: absolute;
        top: 80px;
        left: 0;
    }

    nav#main-nav.active {
        display: block;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        background-color: #2c2c2c98;
        backdrop-filter: blur(3px);
        -webkit-backdrop-filter: blur(3px);
        padding: 10px 0;
    }

    nav ul li {
        margin: 10px 0;
    }

    nav ul li a {
        font-size: 18px;
    }
}

/* Hero Section */
.hero {
    height: 4005px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 50px 50px 30px;
    color: white;
    background: transparent;
    margin-top: 80px;
}

.hero h1 {
    font-size: 60px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    max-width: 600px;
    max-height: 4005px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Visual Tour Section */
#visual-tour {
    height: 100vh;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 20px;
    position: relative;
    z-index: 2;
    overflow-y: auto;
    margin-top: 80px;
    flex-grow: 1;
}

.image-links {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: flex-start;
}

.image-links img,
.image-links a img {
    margin-top: 18px;
    max-width: 768px;
    height: 576px;
    border: 5px solid #ccc;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease, border-color 0.3s ease;
    object-fit: cover;
}

.image-links img:hover,
.image-links a img:hover {
    transform: scale(1.05);
    border-color: #333;
}

.image-wrapper {
    position: relative;
    display: inline-block;
}

.image-wrapper img {
    width: 603px;
    height: 540px;
    border: 5px solid #ccc;
    border-radius: 10px;
    display: block;
    transition: transform 0.3s ease, border-color 0.3s ease;
    object-fit: cover;
}

.image-wrapper:hover img {
    transform: scale(1.05);
    border-color: #333;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

.overlay-text {
    color: rgb(0, 0, 0);
    font-size: 32px;
    font-weight: bold;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.8);
    margin-bottom: 10px;
}

.overlay-subtext {
    color: #000000;
    font-size: 20px;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.8);
}

/* Contact Section - UPDATED */
#contact {
    background: rgba(28, 37, 38, 0.72);
    background-image: url('../images/background-images/contact-background.jpg');
    background-size: 36px;
    color: #ffffff;
    padding: 20px;
    position: relative;
    text-align: left;
    font-size: 24px;
    height: 117px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 18px;
    width: 100%;
    margin-left: 0%;
}

#contact h2 {
    font-weight: 700;
    font-size: 36px;
    margin-bottom: 15px;
}

#contact .social-icons {
    position: absolute;
    bottom: 10px;
    left: 20px;
    display: flex;
    gap: 15px;
}

#contact .social-icons img {
    width: 30px;
    margin-right: 0;
    vertical-align: middle;
    transition: transform 0.2s ease; /* فقط انیمیشن زوم نگه داشته شده */
}

#contact .social-icons img:hover {
    transform: scale(1.1);
}

.whatsapp-icon,
.instagram-icon,
.pinterest-icon,
.linkedin-icon,
.behance-icon {
    width: 24px;
    height: 24px;
    vertical-align: middle;
    margin-left: 5px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #visual-tour {
        height: auto;
        padding: 15px;
    }

    .image-links img {
        width: 100%;
        max-width: 100%;
        height: auto;
    }

    .image-wrapper img {
        width: 100%;
        height: auto;
    }

    #contact {
        padding: 15px;
        height: auto;
    }

    #contact h2 {
        font-size: 28px;
    }

    #contact .social-icons {
        gap: 10px;
        bottom: 5px;
    }

    #contact .social-icons img {
        width: 25px;
    }
}