:root {
    --primary: #00d2ff;
    --secondary: #3a7bd5;
    --bg-dark: #0f172a;
    --text-main: #f8fafc;
    --text-muted: #cbd5e1;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(0, 210, 255, 0.15), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(58, 123, 213, 0.15), transparent 25%);
    background-attachment: fixed;
}

/* Glassmorphism Classes */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Typography & Colors */
h1, h2, h3 {
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #00d2ff, #3a7bd5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Navigation */
.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    -webkit-text-fill-color: #fff;
}

.lang-dropdown {
    position: relative;
    display: inline-block;
}

.lang-toggle {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.lang-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
}

.lang-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    min-width: 120px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.lang-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.8rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    text-align: left;
    width: 100%;
    font-size: 1rem;
}

.lang-btn:first-child {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.lang-btn:last-child {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.lang-btn:hover, .lang-btn.active {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 210, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 210, 255, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-primary.small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('images/hero_bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    padding: 6rem 5% 2rem;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(15,23,42,0.3), var(--bg-dark));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    text-align: center;
    animation: fadeIn 1s ease-out;
}

.hero-content h1 {
    font-size: 3.5rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Features */
.features-section, .tours-section {
    padding: 5rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.feature-card {
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Tours */
.tour-card {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    overflow: hidden;
    padding: 0;
    align-items: stretch;
}

.tour-card.reverse {
    flex-direction: row-reverse;
}

.tour-image {
    flex: 1;
    min-height: 300px;
    background-size: cover;
    background-position: center;
}

.tour-details {
    flex: 1;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tour-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.tour-meta span {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--primary);
}

.lang-content {
    display: none !important;
    animation: fadeIn 0.5s ease;
}

.lang-content.active {
    display: block !important;
}

span.lang-content.active, a.lang-content.active {
    display: inline-block !important;
    margin-bottom: 0;
}

div.lang-content {
    margin-bottom: 1.5rem;
}

/* Arabic & RTL Styling */
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .hero-content {
    text-align: center;
}

[dir="rtl"] .tour-details {
    text-align: right;
}

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

[dir="rtl"] .feature-card {
    text-align: center;
}

.footer-content, 
.footer-content p, 
.footer-content small, 
.footer-content .lang-content {
    text-align: center !important;
}

/* Footer */
footer {
    background: rgba(0, 0, 0, 0.5);
    padding: 4rem 5% 2rem;
    text-align: center;
    border-top: 1px solid var(--glass-border);
}

.footer-content h3 {
    font-size: 2rem;
}

.footer-content p {
    margin-bottom: 1rem;
}

.languages-flags {
    margin: 2rem 0;
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 3rem;
}

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

/* Arabic RTL Support */
.lang-content[data-lang="ar"] {
    direction: rtl;
    text-align: right;
}

/* Media Queries */
@media (max-width: 768px) {
    .glass-nav {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0.6rem 1rem;
        gap: 0.4rem;
    }

    .logo {
        font-size: 1.1rem;
    }

    .lang-toggle {
        padding: 0.35rem 0.6rem;
        font-size: 0.82rem;
    }

    .btn-primary.small {
        padding: 0.35rem 0.75rem;
        font-size: 0.8rem;
        white-space: nowrap;
    }

    .tour-card, .tour-card.reverse {
        flex-direction: column;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
}
