/*
 * Globals
 */

/* Custom default button */
.btn-secondary,
.btn-secondary:hover,
.btn-secondary:focus {
    color: #333;
    text-shadow: none;
}

/*
 * Base structure
 */

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    background-color: #000;
    margin: 0 !important;
    padding: 0 !important;
}

/* Video background - full screen */
#myVideo {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    z-index: 1 !important;
    pointer-events: none !important;
}

/* Dark overlay for better text readability */
.video-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.4) !important;
    z-index: 2 !important;
    pointer-events: none !important;
}

/* Content container on top of video */
.video-content {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    z-index: 1000 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow-y: auto !important;
}

/* Make sure all text inside video-content is white */
.video-content * {
    color: white !important;
}

/* Header styling */
.video-content header {
    padding: 2rem 1.5rem;
    flex-shrink: 0;
}

/* Main content - centered */
.video-content main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

/* Footer at bottom */
.video-content footer {
    padding: 2rem 0;
    margin-top: auto;
    flex-shrink: 0;
}

/*
 * Header Navigation
 */

.nav-masthead .nav-link {
    padding: .25rem 0;
    font-weight: 700;
    color: rgba(255, 255, 255, .5);
    background-color: transparent;
    border-bottom: .25rem solid transparent;
    transition: all 0.3s ease;
}

.nav-masthead .nav-link:hover,
.nav-masthead .nav-link:focus {
    border-bottom-color: rgba(255, 255, 255, .25);
    color: rgba(255, 255, 255, .8);
}

.nav-masthead .nav-link+.nav-link {
    margin-left: 1rem;
}

.nav-masthead .active {
    color: #fff;
    border-bottom-color: #fff;
}

/* Button styling */
.btn-light {
    transition: all 0.3s ease;
}

.btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

/* Form styles */
.form-signin {
    width: 100%;
    max-width: 330px;
    padding: 15px;
    margin: auto;
}

.form-signin .checkbox {
    font-weight: 400;
}

.form-signin .form-floating:focus-within {
    z-index: 2;
}

.form-signin input[type="email"] {
    margin-bottom: -1px;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}

.form-signin input[type="password"] {
    margin-bottom: 10px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .display-3 {
        font-size: 2.5rem;
    }

    .lead {
        font-size: 1.1rem;
    }

    .video-content header {
        padding: 1rem 1rem;
    }

    .video-content main {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .display-3 {
        font-size: 2rem;
    }

    .lead {
        font-size: 1rem;
    }
}

/* برای عکس هوم */
.image-wrapper {
    width: 100%;
    height: 220px;
    /* Fixed image area height */
    overflow: hidden;
    border-top-left-radius: 0.375rem;
    border-top-right-radius: 0.375rem;
    border-bottom: 1px solid #dee2e6;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Show the full image without cropping */
    padding: 10px;
    /* Space around image */
}


/* Social links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 18px;
}

.social-link {
    font-size: 1.5rem;
    text-decoration: none !important;
}


/* custom-toggler */
.custom-toggler {
    display: block !important;
    width: 44px !important;
    height: 38px !important;
    padding: 6px !important;
    background: transparent !important;
    border: none !important;
    position: relative !important;
    z-index: 99999 !important;
}

.custom-toggler span {
    display: block !important;
    width: 100% !important;
    height: 2px !important;
    margin: 4px 0 !important;
    background-color: #fff !important;
}

@media (min-width: 768px) {
    .custom-toggler {
        display: none !important;
    }
}

@media (max-width: 767.98px) {
    #mainNavbar {
        position: absolute;
        top: 100%;
        right: 1rem;
        width: auto;
    }

    #mainNavbar .navbar-nav {
        align-items: flex-end;
    }
}

.custom-toggler span {
    transition: transform 0.3s ease, opacity 0.2s ease;
    transform-origin: center;
}

.custom-toggler[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.custom-toggler[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.custom-toggler[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}


/* fa-font */
.login-note-fa {
    font-family: Vazirmatn, sans-serif;
    font-size: 0.8em;
    color: #ffd166 !important;
    direction: rtl;
    text-align: center;
}