/* Custom properties for new design */
:root {
    --primary-color: #004d66; /* Deep Sea Blue - للرأس والعناوين */
    --secondary-color: #ff9900; /* Vibrant Orange - للأزرار والتأكيد */
    --text-color: #333;
    --light-bg: #f4f7f9; /* خلفية خفيفة */
    --dark-bg: #1a1a1a;
    --font-family: 'Cairo', sans-serif;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    line-height: 1.6;
    background-color: #fff;
    direction: rtl; 
    text-align: right;
}

/* Utility Class */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}

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

/* Header & Navigation */
header {
    background-color: var(--primary-color);
    color: #fff;
    padding: 15px 0;
    position: sticky; 
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

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

.logo img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    margin-left: 10px;
}

.logo span {
    font-size: 1.4em;
    font-weight: 700;
    color: #fff;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: #fff;
    font-weight: 500;
    transition: color 0.3s;
    padding: 5px 0;
    display: flex;
    align-items: center;
}

nav ul li a i {
    margin-left: 8px;
    font-size: 1.1em;
}

nav ul li a:hover {
    color: var(--secondary-color);
}

/* Hero Section */
.hero {
    padding: 120px 0;
    background: linear-gradient(rgba(0, 77, 102, 0.8), rgba(0, 77, 102, 0.8)), url('cleaning_supplies.jpg') center/cover no-repeat;
    color: #fff;
    text-align: center;
}

.hero h1 {
    font-size: 3em;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.3em;
    margin-bottom: 40px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    transition: background-color 0.3s;
    font-weight: 700;
    text-transform: uppercase;
}

.primary-btn {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: 2px solid var(--secondary-color);
}

.primary-btn:hover {
    background-color: #fff;
    color: var(--primary-color);
}

/* Main Sections Styling */
.section {
    padding: 80px 0;
}

.section:nth-child(even) {
    background-color: var(--light-bg);
}

.section-title {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 50px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

/* About Us */
.about-content {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.about-content .text-block {
    flex-basis: 70%;
}

.about-content p {
    font-size: 1.1em;
    margin-bottom: 20px;
}

.about-content ul {
    list-style: none;
    padding-right: 0;
}

.about-content ul li {
    background: #fff;
    margin-bottom: 10px;
    padding: 10px 15px;
    border-right: 3px solid var(--secondary-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.about-content ul li i {
    color: var(--primary-color);
    margin-left: 10px;
}

/* Products & Advantage Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.feature-item {
    background-color: #fff;
    padding: 40px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.feature-item i {
    font-size: 3em;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.feature-item h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 77, 102, 0.8);
    color: #fff;
    padding: 10px;
    text-align: center;
    font-weight: 700;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.gallery-item:hover .overlay {
    transform: translateY(0);
}

/* Contact Section */
.contact {
    text-align: center;
}

.contact-details {
    margin-bottom: 40px;
    font-size: 1.1em;
}

.contact-details p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-details i {
    color: var(--secondary-color);
    margin-left: 10px;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: right;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--font-family);
    font-size: 1em;
    text-align: right;
}

.contact-form textarea {
    height: 120px;
    resize: vertical;
}

/* Footer */
footer {
    background-color: var(--dark-bg);
    color: #fff;
    text-align: center;
    padding: 25px 0;
    font-size: 0.9em;
}

/* Media Queries */
@media (max-width: 768px) {
    .hero {
        padding: 80px 0;
    }
    .hero h1 {
        font-size: 2em;
    }
    header .container {
        flex-direction: column;
    }
    nav ul {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    nav ul li {
        margin: 5px 10px;
    }
    .about-content {
        flex-direction: column;
    }
    .about-content .text-block {
        flex-basis: 100%;
    }
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}