/* --- Reset and Base Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
    direction: rtl; /* Right-to-Left for Arabic */
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* --- Header --- */
header {
    background-color: #1a252f;
    color: #fff;
    padding: 1.5rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffc107;
    margin-bottom: 0.2rem;
}

.logo p {
    font-size: 0.8rem;
    color: #ccc;
    letter-spacing: 1px;
}

nav ul {
    display: flex;
    gap: 2rem;
}

nav ul li a {
    font-weight: 600;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #ffc107;
}

/* --- Hero Section --- */
.hero {
    background: linear-gradient(rgba(26, 37, 47, 0.8), rgba(26, 37, 47, 0.9)), url('img/nova_water_heaters.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 6rem 0;
    text-align: center;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: #e0e0e0;
}

.btn-primary {
    display: inline-block;
    background-color: #ffc107;
    color: #1a252f;
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    transition: background-color 0.3s, transform 0.2s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #e0a800;
    transform: translateY(-3px);
}

/* --- Section Titles --- */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #1a252f;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: #ffc107;
    margin: 0.5rem auto 0;
}

/* --- Products Section --- */
.products {
    padding: 5rem 0;
    background-color: #fff;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.img-container {
    width: 100%;
    height: 250px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f4f4f4;
}

.img-container img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Ensures the image is not cropped awkwardly */
    transition: transform 0.5s ease;
}

.product-card:hover .img-container img {
    transform: scale(1.05);
}

.product-info {
    padding: 1.5rem;
    text-align: center;
}

.product-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: #1a252f;
}

.product-info .description {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.brand-tag {
    display: inline-block;
    background-color: #1a252f;
    color: #fff;
    padding: 5px 15px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 20px;
    letter-spacing: 1px;
}

/* --- About Section --- */
.about {
    padding: 5rem 0;
    background-color: #f8f9fa;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 3rem;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #1a252f;
}

.about-text p {
    margin-bottom: 1rem;
    color: #555;
}

.about-stats {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

.stat-box {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    flex: 1;
    min-width: 120px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.stat-box i {
    font-size: 2.5rem;
    color: #ffc107;
    margin-bottom: 0.5rem;
    display: block;
}

.stat-box span {
    font-weight: 600;
    color: #1a252f;
}

/* --- Contact Section --- */
.contact {
    padding: 5rem 0;
    background-color: #fff;
}

.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    background: #f8f9fa;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.contact-info {
    flex: 1;
    min-width: 250px;
}

.contact-info h3 {
    margin-bottom: 1.5rem;
    color: #1a252f;
}

.contact-info p {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #555;
}

.contact-info p i {
    color: #ffc107;
    width: 20px;
}

.contact-form {
    flex: 2;
    min-width: 300px;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #ffc107;
}

/* --- Footer --- */
footer {
    background-color: #1a252f;
    color: #ccc;
    text-align: center;
    padding: 2rem 0;
    font-size: 0.9rem;
}

/* --- Media Queries for Mobile --- */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    nav ul {
        gap: 1rem;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .about-content {
        flex-direction: column-reverse;
    }
    
    .contact-wrapper {
        padding: 1.5rem;
        flex-direction: column;
    }
}