/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px; /* مسافة من الأعلى عند الانتقال */
}

body {
    font-family: 'Cairo', 'Tahoma', 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    direction: rtl;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

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

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

@keyframes iconBounce {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-5px) rotate(-5deg);
    }
    75% {
        transform: translateY(-5px) rotate(5deg);
    }
}

@keyframes imageFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes imageFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-15px) scale(1.02);
    }
}

@keyframes logoSlide {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Header */
.header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    animation: fadeIn 0.6s ease-in;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-image {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 12px;
    background: white;
    padding: 8px;
    animation: logoSlide 0.8s ease-out, pulse 3s ease-in-out infinite;
    transition: transform 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.logo:hover .logo-image {
    transform: scale(1.1) rotate(5deg);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text h1 {
    font-size: 1.8rem;
    margin-bottom: 5px;
    font-weight: 700;
    animation: slideInRight 0.8s ease-out;
}

.logo-text p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.nav {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background-color 0.3s;
    font-weight: 500;
}

.nav-link:hover {
    background-color: rgba(255,255,255,0.2);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #2a5298 0%, #1e3c72 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
    animation: fadeIn 0.8s ease-in;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    animation: fadeInUp 1s ease-out;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.95;
    animation: fadeInUp 1.2s ease-out;
}

.hero-image {
    margin-top: 40px;
    animation: fadeInUp 1.4s ease-out;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-company-image {
    max-width: 400px;
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: imageFadeIn 1.2s ease-out, imageFloat 4s ease-in-out infinite;
    transition: transform 0.3s;
    background: white;
    padding: 15px;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.hero-company-image:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
    border-color: rgba(42, 82, 152, 0.3);
}

/* Section Styles */
.section {
    padding: 60px 0;
    background-color: #fff;
}

.section-alt {
    background-color: #f8f9fa;
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
    color: #1e3c72;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
    animation: fadeInUp 0.8s ease-out;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(135deg, #2a5298 0%, #1e3c72 100%);
    border-radius: 2px;
    animation: fadeIn 1s ease-out 0.3s both;
}

/* About Section */
.about-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.about-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 35px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, #2a5298 0%, #1e3c72 100%);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s;
}

.about-card:hover::before {
    transform: scaleX(1);
}

.about-card:nth-child(1) { animation-delay: 0.1s; }
.about-card:nth-child(2) { animation-delay: 0.2s; }
.about-card:nth-child(3) { animation-delay: 0.3s; }
.about-card:nth-child(4) { animation-delay: 0.4s; }

.about-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 10px 30px rgba(42, 82, 152, 0.2);
    border-color: #2a5298;
}

.about-card:hover .about-card-icon {
    animation: iconBounce 0.6s ease-in-out;
    transform: scale(1.15) rotate(5deg);
}

.about-card-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    display: inline-block;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2a5298 0%, #1e3c72 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 5px 15px rgba(42, 82, 152, 0.3);
    transition: transform 0.3s;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.15));
}

.about-card h3 {
    color: #1e3c72;
    margin-bottom: 15px;
    font-size: 1.4rem;
    font-weight: 700;
}

.about-card p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
    text-align: right;
    margin: 0;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    animation: fadeInUp 0.8s ease-out;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.service-card:hover .service-icon {
    animation: iconBounce 0.6s ease-in-out;
    transform: scale(1.1);
}

.service-icon {
    font-size: 3.5rem;
    margin-bottom: 15px;
    display: inline-block;
    transition: transform 0.3s;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.service-card h3 {
    color: #1e3c72;
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 600;
}

.service-card p {
    color: #666;
    line-height: 1.6;
}

/* Why Us Section */
.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.why-us-item {
    text-align: center;
    padding: 25px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    animation: fadeInUp 0.8s ease-out;
}

.why-us-item:nth-child(1) { animation-delay: 0.1s; }
.why-us-item:nth-child(2) { animation-delay: 0.2s; }
.why-us-item:nth-child(3) { animation-delay: 0.3s; }
.why-us-item:nth-child(4) { animation-delay: 0.4s; }

.why-us-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.why-us-item:hover .why-us-icon {
    animation: pulse 0.6s ease-in-out;
    transform: scale(1.1);
}

.why-us-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2a5298 0%, #1e3c72 100%);
    color: white;
    border-radius: 50%;
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 15px;
    transition: transform 0.3s;
    box-shadow: 0 4px 10px rgba(42, 82, 152, 0.3);
}

.why-us-item h3 {
    color: #1e3c72;
    margin-bottom: 10px;
    font-size: 1.1rem;
    font-weight: 600;
}

.why-us-item p {
    color: #666;
    font-size: 0.95rem;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 1.05rem;
    transition: transform 0.3s, background-color 0.3s;
    animation: fadeInUp 0.8s ease-out;
}

.contact-item:nth-child(1) { animation-delay: 0.1s; }
.contact-item:nth-child(2) { animation-delay: 0.2s; }
.contact-item:nth-child(3) { animation-delay: 0.3s; }

.contact-item:hover {
    transform: translateX(-5px);
    background-color: #e9ecef;
}

.contact-icon {
    font-size: 1.8rem;
    min-width: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #2a5298 0%, #1e3c72 100%);
    border-radius: 50%;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    transition: transform 0.3s;
}

.contact-item:hover .contact-icon {
    transform: scale(1.1) rotate(5deg);
    animation: iconBounce 0.5s ease-in-out;
}

.contact-item a {
    color: #2a5298;
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

.contact-form {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #1e3c72;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2a5298;
}

.btn-submit {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #2a5298 0%, #1e3c72 100%);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(42, 82, 152, 0.4);
}

/* WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    animation: fadeIn 1s ease-out;
}

.whatsapp-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.7);
}

.whatsapp-btn:hover .whatsapp-icon {
    animation: iconBounce 0.6s ease-in-out;
}

.whatsapp-icon {
    font-size: 2.2rem;
    position: relative;
    z-index: 2;
    transition: transform 0.3s;
}

.whatsapp-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #25D366;
    animation: whatsappPulse 2s infinite;
    z-index: 1;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 50px 0 20px;
    margin-top: 60px;
}

.footer-title {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 30px;
    font-weight: 700;
    animation: fadeInUp 0.8s ease-out;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.footer-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    font-size: 1rem;
    transition: transform 0.3s, background-color 0.3s;
    animation: fadeInUp 0.8s ease-out;
}

.footer-item:nth-child(1) { animation-delay: 0.1s; }
.footer-item:nth-child(2) { animation-delay: 0.2s; }
.footer-item:nth-child(3) { animation-delay: 0.3s; }
.footer-item:nth-child(4) { animation-delay: 0.4s; }

.footer-item:hover {
    transform: translateX(-5px);
    background-color: rgba(255,255,255,0.2);
}

.footer-icon {
    font-size: 1.5rem;
    min-width: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transition: transform 0.3s;
}

.footer-item:hover .footer-icon {
    transform: scale(1.2) rotate(5deg);
}

.footer-item a {
    color: white;
    text-decoration: underline;
}

.footer-item a:hover {
    opacity: 0.8;
}

.footer-item strong {
    font-weight: bold;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        text-align: center;
    }

    .logo {
        flex-direction: column;
        gap: 10px;
    }

    .logo-image {
        width: 50px;
        height: 50px;
    }

    .hero-company-image {
        max-width: 300px;
    }

    .nav {
        justify-content: center;
        margin-top: 15px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .services-grid,
    .why-us-grid,
    .about-cards {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .whatsapp-btn {
        width: 50px;
        height: 50px;
        bottom: 20px;
        left: 20px;
    }

    .whatsapp-icon {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .logo-text h1 {
        font-size: 1.4rem;
    }

    .logo-image {
        width: 45px;
        height: 45px;
    }

    .hero-company-image {
        max-width: 250px;
        padding: 5px;
    }

    .nav-link {
        padding: 6px 10px;
        font-size: 0.9rem;
    }

    .hero {
        padding: 50px 0;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .section {
        padding: 40px 0;
    }

    .section-title {
        font-size: 1.4rem;
    }
}

