/* Main CSS file for Engineering Platform Website */

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f8f8;
}

/* Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #0066b2; /* Primary blue color */
}

p {
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: #0066b2;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #004d86;
}

/* Header */
header {
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Navigation */
nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
}

nav ul li {
    margin: 0 1rem;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #0066b2;
}

/* Hero section */
.hero {
    background-color: #0066b2;
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.hero h2 {
    font-size: 2rem;
    color: white;
}

/* Services section */
.services {
    padding: 4rem 0;
}

.service-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    padding: 2rem;
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

/* Projects section */
.projects {
    padding: 4rem 0;
    background-color: #f0f8ff;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-card .content {
    padding: 1.5rem;
}

/* Portfolio highlights section */
.portfolio-highlights {
    margin-top: 3rem;
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.portfolio-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 1.5rem;
}

.portfolio-category {
    flex: 1;
    min-width: 300px;
}

.portfolio-category h4 {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #0066b2;
}

.portfolio-category ul {
    list-style: disc;
    margin-right: 1.5rem;
}

.portfolio-category li {
    margin-bottom: 0.5rem;
}

.portfolio-note {
    margin-top: 2rem;
    font-style: italic;
    text-align: center;
}

/* Emerald Lift Section */
.emerald-lift {
    background-color: white;
}

.emerald-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
}

.emerald-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.emerald-image img.featured-product {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.emerald-details {
    flex: 1;
    min-width: 300px;
}

.emerald-intro {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.emerald-features, .emerald-benefits {
    margin-bottom: 1.5rem;
    background-color: #f8f8f8;
    padding: 1.5rem;
    border-radius: 8px;
}

.emerald-features h4, .emerald-benefits h4 {
    margin-bottom: 1rem;
    color: #0066b2;
}

.emerald-features ul, .emerald-benefits ul {
    list-style: none;
    margin-right: 0;
}

.emerald-features li, .emerald-benefits li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
}

.emerald-features i, .emerald-benefits i {
    color: #0066b2;
    margin-left: 0.5rem;
    font-size: 1.1rem;
}

.emerald-cta {
    margin-top: 2rem;
    text-align: center;
}

.emerald-cta p {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.emerald-btn {
    background-color: #25D366;
    margin-right: 0.5rem;
}

.emerald-btn:hover {
    background-color: #128C7E;
}

.emerald-btn-alt {
    background-color: #0066b2;
}

.emerald-btn-alt:hover {
    background-color: #004d86;
}

/* About section */
.about {
    padding: 4rem 0;
}

/* Contact section */
.contact {
    padding: 4rem 0;
    background-color: #f0f8ff;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.contact-card {
    flex: 1;
    min-width: 250px;
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-info {
    margin-top: 0.5rem;
}

/* Responsive design */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav ul li {
        margin: 0.5rem 0;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .hero {
        padding: 1rem 0;
    }
    
    .hero-content {
        padding: 1rem;
    }
    
    /* Reduce padding for all sections on mobile */
    .services, .about, .projects, .contact, .emerald-lift, .why-us {
        padding: 2rem 0;
    }
    
    /* Make header more compact */
    header {
        padding: 0.5rem 0;
    }
    
    .logo h1 {
        font-size: 1.2rem;
    }
    
    .logo img {
        height: 40px !important;
    }
    
    /* Adjust grid layouts for mobile */
    .services-grid, .why-us-grid, .project-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Make cards more compact */
    .service-card, .why-us-item, .contact-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    /* Adjust emerald section for mobile */
    .emerald-features, .emerald-benefits {
        padding: 1rem;
    }
}


/* About Section Styles */
.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text ul {
    list-style: disc;
    margin-right: 2rem; /* Indentation for RTL */
    margin-bottom: 1rem;
}

.about-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

/* Why Us Grid */
.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    text-align: center;
}

.why-us-item {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

/* Contact Form Styles */
.contact-form {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
}

/* Header adjustments */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo img {
    vertical-align: middle; /* Align logo image better */
    margin-left: 10px; /* Add space between logo and text for RTL */
}

/* Hero content alignment */
.hero-content {
    background-color: rgba(0, 0, 0, 0.5); /* Add a dark overlay for better text readability */
    padding: 2rem;
    border-radius: 8px;
    display: inline-block; /* Center the content block */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
    }
    
    /* Keep header in row direction for mobile */
    .header-content {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    /* Keep logo and text in same row */
    .logo {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 0.5rem;
    }
    
    .logo h1 {
        font-size: 1.1rem;
        margin-bottom: 0;
    }
    
    /* Make navigation horizontal on mobile */
    nav {
        width: 100%;
    }
    
    nav ul {
        margin-top: 0.5rem;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 0.2rem 0.5rem;
    }
    
    /* Improve mobile layout for emerald section */
    .emerald-content {
        flex-direction: column;
    }
    
    /* Adjust portfolio section for mobile */
    .portfolio-category {
        min-width: 100%;
    }
    
    /* Make form elements more mobile-friendly */
    .form-group input,
    .form-group textarea {
        padding: 0.6rem;
    }
    
    /* Adjust CTA buttons for mobile */
    .emerald-btn, .emerald-btn-alt {
        display: block;
        margin: 0.5rem auto;
        width: 80%;
        text-align: center;
    }
}

