/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Dark theme - matching landing page design */
    --primary-main: #001A3B;
    --primary-light: #003366;
    --primary-dark: #000D1F;
    
    /* Gold/Bronze accent - headings, buttons, active states */
    --gold-main: #D4A574;
    --gold-light: #E5C299;
    --gold-dark: #B8865A;
    
    /* Neutral Colors - dark theme */
    --white: #FFFFFF;
    --off-white: rgba(255, 255, 255, 0.95);
    --bg-dark: #0a0a0f;
    /* Glass morphism: exact neutral dark grey (no blue tint) */
    --bg-dark-surface: rgba(40, 40, 40, 0.88);
    --bg-card: rgba(40, 40, 40, 0.78);
    --black: #000000;
    
    /* Text Colors - light on dark */
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.9);
    --text-tertiary: rgba(255, 255, 255, 0.8);
    --text-quaternary: rgba(255, 255, 255, 0.65);
    --text-inverse: #FFFFFF;
    
    /* Border Colors */
    --border-light: rgba(255, 255, 255, 0.12);
    --border-default: rgba(255, 255, 255, 0.15);
    
    /* Semantic Colors */
    --success: #10B981;
    --error: #EF4444;
    --warning: #F59E0B;
    --info: #3B82F6;
    --disabled: rgba(255, 255, 255, 0.4);
    
    /* Shadow Colors */
    --shadow-light: rgba(0, 0, 0, 0.2);
    --shadow-medium: rgba(0, 0, 0, 0.3);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.25);
    --shadow-card-hover: 0 8px 30px rgba(0, 0, 0, 0.35);
    --overlay: rgba(0, 0, 0, 0.45);
    
    /* Background image opacity: 7.5% */
    --bg-image-opacity: 0.075;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-dark);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    min-height: 100vh;
}

/* Background image at 7.5% opacity */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('assets/background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.075;
    z-index: -1;
    pointer-events: none;
}

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

/* Navigation */
.navbar {
    background-color: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 40px;
    max-height: 44px;
    width: auto;
    display: block;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--gold-main);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: var(--gold-main);
}

.nav-link.active::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    gap: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    background: transparent;
    color: var(--white);
    padding: 150px 0 100px;
    text-align: center;
    margin-top: 70px;
    position: relative;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: var(--gold-main);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

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

.btn {
    padding: 14px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-card);
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold-main) 0%, var(--gold-dark) 100%);
    color: var(--white);
    box-shadow: var(--shadow-card);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-main) 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-card-hover);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--gold-main) 0%, var(--gold-dark) 100%);
    color: var(--white);
    border: 2px solid transparent;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-main) 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-card-hover);
}

/* Section Styles */
.section {
    padding: 80px 0;
}

.section-alt {
    background-color: transparent;
}

.section-title {
    font-size: 2.5rem;
    color: var(--gold-main);
    margin-bottom: 3rem;
    text-align: center;
    font-weight: 700;
    position: relative;
    padding-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--gold-main), var(--gold-dark));
    border-radius: 2px;
}

.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.content-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.content-text p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.feature-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.12);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold-main), var(--gold-dark));
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card-hover);
    border-color: rgba(212, 165, 116, 0.3);
}

.feature-card h3 {
    color: var(--gold-main);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.feature-card ul {
    list-style: none;
    padding-left: 0;
}

.feature-card ul li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--white);
}

.feature-card ul li::before {
    content: '✔';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
    font-size: 1rem;
}

.feature-card p {
    color: var(--white);
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* Company Info */
.company-info {
    background: linear-gradient(135deg, var(--gold-main) 0%, var(--gold-dark) 100%);
    padding: 2.5rem;
    border-radius: 16px;
    margin-top: 3rem;
    text-align: center;
    box-shadow: var(--shadow-card);
    color: var(--white);
}

.company-info p {
    color: var(--white);
    font-size: 1.1rem;
    margin: 0;
}

/* Legal Content */
.legal-content {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--white);
}

.last-updated {
    text-align: center;
    color: var(--text-quaternary);
    font-style: italic;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.legal-content h3 {
    color: var(--gold-main);
    font-size: 1.4rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.legal-content h3:first-of-type {
    margin-top: 0;
}

.legal-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.2rem;
}

.legal-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.legal-content ul li {
    color: var(--text-secondary);
}

.legal-content ul li {
    margin-bottom: 0.8rem;
    line-height: 1.7;
}

.legal-content a {
    color: var(--gold-main);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.legal-content a:hover {
    color: var(--gold-light);
    text-decoration: underline;
}

/* Contact Box */
.contact-box {
    background: linear-gradient(135deg, var(--gold-main) 0%, var(--gold-dark) 100%);
    padding: 2rem;
    border-radius: 16px;
    margin: 1.5rem 0;
    color: var(--white);
    box-shadow: var(--shadow-card);
}

.contact-box p {
    color: var(--white);
    margin-bottom: 0.5rem;
}

.contact-box a {
    color: var(--white);
    text-decoration: underline;
    transition: opacity 0.3s ease;
}

.contact-box a:hover {
    opacity: 0.8;
}

/* Contact Section */
.contact-info {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.contact-card {
    background: linear-gradient(135deg, var(--gold-main) 0%, var(--gold-dark) 100%);
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    color: var(--white);
    box-shadow: var(--shadow-card-hover);
    max-width: 500px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.contact-card h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.contact-card p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.address {
    margin: 1.5rem 0;
    line-height: 1.8;
}

.email {
    margin-top: 1.5rem;
}

.email a {
    color: var(--white);
    text-decoration: underline;
    font-weight: 600;
    font-size: 1.1rem;
    transition: opacity 0.3s ease;
}

.email a:hover {
    opacity: 0.9;
}

/* Footer */
.footer {
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-light);
    color: var(--white);
    padding: 3rem 0 1.5rem;
    position: relative;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.footer-logo p {
    color: var(--gold-main);
    font-size: 0.95rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--gold-main);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
    color: var(--gold-main);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(10px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px var(--shadow-medium);
        padding: 2rem 0;
        gap: 0;
        border-bottom: 1px solid var(--border-light);
    }

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

    .nav-menu li {
        width: 100%;
        padding: 1rem 0;
    }

    .nav-link {
        display: block;
        width: 100%;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .content-wrapper {
        padding: 0 10px;
    }

    .content-text {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 2rem 0;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .legal-content {
        padding: 1.5rem;
    }

    .legal-content h3 {
        font-size: 1.3rem;
        margin-top: 2rem;
        margin-bottom: 0.8rem;
    }

    .contact-card {
        padding: 2rem 1.5rem;
        margin: 1rem 0;
    }

    .company-info {
        padding: 1.5rem;
        margin-top: 2rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 90px 0 50px;
    }

    .hero-title {
        font-size: 1.75rem;
        margin-bottom: 0.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-buttons {
        gap: 0.8rem;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.95rem;
    }

    .section {
        padding: 40px 0;
    }

    .section-title {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }

    .content-text {
        font-size: 0.95rem;
        margin-bottom: 1.2rem;
    }

    .feature-grid {
        gap: 1.2rem;
        margin: 1.5rem 0;
    }

    .feature-card {
        padding: 1.2rem;
    }

    .feature-card h3 {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }

    .legal-content {
        padding: 1rem;
    }

    .legal-content h3 {
        font-size: 1.2rem;
        margin-top: 1.5rem;
        margin-bottom: 0.7rem;
    }

    .legal-content p {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }

    .contact-card {
        padding: 1.5rem 1rem;
    }

    .company-info {
        padding: 1.2rem;
        margin-top: 1.5rem;
    }

    .footer {
        padding: 2rem 0 1rem;
    }

    .footer-content {
        gap: 1.5rem;
        margin-bottom: 1.5rem;
    }
}

/* Smooth Scroll Enhancement */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* RTL Support for Arabic */
body.rtl {
    direction: rtl;
    text-align: right;
}

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

body.rtl .nav-link::after {
    left: auto;
    right: 0;
}

body.rtl .hero-buttons {
    flex-direction: row-reverse;
}

body.rtl .feature-grid {
    direction: rtl;
}

body.rtl .feature-card ul li {
    padding-left: 0;
    padding-right: 1.5rem;
}

body.rtl .feature-card ul li::before {
    left: auto;
    right: 0;
}

body.rtl .legal-content ul {
    margin-left: 0;
    margin-right: 1.5rem;
    direction: rtl;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

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

body.rtl .section-title::after {
    left: auto;
    right: 50%;
    transform: translateX(50%);
}

/* Language Switcher */
.language-switcher {
    margin-left: 1rem;
}

body.rtl .language-switcher {
    margin-left: 0;
    margin-right: 1rem;
}

.lang-btn {
    background: linear-gradient(135deg, var(--gold-main) 0%, var(--gold-dark) 100%);
    color: var(--white);
    border: none;
    padding: 8px 16px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    min-width: 50px;
    box-shadow: var(--shadow-card);
}

.lang-btn:hover {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-main) 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-card-hover);
}

@media (max-width: 768px) {
    body.rtl .language-switcher {
        margin-right: 0;
    }
    
    .language-switcher {
        width: 100%;
        padding: 1rem 0;
        border-top: 1px solid var(--border-default);
        margin-top: 1rem;
    }
    
    .lang-btn {
        width: 100%;
    }
}

