/* static/css/style.css */

/* Define the downloaded Vazirmatn font weights */
@font-face { font-family: 'Vazirmatn'; src: url('../fonts/Vazirmatn-Thin.woff2') format('woff2'); font-weight: 100; font-style: normal; font-display: swap; }
@font-face { font-family: 'Vazirmatn'; src: url('../fonts/Vazirmatn-ExtraLight.woff2') format('woff2'); font-weight: 200; font-style: normal; font-display: swap; }
@font-face { font-family: 'Vazirmatn'; src: url('../fonts/Vazirmatn-Light.woff2') format('woff2'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Vazirmatn'; src: url('../fonts/Vazirmatn-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Vazirmatn'; src: url('../fonts/Vazirmatn-Medium.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Vazirmatn'; src: url('../fonts/Vazirmatn-SemiBold.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Vazirmatn'; src: url('../fonts/Vazirmatn-Bold.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }

/* Font Weight Utilities */
.font-thin { font-weight: 100 !important; }
.font-extralight { font-weight: 200 !important; }
.font-light { font-weight: 300 !important; }
.font-medium { font-weight: 500 !important; }
.font-bold { font-weight: 700 !important; }

:root {
    /* New Color Palette from Images */
    --primary-blue: #1e3254;   /* Deep Blue */
    --dark-navy: #101a38;      /* Darkest Navy for Footer/Backgrounds */
    --accent-blue: #4f94cd;    /* Mid Blue */
    --light-blue: #4d93cf;     /* Button/Highlight Blue */
    --crystal-blue: #cfe2f3;   /* Very Light Blue Gradient */
    --dark-text: #1e3254;
    --light-bg: #ffffff;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    background: radial-gradient(circle at center top, #f0f7fd 0%, #ffffff 60%, #d4ebff 100%);
    background-attachment: fixed;
    color: var(--dark-text);
    overflow-x: hidden;
}

/* Typography Utilities */
.text-navy { color: var(--dark-navy) !important; }
.text-primary-theme { color: var(--primary-blue) !important; }
.text-accent { color: var(--accent-blue) !important; }
.bg-navy { background-color: var(--dark-navy) !important; color: white; }
.text-justify { text-align: justify; text-justify: inter-word; }

/* Buttons */
.btn-theme {
    background-color: var(--light-blue);
    color: white;
    border: none;
    transition: 0.3s;
    font-weight: 500;
}
.btn-theme:hover {
    background-color: var(--primary-blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(77, 147, 207, 0.3);
}
.btn-navy {
    background-color: var(--dark-navy);
    color: white;
    border: none;
    transition: 0.3s;
}
.btn-navy:hover {
    background-color: var(--primary-blue);
    color: white;
}
.btn-outline-navy {
    color: var(--dark-navy);
    border: 1px solid var(--dark-navy);
    background-color: transparent;
    transition: 0.3s ease;
}

.btn-outline-navy:hover {
    color: #ffffff !important;
    background-color: var(--dark-navy);
    border-color: var(--dark-navy);
}

.btn-outline-bronze {
    color: #CD7F32;
    border: 1px solid #CD7F32;
    background-color: transparent;
    transition: 0.3s ease;
}

.btn-outline-bronze:hover {
    color: #ffffff !important;
    background-color: #CD7F32;
    border-color: #CD7F32;
}
/* Navbar with Shrink Animation */
.navbar-custom {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0,0,0,0.03);
    transition: padding 0.4s ease, height 0.4s ease;
    padding-top: 10px;
    padding-bottom: 10px;
}
@media (min-width: 992px) {
    .navbar-custom {
        padding-top: 20px;
        padding-bottom: 20px;
    }
}
/* This class is added via JS on scroll */
.navbar-custom.navbar-shrink {
    padding-top: 5px;
    padding-bottom: 5px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.navbar-nav .nav-link {
    color: var(--primary-blue);
    font-weight: 400; /* Finer font */
    font-size: 0.95rem;
    transition: color 0.2s;
}
.navbar-nav .nav-link:hover { color: var(--light-blue); }

/* Modern Contact Cards */
.contact-card-modern {
    border: 1px solid rgba(30, 50, 84, 0.1);
    border-radius: 1.2rem;
    transition: all 0.4s ease;
    background-color: #ffffff;
    cursor: pointer;
}
.contact-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(30, 50, 84, 0.08);
    border-color: var(--light-blue);
}
.contact-icon-box {
    width: 45px;
    height: 45px;
    border-radius: 1rem; /* Soft square like modern apps */
    background-color: var(--crystal-blue);
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: all 0.4s ease;
}
.contact-card-modern:hover .contact-icon-box {
    background-color: var(--light-blue);
    color: #ffffff;
    transform: scale(1.1) rotate(-5deg);
}

@media (min-width: 1200px) {
    .max-w-xl-50 {
        max-width: 50% !important;
    }
}

/* Base container style (for mobile/small screens) */
.footer-floating-container {
    background-color: var(--dark-navy);
    border-radius: 1.5rem;
    padding: 2rem 1.5rem 0.5rem 1.5rem; /* Less side padding for mobile */
    margin: 0 auto 1rem auto;
    width: 96%;
    color: #e0e6ed;
    box-shadow: 0 10px 30px rgba(16, 25, 56, 0.15);
}

/* On screens 768px and wider (Tablets & Desktops) */
@media (min-width: 768px) {
    .footer-floating-container {
        padding: 3rem 5rem 0.5rem 5rem;
        width: 98%;
    }
}

@media (min-width: 992px) {
    .footer-logo {
        width: 200px !important;
    }
}

.footer-logo {
    width: 150px;
 }

.footer-floating-container a {
    color: #e0e6ed;
    text-decoration: none;
    font-weight: 300;
    font-size: 0.95rem;
    transition: 0.3s;
}
.footer-floating-container a:hover {
    color: var(--light-blue);
}
.footer-social-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border: 1px solid rgba(255,255,255,0.7);
    border-radius: 50%;
    color: white;
    margin-left: 10px;
    transition: 0.3s;
}
.footer-social-outline:hover {
    background-color: var(--light-blue);
    border-color: var(--light-blue);
}
.footer-contact-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px; /* Reduced gap slightly to fit smaller screens better */
    margin-bottom: 1rem;
    font-weight: 300;
    font-size: 0.9rem; /* Slightly smaller text for the contact info */
}

/* 24/7 Floating Support Widget */
.floating-support {
    position: fixed;
    bottom: 30px;
    left: 30px; /* Left side for RTL */
    z-index: 1000;
}
.support-btn {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background-color: var(--primary-blue);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(31, 148, 212, 0.4);
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}
.support-btn:hover {
    transform: scale(1.05);
    background-color: var(--light-blue);
}
.support-menu {
    display: none;
    position: absolute;
    bottom: 75px;
    left: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    width: 220px;
    overflow: hidden; /* This is what keeps the hover inside the round borders! */
}
.support-menu.show { display: block; animation: fadeIn 0.3s ease; }
.support-item {
    display: block;
    padding: 15px 20px;
    color: var(--dark-text);
    text-decoration: none;
    border-bottom: 1px solid #f1f1f1;
    transition: 0.2s;
    font-weight: 500;
}
.support-item:last-child { border-bottom: none; }
.support-item:hover {
    background-color: var(--crystal-blue);
    color: var(--primary-blue);
}
.support-item i { margin-left: 10px; font-size: 18px; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }