/* --- VARIABLES & RESET --- */
:root {
    --primary-green: #4ade80;    /* Electric Green from Logo Shield */
    --primary-blue: #3a6cf4;     /* Tech Blue */
    --dark-bg: #0f172a;          /* Deep Navy Background */
    --card-bg: rgba(30, 41, 59, 0.8); /* Semi-transparent glass */
    --text-light: #f8fafc;
    --text-gray: #94a3b8;
    --gradient-main: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif; /* Modern Arabic Font */
    margin: 0;
    padding: 0;
    background: var(--gradient-main);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- HEADER --- */
header {
    background-color: rgba(15, 23, 42, 0.9); /* Dark glass look */
    backdrop-filter: blur(10px);
    padding: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.logo {
    display: flex;
    align-items: center;
    padding: 0 20px;
}

.logo img {
    height: 50px;
    width: 50px;
    border-radius: 50%;
    padding: 2px;
    background: white; /* White circle behind logo to make it pop */
    margin-right: 10px;
}

h1 {
    color: var(--primary-green);
    font-size: 1.2rem;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0 20px;
}

nav a {
    margin: 0 15px;
    text-decoration: none;
    color: var(--text-light);
    font-weight: 700;
    position: relative;
    transition: 0.3s;
}

nav a:hover {
    color: var(--primary-green);
}

/* Add a small underline animation on hover */
nav a::after {
    content: '';
    width: 0;
    height: 2px;
    background: var(--primary-green);
    position: absolute;
    bottom: -5px;
    right: 0;
    transition: width 0.3s;
}

nav a:hover::after {
    width: 100%;
}

/* --- MAIN LAYOUT --- */
main {
    padding-bottom: 50px;
}

/* --- HERO SECTION (Container 1) --- */
.container1 {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh; /* Full screen height */
    padding: 100px 5% 50px; /* Added top padding for fixed header */
    background-image: radial-gradient(circle at 50% 50%, rgba(58, 108, 244, 0.1) 0%, transparent 50%);
    gap: 50px;
}

.main-header {
    flex: 1;
    max-width: 600px;
}

.main-header h1 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 20px;
    line-height: 1.3;
}

.main-header p {
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.main-image {
    flex: 1;
    text-align: center;
    display: flex;
    justify-content: center;
}

.main-image img {
    max-width: 100%;
    width: 450px;
    height: auto;
    /* Floating Animation */
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(74, 222, 128, 0.3));
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* --- SERVICES (Container 2) --- */
.container2 {
    padding: 80px 20px;
    text-align: center;
    background: transparent; 
}

.container2 h2, .container3 h2 {
    font-size: 2rem;
    color: var(--primary-green);
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
}

.services-kind {
    margin-bottom: 60px;
}

.services-kind h3 {
    color: white;
    margin-bottom: 30px;
    font-size: 1.5rem;
    border-right: 4px solid var(--primary-blue);
    padding-right: 15px;
    text-align: right;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.services-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}
/* --- SERVICES CARD DESIGN --- */
.service-item {
    flex: 1 1 300px;
    background-color: var(--card-bg);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.4s ease;
    overflow: hidden; /* Ensures image doesn't stick out of corners */
    display: flex;
    flex-direction: column;
    padding: 0; /* Remove padding so image touches edges */
    backdrop-filter: blur(5px);
}

.service-item img {
    width: 100%;
    height: 180px; /* Fixed height for uniformity */
    object-fit: cover; /* Crops image nicely without distortion */
    border-bottom: 2px solid var(--primary-green); /* Neon line separator */
}

.service-content {
    padding: 25px; /* Add padding back to the text area */
    text-align: right;
    color: var(--text-gray);
}

.service-item h3 {
    color: var(--text-light);
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.25rem;
}

.service-item p {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Hover Effect */
.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(58, 108, 244, 0.25); /* Blue glow */
    border-color: var(--primary-green);
}

.service-item:hover img {
    filter: brightness(1.1); /* Make image slightly brighter on hover */
    transform: scale(1.05); /* Slight zoom effect */
    transition: transform 0.5s ease;
}

/* --- CONTACT (Container 3) --- */
.container3 {
    padding: 60px 20px;
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
}

.content {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.card {
    background-color: var(--card-bg);
    width: 300px;
    border-radius: 15px;
    padding: 30px;
    transition: 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.card:hover {
    transform: translateY(-5px);
    background-color: rgba(58, 108, 244, 0.1);
    border-color: var(--primary-blue);
}

.icon {
    color: var(--primary-green);
    font-size: 3em; /* Made smaller to look cleaner */
    margin-bottom: 20px;
}

.info h3 {
    color: white;
    margin-bottom: 10px;
}

.info p {
    color: var(--text-gray);
}

.container3 > p {
    color: var(--primary-blue);
    font-size: 0.9rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* --- WHATSAPP BUTTON --- */
.whatsapp-btn {
    display: inline-block;
    background-color: #25D366; /* Official WhatsApp Green */
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 50px; /* Fully rounded pill shape */
    margin-top: 15px;
    font-weight: bold;
    font-size: 0.9rem;
    transition: 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3); /* Green Glow */
    border: 1px solid transparent;
}

.whatsapp-btn i {
    margin-left: 8px; /* Space between icon and text */
    font-size: 1.1em;
}

.whatsapp-btn:hover {
    background-color: #128C7E; /* Darker green on hover */
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
    color: white; /* Ensure text stays white */
}


/* --- EMAIL BUTTON --- */
.email-btn {
    display: inline-block;
    background-color: #EA4335; /* Official Google Red */
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 50px;
    margin-top: 15px;
    font-weight: bold;
    font-size: 0.9rem;
    transition: 0.3s ease;
    box-shadow: 0 4px 15px rgba(234, 67, 53, 0.3); /* Red Glow */
    border: 1px solid transparent;
}

.email-btn i {
    margin-left: 8px;
    font-size: 1.1em;
}

.email-btn:hover {
    background-color: #c5221f; /* Darker red on hover */
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(234, 67, 53, 0.5);
    color: white;
}




/* --- FOOTER --- */
footer {
    background-color: #020617;
    color: var(--text-gray);
    text-align: center;
    padding: 20px;
    position: relative; /* Changed from fixed to relative so it sits at bottom naturally */
    width: 100%;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* --- MEDIA QUERIES (Mobile) --- */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding-bottom: 15px;
    }
    
    nav ul {
        padding-top: 15px;
    }

    .container1 {
        flex-direction: column-reverse; /* Image on top for mobile usually looks better, or bottom */
        text-align: center;
        padding-top: 160px; /* Space for double header */
    }
    
    .main-header h1 {
        font-size: 1.8rem;
    }

    .services-kind h3 {
        text-align: center;
        border-right: none;
        border-bottom: 3px solid var(--primary-blue);
        display: inline-block;
        padding-bottom: 5px;
    }
    
    .service-item, .card {
        text-align: center;
    }
    
    .service-item h3 {
        text-align: center;
    }
}





