/* ===================== */
/* Reset and Base Styles */
/* ===================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Tajawal', Arial, sans-serif;
    line-height: 1.8;
    color: #333;
    background: #f9f9f9;
    direction: rtl;
    min-width: 320px;
    overflow-x: hidden;
}

/* ===================== */
/* Header with Enhanced Orange Gradient */
/* ===================== */
header {
    background: linear-gradient(135deg,
        #FF7700 0%,
        #FFA500 20%,
        #1E90FF 50%,
        #00008B 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row-reverse;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 25px;
}

.logo img {
    height: 90px;
    margin-left: 10px;
    max-width: 100%;
}

.logo h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: white;
    white-space: nowrap;
}

/* ===================== */
/* Navigation */
/* ===================== */
nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-right: 1.5rem;
    position: relative;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    position: relative;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

nav ul li a:hover {
    color: #FFA500;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: #FFA500;
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
    left: 0;
}

/* ===================== */
/* Animated Hero Section */
/* ===================== */
.animated-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    direction: rtl;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: relative;
    z-index: 1;
    color: #fff;
    animation: fadeIn 2s ease-out;
}

.hero-logo {
    max-width: 180px;
    margin-bottom: 1rem;
    animation: floatUp 1.5s ease-out;
}

.animated-hero h1 {
    font-size: 2.8rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.animated-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* ===================== */
/* Main Content */
/* ===================== */
main {
    min-height: calc(100vh - 220px);
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

section {
    margin-bottom: 2rem;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

h2 {
    color: #00008B;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #FF7700;
    word-wrap: break-word;
}

/* ===================== */
/* Form Styles */
/* ===================== */
form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

form input,
form textarea,
form select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    transition: all 0.3s ease;
    font-size: 16px;
}

form input:focus,
form textarea:focus,
form select:focus {
    outline: none;
    border-color: #1E90FF;
    box-shadow: 0 0 0 2px rgba(30, 144, 255, 0.2);
}

button {
    background: linear-gradient(to right, #FF8C00, #FFA500);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    min-height: 44px;
}

button:hover {
    background: linear-gradient(to right, #FF8C00, #FF8C00);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* ===================== */
/* Services Grid */
/* ===================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    border-color: #1E90FF;
}

.service-img {
    height: 200px;
    overflow: hidden;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.service-card:hover .service-img img {
    transform: scale(1.05);
}

.service-content {
    padding: 1.5rem;
}

.service-content h3 {
    color: #00008B;
    margin-bottom: 1rem;
}

/* ===================== */
/* Footer */
/* ===================== */
footer {
    background: linear-gradient(135deg, #FF7700 0%, #FFA500 30%, #1E90FF 60%, #00008B 100%);
    color: white;
    padding: 2rem 0;
    text-align: center;
    font-family: 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.8;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 0 2rem;
}

.footer-column h3 {
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
    color: white;
    text-align: right;
}

.footer-column p,
.footer-column ul,
.footer-column li {
    color: #f0f0f0;
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: right;
}

.footer-column ul li {
    margin-bottom: 0.8rem;
}

.footer-column ul li a {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    min-height: 44px;
    min-width: 44px;
    line-height: 44px;
}

.footer-column ul li a:hover {
    color: #FFD700;
    padding-right: 8px;
    letter-spacing: 0.5px;
}

.footer-column i {
    margin-left: 8px;
    color: #FFD700;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #FFA500;
    color: #00008B;
    transform: translateY(-3px);
}

.copyright {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: white;
}/* ===================== */
/* WhatsApp Floating Button */
/* ===================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366; /* WhatsApp green */
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1);
}

/* ===================== */
/* Facebook Floating Button */
/* ===================== */
.facebook-float {
    position: fixed;
    bottom: 100px; /* stacked above WhatsApp */
    left: 30px;
    width: 60px;
    height: 60px;
    background-color: #1877F2; /* Facebook blue */
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.facebook-float:hover {
    background-color: #145DBF;
    transform: scale(1.1);
}

/* ===================== */
/* Instagram Floating Button */
/* ===================== */
.instagram-float {
    position: fixed;
    bottom: 170px; /* stacked above Facebook */
    left: 30px;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle at 30% 107%, 
        #fdf497 0%, #fdf497 5%, 
        #fd5949 45%, #d6249f 60%, 
        #285AEB 90%); /* Instagram gradient */
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.instagram-float:hover {
    transform: scale(1.1);
    filter: brightness(1.1);
}

/* ===================== */
/* Animations */
/* ===================== */
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes floatUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===================== */
/* Accessibility Improvements */
/* ===================== */
a, button {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
input, select, textarea {
    font-size: 16px !important;
}

/* ===================== */
/* Responsive Design */
/* ===================== */
@media (max-width: 1200px) {
    .header-container,
    .footer-container,
    main {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (max-width: 992px) {
    .logo h1 { font-size: 1.8rem; }
    nav ul li { margin-right: 1rem; }
    .animated-hero h1 { font-size: 2.2rem; }
}

@media (max-width: 768px) {
    html { font-size: 15px; }
    .header-container { flex-direction: column-reverse; padding: 0.5rem 1rem; }
    .logo { flex-direction: row; gap: 15px; margin-top: 0.5rem; justify-content: center; }
    .logo img { height: 70px; margin-left: 0; }
    .logo h1 { font-size: 1.6rem; white-space: normal; }
    nav ul { flex-wrap: wrap; justify-content: center; padding: 0.5rem 0; }
    nav ul li { margin: 0 0.5rem; }
    nav ul li a { font-size: 0.9rem; padding: 0.3rem; }
    .animated-hero { height: 80vh; }
    .animated-hero h1 { font-size: 1.8rem; }
    .animated-hero p { font-size: 1rem; }
    main { padding: 1rem; }
    section { padding: 1.5rem; }
    .footer-container { grid-template-columns: 1fr; text-align: center; gap: 1.5rem; }
    .footer-column h3 { text-align: center; }
    .footer-column p, .footer-column ul, .footer-column li { text-align: center; }
    .services-grid { grid-template-columns: 1fr; }

    /* Resize all social buttons equally */
    .whatsapp-float,
    .facebook-float,
    .instagram-float {
        width: 50px;
        height: 50px;
        font-size: 24px;
        left: 20px;
    }
    .whatsapp-float { bottom: 20px; }
    .facebook-float { bottom: 80px; }
    .instagram-float { bottom: 140px; }
}

@media (max-width: 480px) {
    html { font-size: 14px; }
    .logo { flex-direction: column; gap: 10px; }
    .logo h1 { font-size: 1.4rem; }
    nav ul li { margin: 0 0.3rem; }
    .animated-hero h1 { font-size: 1.6rem; }
    section { padding: 1rem; }
    button { width: 100%; }
    .service-img { height: 150px; }

    /* Resize all social buttons equally */
    .whatsapp-float,
    .facebook-float,
    .instagram-float {
        width: 45px;
        height: 45px;
        font-size: 22px;
        left: 15px;
    }
    .whatsapp-float { bottom: 15px; }
    .facebook-float { bottom: 70px; }
    .instagram-float { bottom: 125px; }
}