/* --- CSS Variables & Reset --- */
:root {
    --primary-color: #F25C05; /* Orange */
    --secondary-color: #00A8E8; /* Light Blue */
    --bg-color: #F8FAFC;
    --text-color: #333333;
    --white: #ffffff;
    --light-grey: #e0e0e0;
    --font-main: 'Cairo', sans-serif;
    --shadow: 0 4px 15px rgba(0,0,0,0.05);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.7;
    text-align: right; 
    opacity: 0; 
    animation: fadeIn 0.6s ease-out forwards; 
}

body.fade-out {
    animation: fadeOut 0.4s ease-in forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-15px); }
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* --- Utility Classes --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

/* CHANGED: Primary button is now Orange */
.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}
.btn-primary:hover { background-color: #d94e00; }

/* --- Header --- */
.main-header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.5rem 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    max-height: 90px;
    width: auto;
    object-fit: contain;
}

.nav-list {
    display: flex;
    gap: 2.5rem;
}

.nav-list a {
    font-weight: 600;
    color: var(--text-color);
    transition: var(--transition);
    position: relative;
}

.nav-list a:hover, .nav-list a.active {
    color: var(--primary-color);
}

/* CHANGED: "Contact Us" button in Nav is now Orange */
.nav-list a.highlight-link {
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 5px 15px;
    border-radius: 4px;
}

.nav-list a.highlight-link:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.mobile-toggle { 
    display: none; 
    cursor: pointer;
    background: none;
    border: none;
    flex-direction: column;
    gap: 6px; 
    z-index: 1001; 
}

.mobile-toggle span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--primary-color);
    transition: all 0.3s ease-in-out;
    border-radius: 2px;
}

/* --- HERO SECTION --- */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.6)), url('mainpage.jpg');
    background-size: cover;
    background-position: center;
    height: 70vh; 
    display: flex;
    align-items: center;
    color: var(--white);
    text-align: center;
}

.hero-content { max-width: 800px; }

.tagline {
    display: block;
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.subheadline {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- IMAGE SLIDER SECTION --- */
.image-slider {
    position: relative;
    height: 300px; 
    overflow: hidden;
    background-color: #f0f0f0;
    margin-top: 50px;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.5);
    color: var(--primary-color);
    border: none;
    font-size: 2.5rem;
    padding: 10px 20px;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s;
}

.slider-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

.prev-btn { right: 0; border-radius: 4px 0 0 4px; }
.next-btn { left: 0; border-radius: 0 4px 4px 0; }


/* --- Features Section --- */
.features {
    padding: 5rem 0;
    background-color: var(--white);
    position: relative;
    z-index: 10;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    text-align: center;
}

.feature-card {
    padding: 2.5rem;
    background: var(--white);
    border-bottom: 4px solid transparent;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-bottom: 4px solid var(--primary-color);
}

.feature-card .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

/* --- Sectors Section --- */
.sectors {
    padding: 5rem 0;
    background-color: var(--bg-color);
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 3.5rem;
    position: relative;
    display: inline-block;
    width: 100%;
}

.sectors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.sector-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-right: 5px solid var(--secondary-color);
    padding: 2rem;
}

.sector-card:hover {
    background-color: var(--primary-color);
}

.sector-card:hover h3, .sector-card:hover p {
    color: var(--white);
}

.sector-card h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    transition: var(--transition);
}

.sector-card p {
    font-size: 1rem;
    color: #666;
    transition: var(--transition);
}

/* --- About Section --- */
.about {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 5rem 0;
    text-align: center;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.about p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* --- Contact Section --- */
.contact-section {
    padding: 5rem 0;
    background-color: var(--white);
}

.contact-wrapper {
    display: flex;
    justify-content: center;
    text-align: center;
}

.contact-info {
    max-width: 600px;
    background: var(--bg-color);
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid var(--light-grey);
}

.contact-info h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.info-item {
    margin-top: 2rem;
    font-size: 1.1rem;
}

.email-link {
    display: block;
    font-size: 1.5rem;
    color: var(--secondary-color);
    font-weight: 700;
    margin-top: 0.5rem;
}

.email-link:hover {
    text-decoration: underline;
}

/* --- Footer --- */
footer {
    background-color: #1a202c;
    color: #a0aec0;
    padding: 4rem 0;
    font-size: 0.95rem;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-col ul li { margin-bottom: 0.8rem; }
.footer-col ul li a:hover { color: var(--primary-color); }

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
    line-height: 1.6;
}

.footer-contact li span {
    display: inline-block;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        border-top: 1px solid var(--light-grey);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
        text-align: right;
    }

    .main-nav.active { 
        max-height: 400px; 
        box-shadow: 0 10px 15px rgba(0,0,0,0.1); 
    }

    .nav-list {
        flex-direction: column;
        gap: 0;
        padding: 1rem;
    }

    .nav-list li {
        width: 100%;
        margin-bottom: 10px;
    }

    .nav-list a {
        display: block;
        padding: 10px;
        border-radius: 4px;
    }
    
    .nav-list a:hover { background-color: var(--bg-color); }

    .mobile-toggle {
        display: flex; 
    }

    .hero h1 { font-size: 2.2rem; }
    
    .features { margin-top: 0; padding: 3rem 0; }
    
    .mobile-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}