html { scroll-behavior: smooth; }
body { 
    font-family: 'Inter', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* RTL Support */
[dir="rtl"] body { 
    font-family: 'Noto Sans Arabic', 'Inter', sans-serif; 
}
[dir="rtl"] .font-display { 
    font-family: 'Noto Sans Arabic', Georgia, serif; 
}
.font-display { font-family: 'Cormorant Garamond', Georgia, serif; }

/* RTL-aware utilities */
[dir="rtl"] .rtl\:text-right { text-align: right; }
[dir="rtl"] .rtl\:text-left { text-align: left; }
[dir="rtl"] .rtl\:flex-row-reverse { flex-direction: row-reverse; }
[dir="rtl"] .rtl\:space-x-reverse > :not([hidden]) ~ :not([hidden]) {
    --tw-space-x-reverse: 1;
}
[dir="rtl"] .rtl\:mr-0 { margin-right: 0; }
[dir="rtl"] .rtl\:ml-auto { margin-left: auto; }
[dir="rtl"] .rtl\:rotate-180 { transform: rotate(180deg); }

/* Premium animations */
.fade-in { animation: fadeIn 0.6s ease-out forwards; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Elegant hover effects */
.hover-lift { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.hover-lift:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0,0,0,0.1); }

/* Gold underline animation */
.gold-underline {
    position: relative;
    display: inline-block;
}
.gold-underline::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #c9a227;
    transition: width 0.3s ease;
}
.gold-underline:hover::after { width: 100%; }

/* Divider */
.divider-gold {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #c9a227, #e5c76b);
}
[dir="rtl"] .divider-gold {
    background: linear-gradient(270deg, #c9a227, #e5c76b);
}

/* Mobile Menu Styles */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 25, 41, 0.6);
    backdrop-filter: blur(4px);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 85%;
    max-width: 380px;
    height: 100%;
    background: white;
    z-index: 101;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
    overflow-y: auto;
}
[dir="rtl"] .mobile-menu-panel {
    box-shadow: 10px 0 40px rgba(0, 0, 0, 0.15);
}
.mobile-menu-panel.active {
    transform: translateX(0);
}

/* Hamburger Animation */
.hamburger {
    width: 24px;
    height: 20px;
    position: relative;
    cursor: pointer;
}
.hamburger span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: currentColor;
    border-radius: 2px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: 0.3s ease;
}
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 9px; width: 75%; }
.hamburger span:nth-child(3) { top: 18px; }

.hamburger.active span:nth-child(1) {
    top: 9px;
    transform: rotate(135deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
    width: 0;
}
.hamburger.active span:nth-child(3) {
    top: 9px;
    transform: rotate(-135deg);
}

/* Mobile menu links animation */
.mobile-menu-link {
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
[dir="rtl"] .mobile-menu-link {
    transform: translateX(-20px);
}
.mobile-menu-panel.active .mobile-menu-link {
    opacity: 1;
    transform: translateX(0);
}
.mobile-menu-panel.active .mobile-menu-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu-panel.active .mobile-menu-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu-panel.active .mobile-menu-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu-panel.active .mobile-menu-link:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu-panel.active .mobile-menu-link:nth-child(5) { transition-delay: 0.3s; }

/* Prevent body scroll when menu is open */
body.menu-open {
    overflow: hidden;
}

/* Toast Notification Animations */
.toast-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-notification.hide {
    transform: translateX(100%);
    opacity: 0;
}

.toast-progress {
    width: 100%;
    animation: toast-progress 5s linear forwards;
}

@keyframes toast-progress {
    from { width: 100%; }
    to { width: 0%; }
}
