/* ==================== متغیرهای عمومی و استایل‌های پایه ==================== */
:root {
    --gold-color: #E1B45D; /* رنگ طلایی */
    --dark-gold: #B2832E; /* طلایی تیره */
    --black-color: #121212; /* رنگ مشکی */
    --light-black: #1f1f1f; /* مشکی روشن */
    --text-color: #e0e0e0; /* رنگ متن */
    --white-color: #ffffff;
}

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

body {
    font-family: 'Vazirmatn', sans-serif;
    background-color: var(--black-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden; /* جلوگیری از اسکرول افقی */
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--gold-color);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* ==================== استایل‌های هدر ==================== */
header {
    background: rgba(18, 18, 18, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--gold-color);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* افکت سه بعدی برای لوگو */
.logo-container {
    perspective: 500px;
}

.logo img {
    display: block;
    transition: transform 0.6s ease-in-out, box-shadow 0.6s ease-in-out;
    transform-style: preserve-3d;
}

.logo:hover img {
    transform: rotateY(15deg) rotateX(-5deg) scale(1.05);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.5);
}

/* استایل منوی ناوبری */
nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    position: relative;
    padding: 5px 10px;
    transition: color 0.3s ease;
}

/* افکت خلاقانه برای منو */
nav a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--gold-color);
    transform: translateX(-50%) perspective(500px) rotateX(90deg);
    transform-origin: bottom;
    transition: width 0.4s ease, transform 0.4s ease;
}

nav a:hover {
    color: var(--gold-color);
}

nav a:hover::before {
    width: 100%;
    transform: translateX(-50%) perspective(500px) rotateX(0deg);
}

.contact-info span {
    color: var(--gold-color);
    font-weight: 500;
}

/* ==================== استایل‌های بخش اصلی و اسلایدر ==================== */
#hero {
    margin-top: 80px; /* فاصله از هدر ثابت */
    position: relative;
    height: 80vh;
    overflow: hidden;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--white-color);
    background: rgba(0, 0, 0, 0.6);
    padding: 2rem 3rem;
    border-radius: 10px;
    border: 1px solid var(--gold-color);
}

.slide-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}

.slide-content p {
    font-size: 1.2rem;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: var(--white-color);
    font-weight: bold;
    font-size: 24px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0,0,0,0.5);
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: var(--gold-color);
    color: var(--black-color);
}

/* ==================== استایل بخش پارالاکس ==================== */
.parallax-section {
    height: 60vh;
    background-image: url('https://images.unsplash.com/photo-1558618666-fcd25c85cd64?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1771&q=80');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

.parallax-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.parallax-content {
    position: relative;
    z-index: 1;
    padding: 2rem;
}

.parallax-content h2 {
    font-size: 2.5rem;
    color: var(--gold-color);
    margin-bottom: 1rem;
}

/* ==================== استایل گالری محصولات ==================== */
#products {
    padding: 200px 0;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--light-black);
    border: 1px solid #333;
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(212, 175, 55, 0.3);
    border-color: var(--gold-color);
}

.product-card img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.product-card h3 {
    font-size: 1.5rem;
    margin: 1rem 0;
    color: var(--gold-color);
}

.product-card p {
    padding: 0 1rem;
    margin-bottom: 1.5rem;
}

/* ==================== استایل بخش درباره ما ==================== */
#about-us {
    padding: 80px 0;
    background: var(--light-black);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    color: var(--gold-color);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.about-text h4 {
    color: var(--dark-gold);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

/* ==================== استایل بخش نظرات مشتریان ==================== */
#testimonials {
    padding: 80px 0;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--light-black);
    padding: 2rem;
    border-radius: 10px;
    border-right: 5px solid var(--gold-color);
    position: relative;
}

.testimonial-card i {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    color: var(--dark-gold);
    opacity: 0.5;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimonial-card cite {
    font-weight: bold;
    color: var(--gold-color);
}

/* ==================== استایل بخش تماس با ما ==================== */
#contact {
    padding: 80px 0;
    background: var(--light-black);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-form h3 {
    color: var(--gold-color);
    margin-bottom: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    background: var(--black-color);
    border: 1px solid #444;
    border-radius: 5px;
    color: var(--text-color);
    font-family: 'Vazirmatn', sans-serif;
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--gold-color);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--gold-color);
    width: 30px;
}

.social-links h4 {
    color: var(--gold-color);
    margin-bottom: 1rem;
}

.social-icon {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: var(--black-color);
    color: var(--text-color);
    border-radius: 50%;
    margin-left: 10px;
    transition: background-color 0.3s, color 0.3s, transform 0.3s;
}

.social-icon:hover {
    background-color: var(--gold-color);
    color: var(--black-color);
    transform: scale(1.1);
}

.payment-sms {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
}

.sms-btn, .payment-btn {
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.sms-btn {
    background-color: #25d366; /* رنگ واتساپ */
    color: white;
}

.payment-btn {
    background-color: var(--gold-color);
    color: var(--black-color);
}

.sms-btn:hover, .payment-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* ==================== استایل بخش ورود به فروشگاه ==================== */
#store-entrance {
    padding: 100px 0;
    text-align: center;
    background-image: url('https://images.unsplash.com/photo-1556742049-0cfed4f6a45d?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1770&q=80');
    background-size: cover;
    background-position: center;
    position: relative;
}

#store-entrance::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

#store-entrance .container {
    position: relative;
    z-index: 1;
}

#store-entrance h2 {
    font-size: 2.5rem;
    color: var(--white-color);
}

#store-entrance p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* دکمه سه بعدی */
.btn-3d {
    display: inline-block;
    padding: 1rem 3rem;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--black-color);
    background: linear-gradient(145deg, var(--gold-color), var(--dark-gold));
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 10px 0 var(--dark-gold), 0 10px 20px rgba(0,0,0,0.3);
    transition: all 0.1s ease;
    position: relative;
    top: 0;
}

.btn-3d:hover {
    background: linear-gradient(145deg, var(--dark-gold), var(--gold-color));
}

.btn-3d:active {
    top: 10px;
    box-shadow: 0 0 0 var(--dark-gold), 0 5px 10px rgba(0,0,0,0.3);
}

/* ==================== استایل فوتر ==================== */
footer {
    background: var(--black-color);
    padding: 50px 0 20px;
    border-top: 1px solid var(--gold-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 30px;
}

.footer-logo img {
    width: 150px;
    margin-bottom: 1rem;
}

.footer-links h4, .footer-social h4 {
    color: var(--gold-color);
    margin-bottom: 1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--gold-color);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    color: #888;
}

/* ==================== استایل دکمه عمومی ==================== */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: var(--gold-color);
    color: var(--black-color);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.3s, transform 0.3s;
}

.btn:hover {
    background-color: var(--dark-gold);
    transform: translateY(-3px);
}

/* ==================== استایل پخش کننده موسیقی ==================== */
#music-player {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: rgba(18, 18, 18, 0.9);
    padding: 10px;
    border-radius: 10px;
    border: 1px solid var(--gold-color);
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 10px;
}

#play-pause-btn {
    background: none;
    border: none;
    color: var(--gold-color);
    font-size: 1.5rem;
    cursor: pointer;
}

#music-select {
    background: var(--black-color);
    color: var(--text-color);
    border: 1px solid #444;
    padding: 5px;
    border-radius: 5px;
}

/* ==================== رسپانسیو (طراحی برای موبایل) ==================== */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    nav ul {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .slide-content h1 {
        font-size: 2rem;
    }

    .about-content {
        flex-direction: column;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .payment-sms {
        flex-direction: column;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    #music-player {
        bottom: 10px;
        left: 10px;
        right: 10px;
        justify-content: center;
    }
}