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

:root {
    --deep-blue: #0A2647;
    --vibrant-orange: #FF6E31;
    --soft-gray: #F5F5F5;
    --white: #FFFFFF;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
}

body {
    font-family: 'Tajawal', sans-serif;
    background-color: var(--white);
    color: var(--deep-blue);
    overflow-x: hidden;
}

/* Custom Tailwind Overrides/Extensions */
.bg-deep-blue {
    background-color: var(--deep-blue);
}

.text-deep-blue {
    color: var(--deep-blue);
}

.bg-vibrant-orange {
    background-color: var(--vibrant-orange);
}

.text-vibrant-orange {
    color: var(--vibrant-orange);
}

/* Glassmorphism */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
}

.glass-dark {
    background: rgba(10, 38, 71, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Sticky Header */
header.sticky-nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

header.sticky-nav.scrolled {
    background: rgba(10, 38, 71, 0.95);
    backdrop-filter: blur(10px);
    padding-top: 5px;
    padding-bottom: 5px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Animations */
.hover-card {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
}

.hover-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(10, 38, 71, 0.1);
}

/* Hero Video Optimization */
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

/* RTL Adjustments */
[dir="rtl"] .ml-auto {
    margin-right: auto;
    margin-left: 0;
}

[dir="rtl"] .mr-auto {
    margin-left: auto;
    margin-right: 0;
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

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

::-webkit-scrollbar-thumb:hover {
    background: var(--vibrant-orange);
}

/* Mobile Menu Animation */
#mobile-menu {
    transition: transform 0.4s ease-in-out;
}

#mobile-menu.hidden {
    display: none;
    transform: translateX(100%);
}

#mobile-menu:not(.hidden) {
    display: flex;
    transform: translateX(0);
}

/* Unified Footer Styles */
.site-footer {
    background-color: var(--deep-blue);
    color: var(--white);
    padding-top: 5rem;
    padding-bottom: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.footer-col-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.footer-col-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 0;
    width: 30px;
    height: 3px;
    background-color: var(--vibrant-orange);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a:hover {
    color: var(--vibrant-orange);
    transform: translateX(-5px);
}

.footer-contact-item {
    display: flex;
    align-items: start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact-item i {
    color: var(--vibrant-orange);
    margin-top: 4px;
}

.footer-social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-icon {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icon:hover {
    background: var(--vibrant-orange);
    border-color: var(--vibrant-orange);
    transform: translateY(-5px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

.footer-bottom a {
    color: var(--vibrant-orange);
    font-weight: 700;
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}