/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --navy: #0f2847;
    --navy-dark: #0a1d35;
    --gold: #d4af37;
    --white: #fff;
    --gray: #f8f9fa;
    --text: #2c3e50;
    --text-light: #6c757d;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.7;
    color: var(--text);
    direction: rtl;
    background: var(--white);
}

body.ltr {
    font-family: 'Inter', sans-serif;
    direction: ltr;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    background: var(--white);
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
    transition: box-shadow 0.3s;
}

.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

/* Logo - ONE ONLY */
.nav-logo {
    flex-shrink: 0;
}

.logo-image {
    height: 45px;
    width: auto;
    display: block;
}

body.ltr .nav-logo {
    order: -1;
}

/* Nav Links */
.nav-links {
    display: flex;
    gap: 28px;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.nav-links a {
    color: var(--navy);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

/* Language Toggle */
.lang-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--gray);
    padding: 6px 12px;
    border-radius: 20px;
}

body.ltr .lang-toggle {
    order: 1;
}

.lang-btn {
    background: none;
    border: none;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-light);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 10px;
    transition: all 0.3s;
    font-family: 'Inter', sans-serif;
}

.lang-btn:hover {
    color: var(--navy);
}

.lang-btn.active {
    background: var(--navy);
    color: var(--white);
}

.lang-toggle span {
    color: var(--text-light);
    opacity: 0.5;
}

/* Mobile Button */
.mobile-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-btn span {
    width: 25px;
    height: 3px;
    background: var(--navy);
    border-radius: 2px;
    transition: all 0.3s;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
    color: var(--white);
    padding: 120px 20px 100px;
    text-align: center;
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.hero-logo {
    height: 110px;
    width: auto;
    margin: 0 auto 40px;
    display: block;
    animation: scaleIn 0.8s ease-out forwards;
    filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.3)) 
            drop-shadow(0 4px 10px rgba(212, 175, 55, 0.2));
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-logo:hover {
    filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.4)) 
            drop-shadow(0 6px 15px rgba(212, 175, 55, 0.3));
    transform: translateY(-8px) scale(1.03);
}

.hero h1 {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 15px;
}

.hero h2 {
    font-size: 26px;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 25px;
}

.hero p {
    font-size: 19px;
    line-height: 1.8;
    margin-bottom: 35px;
    opacity: 0.95;
}

.cta-btn {
    display: inline-block;
    background: var(--gold);
    color: var(--navy);
    padding: 15px 45px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 17px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

/* Products Section - CENTERED & MODERN */
.products {
    padding: 80px 20px;
    background: var(--gray);
}

.section-title {
    font-size: 38px;
    font-weight: 800;
    color: var(--navy);
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    border-radius: 2px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 35px;
    max-width: 1000px;
    margin: 0 auto;
}

.product-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:nth-child(1) {
    transition-delay: 0.1s;
}

.product-card:nth-child(2) {
    transition-delay: 0.2s;
}

.product-card:nth-child(3) {
    transition-delay: 0.3s;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.product-img-wrapper {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #f5f5f5;
}

.product-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-card:hover .product-img-wrapper img {
    transform: scale(1.05);
}

.product-name {
    padding: 25px 20px;
    font-size: 20px;
    font-weight: 700;
    color: var(--navy);
    text-align: center;
}

/* About Section */
.about {
    padding: 80px 20px;
    background: var(--white);
}

.about-text {
    font-size: 18px;
    line-height: 2;
    color: var(--text-light);
    margin-bottom: 25px;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Services Section */
.services {
    padding: 80px 20px;
    background: var(--gray);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.service-item {
    background: var(--white);
    padding: 35px 25px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.service-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.service-item h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.6;
}

/* Vision Section */
.vision {
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
    color: var(--white);
    text-align: center;
}

.vision .section-title {
    color: var(--white);
}

.vision p {
    font-size: 22px;
    line-height: 2;
    max-width: 900px;
    margin: 0 auto;
    font-weight: 500;
}

/* Contact Section */
.contact {
    padding: 80px 20px;
    background: var(--gray);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-item {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.contact-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.contact-item h3 {
    font-size: 18px;
    color: var(--navy);
    margin-bottom: 10px;
    font-weight: 700;
}

.contact-item p {
    color: var(--text-light);
    font-size: 16px;
}

.contact-item a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: var(--gold);
}

/* Footer */
.footer {
    background: var(--navy-dark);
    color: var(--white);
    text-align: center;
    padding: 30px 20px;
}

.footer p {
    opacity: 0.85;
}

/* Scroll reveal animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.scroll-reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.8s ease-out;
}

.scroll-reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.scroll-reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.8s ease-out;
}

.scroll-reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .mobile-btn {
        display: flex;
    }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        display: none;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .hero h2 {
        font-size: 20px;
    }
    
    .hero p {
        font-size: 17px;
    }
    
    .section-title {
        font-size: 30px;
    }
    
    .hero-logo {
        height: 75px;
        margin-bottom: 30px;
    }
    
    .products-grid,
    .services-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
}
