/* =================== google-font-Roboto & Ek-mesirri =================== */
@import url('https://fonts.googleapis.com/css2?family=El+Messiri:wght@400..700&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');
/* font-family: "Roboto", sans-serif; */
/* font-family: "El Messiri", sans-serif; */


/* ==============================
   LIGHT MODE (Default)
================================ */
:root {
    --primary: #3131ff;
    --primary-light: #3d60fc;
    --primary-soft: #e6e6ff;

    --secondary: #1f2937;
    --accent: #ae04f1;

    --background: #f8fafc;
    --section-bg: #ffffff;

    --text-main: #080d14;
    --text-muted: #64748b;
    --white: #fff;

    --border-color: #e2e8f0;

    --success: #16a34a;
    --warning: #f59e0b;
    --danger: #ef4444;
}


/* ==============================
   DARK MODE
================================ */
[data-theme="dark"] {

    --primary: #3b69ff;
    --primary-light: #5e9eff;
    --primary-soft: #141a3a;

    --secondary: #111827;
    --accent: #ae04f1;

    --background: #0c0d0f;
    --section-bg: #161617;

    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --white: #000000;
    --border-color: #1f2530;

    --success: #22c55e;
    --warning: #fbbf24;
    --danger: #f87171;
}

body {
    margin-top: 60px;
    font-family: "Segoe UI", sans-serif;
    background-color: var(--background);
    color: var(--text-main);
    overflow-x: hidden;
    transition: all 0.3s ease;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: var(--primary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 10px;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: "El Messiri", sans-serif;
}

/* ===============NAVBAR (DESKTOP)========================*/
.navbar {
    backdrop-filter: blur(10px) saturate(150%);
    -webkit-backdrop-filter: blur(10px) saturate(150%);
    box-shadow: 0 0 10px var(--border-color);
    background: var(--section-bg);
    padding: 8px 0;
    z-index: 9999;
}

.brand {
    text-decoration: none;
}

#img-logo {
    width: 24%;
}

/* Mobile */
@media (max-width: 768px) {
    #img-logo {
        width: 20%;
    }
}

.navbar-nav .nav-link {
    position: relative;
    color: var(--text-main) !important;
    font-size: 1rem;
    letter-spacing: 3px;
    padding: 8px 18px !important;
    transition: color 0.4s ease;
}

.navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -3px;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    transform: translateX(-50%);
    transition: width 0.45s cubic-bezier(0.77, 0, 0.18, 1);
}

.navbar-nav .nav-link::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    filter: blur(6px);
    opacity: 0;
    transition: 0.5s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary) !important;

}

.navbar-nav .nav-link:hover::after {
    height: 4px;
    width: 65%;
}

.navbar-nav .nav-link:hover::before {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.4);
}

.navbar-nav .nav-link.active {
    color: var(--primary) !important;
}

.navbar-nav .nav-link.active::after {
    width: 70%;
}

/* ===== MOBILE CLICK ===== */
@media (max-width: 991px) {
    .navbar {
        padding: 5px 0;
    }

    #img-logo {
        width: 140px;
    }
}

/* ===================== DROPDOWN MENU ===================== */
.dropdown-custom {
    position: relative;
}

.dropdown-menu-custom {
    position: absolute;
    top: 130%;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--border-color);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 15px 0;
    min-width: 250px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.45s cubic-bezier(0.77, 0, 0.18, 1);
    box-shadow: 0 15px 60px rgba(0, 0, 0, 0.566);
    z-index: 999;
}

.dropdown-menu-custom li {
    list-style: none;
}

.dropdown-menu-custom a {
    display: block;
    padding: 12px 30px;
    color: var(--text-main);
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-decoration: none;
    transition: 0.35s;
}


.dropdown-menu-custom a:hover {
    color: var(--primary) !important;
    font-weight: bold;
}

/* ===== DESKTOP HOVER ===== */
@media (min-width: 992px) {
    .dropdown-custom:hover .dropdown-menu-custom {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }
}

/* ===== MOBILE CLICK ===== */
@media (max-width: 991px) {
    .navbar {
        padding: 5px 0;
    }

    .dropdown-menu-custom {
        position: static;
        transform: none;
        opacity: 0;
        visibility: hidden;
        max-height: 0;
        overflow: hidden;
        padding: 0;
        border: none;
        box-shadow: none;
        transition: all 0.4s ease;
    }

    .dropdown-custom.active .dropdown-menu-custom {
        opacity: 1;
        visibility: visible;
        max-height: 500px;
        padding: 15px 0;
    }
}

/* =====================================================
       MOBILE SIDEBAR
    ====================================================== */
/* MOBILE SIDEBAR */

#mobileSidebar {

    position: fixed;
    top: 0;
    right: -300px;
    width: 200px;
    height: auto;
    background: var(--section-bg);
    padding: 50px 20px;
    transition: .4s;
    z-index: 9999;

}

#mobileSidebar.active {
    right: 0;
}

.close-btn {

    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    cursor: pointer;
    color: var(--accent);

}

.mobile-menu {

    display: flex;
    flex-direction: column;

}

.mobile-menu a {

    margin-top: 10px;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--background);
    color: var(--text-main);
    text-decoration: none;

}

/* mobile dropdown */

.mobile-dropdown-toggle {
    color: var(--text-main);
    font-size: 1rem;
    padding: 7px 9px;
    margin-top: 8px;
    background-color: var(--background);
    border-radius: 5px;
    border: 1px solid var(--border-color);
    letter-spacing: 1px;
    font-family: 'Cinzel', serif;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-dropdown-toggle i {
    transition: 0.4s;
    font-size: .8rem;
    margin-left: 7px;
    color: gray;
}

.mobile-submenu {
    max-height: 0;
    overflow: hidden;
    transition: 0.45s ease;
    padding-left: 10px;
    border-left: 1px solid var(--primary);
}

.mobile-submenu a {
    display: block;
    padding: 7px 8px;
    margin-top: 7px;
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.mobile-dropdown.active .mobile-submenu {
    max-height: 450px;
}

.mobile-dropdown.active i {
    transform: rotate(180deg);
    color: var(--primary);
}

.sidebar-footer {
    margin-top: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sidebar-footer a {
    text-decoration: none;
    text-align: center;
    font-size: small;
    color: var(--text-muted);
}

#sidebarOverlay {
    position: fixed;
    inset: 0;
    background: var(--section-bg);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: 0.4s;
}

#sidebarOverlay.active {
    opacity: 1;
    visibility: visible;
}

@media (min-width: 992px) {

    #mobileSidebar,
    #sidebarOverlay {
        display: none;
    }

    .mobile-menu a {
        font-size: 1rem;
        letter-spacing: 2px;
    }
}











/* --- Professional Luxury Footer --- */
footer {
    background-color: var(--bg-dark);
    padding: 80px 0 30px;
    border-top: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

/* Sub-glow effect for luxury feel */
footer::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 300px;
    background: radial-gradient(circle, rgba(197, 160, 89, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

/* Section Titles */
.footer-section-title {
    color: var(--text-main);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    display: flex;
    align-items: center;
}

/* Elegant gold accent dot */
.footer-section-title::after {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    margin-left: 10px;
}

/* Links and Navigation */
.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--accent-light);
    transform: translateX(8px);
}

/* The "Ask" Form - Pro Design */
.question-input {
    background: var(--glass) !important;
    border: 1px solid var(--border) !important;
    color: #fff !important;
    border-radius: 12px !important;
    padding: 15px !important;
    font-size: 0.9rem !important;
    transition: all 0.3s ease !important;
    backdrop-filter: blur(5px);
}

.question-input:focus {
    border-color: var(--accent) !important;
    box-shadow: 0 0 15px rgba(197, 160, 89, 0.1) !important;
}

.btn-ask {
    background: var(--glass) !important;
    color: var(--accent) !important;
    font-weight: 700 !important;
    border: 1px solid var(--border) !important;
    border-radius: 12px !important;
    padding: 12px !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem !important;
    box-shadow: 0 4px 15px rgba(197, 160, 89, 0.2);
    transition: 0.4s !important;
}

.btn-ask:hover {
    transform: translateY(-3px);
    background: var(--accent) !important;
    color: var(--bg-dark) !important;
    box-shadow: 0 8px 20px rgba(197, 160, 89, 0.3);
}

/* Social Circles */
.social-circle {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--glass);
    color: var(--text-main);
    margin-right: 12px;
    border: 1px solid var(--glass-border);
    transition: 0.3s;
    text-decoration: none;
}

.social-circle:hover {
    background: var(--accent);
    color: #000;
    transform: rotate(360deg);
}

/* Bottom Bar */
.footer-bottom {
    margin-top: 40px;
    padding-top: 15px;
    border-top: 1px solid var(--glass-border);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.rafi-link {
    color: var(--accent-light);
}

/* --- Mobile Responsiveness Enhancements --- */
@media (max-width: 991px) {
    footer {
        padding: 60px 0 40px;
        text-align: center;
    }

    .footer-section-title {
        justify-content: center;
        margin-top: 20px;
    }

    .footer-section-title::after {
        display: none;
        /* Cleaner on mobile */
    }

    .footer-links a:hover {
        transform: scale(1.1);
        /* No horizontal shift on mobile */
    }

    .social-circle {
        margin: 0 8px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
    }

    .footer-links li {
        margin-bottom: 8px;
    }

    .footer-links a {
        font-size: 0.80rem;
    }
}

.animate-success {
    animation: slideDownFade 0.5s ease forwards;
}

@keyframes slideDownFade {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}