/* 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;
    background: rgb(24, 24, 24);
    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;
}/* 🎨 استایل منو در حالت دسکتاپ */
/* منوی دسکتاپ */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
}

/* منوی اصلی */
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;
}

/* دکمه همبرگر - فقط توی موبایل دیده میشه */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
}

/* ریسپانسیو برای موبایل */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    nav#main-nav {
        display: none;
        width: 100%;
    }

    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;
        margin-right: 0px;
    }

    nav ul li {
        margin: 10px 0;
    }

    nav ul li a {
        font-size: 18px;
    }
}

/* دکمه همبرگر - فقط توی موبایل دیده میشه */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
}

/* ریسپانسیو برای موبایل */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    nav#main-nav {
        display: none;
        width: 100%;
    }

    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;
        margin-right: 0px;
    }

    nav ul li {
        margin: 10px 0;
    }

    nav ul li a {
        font-size: 18px;
    }
}


.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-left: 50px;
    padding-bottom: 30px;
    color: white;
    background: transparent;
}

.hero h1 {
    font-size: 60px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    max-width: 600px;
    max-height: calc(100vh - 80px - 60px - 30px);
    overflow: hidden;
}

.about-intro {
    width: 100%;
    padding: 50px;
    background: #1C2526;
    color: white;
    box-sizing: border-box;
}

.about-intro h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.about-intro h2 span {
    color: #ffffff;
}

.about-intro p {
    font-size: 18px;
    max-width: 800px;
    font-family: Arial, sans-serif;
}

.about-intro p span.yellow {
    color: #b07731;
}

section {
    padding: 50px;
    background: #fff;
    margin: 20px 0;
}

section h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

/* Portfolio Section Styles */
#portfolio {
    background-color: #1c1919;
    color: white;
    padding: 50px 0;
}

.portfolio-grid {
    display: flex;
    flex-wrap: wrap;
    width: 100vw;
    margin: 0;
    padding: 0;
    gap: 0;
}

.portfolio-grid .image-container {
    width: calc(100vw / 3);
    margin: 0;
    padding: 0;
    border-radius: 0;
}

.portfolio-grid img {
    width: 100%;
    height: 639px;
    object-fit: cover;
    display: block;
    margin: 0;
}

.portfolio-intro {
    width: 100%;
    max-width: 1720px;
    margin: 40px auto;
    padding: 50px;
    margin: 40px 0;
    background: rgba(28, 37, 38, 0.72);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    color: white;
    position: relative;
    z-index: 1;
    border-radius: 3px;
}

#portfolio h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #ffffff;
}

.portfolio-grid {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.portfolio-grid .image-container {
    width: 32%;
    border-radius: 9px;
    background-color: #0000006d;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    cursor: pointer;
    position: relative;
    transition: transform 0.3s ease;
}

.portfolio-grid img {
    width: 100%;
    height: 639px;
    object-fit: cover;
    display: block;
}

/* Caption Logic */
.portfolio-grid .caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #0000005b;
    color: white;
    padding: 10px 15px;
    text-align: center;
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.image-container:first-child .caption {
    background-color: rgba(0, 0, 0, 0.532);
}

@media (max-width: 768px) {
    .portfolio-grid {
        flex-direction: column;
    }

    .portfolio-grid .image-container {
        width: 100%;
    }

    .portfolio-grid img {
        width: 100%;
        height: auto;
    }

    .portfolio-grid .caption {
        font-size: 0.9rem;
    }
}

.caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 15px;
    text-align: center;
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 1.2s ease, transform 0.3s ease;
    pointer-events: none;
}

.image-container.active .caption {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Contact Section */
#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;
    }
}

footer {
    background: #333;
    color: rgb(0, 0, 0);
    text-align: center;
    padding: 20px 20px 0;
    margin-bottom: 0;
}

.image-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    width: 100%;
    margin: 0;
    padding: 5px 0;
    position: relative;
    left: 0;
    right: 0;
    box-sizing: border-box;
}

.image-row .image-container {
    position: relative;
}

.image-row img {
    width: 100%;
    height: 504px;
    object-fit: cover;
    border-radius: 3px;
    cursor: pointer;
    transition: transform 0.3s;
    margin: 0;
}

.image-row .caption {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    color: white;
    padding: 15px 20px;
    text-align: right;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    max-width: 50%;
    background-color: rgba(128, 128, 128, 0.5);
    border-radius: 8px;
}

.image-row .caption.active {
    opacity: 1;
}

.image-row img:hover {
    transform: scale(1.05);
}

.video-queue {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    width: 100%;
    margin: 0;
    padding: 5px 0;
    position: relative;
    left: 0;
    right: 0;
    box-sizing: border-box;
    margin-left: 0;
}

.video-queue video {
    width: 100%;
    height: 600px;
    object-fit: cover;
    border-radius: 15px;
    border: 2px solid #ccc;
    margin: 0;
    margin-left: 0;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    width: 100%;
    margin: 0;
    padding: 5px 0;
    position: relative;
    left: 0;
    right: 0;
    box-sizing: border-box;
}

.gallery .image-container {
    position: relative;
}

.gallery img {
    width: 100%;
    height: 504px;
    object-fit: cover;
    border-radius: 3px;
    cursor: pointer;
    transition: transform 0.3s;
    margin: 0;
}

.gallery .caption {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    color: white;
    padding: 15px 20px;
    text-align: right;
    font-size: 1rem;
    font-family: 'Poppins pack', sans-serif;
    font-weight: 400;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    max-width: 50%;
    background-color: rgba(129, 129, 129, 0.6);
    border-radius: 8px;
}

.gallery .caption.active {
    opacity: 1;
}

.gallery img:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    header {
        padding: 0 20px;
    }
    .image-row {
        grid-template-columns: 1fr;
    }
    .video-queue {
        grid-template-columns: 1fr;
    }
    .gallery {
        grid-template-columns: 1fr;
        height: auto;
    }
    .gallery img {
        height: auto;
    }
    .image-row .caption,
    .gallery .caption {
        max-width: 80%;
        font-size: 0.9rem;
    }
    /* استایل‌های پایه و بخش‌های دیگر... */
}

.frame {
    display: flex;
    border: none;
    width: 400px;
    height: 300px;
    position: relative;
    overflow: hidden;
}

.image-container {
    width: 400px;
    height: 100%;
    position: relative;
}

.image-wrapper {
    width: 400px;
    height: 100%;
    position: absolute;
    left: 0;
    transition: clip-path 1s ease;
    clip-path: inset(0 0 0 0);
}

.image-container.shrink .image-wrapper {
    clip-path: inset(0 200px 0 0);
}

.image {
    width: 400px;
    height: 100%;
    object-fit: cover;
    object-position: left;
    display: block;
}

.text-content {
    width: 200px;
    display: none;
    padding: 1rem;
    height: 100%;
    box-sizing: border-box;
    position: absolute; 
    right: 0;
    top: 0;
    background-color: transparent;
}

.text-content.visible {
    display: block;
}

.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;
}

.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);
}

.whatsapp-icon,
.instagram-icon,
.pinterest-icon,
.linkedin-icon,
.behance-icon {
    width: 24px;
    height: 24px;
    vertical-align: middle;
    margin-left: 5px;
}