/* =======================================
   CSS VARIABLES & GLOBAL SETTINGS
   ======================================= */
:root {
    --primary-color: #0b5fb3;   /* A deeply rich, premium blue */
    --secondary-color: #00d2ff; /* Vibrant neon accent blue */
    --accent-color: #25D366;    /* WhatsApp green */
    --light-bg: #f4f8fb;
    --dark-bg: #111a24;
    --darker-bg: #0b1118;
    --text-main: #333333;
    --text-muted: #666666;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--light-bg);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Typography Extensions */
h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    line-height: 1.3;
}

p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

a {
    text-decoration: none;
    color: inherit;
}

/* =======================================
   BUTTONS
   ======================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    box-shadow: 0 6px 15px rgba(11, 95, 179, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(11, 95, 179, 0.6);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary-color);
}

.btn-large {
    padding: 15px 35px;
    font-size: 1.2rem;
}

/* =======================================
   HEADER / NAVBAR
   ======================================= */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

.logo img {
    height: 70px;
    object-fit: contain;
}

.nav-menu ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-menu a {
    font-weight: 600;
    color: var(--dark-bg);
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.mobile-toggle {
    display: none;
    font-size: 1.8rem;
    color: var(--dark-bg);
    cursor: pointer;
}

/* =======================================
   HERO SECTION
   ======================================= */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background-image: url('https://images.unsplash.com/photo-1600880292203-757bb62b4baf?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    color: var(--white);
    padding-top: 90px;
    text-align: right;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to left, rgba(11, 17, 24, 0.9), rgba(11, 17, 24, 0.4));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin-right: 0; /* Align right for RTL */
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--white);
}

.hero h1 span {
    color: var(--secondary-color);
}

.hero p {
    font-size: 1.3rem;
    color: #e0e0e0;
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

/* =======================================
   SECTIONS GLOBAL
   ======================================= */
.section {
    padding: 100px 0;
}

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

.section-title h2 {
    font-size: 2.8rem;
    color: var(--dark-bg);
}

.section-title h2 span {
    color: var(--primary-color);
}

.section-title p {
    margin-top: 15px;
    max-width: 600px;
    margin-inline: auto;
}

/* =======================================
   SERVICES
   ======================================= */
.services {
    background-color: var(--white);
}

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

.service-card {
    background: var(--light-bg);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.03);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
    border-color: var(--secondary-color);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(11, 95, 179, 0.1), rgba(0, 210, 255, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
}

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

/* =======================================
   FEATURES / ABOUT
   ======================================= */
.features {
    background-color: var(--light-bg);
}

.features-wrapper {
    display: flex;
    align-items: center;
    gap: 50px;
}

.features-content {
    flex: 1;
}

.features-content h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: var(--dark-bg);
}

.features-content h2 span {
    color: var(--primary-color);
}

.feature-list {
    list-style: none;
}

.feature-list li {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.feature-list i {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-top: 5px;
}

.feature-list h4 {
    font-size: 1.3rem;
    color: var(--dark-bg);
    margin-bottom: 5px;
}

.features-image {
    flex: 1;
    text-align: center;
}

.features-image img {
    max-width: 100%;
    max-height: 400px;
    border-radius: 20px;
    object-fit: contain;
    animation: float 6s ease-in-out infinite;
}

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

/* =======================================
   CALL TO ACTION
   ======================================= */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--darker-bg));
    padding: 80px 0;
    text-align: center;
    color: var(--white);
}

.cta-container h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--white);
}

.cta-container p {
    color: #d1e5f8;
    margin-bottom: 40px;
    max-width: 700px;
    margin-inline: auto;
}

/* =======================================
   FOOTER
   ======================================= */
.footer {
    background-color: var(--darker-bg);
    color: #a0aec0;
    padding: 80px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px;
    margin-bottom: 60px;
}

.footer-logo {
    height: 60px;
    margin-bottom: 20px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.footer-contact h3,
.footer-social h3 {
    color: var(--white);
    font-size: 1.4rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-contact h3::after,
.footer-social h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background-color: var(--secondary-color);
}

.footer-contact ul {
    list-style: none;
}

.footer-contact ul li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.footer-contact i {
    color: var(--secondary-color);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* =======================================
   WHATSAPP FLOATING BTN
   ======================================= */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--accent-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* =======================================
   RESPONSIVE DESIGN
   ======================================= */
@media (max-width: 992px) {
    .features-wrapper {
        flex-direction: column;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .header-container {
        height: 70px;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .whatsapp-header-btn {
        display: none; /* Hide on mobile to prioritize floating btn */
    }
    
    .nav-menu {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--white);
        box-shadow: 0 10px 15px rgba(0,0,0,0.05);
        padding: 20px;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: var(--transition);
    }
    
    .nav-menu.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
    
    .nav-menu ul {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .hero {
        text-align: center;
        padding-top: 70px;
    }
    
    .hero-overlay {
        background: rgba(11, 17, 24, 0.8);
    }
    
    .hero-content {
        margin: 0 auto;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-large {
        width: 100%;
    }
}
