﻿
/* General container and video background */
.video-bg-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex; /* Use flexbox for content alignment */
    align-items: center; /* Center content vertically */
    justify-content: center; /* Center content horizontally */
}

.video-bg {
    position:fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.overlay {
    position:absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

/* Hero content styling */
.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    width: 100%; /* Ensure it takes full width */
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column; /* Stack elements vertically */
    align-items: center; /* Center items horizontally */
    justify-content: center; /* Center items vertically if needed */
    height: 100%; /* Take full height of parent */
}

    .hero-content .container {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%; /* Make container take full width */
    }

/* Logo and company name styling */
.navbar-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px !important;
    width: 100%; /* Ensure it centers properly */
}

    .navbar-brand img {
        width: 100px; /* Default to smaller size for mobile */
        height: auto;
        margin-bottom: 10px;
    }

    .navbar-brand p, .navbar-brand strong, .navbar-brand small {
        text-align: center;
        width: 100%;
    }

/* Glass card styling */
.glass-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px; /* Slightly less padding in mobile */
    background: rgba(255, 255, 255, 0.08); /* Slightly less opaque */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px; /* Slightly smaller radius */
    color: white !important;
    text-decoration: none !important;
    transition: all 0.3s ease;
    height: 90px; /* Shorter height for mobile */
    width: 90%; /* Wider width for mobile */
    margin: 10px auto; /* Auto margin for centering and vertical spacing */
    box-sizing: border-box;
}

    .glass-card:hover {
        background: rgba(255, 255, 255, 0.18);
        transform: translateY(-5px);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        border-color: rgba(255, 255, 255, 0.3);
    }

    .glass-card span {
        font-size: 0.9em; /* Slightly smaller font for mobile */
    }

/* --- Responsive Adjustments --- */

/* Mobile First Approach: Default styles are for small screens */
.row.g-4 > div[class*="col-"] { /* Target all column divs inside the row */
    display: flex;
    justify-content: center; /* Center the card within its column */
    margin-bottom: 10px; /* Spacing between stacked cards */
}

/* Medium screens and up (tablets, desktops) */
@media (min-width: 768px) {
    .hero-content {
        padding: 40px;
    }

    .navbar-brand img {
        width: 170px; /* Original size for desktop */
    }

    .glass-card {
        height: 120px; /* Original height */
        width: 100%; /* Full width of its column */
        padding: 20px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 15px;
        margin: 0 auto; /* Reset margin for desktop layout */
    }

        .glass-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
            border-color: rgba(255, 255, 255, 0.4);
        }

        .glass-card span {
            font-size: 1em; /* Original font size */
        }

    /* Adjust column widths for desktop */
    .col-md-3 { /* This applies to md screens and up */
        width: 25% !important;
        max-width: 25% !important;
        flex: 0 0 25% !important; /* Ensure it doesn't grow/shrink */
        padding: 0 10px; /* Horizontal padding between columns */
        margin-bottom: 0; /* Reset vertical margin */
    }

    .row.g-4 {
        flex-direction: row; /* Arrange columns side-by-side */
        flex-wrap: wrap; /* Allow wrapping if needed, though 4 columns should fit */
        justify-content: center; /* Center the row if it doesn't fill the width */
    }

        .row.g-4 > div[class*="col-"] {
            margin-bottom: 0; /* Remove margin between cards when side-by-side */
        }
}

/* Larger desktop screens */
@media (min-width: 1200px) {
    .col-md-3 { /* Use col-xl-3 if you want specific settings for extra large screens */
        /* You might adjust padding or max-width here if needed */
    }
}
.site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 10; /* حتما بالاتر از overlay (که ۲ بود) قرار گیرد */
    background-color: rgba(0, 0, 0, 0.6); /* کمی شفاف تا ویدیو زیر آن دیده شود */
    color: white;
    text-align: center;
    padding: 15px 0;
    font-size: 14px;
    /* این خط باعث می‌شود اگر متن طولانی بود، از کادر بیرون نزند */
    box-sizing: border-box;
}

/* برای اینکه محتوای hero-content زیر فوتر مخفی نشود */
.hero-content {
    padding-bottom: 60px; /* این مقدار باید کمی بیشتر از ارتفاع فوتر باشد */
}

