/* Variables matching SkyStar branding */
:root {
    --primary-green: #288134;
    --primary-grey: #707377;
    --light-bg: #f9fafb;
    --dark-text: #1f2937;
    --white: #ffffff;
}

/* Global Reset & Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--dark-text);
    background-color: var(--white);
    line-height: 1.6;
    transition: direction 0.3s ease;
}

/* Change font for Arabic */
[lang="ar"] {
    font-family: 'Tajawal', sans-serif;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.green {
    color: var(--primary-green);
}

/* --- Bilingual Display Logic --- */
[dir="ltr"] .ar-text { display: none; }
[dir="rtl"] .en-text { display: none; }

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

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

.logo {
    height: 60px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-item {
    text-decoration: none;
    color: var(--primary-grey);
    font-weight: 600;
    transition: color 0.3s;
}

.nav-item:hover {
    color: var(--primary-green);
}

/* --- Buttons --- */
.btn-primary {
    background-color: var(--primary-green);
    color: var(--white);
    padding: 10px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #1e6327;
}

.btn-lang {
    background: none;
    border: 1px solid var(--primary-grey);
    color: var(--primary-grey);
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}

.btn-lang:hover {
    background-color: var(--light-bg);
}

/* --- Hero Section --- */
.hero {
    background-color: var(--light-bg);
    padding: 80px 0;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--primary-grey);
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--primary-grey);
    margin-bottom: 30px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.floating-icon {
    width: 250px;
    height: auto;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* --- Services Section --- */
.services {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-grey);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--white);
    padding: 40px 30px;
    border: 1px solid #eaeaea;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(40, 129, 52, 0.1);
    border-color: var(--primary-green);
}

.card h3 {
    color: var(--primary-green);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

/* --- Footer --- */
.footer {
    background-color: var(--primary-grey);
    color: var(--white);
    text-align: center;
    padding: 30px 0;
    margin-top: 40px;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .hero-container {
        flex-direction: column-reverse;
        text-align: center;
    }
    .hero-content h1 {
        font-size: 2rem;
    }
    .nav-links .nav-item {
        display: none; /* Hide standard links on mobile to save space */
    }
}
/* --- Floating WhatsApp Button --- */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px; /* Positions on the right for English (LTR) */
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.4);
}

.whatsapp-icon {
    width: 35px;
    height: 35px;
    fill: currentColor;
}

/* Adjust position for Arabic (RTL) */
[dir="rtl"] .whatsapp-float {
    right: auto;
    left: 40px; /* Flips to the left side for Arabic */
}

/* Make it slightly smaller on mobile */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
    [dir="rtl"] .whatsapp-float {
        left: 20px;
    }
    .whatsapp-icon {
        width: 28px;
        height: 28px;
    }
}