* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --white: #ffffff;
    --dark-blue: #0a2a4a;
    --light-blue: #4a90e2;
    --light-gray: #f8f9fa;
    --text-dark: #333333;
    --text-light: #666666;
    --header-glass: rgba(10, 42, 74, 0.5);
    --header-border: rgba(255, 255, 255, 0.22);
    --control-bg: rgba(255, 255, 255, 0.18);
    --control-hover: rgba(255, 255, 255, 0.28);
}

body {
    font-family: 'Manrope', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
    padding-top: 100px; /* ensure header does not cover content */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
.navbar {
    background: var(--header-glass);
    padding: 0.75rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--header-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 12px 34px rgba(1, 15, 29, 0.2);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 74px;
    position: relative;
}

.logo {
    position: relative;
    flex: 0 0 auto;
}

/* remove decorative badge so logo image sits flush in header */
.logo-badge {
    position: relative;
    left: 0;
    top: 0;
    transform: none;
    padding: 0;
    border-radius: 0;
    background: none;
    border: none;
    box-shadow: none;
}

.logo img {
    height: auto;
    max-height: 100px; /* slightly larger for better visibility */
    width: auto;
    display: block;
}


.header-extras {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.social-icon {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: var(--white);
    background: var(--control-bg);
    border: 1px solid rgba(255, 255, 255, 0.16);
    transition: transform 0.25s ease, background-color 0.25s ease;
}

.social-icon:hover {
    background: var(--control-hover);
    transform: translateY(-1px);
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 0;
}

.lang-btn {
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: var(--control-bg);
    color: var(--white);
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
    min-width: 54px;
    font-weight: 700;
    letter-spacing: 0.4px;
    padding: 0.5rem 0.85rem;
}

.lang-btn:hover {
    background: var(--control-hover);
    transform: translateY(-1px);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--light-blue);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--dark-blue), var(--light-blue));
    color: var(--white);
    padding: 120px 0 80px;
    text-align: center;
    margin-top: 190px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-content h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    background-color: var(--white);
    color: var(--dark-blue);
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.cta-button:hover {
    background-color: var(--light-blue);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Products Section */
.products {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.products h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--dark-blue);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.product-card {
    background: var(--white);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.product-card h3 {
    color: var(--dark-blue);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.product-card p {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.product-price {
    color: var(--light-blue);
    font-size: 1.3rem;
    font-weight: 600;
}

/* About Section */
.about {
    padding: 80px 0;
}

.about h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--dark-blue);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Footer */
footer {
    background-color: var(--dark-blue);
    color: var(--white);
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--light-blue);
}

.footer-section p,
.footer-section ul {
    color: var(--white);
    line-height: 1.6;
}

.footer-social-icons {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0.35rem 0 0.8rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: var(--light-blue);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: var(--white);
}

/* RTL support - activated when document dir="rtl" */
html[dir="rtl"] body {
    font-family: 'Cairo', 'Tahoma', sans-serif;
    text-align: right;
}
html[dir="rtl"] .nav-menu {
    padding-right: 0;
}
html[dir="rtl"] .header-extras {
    order: -1; /* move social/lang to right side in RTL */
}
html[dir="rtl"] .about-content {
    direction: rtl;
}
html[dir="rtl"] .footer-content {
    direction: rtl;
}

/* RTL tweaks for navigation */
html[dir="rtl"] .nav-container {
    flex-direction: row;
}
html[dir="rtl"] .header-extras {
    margin-left: 0;
    margin-right: 1rem;
}
html[dir="rtl"] .nav-menu {
    margin-right: auto;
}
html[dir="rtl"] .hamburger {
    margin-right: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-wrap: wrap;
        gap: 0.6rem;
        min-height: 68px;
    }

    .logo {
        order: 1;
        flex: 0 0 165px;
    }

    .header-extras {
        order: 2;
        margin-left: auto;
    }

    .hamburger {
        order: 3;
        margin-left: auto;
    }

    .lang-btn {
        min-width: 48px;
        padding: 0.45rem 0.7rem;
    }

    .logo-badge {
        transform: translateY(-35%);
        padding: 0.3rem 0.45rem;
    }

    .logo img {
        height: 140px;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 110px;
        flex-direction: column;
        background: rgba(10, 42, 74, 0.9);
        backdrop-filter: blur(8px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content h2 {
        font-size: 1.2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-social-icons {
        justify-content: center;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}
