/* ---------- تعریف فونت لوکال ---------- */
@font-face {
    font-family: 'Vazirmatn';
    src: url('fonts/Vazirmatn-Regular.woff2') format('woff2'),
         url('fonts/Vazirmatn-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}
/* ---------- ریست و تنظیمات کلی ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Vazirmatn', sans-serif;
    background: linear-gradient(135deg, #0b3d2c, #166b4a, #249d6c);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    direction: rtl;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.book-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    width: 100%;
}

.book {
    width: 100%;
    max-width: 1200px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15), 0 10px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    position: relative;
    min-height: 600px;
}

/* ===== مدیریت صفحات (بدون انیمیشن) ===== */
.page {
    display: none;
    width: 100%;
    min-height: 600px;
    background: linear-gradient(145deg, rgba(200, 230, 201, 0.5), rgba(165, 214, 167, 0.5));
    border-radius: 20px;
}

.page.active {
    display: flex;
}

.page-content {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    backface-visibility:hidden;
    -webkit-backface-visibility:hidden;
}

.page-content::-webkit-scrollbar {
    display: none;
}

.page-left { 
    border-left: 1px solid #f0f0f0; 
}
.page-right { 
    border-right: 1px solid #f0f0f0; 
}

/* ========== یکسان‌سازی ارتفاع صفحات ========== */
@media (min-width: 769px) {
    .book {
        height: 650px;
        min-height: 650px;
        overflow: hidden; /* اضافه شده */
    }
    .page {
        min-height: 650px;
        height: 650px;
        overflow: hidden; /* اضافه شده */
    }
    .page-content {
        justify-content: flex-start; /* تغییر از center به flex-start */
        padding: 30px 40px; /* کمی فاصله از بالا */
        overflow-y: auto; /* فعال کردن اسکرول عمودی */
    }
}

@media (max-width: 768px) {
    .book {
        height: auto;
        min-height: auto;
        overflow: visible;
    }
    .page {
        flex-direction: column;
        min-height: auto;
        height: auto;
        overflow: visible;
    }
    .page-content {
        padding: 20px;
        width: 100%;
        overflow-y: visible;
        min-height: auto;
        justify-content: center;
    }
    .page-left { 
        border-left: none; 
        border-bottom: 1px solid #f0f0f0; 
    }
    .page-right { 
        border-right: none; 
    }
    .contact-page .page-content {
        justify-content: center;
    }
}

/* =================== کارت محصولات =================== */
.product-card {
    width: 100%;
    max-width: 550px;
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: auto;
    /* اضافه شده برای جلوگیری از فضای سفید اضافی */
    height: 100%;
    justify-content: flex-start;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.product-image {
    width: 100%;
    max-width: 520px;
    aspect-ratio: 4/3;
    margin-bottom: 15px;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    cursor: pointer;
    transition: transform 0.3s ease;
    /* اضافه شده */
    flex-shrink: 0;
}

.product-image:hover { 
    transform: scale(1.04); 
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #333;
    margin: 5px 0 10px;
    text-align: center;
    background: linear-gradient(135deg, #00796b, #43a047);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    padding-bottom: 10px;
    /* اضافه شده */
    width: 100%;
}

.product-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(135deg, #00796b, #43a047);
    border-radius: 10px;
}

.product-desc {
    text-align: center;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.7;
    padding: 0 10px;
    /* اضافه شده */
    width: 100%;
    flex-shrink: 0;
}

/* =================== صفحه تماس =================== */
.contact-page .page-content {
    justify-content: flex-start;
}

/* ===== واکنش‌گرایی برای صفحه‌های متوسط ===== */
@media (max-width: 1024px) and (min-width: 769px) {
    .book {
        height: 600px;
        min-height: 600px;
    }
    .page {
        min-height: 600px;
        height: 600px;
    }
    .product-card {
        padding: 15px;
        max-width: 450px;
    }
    .product-title {
        font-size: 1.2rem;
    }
    .product-desc {
        font-size: 0.85rem;
    }
    .page-content {
        padding: 25px;
    }
}

/* ===== واکنش‌گرایی موبایل ===== */
@media (max-width: 768px) {
    .product-card {
        max-width: 100%;
        padding: 15px;
        height: auto;
    }
    .product-image {
        max-width: 100%;
        aspect-ratio: 4/3;
    }
    .product-title {
        font-size: 1.1rem;
    }
    .product-desc {
        font-size: 0.85rem;
    }
    .company-name {
        font-size: 1.8rem;
    }
    .company-slogan {
        font-size: 1rem;
    }
    .logo-placeholder {
        width: 120px;
        height: 120px;
    }
    .controls {
        padding: 10px 15px;
        gap: 8px;
    }
    .nav-btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    .page-indicator {
        min-width: 100px;
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    .contact-info, .contact-map {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .page-content {
        padding: 12px;
    }
    .product-card {
        padding: 10px;
    }
    .product-title {
        font-size: 0.95rem;
        padding-bottom: 8px;
    }
    .product-desc {
        font-size: 0.75rem;
        line-height: 1.5;
    }
    .product-image {
        margin-bottom: 10px;
        border-radius: 10px;
    }
    .contact-item {
        padding: 8px;
        gap: 8px;
    }
    .contact-item .icon {
        font-size: 18px;
        min-width: 30px;
        padding: 4px;
    }
    .contact-item h4 {
        font-size: 0.85rem;
    }
    .contact-item p {
        font-size: 0.75rem;
    }
    .controls {
        padding: 6px 10px;
        gap: 4px;
    }
    .nav-btn {
        padding: 6px 10px;
        font-size: 0.7rem;
    }
    .page-indicator {
        min-width: 60px;
        font-size: 0.6rem;
        padding: 3px 6px;
    }
}
/* =================== صفحه اصلی =================== */

.main-page-right {
    background: linear-gradient(135deg, #004d40, #00796b, #2e7d32, #43a047);
    color: white;
    position: relative;
    overflow: hidden;
}

/* هاله‌های نورانی اصلی */
.main-page-right::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -30%;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.main-page-right::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -20%;
    width: 70%;
    height: 70%;
    background: radial-gradient(circle at 50% 50%, rgba(100,200,100,0.2) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* ---------- گلبرگ‌های متحرک با عکس ---------- */
.petal {
    position: absolute;
    pointer-events: none;
    z-index: 0;
    opacity: 0.7;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;

    animation: floatPetal var(--duration, 15s) ease-in-out infinite;
    animation-fill-mode: both;
}

/* هر گلبرگ با موقعیت و اندازه متفاوت */
.petal-1 {
    width: 120px;
    height: 120px;
    top: 5%;
    left: 2%;
    background-image: url('petal-1.png');
    opacity: 0.65;
    animation-duration: 18s;
    animation-delay: 0s !important;
    transform: rotate(-20deg);
}

.petal-2 {
    width: 150px;
    height: 150px;
    bottom: 2%;
    right: 3%;
    background-image: url('petal-2.png');
    opacity: 0.3;
    animation-duration: 20s;
    animation-delay: 0s !important;
    transform: rotate(35deg);
}

.petal-3 {
    width: 90px;
    height: 90px;
    top: 20%;
    right: 5%;
    background-image: url('petal-3.png');
    opacity: 0.6;
    animation-duration: 16s;
    animation-delay: 0s !important;
    transform: rotate(60deg);
}

.petal-4 {
    width: 100px;
    height: 100px;
    bottom: 25%;
    left: 3%;
    background-image: url('petal-4.png');
    opacity: 0.3;
    animation-duration: 19s;
    animation-delay: 0s !important;
    transform: rotate(-40deg);
}

.petal-5 {
    width: 80px;
    height: 80px;
    top: 55%;
    right: 8%;
    background-image: url('petal-5.png');
    opacity: 0.35;
    animation-duration: 14s;
    animation-delay: 0s !important;
    transform: rotate(15deg);
}

.petal-6 {
    width: 130px;
    height: 130px;
    bottom: 10%;
    left: 15%;
    background-image: url('petal-6.png');
    opacity: 0.25;
    animation-duration: 22s;
    animation-delay: 0s !important;
    transform: rotate(-25deg);
    
}



/* ---------- پارتیکل‌های نورانی و ریز ---------- */
.particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    animation: particleFloat 20s ease-in-out infinite;
}

.particle:nth-child(1) { top: 10%; left: 20%; animation-delay: 0s; width: 6px; height: 6px; }
.particle:nth-child(2) { top: 30%; left: 60%; animation-delay: 3s; width: 10px; height: 10px; }
.particle:nth-child(3) { top: 50%; left: 10%; animation-delay: 6s; width: 4px; height: 4px; }
.particle:nth-child(4) { top: 70%; left: 70%; animation-delay: 9s; width: 12px; height: 12px; }
.particle:nth-child(5) { top: 85%; left: 30%; animation-delay: 12s; width: 5px; height: 5px; }
.particle:nth-child(6) { top: 15%; left: 85%; animation-delay: 15s; width: 7px; height: 7px; }

/* ---------- انیمیشن‌ها ---------- */
@keyframes floatPetal {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    25% {
        transform: translate(30px, -40px) rotate(5deg) scale(1.05);
    }
    50% {
        transform: translate(-20px, -70px) rotate(-5deg) scale(0.95);
    }
    75% {
        transform: translate(40px, -30px) rotate(3deg) scale(1.02);
    }
    100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
}

@keyframes bloomFloat {
    0%, 100% {
        transform: translateY(0) scale(1) rotate(0deg);
    }
    50% {
        transform: translateY(-25px) scale(1.08) rotate(5deg);
    }
}

@keyframes swayLeaf {
    0%, 100% {
        transform: rotate(var(--rotation, 0deg)) scale(1);
    }
    50% {
        transform: rotate(calc(var(--rotation, 0deg) + 15deg)) scale(1.05);
    }
}

@keyframes particleFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    25% {
        transform: translate(50px, -80px) scale(1.5);
        opacity: 0.6;
    }
    50% {
        transform: translate(-30px, -150px) scale(0.8);
        opacity: 0.1;
    }
    75% {
        transform: translate(70px, -100px) scale(1.2);
        opacity: 0.5;
    }
}

/* ---------- تنظیمات اصلی که تغییر نکرده ---------- */
.logo-section {
    text-align: center;
    width: 100%;
    position: relative;
    z-index: 1;
}

.logo-placeholder {
    width: 160px;
    height: 160px;
    margin: 0 auto 30px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 3px solid rgba(255,255,255,0.3);
    overflow: hidden;
    animation: floatLogo 3s ease-in-out infinite, pulseGlowGreen 2s ease-in-out infinite;
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: rotateSlow 20s linear infinite;
}

@keyframes floatLogo {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

@keyframes pulseGlowGreen {
    0%, 100% { box-shadow: 0 0 15px rgba(255,255,255,0.3); }
    50% { box-shadow: 0 0 35px rgba(100,255,100,0.7); }
}

@keyframes rotateSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ---------- استایل متون ---------- */
.company-name,
.company-slogan {
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    overflow: hidden;
}

.company-name {
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 15px;
    text-shadow: none;
    line-height: 1.4;
    background-image: linear-gradient(
        90deg,
        #0b5e4b 0%,
        #66bb6a 20%,
        #ffffff 40%,
        #a5d6a7 60%,
        #0b5e4b 80%
    );
    background-size: 200% auto;
    background-position: 0% center;
    animation: lightSweepGreen 3s infinite linear, fadeSlideUp 0.8s ease-out forwards;
}

.company-slogan {
    font-size: 1.3rem;
    font-weight: 700;
    opacity: 0.9;
    letter-spacing: 2px;
    background-image: linear-gradient(
        90deg,
        #2e7d32 0%,
        #81c784 25%,
        #ffffff 50%,
        #a5d6a7 75%,
        #2e7d32 100%
    );
    background-size: 200% auto;
    background-position: 0% center;
    animation: lightSweepGreen 3.5s infinite linear reverse, fadeSlideUp 0.8s ease-out forwards;
}

@keyframes lightSweepGreen {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

@keyframes fadeSlideUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
        filter: blur(3px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.main-page-left {
    background: #f8f9fa;
    border-radius: 0 !important; /* گوشه‌های تیز */
}

.menu-section { width: 100%; max-width: 420px; }

.menu-title {
    font-size: 2rem;
    color: #333;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 600;
}

.category-menu { list-style: none; margin-bottom: 40px; }
.category-menu li { margin-bottom: 12px; }

.category-btn {
    width: 100%;
    padding: 15px 20px;
    background: linear-gradient(135deg, #00796b, #2e7d32, #43a047);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.category-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.contact-menu {
    text-align: center;
    padding-top: 30px;
    border-top: 2px solid #e0e0e0;
}

.contact-title { font-size: 1.4rem; margin-bottom: 15px; color: #555; }

.contact-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #00796b, #43a047);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 0.95rem;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.contact-btn:hover {
    background: linear-gradient(135deg, #2e7d32, #66bb6a);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

#showContactBtn {
    margin-right: auto;
    margin-left: auto;
    display: block;
}

/* =================== کارت محصولات =================== */
.product-card {
    width: 100%;
    max-width: 550px;
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: auto;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.product-image {
    width: 100%;
    max-width: 520px;
    aspect-ratio: 4/3;
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.product-image:hover { transform: scale(1.04); }

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #333;
    margin: 5px 0 15px;
    text-align: center;
    background: linear-gradient(135deg, #00796b, #43a047);  /* متن گرادیان سبز */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    padding-bottom: 10px;
}

.product-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(135deg, #00796b, #43a047);
    border-radius: 10px;
}

.product-desc {
    text-align: center;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.7;
    padding: 0 10px;
}

/* =================== صفحه تماس =================== */
.contact-info, .contact-map {
    width: 100%;
    max-width: 450px;
    background: linear-gradient(145deg, #e8f5e9, #c8e6c9);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border: 1px solid #f0f0f0;
}

.contact-info h2 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

.contact-info h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #00796b, #43a047);
    border-radius: 10px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 25px;
    padding: 15px;
    background: #f9f9ff;
    border-radius: 15px;
    transition: background 0.3s ease, transform 0.3s ease;
}

.contact-item:hover {
    background: linear-gradient(145deg, #e0f2f1, #b2dfdb);;  /* پس‌زمینه سبز ملایم */
    transform: translateX(-5px);
}

.contact-item .icon {
    font-size: 28px;
    min-width: 45px;
    text-align: center;
    background: linear-gradient(145deg, #ffffff, #e8f5e9);
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.contact-item h4 { font-size: 1.1rem; color: #333; margin-bottom: 6px; font-weight: 600; }
.contact-item p { color: #555; line-height: 1.7; font-size: 0.95rem; }

.contact-map h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.3rem;
    position: relative;
    padding-bottom: 10px;
    font-weight: 600;
}

.contact-map h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 2px;
    background: #00796b;
    border-radius: 10px;
}

.contact-map p { color: #555; line-height: 2; margin-bottom: 15px; font-size: 0.95rem; }

.social-media { margin-top: 35px; }
.social-media h3 { margin-bottom: 15px; }

.social-icons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.social-icon {
    padding: 12px 24px;
    background: linear-gradient(135deg, #003d33, #00695c);
    color: #e0f7fa;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 200, 180, 0.08);
}

.social-icon:hover {
    background: linear-gradient(135deg, #004d40, #00796b);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 150, 130, 0.08);
    color: #ffffff;
    border-color: rgba(0, 200, 180, 0.2);
}
/* ===== تنظیم پایه برای نمایش درست انیمیشن‌ها ===== */
.contact-item .icon {
    display: inline-block;   /* این خط حیاتی است تا انیمیشن‌ها روی ایموجی اعمال شوند */
    font-size: 28px;
    min-width: 45px;
    text-align: center;
    background: linear-gradient(145deg, #ffffff, #e8f5e9);
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* ===== ۱. انیمیشن تلفن (زنگ خوردن/تکان خوردن) ===== */
@keyframes shakePhone {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(20deg) scale(1.1); }
    50% { transform: rotate(-20deg) scale(1.1); }
    75% { transform: rotate(10deg); }
    100% { transform: rotate(0deg); }
}
.icon-phone {
    animation: shakePhone 1.2s infinite ease-in-out;
}

/* ===== ۲. انیمیشن پیام‌رسان (گفتگو/پریدن حباب) ===== */
@keyframes bounceChat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-10px) scale(1.15); }
}
.icon-chat {
    animation: bounceChat 1.5s infinite ease;
}

/* ===== انیمیشن جدید ایمیل (حرکت بالا/پایین همراه با چرخش جزئی) ===== */
@keyframes flyEmail {
    0% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-8px) rotate(-6deg); }
    50% { transform: translateY(0) rotate(0deg); }
    75% { transform: translateY(8px) rotate(6deg); }
    100% { transform: translateY(0) rotate(0deg); }
}
.icon-email {
    animation: flyEmail 2s infinite ease-in-out;
}
/* ===== ۴. انیمیشن آدرس (نقاط روی نقشه/تاب خوردن) ===== */
@keyframes swingLocation {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(-10deg); }
}
.icon-location {
    animation: swingLocation 2s infinite ease-in-out;
}

/* ===== انیمیشن جدید وب‌سایت (چرخش کره با کمی نوسان) ===== */
@keyframes globeSpin {
    0% { transform: rotateY(0deg) translateY(0); }
    25% { transform: rotateY(90deg) translateY(-3px); }
    50% { transform: rotateY(180deg) translateY(0); }
    75% { transform: rotateY(270deg) translateY(3px); }
    100% { transform: rotateY(360deg) translateY(0); }
}
.icon-web {
    animation: globeSpin 4s infinite linear;
}
/* =================== کنترل‌های پایین =================== */
.controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 25px;
    padding: 12px 30px;
    background: rgba(0, 50, 30, 0.5); /* سبز بسیار تیره شفاف */
    backdrop-filter: blur(30px);
    border-radius: 60px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid rgba(255,255,255,0.4);
}

.nav-btn {
    padding: 12px 24px;
    border: none;
    background: rgba(255,255,255,0.9);
    color: #1b5e20; /* متن سبز تیره */
    border-radius: 40px;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.nav-btn:hover:not(:disabled) {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(255,255,255,0.5);
    transform: none;
}

.home-btn {
    /* ترکیب متعادل: طلاییِ ملایم + زمینه‌ی قهوه‌ای-مشکی (نه مشکیِ سرد) */
    background: 
        radial-gradient(circle at 30% 30%, rgba(255, 215, 0, 0.35) 0%, transparent 60%),
        radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
        linear-gradient(145deg, rgba(60, 50, 30, 0.8), rgba(20, 15, 10, 0.92));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    
    /* رنگ متن طلاییِ خوانا */
    color: #f9d976;
    font-weight: 600;
    
    /* حاشیه‌ی طلایی با ضخامت متوسط */
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-top: 1px solid rgba(255, 215, 0, 0.25);
    
    /* سایه‌ی مشکی با یک پاششِ بسیار کم‌رنگ طلایی */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 215, 0, 0.05);
    
    transition: all 0.3s ease;
}

.home-btn:hover:not(:disabled) {
    /* در حالت هاور، طلایی‌تر می‌شود ولی باز هم تعادل را حفظ می‌کند */
    background: 
        radial-gradient(circle at 30% 30%, rgba(255, 215, 0, 0.5) 0%, transparent 65%),
        radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.15) 0%, transparent 55%),
        linear-gradient(145deg, rgba(80, 65, 40, 0.85), rgba(30, 25, 20, 0.95));
    
    color: #fff3b0; /* طلایی درخشان‌تر برای هاور */
    border-color: rgba(255, 215, 0, 0.5);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6), 0 0 40px rgba(255, 215, 0, 0.08);
    transform: translateY(-2px);
}

.page-indicator {
    font-weight: 600;
    color: #e0f7fa; /* سفید-آبی ملایم برای تضاد بهتر */
    background: #003d33; /* سبز کله‌غازی تیره و مات */
    padding: 8px 24px;
    border-radius: 30px;
    font-size: 0.95rem;
    border: 1px solid rgba(0, 200, 180, 0.15); /* حاشیهٔ نازک برای هماهنگی با افکت شیشه */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* =================== مودال تصویر =================== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    /* یا برای سبز شیشه‌ای: */
    /* background: rgba(46, 125, 50, 0.15); */
    /* backdrop-filter: blur(20px); */
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    border-radius: 10px;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #ffffff; 
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.modal-close:hover {
    color: #ff0000;
}

.modal-caption {
    margin: 20px auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #000000cc;
    padding: 10px 0;
    height: 50px;
}

/* =================== واکنش‌گرایی موبایل =================== */
@media (max-width: 768px) {
    .book {
        flex-direction: column;
        min-height: auto;
    }
    .page {
        flex-direction: column;
    }
    .page-content {
        padding: 20px;
        width: 100%;
    }

    .product-image {
        max-width: 260px;
    }

    .company-name {
        font-size: 1.8rem;
    }
    .company-slogan {
        font-size: 1rem;
    }
    .logo-placeholder {
        width: 120px;
        height: 120px;
    }

    .controls {
        padding: 10px 15px;
        gap: 8px;
    }
    .nav-btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
}
