/* ============================================
   PREMIUM COLOR SCHEME - EMPEROR BRAND
   ============================================ */
:root {
    --primary-dark: #0a2b3e;
    --primary: #1a4a6f;
    --primary-light: #2c6b8f;
    --secondary: #c49a6c;
    --secondary-dark: #b08456;
    --secondary-light: #d4ae86;
    --gold: #e8b86b;
    --gold-light: #f5d49c;
    --success: #2c7a4d;
    --danger: #c53030;
    --warning: #ed8936;
    --dark: #1a202c;
    --gray-900: #2d3748;
    --gray-700: #4a5568;
    --gray-500: #718096;
    --gray-300: #cbd5e0;
    --gray-100: #f7fafc;
    --white: #ffffff;
    --border: #e5e7eb;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Cairo', sans-serif;
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--white);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ============================================
   PROFESSIONAL NAVBAR - PARH STYLE
   ============================================ */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #ffffff;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.navbar {
    padding: 1rem 5rem;
}

    .navbar .container {
        display: flex;
        align-items: center;
        gap: 7rem;
    }

/* Logo */
.navbar-brand .logo {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-main {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #1a1a2e;
}

.logo-sub {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    color: #c49a6c;
}

/* Desktop Navigation */
.navbar-menu {
    display: flex;
    align-items: center;
    gap: 11rem;
}

.navbar-nav {
    display: flex;
    gap: 1.8rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    text-decoration: none;
    font-weight: bold;
    font-size: 0.85rem;
    color: #334155;
    transition: color 0.3s ease;
    letter-spacing: 0.3px;
}

    .nav-link:hover,
    .nav-link.active {
        color: #c49a6c;
    }

/* Right Side Actions */
.navbar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Language Switcher - Clean */
.language-switcher {
    display: flex;
    gap: 0.25rem;
}

.lang-btn {
    padding: 0.3rem 0.6rem;
    border: none;
    background: transparent;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.75rem;
    transition: all 0.3s ease;
    color: #64748b;
    border-radius: 4px;
}

    .lang-btn.active {
        color: #c49a6c;
        font-weight: 600;
    }

    .lang-btn:hover:not(.active) {
        color: #c49a6c;
    }

/* Dark Mode Toggle */
.dark-mode-toggle {
    width: 34px;
    height: 34px;
    background: transparent;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #64748b;
    font-size: 0.85rem;
}

    .dark-mode-toggle:hover {
        color: #c49a6c;
    }

/* Login Button */
.btn-login {
    padding: 0.45rem 1.2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    background: transparent;
    color: #334155;
    border: 1px solid #e2e8f0;
}

    .btn-login:hover {
        border-color: #c49a6c;
        color: #c49a6c;
    }

/* Mobile Menu Button */
.navbar-toggler {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

    .navbar-toggler span {
        display: block;
        width: 22px;
        height: 2px;
        background: #334155;
        margin: 5px 0;
        transition: all 0.3s ease;
        border-radius: 2px;
    }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
    .navbar-toggler {
        display: block;
    }

    .navbar-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: #ffffff;
        flex-direction: column;
        padding: 1.5rem;
        gap: 1.5rem;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        z-index: 999;
        height: calc(100vh - 70px);
        overflow-y: auto;
    }

    [dir="rtl"] .navbar-menu {
        transform: translateX(100%);
    }

    .navbar-menu.active {
        transform: translateX(0);
    }

    .navbar-nav {
        flex-direction: column;
        width: 100%;
        gap: 0.8rem;
    }

    .navbar-actions {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

    .btn-login {
        text-align: center;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .logo-main {
        font-size: 1rem;
    }

    .logo-sub {
        font-size: 0.5rem;
    }

    .navbar-menu {
        top: 66px;
        height: calc(100vh - 66px);
    }
}

/* ============================================
   DARK MODE
   ============================================ */
[data-theme="dark"] .site-header {
    background: #1a1a2e;
}

[data-theme="dark"] .logo-main {
    color: #e2e8f0;
}

[data-theme="dark"] .nav-link {
    color: #cbd5e1;
}

    [data-theme="dark"] .nav-link:hover,
    [data-theme="dark"] .nav-link.active {
        color: #c49a6c;
    }

[data-theme="dark"] .lang-btn {
    color: #a0aec0;
}

    [data-theme="dark"] .lang-btn.active {
        color: #c49a6c;
    }

[data-theme="dark"] .dark-mode-toggle {
    color: #a0aec0;
}

[data-theme="dark"] .btn-login {
    color: #cbd5e1;
    border-color: #4a5568;
}

    [data-theme="dark"] .btn-login:hover {
        border-color: #c49a6c;
        color: #c49a6c;
    }

[data-theme="dark"] .navbar-toggler span {
    background: #e2e8f0;
}

[data-theme="dark"] .navbar-menu {
    background: #1a1a2e;
}

/* ============================================
   RTL SUPPORT
   ============================================ */
[dir="rtl"] .navbar-nav {
    padding-right: 0;
}

/* ============================================
   LOADING OVERLAY
   ============================================ */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

    .loading-overlay.fade-out {
        opacity: 0;
    }

.loading-spinner {
    position: relative;
    width: 80px;
    height: 80px;
    text-align: center;
}

.spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top-color: var(--secondary);
    border-radius: 50%;
    animation: spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

    .spinner-ring:nth-child(1) {
        animation-delay: -0.45s;
    }

    .spinner-ring:nth-child(2) {
        animation-delay: -0.3s;
        border-top-color: var(--gold);
    }

    .spinner-ring:nth-child(3) {
        animation-delay: -0.15s;
        border-top-color: var(--secondary-light);
    }

.spinner-text {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    color: var(--secondary);
    font-size: 0.75rem;
    font-weight: 500;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ============================================
   SCROLL PROGRESS INDICATOR
   ============================================ */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(196, 154, 108, 0.2);
    z-index: 1001;
}

.scroll-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary), var(--gold));
    width: 0%;
    transition: width 0.1s ease;
}

/* ============================================
   CUSTOM SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--secondary), var(--gold));
    border-radius: 4px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(135deg, var(--secondary-dark), var(--gold));
    }

/* Selection Color */
::selection {
    background: rgba(196, 154, 108, 0.3);
    color: var(--primary-dark);
}

/* Main Content */
main {
    margin-top: 72px;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.bg-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .hover-lift:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    }
