@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;700&display=swap');

:root {
    --primary-color: #D4AF37;
    --secondary-color: #FFFFFF;
    --background-color: #0a1412;
    --text-color: #e0e0e0;
    --glass-bg: rgba(10, 25, 20, 0.5);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    line-height: 1.8;
    font-weight: 300;
    color: var(--text-color);
    background-color: var(--background-color);
    background-image: url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    direction: rtl;
    overflow-x: hidden;
}

h1,
h2,
h3 {
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 20px auto 0;
    border-radius: 2px;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    background-image: linear-gradient(45deg, #c89b2c, #e0c35b);
    color: #111;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: none;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll:nth-child(2) {
    transition-delay: 0.1s;
}

.animate-on-scroll:nth-child(3) {
    transition-delay: 0.2s;
}

.animate-on-scroll:nth-child(4) {
    transition-delay: 0.3s;
}

header {
    background-color: rgba(10, 20, 15, 0.6);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 75px;
}

header .logo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--secondary-color);
}

.header-logo {
    height: 55px;
    width: auto;
}

header .main-nav {
    list-style: none;
    display: flex;
}

header .main-nav li {
    margin-right: 35px;
}

header .main-nav li a {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: bold;
    transition: color 0.3s ease;
    position: relative;
    padding-bottom: 5px;
}

header .main-nav li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.4s ease;
}

header .main-nav li a:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--secondary-color);
    cursor: pointer;
}

#hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    position: relative;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-logo {
    max-width: 350px;
    height: auto;
    margin-bottom: 40px;
}

#hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

#hero p {
    font-size: 1.6rem;
    margin-bottom: 40px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.scroll-down-arrow {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 2rem;
    z-index: 3;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-20px);
    }

    60% {
        transform: translateX(-50%) translateY(-10px);
    }
}

.main-content-wrapper {
    padding: 50px 0;
}

.content-section {
    padding: 60px;
    margin-bottom: 50px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

#features {
    background: none;
    box-shadow: none;
    border: none;
    padding: 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    text-align: center;
}

.feature-item {
    background: var(--glass-bg);
    padding: 40px 30px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    transition: transform 0.4s ease, background 0.4s ease;
}

.feature-item:hover {
    transform: translateY(-10px);
    background: rgba(10, 25, 20, 0.8);
}

.feature-item h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.gallery-grid img:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.map-container {
    border-radius: 12px;
    overflow: hidden;
    line-height: 0;
}

.contact-container {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

form {
    flex: 2;
    display: flex;
    flex-direction: column;
}

.contact-info {
    flex: 1;
    padding: 40px;
    text-align: center;
    background: var(--glass-bg);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

.phone-number {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-top: 10px;
    text-decoration: none;
    display: block;
}

input,
textarea {
    width: 100%;
    padding: 18px;
    margin-bottom: 20px;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    background-color: rgba(0, 0, 0, 0.2);
    color: #fff;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-align: right;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

form .btn {
    align-self: flex-start;
    cursor: pointer;
}

.social-media {
    margin-top: 30px;
}

.social-icons {
    margin-top: 15px;
}

.social-icons a {
    color: var(--secondary-color);
    font-size: 2.2rem;
    margin: 0 15px;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
    color: var(--primary-color);
    transform: translateY(-5px);
}

footer {
    background-color: rgba(10, 20, 15, 0.8);
    color: #fff;
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid var(--glass-border);
}

@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    #hero h1 {
        font-size: 3rem;
    }

    #hero p {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .content-section {
        padding: 40px 25px;
    }

    header .logo span {
        display: none;
    }

    header .main-nav {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 75px;
        right: 0;
        background-color: rgba(10, 25, 20, 0.9);
        backdrop-filter: blur(5px);
    }

    header .main-nav.active {
        display: flex;
    }

    .main-nav li {
        margin: 0;
        text-align: center;
        border-bottom: 1px solid var(--glass-border);
    }

    .main-nav li a {
        display: block;
        padding: 15px;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .about-content,
    .contact-container {
        flex-direction: column;
    }

    .about-image {
        margin-top: 40px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .hero-logo {
        max-width: 240px;
        margin-bottom: 20px;
    }
}