/* 
 * ATRIX - Professional Financial Consulting Platform
 * Design System & Core Styles
 */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700&family=Montserrat:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #0871a3;
    --accent-color: #c59b30;
    --accent-gradient: linear-gradient(135deg, #c59b30 0%, #f1d38e 50%, #a38128 100%);
    --dark-color: #1a1b1e;
    --dark-alt: #3c3e43;
    --white: #ffffff;
    --light-bg: #fdfdfd;
    --glass: rgba(255, 255, 255, 0.85);
    --header-height: 90px;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 40px -10px rgba(8, 113, 163, 0.15);
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --letter-spacing: 0.05em;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--dark-color);
    line-height: 1.7;
    background-color: var(--white);
    overflow-x: hidden;
    letter-spacing: var(--letter-spacing);
}

body[dir="rtl"] {
    font-family: 'Cairo', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

section {
    padding: 120px 0;
}

/* Navbar Premium Glass */
.navbar {
    height: var(--header-height);
    background: var(--glass);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    height: 75px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-sm);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    direction: ltr !important;
}

.logo img, .logo svg {
    height: 45px;
    width: auto;
    transition: var(--transition);
}

.navbar.scrolled .logo img, .navbar.scrolled .logo svg {
    height: 38px;
}

.nav-links {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-link {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--dark-color);
    position: relative;
    letter-spacing: 1.5px;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 25px;
}

/* Premium Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    border-radius: 2px;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

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

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: 0.6s;
    z-index: -1;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: #065b82;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(8, 113, 163, 0.2);
}

.btn-accent {
    background: var(--accent-gradient);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(197, 155, 48, 0.3);
}

.btn-accent:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(197, 155, 48, 0.4);
}

.btn-login {
    border: 1px solid rgba(8, 113, 163, 0.3);
    color: var(--primary-color);
    padding: 10px 24px;
    border-radius: 2px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

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

/* Luxury Sections Styling */
.section-title {
    text-align: center;
    margin-bottom: 80px;
}

.section-title h2 {
    font-size: 42px;
    color: var(--primary-color);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 4px;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background: var(--accent-gradient);
    margin: 20px auto 0;
}

.section-title p {
    color: #888;
    font-size: 15px;
    font-weight: 500;
    max-width: 600px;
    margin: 0 auto;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Luxury Utility Classes */
.luxury-card {
    background: var(--white);
    border: 1px solid rgba(8, 113, 163, 0.05);
    padding: 50px;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.luxury-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(197, 155, 48, 0.3);
}

.luxury-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--accent-gradient);
    transition: var(--transition);
}

.luxury-card:hover::after {
    width: 100%;
}

/* Language Switcher */
.lang-switch {
    background: transparent;
    border: 1px solid rgba(197, 155, 48, 0.4);
    color: var(--accent-color);
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 1px;
}

.lang-switch:hover {
    background: var(--accent-color);
    color: var(--white);
}

/* Footer Luxury */
footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 100px 0 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo {
    margin-bottom: 30px;
    display: block;
}

.footer-text {
    color: #888;
    max-width: 300px;
    font-size: 14px;
}

.footer-links h4 {
    margin-bottom: 30px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-color);
}

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

.footer-links a {
    color: #666;
    font-size: 13px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 8px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 40px;
    text-align: center;
    color: #444;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
    font-family: 'Cairo', sans-serif !important;
}

body.rtl .navbar .container {
    flex-direction: row-reverse;
}

body.rtl .nav-links {
    flex-direction: row-reverse;
}

body.rtl .btn-login {
    flex-direction: row-reverse;
}

body.rtl .logo svg text {
    font-family: 'Montserrat', sans-serif !important;
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in-up {
    animation: fadeInUp 1.2s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.shimmer-text {
    background: var(--accent-gradient);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 4s linear infinite;
}

/* Unauthorized Overlay Primary */
.unauthorized-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    color: var(--white);
    text-align: center;
    padding: 60px;
}

/* Mobile Responsiveness */
@media (max-width: 991px) {
    .navbar {
        height: 70px;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 40px;
        transition: var(--transition);
        z-index: 999;
        gap: 25px;
        overflow-y: auto;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links li[style*="display: flex"] {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 20px !important;
    }

    .nav-link {
        font-size: 18px;
        letter-spacing: 2px;
        display: block;
        padding: 10px 0;
    }

    .lang-switch {
        margin: 0;
        width: 60px;
        height: 35px;
        text-align: center;
    }

    .btn-login {
        width: 100% !important;
        justify-content: center !important;
        margin-left: 0 !important;
        padding: 15px !important;
    }

    .mobile-toggle {
        display: block;
        z-index: 1001;
    }

    .section-title h2 {
        font-size: 30px;
    }
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px; /* Default to left as requested */
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-5px);
    background-color: #128c7e;
    color: white;
}

.whatsapp-float::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #25d366;
    border-radius: 50px;
    z-index: -1;
    animation: pulse-green 2s infinite;
}

/* Ensure Logo is visible on mobile */
@media (max-width: 991px) {
    .navbar .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 0 20px;
    }
    
    .logo {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .logo img, .logo svg {
        height: 35px !important;
        width: auto !important;
    }

    .whatsapp-float {
        bottom: 20px;
        left: 20px;
        width: 50px;
        height: 50px;
    }
}

@keyframes pulse-green {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.6); opacity: 0; }
}


