/* استایل‌های ویژه برای اسلایدر مناسبت‌ها */
.special-occasion-slider {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* استایل‌های ویژه برای ویدیو در اسلایدر */
.special-occasion-slider .carousel-item video {
    width: 100%;
    height: 100%;
    object-fit: contain; /* تغییر از cover به contain */
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    display: block;
    background-color: #000; /* پس‌زمینه سیاه */
}

.special-occasion-slider .carousel-item:has(video) {
    position: relative;
    height: 600px; /* ارتفاع ثابت برای اسلاید ویدیو */
    overflow: hidden;
}

/* استایل‌های اضافی برای ویدیو */
#myVideo1 {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important; /* تغییر از cover به contain برای نمایش کامل ویدیو */
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 1 !important;
    display: block !important;
    background-color: #000 !important; /* پس‌زمینه سیاه برای فضاهای خالی */
}

/* اطمینان از پخش خودکار ویدیو */
.special-occasion-slider .carousel-item video[autoplay] {
    display: block;
}

/* فالت‌بک برای مرورگرهایی که از ویدیو پشتیبانی نمی‌کنند */
.special-occasion-slider .carousel-item video:not([src]) {
    display: none;
}

.special-occasion-slider .carousel-caption {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    animation: slideInUp 0.8s ease-out;
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 800px;
}

.special-occasion-slider .carousel-caption h3 {
    font-size: clamp(4px, 0.8vw, 8px); /* فونت خط اول خیلی خیلی کوچک */
    margin-bottom: 4px;
    color: white;
    font-weight: bold;
    text-align: center;
    line-height: 1.1;
}

.special-occasion-slider .carousel-caption p {
    font-size: clamp(8px, 1.1vw, 10px); /* فونت خط دوم 2 شماره کوچک‌تر از خط اول */
    margin-bottom: 0;
    color: #f0f0f0;
    text-align: center;
    line-height: 1.2;
}

/* مدیریت اندازه highlight بر اساس سایز تصویر */
.special-occasion-slider .carousel-caption {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: clamp(10px, 1.2vw, 16px); /* padding بزرگ‌تر */
    animation: slideInUp 0.8s ease-out;
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%; /* 4/5 عرض صفحه */
    max-width: 1000px; /* حداکثر عرض بیشتر */
    display: block !important; /* نمایش در همه حالت‌ها */
    text-align: center;
    margin: 0 auto;
}

/* ریسپانسیو برای صفحات مختلف */
@media (max-width: 1200px) {
    .special-occasion-slider .carousel-caption h3 {
        font-size: clamp(3px, 0.9vw, 7px);
    }
    
    .special-occasion-slider .carousel-caption p {
        font-size: clamp(7px, 1vw, 9px);
    }
    
    .special-occasion-slider .carousel-caption {
        padding: clamp(8px, 1vw, 14px);
        max-width: 900px;
        width: 80%;
    }
}

@media (max-width: 768px) {
    .special-occasion-slider .carousel-caption h3 {
        font-size: clamp(2px, 0.8vw, 6px);
    }
    
    .special-occasion-slider .carousel-caption p {
        font-size: clamp(6px, 0.9vw, 8px);
    }
    
    .special-occasion-slider .carousel-caption {
        padding: clamp(6px, 0.8vw, 12px);
        max-width: 600px;
        width: 85%;
        bottom: 3%;
        display: block !important; /* نمایش در موبایل */
    }
}

@media (max-width: 480px) {
    .special-occasion-slider .carousel-caption h3 {
        font-size: clamp(1px, 0.6vw, 4px);
    }
    
    .special-occasion-slider .carousel-caption p {
        font-size: clamp(5px, 0.7vw, 6px);
    }
    
    .special-occasion-slider .carousel-caption {
        padding: clamp(5px, 0.6vw, 8px);
        max-width: 400px;
        width: 95%;
        bottom: 2%;
        display: block !important; /* نمایش در موبایل */
    }
}

/* مدیریت تصاویر برای صفحات مختلف */
.special-occasion-slider .carousel-item img {
    width: 100%;
    height: 70vh; /* ارتفاع نسبی به viewport */
    object-fit: cover;
    object-position: center;
    transition: all 0.3s ease;
}

/* تنظیمات ویژه برای تصاویر با نسبت‌های مختلف */
.special-occasion-slider .carousel-item img[src*="portrait"] {
    object-position: center top; /* برای تصاویر عمودی */
}

.special-occasion-slider .carousel-item img[src*="landscape"] {
    object-position: center center; /* برای تصاویر افقی */
}

/* مدیریت ویدیو برای صفحات مختلف */
.special-occasion-slider .carousel-item video {
    width: 100%;
    height: 70vh; /* ارتفاع نسبی به viewport */
    object-fit: contain;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    display: block;
    background-color: #000;
    transition: all 0.3s ease;
}

/* ریسپانسیو برای تصاویر و ویدیو */
@media (max-width: 1400px) {
    .special-occasion-slider .carousel-item img,
    .special-occasion-slider .carousel-item video {
        height: 65vh;
    }
}

@media (max-width: 1200px) {
    .special-occasion-slider .carousel-item img,
    .special-occasion-slider .carousel-item video {
        height: 60vh;
    }
}

@media (max-width: 1000px) {
    .special-occasion-slider .carousel-item img,
    .special-occasion-slider .carousel-item video {
        height: 55vh;
    }
}

@media (max-width: 768px) {
    .special-occasion-slider .carousel-item img,
    .special-occasion-slider .carousel-item video {
        height: 50vh; /* ارتفاع کمتر در موبایل */
    }
}

@media (max-width: 600px) {
    .special-occasion-slider .carousel-item img,
    .special-occasion-slider .carousel-item video {
        height: 45vh;
    }
}

@media (max-width: 480px) {
    .special-occasion-slider .carousel-item img,
    .special-occasion-slider .carousel-item video {
        height: 40vh; /* ارتفاع کمتر در موبایل کوچک */
    }
}

@keyframes slideInUp {
    from {
        transform: translateX(-50%) translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

/* منوی موبایل slide-in */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-sidebar {
    position: fixed;
    top: 0;
    right: -70%;
    width: 70%;
    height: 100%;
    background: linear-gradient(135deg, #000608 0%, #1a1a1a 100%);
    z-index: 9999;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
}

.mobile-menu-sidebar.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.mobile-menu-header h4 {
    color: white;
    margin: 0;
    font-size: 18px;
    font-weight: bold;
}

.mobile-menu-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.mobile-menu-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.mobile-menu-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu-items li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-menu-items li a {
    display: block;
    padding: 20px 25px;
    color: white;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s ease;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-items li a:hover {
    background: rgba(255, 255, 255, 0.1);
    padding-right: 30px;
    color: #007bff;
}

.mobile-menu-items li a:before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 3px;
    background: #007bff;
    transition: width 0.3s ease;
}

.mobile-menu-items li a:hover:before {
    width: 5px;
}

.mobile-menu-items li:last-child a {
    border-bottom: none;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    padding: 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
    z-index: 1000;
    cursor: pointer;
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

/* ریسپانسیو برای موبایل */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block !important;
    }
    
    .nav-box {
        display: none !important;
    }
    
    .navbar {
        padding: 8px 15px !important;
        height: 45px !important;
        min-height: 45px !important;
    }
    
    .navigation-row {
        height: 100%;
        display: flex;
        align-items: center;
    }
    
    #navigation {
        width: 100%;
        display: flex;
        justify-content: flex-end;
    }
    
    .navbar-toggle {
        display: none !important;
    }
    
    /* اطمینان از نمایش منوی موبایل */
    .mobile-menu-overlay,
    .mobile-menu-sidebar {
        display: block !important;
    }
}

@media (max-width: 480px) {
    .mobile-menu-sidebar {
        width: 60%;
        right: -60%;
    }
    
    .mobile-menu-header h4 {
        font-size: 16px;
    }
    
    .mobile-menu-items li a {
        font-size: 14px;
        padding: 12px 15px;
    }
}

/* انیمیشن‌های اضافی */
.mobile-menu-items li {
    opacity: 0;
    transform: translateX(20px);
    animation: slideInRight 0.5s ease forwards;
}

.mobile-menu-items li:nth-child(1) { animation-delay: 0.1s; }
.mobile-menu-items li:nth-child(2) { animation-delay: 0.2s; }
.mobile-menu-items li:nth-child(3) { animation-delay: 0.3s; }
.mobile-menu-items li:nth-child(4) { animation-delay: 0.4s; }
.mobile-menu-items li:nth-child(5) { animation-delay: 0.5s; }
.mobile-menu-items li:nth-child(6) { animation-delay: 0.6s; }
.mobile-menu-items li:nth-child(7) { animation-delay: 0.7s; }

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* دکمه دانلود */
.download-button-container {
    position: absolute;
    right: 8%;
    top: 75%;
    z-index: 1000;
    pointer-events: auto;
}

.download-btn {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #000608 0%, #1a1a1a 100%);
    color: white;
    text-decoration: none;
    padding: clamp(6px, 1vw, 12px) clamp(15px, 2.5vw, 25px);
    border-radius: 25px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: clamp(80px, 12vw, 140px);
    max-width: 140px;
    height: clamp(32px, 4vw, 45px);
    line-height: 1;
    position: relative;
    z-index: 1001;
    pointer-events: auto;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    background: linear-gradient(135deg, #1a1a1a 0%, #000608 100%);
    color: white;
    text-decoration: none;
}

.download-icon {
    width: clamp(14px, 2.2vw, 22px);
    height: clamp(14px, 2.2vw, 22px);
    margin-left: clamp(5px, 0.7vw, 9px);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    object-fit: contain;
    object-position: center;
    max-width: 22px;
    max-height: 22px;
    pointer-events: none;
}

.download-btn:hover .download-icon {
    transform: scale(1.1);
}

.download-text {
    font-size: clamp(12px, 1.5vw, 16px);
    font-weight: bold;
    text-align: center;
    flex: 1;
}

/* ریسپانسیو برای دکمه دانلود */
@media (max-width: 768px) {
    .download-button-container {
        right: 5%;
        top: 70%;
        z-index: 1000;
    }
    
    .download-btn {
        padding: clamp(5px, 0.8vw, 10px) clamp(12px, 2vw, 20px);
        min-width: clamp(70px, 18vw, 120px);
        max-width: 120px;
        height: clamp(28px, 3.5vw, 40px);
        z-index: 1001;
    }
    
    .download-icon {
        width: clamp(12px, 1.8vw, 18px);
        height: clamp(12px, 1.8vw, 18px);
        max-width: 18px;
        max-height: 18px;
    }
    
    .download-text {
        font-size: clamp(11px, 1.3vw, 14px);
    }
}

@media (max-width: 480px) {
    .download-button-container {
        right: 3%;
        top: 65%;
        z-index: 1000;
    }
    
    .download-btn {
        padding: clamp(4px, 0.7vw, 8px) clamp(10px, 1.8vw, 16px);
        min-width: clamp(60px, 22vw, 100px);
        max-width: 100px;
        height: clamp(24px, 3vw, 35px);
        z-index: 1001;
    }
    
    .download-icon {
        width: clamp(10px, 1.5vw, 16px);
        height: clamp(10px, 1.5vw, 16px);
        max-width: 16px;
        max-height: 16px;
    }
    
    .download-text {
        font-size: clamp(10px, 1.2vw, 12px);
    }
}

/* فونت‌های responsive برای کل سایت */
html {
    font-size: clamp(14px, 1vw, 16px);
}

body {
    font-size: clamp(14px, 1vw, 16px);
    line-height: 1.6;
}

/* فونت‌های responsive برای عناصر خاص سایت */
.welcome-title {
    font-size: clamp(24px, 4vw, 48px) !important;
    line-height: 1.2;
}

.welcome-first {
    font-size: clamp(16px, 2vw, 24px) !important;
    line-height: 1.4;
}

.navigation-menu li a {
    font-size: clamp(14px, 1.2vw, 18px) !important;
}

.carousel-caption h3 {
    font-size: clamp(18px, 3vw, 28px) !important;
}

.carousel-caption p {
    font-size: clamp(14px, 2vw, 18px) !important;
}

.btn {
    font-size: clamp(14px, 1.2vw, 16px) !important;
}

.section h1, .section h2, .section h3 {
    font-size: clamp(20px, 3vw, 36px) !important;
}

.section p {
    font-size: clamp(14px, 1.3vw, 18px) !important;
}

h1 {
    font-size: clamp(24px, 4vw, 48px);
    line-height: 1.2;
}

h2 {
    font-size: clamp(20px, 3vw, 36px);
    line-height: 1.3;
}

h3 {
    font-size: clamp(18px, 2.5vw, 28px);
    line-height: 1.4;
}

h4 {
    font-size: clamp(16px, 2vw, 24px);
    line-height: 1.4;
}

h5 {
    font-size: clamp(14px, 1.8vw, 20px);
    line-height: 1.5;
}

h6 {
    font-size: clamp(12px, 1.5vw, 18px);
    line-height: 1.5;
}

p {
    font-size: clamp(14px, 1.2vw, 16px);
    line-height: 1.6;
}

a {
    font-size: clamp(14px, 1.1vw, 16px);
}

button {
    font-size: clamp(14px, 1.1vw, 16px);
}

input, textarea, select {
    font-size: clamp(14px, 1.1vw, 16px);
}

/* فونت‌های responsive برای موبایل */
@media (max-width: 768px) {
    html {
        font-size: clamp(12px, 0.9vw, 14px);
    }
    
    body {
        font-size: clamp(12px, 0.9vw, 14px);
    }
    
    h1 {
        font-size: clamp(20px, 3.5vw, 32px);
    }
    
    h2 {
        font-size: clamp(18px, 3vw, 28px);
    }
    
    h3 {
        font-size: clamp(16px, 2.5vw, 24px);
    }
    
    h4 {
        font-size: clamp(14px, 2vw, 20px);
    }
    
    h5 {
        font-size: clamp(12px, 1.8vw, 18px);
    }
    
    h6 {
        font-size: clamp(11px, 1.5vw, 16px);
    }
    
    p {
        font-size: clamp(12px, 1.1vw, 14px);
    }
    
    a {
        font-size: clamp(12px, 1vw, 14px);
    }
    
    button {
        font-size: clamp(12px, 1vw, 14px);
    }
    
    input, textarea, select {
        font-size: clamp(12px, 1vw, 14px);
    }
}

@media (max-width: 480px) {
    html {
        font-size: clamp(11px, 0.8vw, 13px);
    }
    
    body {
        font-size: clamp(11px, 0.8vw, 13px);
    }
    
    h1 {
        font-size: clamp(18px, 3vw, 28px);
    }
    
    h2 {
        font-size: clamp(16px, 2.5vw, 24px);
    }
    
    h3 {
        font-size: clamp(14px, 2vw, 20px);
    }
    
    h4 {
        font-size: clamp(12px, 1.8vw, 18px);
    }
    
    h5 {
        font-size: clamp(11px, 1.5vw, 16px);
    }
    
    h6 {
        font-size: clamp(10px, 1.3vw, 14px);
    }
    
    p {
        font-size: clamp(11px, 1vw, 13px);
    }
    
    a {
        font-size: clamp(11px, 0.9vw, 13px);
    }
    
    button {
        font-size: clamp(11px, 0.9vw, 13px);
    }
    
    input, textarea, select {
    font-size: clamp(11px, 0.9vw, 13px);
}

/* تنظیمات gallery section */
.gallery-section {
    opacity: 1;
    transition: opacity 0.5s ease;
}

.gallery-section .owl-carousel {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.gallery-section.visible .owl-carousel {
    opacity: 1;
}

/* جلوگیری از autoplay اولیه */
.gallery-section .owl-carousel:not(.owl-loaded) {
    opacity: 0;
}

/* انیمیشن برای gallery items */
.gallery-section .item {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.gallery-section.visible .item {
    opacity: 1;
    transform: translateY(0);
}

/* تاخیر انیمیشن برای هر item */
.gallery-section .item:nth-child(1) { transition-delay: 0.1s; }
.gallery-section .item:nth-child(2) { transition-delay: 0.2s; }
.gallery-section .item:nth-child(3) { transition-delay: 0.3s; }
.gallery-section .item:nth-child(4) { transition-delay: 0.4s; }
.gallery-section .item:nth-child(5) { transition-delay: 0.5s; }
.gallery-section .item:nth-child(6) { transition-delay: 0.6s; }
.gallery-section .item:nth-child(7) { transition-delay: 0.7s; }
.gallery-section .item:nth-child(8) { transition-delay: 0.8s; }
}