:root {
    --primary-color: #f39c12; /* Luminous amber */
    --primary-hover: #d68910;
    --text-main: #2c3e50;
    --text-light: #7f8c8d;
    --bg-main: #ffffff;
    --bg-light: #f8f9fa;
    --bg-dark: #1a252f;
    --border-color: #ecf0f1;
    --shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.12);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --font-family: 'Cairo', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

.section-padding {
    padding: 100px 0;
}

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

.text-center {
    text-align: center;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
}

.section-title {
    font-size: 2.5rem;
    color: var(--text-main);
    margin-bottom: 10px;
}

.section-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.divider {
    height: 4px;
    width: 60px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    margin-bottom: 30px;
    border-radius: 2px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(243, 156, 18, 0.4);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Header */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: var(--transition);
}

#header.scrolled {
    padding: 10px 0;
    background-color: rgba(255, 255, 255, 0.98);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo a {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--bg-dark);
    letter-spacing: -0.5px;
}

.logo-sub {
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-top: -5px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-main);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 30px;
    height: 3px;
    background-color: var(--text-main);
    transition: var(--transition);
}

/* Hero */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    background-image: url('assets/images/hero_bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(26, 37, 47, 0.9) 0%, rgba(26, 37, 47, 0.6) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    color: #fff;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 40px;
    color: rgba(255,255,255,0.9);
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

.hero .btn {
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

/* About */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image .image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.about-image .image-wrapper:hover img {
    transform: scale(1.05);
}

.about-image .image-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.2) 0%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

.about-text p {
    font-size: 1.15rem;
    color: var(--text-light);
    line-height: 1.8;
}

.about-text strong {
    color: var(--text-main);
}

/* Products */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.product-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.card-image {
    height: 220px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .card-image img {
    transform: scale(1.1);
}

.card-content {
    padding: 25px;
}

.card-content h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--bg-dark);
}

.card-content p {
    color: var(--text-light);
    font-size: 1rem;
}

/* Contact */
.contact {
    background-image: url('assets/images/contact_bg.png');
    background-size: cover;
    background-position: center;
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.92); /* Frosted glass effect base */
    backdrop-filter: blur(5px);
}

.contact-container {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    background: rgba(255, 255, 255, 0.7);
    padding: 50px;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.05);
    border: 1px solid rgba(255,255,255,0.8);
    backdrop-filter: blur(20px);
}

.info-items {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.info-item .icon {
    font-size: 1.8rem;
    background: rgba(243, 156, 18, 0.1);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--primary-color);
}

.info-item h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--bg-dark);
}

.info-item p {
    color: var(--text-light);
    font-size: 1.05rem;
}

.contact-form {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-main);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-light);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(243, 156, 18, 0.1);
}

/* Footer */
.footer {
    background-color: var(--bg-dark);
    color: #fff;
    padding-top: 60px;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    color: #fff;
    margin-bottom: 15px;
}

.footer-about p {
    color: #bdc3c7;
    max-width: 400px;
}

.footer-links h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0; /* RTL */
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: #bdc3c7;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-right: 5px; /* RTL shift */
}

.footer-bottom {
    background-color: #151e27;
    padding: 20px 0;
    text-align: center;
    color: #7f8c8d;
}

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

/* Responsive */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }
    .about-container, .contact-container {
        grid-template-columns: 1fr;
    }
    .footer-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: #fff;
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-md);
        text-align: center;
    }
    .nav-links.active {
        display: flex;
    }
    .mobile-menu-btn {
        display: flex;
    }
    .hero-title {
        font-size: 2.2rem;
    }
    .contact-container {
        padding: 30px 20px;
    }
    .contact-form {
        padding: 25px;
    }
}


/* Added styles for Language toggle and scroll button */
.header-actions { display: flex; align-items: center; gap: 15px; }
.lang-toggle { background: transparent; border: 2px solid var(--primary-color); color: var(--primary-color); padding: 5px 12px; border-radius: 20px; font-weight: 700; cursor: pointer; transition: var(--transition); font-family: var(--font-family); }
.lang-toggle:hover { background: var(--primary-color); color: #fff; }
.scroll-to-top { position: fixed; bottom: 30px; right: 30px; background: var(--primary-color); color: #fff; width: 50px; height: 50px; border-radius: 50%; border: none; font-size: 1.5rem; cursor: pointer; box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transform: translateY(20px); transition: var(--transition); z-index: 1000; display: flex; align-items: center; justify-content: center; }
[dir="rtl"] .scroll-to-top { right: auto; left: 30px; }
.scroll-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-to-top:hover { background: var(--primary-hover); transform: translateY(-5px); }
.footer-contact-info {
    margin-top: 25px;
    background-color: #232d36;
    padding: 25px 30px;
    border-radius: 6px;
    display: inline-block;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.footer-contact-info p { 
    font-size: 0.95rem; 
    line-height: 1.8; 
    color: #e0e6ed; 
    margin: 0;
    font-family: inherit;
}
[dir="ltr"] .footer-contact-info p { 
    text-align: left; 
}
[dir="rtl"] .footer-contact-info p { 
    text-align: right; 
}

