/* ==============================================
   زبان بوم - Custom Styles for ASP.NET Core MVC
   Bootstrap 5 RTL + Custom Animations
   ============================================== */

/* CSS Variables */
:root {
    --primary: #cc3a21;
    --primary-hover: #b33019;
    --accent: #f4a045;
    --background: #000000;
    --foreground: #ffffff;
    --text-muted: #9ca3af;
    --border-light: rgba(255, 255, 255, 0.1);
    --border-medium: rgba(255, 255, 255, 0.2);

    --font-sans: 'IranSans', Tahoma, sans-serif;
    --font-heading: 'Lalezar', cursive;

    /* Fluid spacing scale — smooth 320px → 1440px, no breakpoint jumps */
    --space-1: clamp(0.5rem, 0.4rem + 0.45vw, 0.75rem);
    --space-2: clamp(0.875rem, 0.7rem + 0.65vw, 1.25rem);
    --space-3: clamp(1.125rem, 0.9rem + 0.9vw, 1.75rem);
    --space-4: clamp(1.5rem, 1.15rem + 1.15vw, 2.25rem);
    --space-5: clamp(2rem, 1.5rem + 1.5vw, 3rem);
    --space-6: clamp(2.5rem, 1.85rem + 2vw, 3.75rem);

    --page-gutter: clamp(1rem, 0.55rem + 1.75vw, 2rem);
    --card-margin: var(--page-gutter);
    --section-gap: clamp(1.25rem, 0.85rem + 1.25vw, 2rem);
    --content-gap: clamp(0.75rem, 0.55rem + 0.75vw, 1.25rem);
    --canvas-padding-x: clamp(0.75rem, 0.5rem + 1vw, 1.25rem);

    --nav-padding-x: var(--page-gutter);
    --nav-padding-y: clamp(0.4rem, 0.25rem + 0.5vw, 1rem);

    --text-fluid-sm: clamp(0.8125rem, 0.78rem + 0.2vw, 0.9375rem);
    --text-fluid-base: clamp(0.875rem, 0.82rem + 0.35vw, 1rem);
    --text-fluid-lg: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
    --text-fluid-xl: clamp(1.125rem, 0.95rem + 0.85vw, 1.375rem);
    --text-fluid-2xl: clamp(1.25rem, 1rem + 1.25vw, 1.75rem);
    --text-fluid-3xl: clamp(1.375rem, 1.1rem + 1.75vw, 3rem);

    /* Shared overlay-box typography */
    --box-title-size: var(--text-fluid-xl);
    --box-body-size: var(--text-fluid-base);
    --box-caption-size: var(--text-fluid-sm);
    --card-indicator-gap: clamp(3.5rem, 2rem + 4vw, 6rem);
}

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

body {
/*    font-family: var(--font-sans);*/
    background-color: var(--background);
    color: var(--foreground);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Hide Scrollbar */
::-webkit-scrollbar {
    display: none;
}

body {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Custom Cursor */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--primary);
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transform: translate3d(var(--cursor-x, -100px), var(--cursor-y, -100px), 0) translate(-50%, -50%);
    transition: transform 0.15s ease, background-color 0.2s ease;
    will-change: transform;
}

.custom-cursor.hovering {
    transform: translate3d(var(--cursor-x, -100px), var(--cursor-y, -100px), 0) translate(-50%, -50%) scale(2.5);
    background-color: rgba(204, 58, 33, 0.2);
}

/* Typography */
.font-heading {
/*    font-family: var(--font-heading);*/
    font-weight: 400;
}

/* Navbar */
.navbar-custom {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    padding: var(--nav-padding-y) var(--nav-padding-x);
    background: transparent;
    transition: transform 0.5s cubic-bezier(0.33, 1, 0.68, 1);
}

.navbar-custom.hidden {
    transform: translateY(-100%);
}

.navbar-brand-custom {
/*    font-family: var(--font-heading);*/
    font-size: 1.25rem;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: -0.05em;
}

@media (min-width: 768px) {
    .navbar-brand-custom {
        font-size: 1.5rem;
    }
}

.menu-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0;
}

.menu-btn:hover .menu-line {
    background-color: var(--accent);
}

.menu-lines {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.menu-line {
    width: 32px;
    height: 2px;
    background-color: white;
    transition: background-color 0.3s ease;
}

.menu-text {
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.btn-primary-custom {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--primary);
    color: white;
    padding: 0.5rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    border: none;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.btn-primary-custom:hover {
    background-color: var(--primary-hover);
    color: white;
}

/* Full Screen Menu */
.fullscreen-menu {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transform: translateX(100%);
    transition: transform 0.6s cubic-bezier(0.33, 1, 0.68, 1);
}

.menu-bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.menu-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 1;
}

.menu-links,
.menu-close-btn {
    position: relative;
    z-index: 2000;
}


.fullscreen-menu.open {
    transform: translateX(0);
}

.menu-close-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
    z-index: 20000;
}

.menu-close-btn:hover {
    color: var(--accent);
}

.menu-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--section-gap);
    width:100%;
    max-width:500px;
    padding: 0 var(--page-gutter);
}

.menu-link {
/*    font-family: var(--font-heading);*/
    font-size: clamp(1.375rem, 1.2rem + 0.75vw, 1.625rem);
    color: white;
    text-decoration: none;
    transition: all 0.3s ease, transform 0.3s ease;
    opacity: 0;
    transform: translateX(50px);
}

.fullscreen-menu.open .menu-link {
    opacity: 1;
    transform: translateX(0);
}

.fullscreen-menu.open .menu-link:nth-child(1) { transition-delay: 0.2s; }
.fullscreen-menu.open .menu-link:nth-child(2) { transition-delay: 0.3s; }
.fullscreen-menu.open .menu-link:nth-child(3) { transition-delay: 0.4s; }
.fullscreen-menu.open .menu-link:nth-child(4) { transition-delay: 0.5s; }
.fullscreen-menu.open .menu-link:nth-child(5) { transition-delay: 0.6s; }

.menu-link:hover {
    color: var(--primary);
    transform: translateX(-15px) scale(1.1);
}

.submenu {
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 8px;
    background-color: #ffffff10;
    border: 1px solid #ffffff20;
}
/* Video Sections */
.video-section {
    position: sticky;
    top: 0;
    min-height: 100vh;
    height: 100vh;
    width: 100%;
    overflow: hidden;
/*    background-color: black;*/
}

.video-section video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.3);
}

.video-overlay.light {
    background-color: rgba(255, 255, 255, 0.3);
}

.video-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--page-gutter);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.video-content.align-right {
    align-items: flex-end;
    text-align: right;
}

.video-content.align-left {
    align-items: flex-start;
    text-align: right;
}

.video-content.align-center {
    align-items: center;
    text-align: center;
}

.video-content.light-mode {
    color: black;
}

.video-title {
/*    font-family: var(--font-heading);*/
    font-size: var(--text-fluid-3xl);
    font-weight: 400;
/*    margin-bottom: 1rem;*/
    color:white;
    line-height: 1.2;
    opacity: 0;
    transform: translateY(60px);
    filter: blur(10px);
    animation: fadeInUp 1.2s cubic-bezier(0.33, 1, 0.68, 1) forwards;
}

.video-description {
    font-size: var(--text-fluid-lg);
    font-weight: 300;
    max-width: 42rem;
    margin-bottom: var(--section-gap);
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInUp 1s cubic-bezier(0.33, 1, 0.68, 1) 0.3s forwards;
    text-align:justify;
}

.light-mode .video-description {
    color: rgba(0, 0, 0, 0.8);
}

.btn-cta {
    background-color: var(--primary);
    color: white;
    padding: 1rem 2rem;
    font-weight: 700;
    font-size: 16px;
    border: none;
    cursor: pointer;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    opacity: 0;
    transform: scale(0.8);
    animation: scaleIn 0.5s cubic-bezier(0.33, 1, 0.68, 1) 0.5s forwards;
    transition: transform 0.3s ease, background-color 0.3s ease;
    border-radius:5px;
}

.btn-cta:hover {
    transform: scale(1.1);
    background-color: var(--accent);
    color: black;
}

.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.5);
    animation: bounce 2s infinite;
}

.light-mode .scroll-indicator {
    color: rgba(0, 0, 0, 0.3);
}

/* Package Cards */
.package-grid {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
    width: 100%;
    max-width: 48rem;
    grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
    .package-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.package-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    padding: 1rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: border-color 0.3s ease;
}

.package-card:hover {
    border-color: var(--primary);
}

.package-card.featured {
    background: rgba(204, 58, 33, 0.1);
    border-color: rgba(204, 58, 33, 0.3);
    position: relative;
    overflow: hidden;
}

.package-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: var(--primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
}

.package-title {
/*    font-family: var(--font-heading);*/
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    color: white;
}

.package-price {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 1rem;
}

.package-features {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
    text-align: right;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.package-features li {
    margin-bottom: 0.5rem;
}

.btn-package {
    width: 100%;
    padding: 0.75rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-package-outline {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-package-outline:hover {
    background: white;
    color: black;
}

.btn-package-primary {
    background-color: var(--primary);
    color: white;
}

.btn-package-primary:hover {
    background-color: var(--primary-hover);
}

.download-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background-color: black;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.75rem 2rem;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.download-btn:hover {
    background-color: white;
    color: black;
}

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

.download-icon {
    transition: transform 0.3s ease;
}

.download-text {
    text-align: right;
}

.download-text small {
    display: block;
    opacity: 0.6;
    font-size: 0.75rem;
}

.download-text span {
    font-size: 1.125rem;
    font-weight: 700;
}

#about-section {
    margin-top: 0px;
}
/* About Section */
.about-section {
    padding: 6rem 1.5rem;
    position: sticky;
    top: 0;
    min-height: 100vh;
    height: 100vh;
    width: 100%;
    overflow: hidden;
/*    background-color: black;*/
}
.about-section video {
    width:100%;
    height:100%;
    position:absolute;
    top:0;
    left:0;
    object-fit:cover;
    z-index:10;
}

.about-title {
    /*    font-family: var(--font-heading);*/
    font-size: 2rem;
    color: var(--foreground);
    margin-bottom: 3rem;
    text-align: center;
}

@media (min-width: 768px) {
    .about-title {
        font-size: 2.5rem;
    }
}

.about-text {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--foreground);
    text-align: right;
    margin-bottom: 1.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding-top: 3rem;
    border-top: 1px solid #f3f4f6;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--foreground);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Footer */
.footer-section {
    position: relative;
    height: 100vh;
    min-height: 500px;
    width: 100%;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-section video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.footer-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(2px);
}

.footer-content {
    position: relative;
    z-index: 10;
    height: 100%;
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.footer-grid {
    display: grid;
    gap: 3rem;
    text-align: right;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.footer-title {
/*    font-family: var(--font-heading);*/
    font-size: 1.125rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.footer-text {
    font-size: 0.875rem;
    line-height: 1.8;
    color: var(--text-muted);
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .footer-list li, .footer-list li a {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 0.5rem;
        font-size: 0.875rem;
        color: var(--text-muted);
        margin-bottom: 0.75rem;
    }

.footer-address {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.8;
    color: var(--text-muted);
}

.footer-copyright {
    margin-top: 5rem;
    text-align: center;
    font-size: 0.75rem;
    opacity: 0.4;
}

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes scaleIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Utility Classes */
.text-primary {
    color: var(--primary) !important;
}

.bg-primary {
    background-color: var(--primary) !important;
}

.text-muted-custom {
    color: var(--text-muted);
}

.floating-phone {
    position: absolute;
    left: 30px;
    bottom:100px;
    width: 250px;
    z-index: 20;
    animation: floatSmooth 4s ease-in-out infinite;
}


    @keyframes floatSmooth {
        0% {
        transform: translateY(0px) rotate(-1deg);
    }

    50% {
        transform: translateY(-15px) rotate(1deg);
    }

    100% {
        transform: translateY(0px) rotate(-1deg);
    }
}

#modal {
    position: fixed;
    width: 100%;
    overflow: hidden;
}

#modal {
    position: fixed;
    inset: 0;
    z-index: 60000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    width: 100%;
    max-width:90%;
    max-height:80vh;
    overflow:auto;
    padding: 20px 30px;
    border-radius: 12px;
    background-color:rgba(255,255,255,0.4);
    backdrop-filter:blur(30px);
}
@media(min-width:992px){
    .modal-content{
        max-width:600px;
    }
}
.modal-overlay {
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.3);
    transition:all 0.5s;
}

.opacity-0{
    opacity:0;
}
.opacity-100{
    opacity:1;
}

.best-result-modal-content {
    line-height: 1.8rem;
    text-align: justify;
}

body.no-scroll {
    overflow: hidden;
}
.submenu {
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

    .submenu.open {
        display: flex;
    }
.text-justify{
    text-align:justify !important;
}
.text-right{
    text-align:right !important;
}

.translate-y-100{
    transform:translateY(100%);
}
.transition-all{
    transition:all 0.5s ease-in-out;
}
.mt-20{
    margin-top:20px;
}

@media(min-width:992px){
    .mt-lg-50 {
        margin-top: 50px;
    }
}
/*@media(max-width:992px){
    #download .video-title{
        margin:0 auto;
        margin-bottom:150px;
    }
}
*/
