* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #c41e3a;
    --secondary-color: #ef4444;
    --accent-color: #c41e3a;
    --light-bg: #ffffff;
    --dark-text: #1a1a1a;
    --light-text: #666;
    --white: #ffffff;
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', sans-serif;
    color: var(--dark-text);
    line-height: 1.6;
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: var(--primary-color);
    color: var(--white);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.3rem;
}

.logo-icon {
    font-size: 1.5rem;
}

.nav-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.cta-btn {
    background: #c41e3a !important;
    color: var(--white) !important;
    padding: 0.5rem 1.5rem !important;
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-weight: 700;
}

.cta-btn:hover {
    background: #a01729 !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(196, 30, 58, 0.3);
}

.nav-phone {
    background: rgba(255, 255, 255, 0.2) !important;
    padding: 0.5rem 1rem !important;
    border-radius: 6px;
    transition: var(--transition);
    font-weight: 600 !important;
}

.nav-phone:hover {
    background: rgba(255, 255, 255, 0.3) !important;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    font-size: 1.5rem;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 120px 0 80px;
    margin-top: 60px;
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
}

.hero-title {
    font-size: 4.2rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1.2rem 2.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    user-select: none;
    -webkit-user-select: none;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background: #c41e3a;
    color: var(--white);
    font-weight: 700;
}

.btn-primary:hover {
    background: #a01729;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(196, 30, 58, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
}

.hero-image {
    display: flex;
    justify-content: center;
}

.floating-card {
    font-size: 8rem;
    animation: float 3s ease-in-out infinite;
}

.logos-container {
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    animation: float 3s ease-in-out infinite;
}

.hero-logo {
    height: 200px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.hero-logo:hover {
    transform: scale(1.05);
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Introduction Section */
.introduction {
    padding: 60px 0;
    background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 100%);
    border-bottom: 3px solid var(--primary-color);
}

.intro-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.intro-icon {
    font-size: 4.5rem;
    margin-bottom: 1rem;
    display: block;
}

.introduction h2 {
    color: var(--primary-color);
    font-size: 2.8rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

.intro-text {
    margin-bottom: 2rem;
}

.intro-text p {
    color: var(--dark-text);
    font-size: 1.3rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.intro-btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-size: 1rem;
    transition: var(--transition);
}

.intro-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(196, 30, 58, 0.3);
}

/* Services Section */
.services {
    padding: 80px 0;
    background: var(--light-bg);
}

.section-title {
    font-size: 3rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.section-subtitle {
    text-align: center;
    color: var(--light-text);
    font-size: 1.3rem;
    margin-bottom: 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    border-top: 4px solid var(--secondary-color);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.service-icon {
    font-size: 4.5rem;
    margin-bottom: 1rem;
    display: block;
}

.service-card h3 {
    font-size: 1.7rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.service-card p {
    color: var(--light-text);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-size: 1.05rem;
}

.features-list {
    list-style: none;
    color: var(--light-text);
}

.features-list li {
    padding: 0.4rem 0;
    font-size: 1.05rem;
}

/* About Section */
.about {
    padding: 80px 0;
    background: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
}

.about-text h2 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.about-text p {
    color: var(--light-text);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1.2rem;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
    padding: 1.5rem;
    background: var(--light-bg);
    border-radius: var(--border-radius);
}

.stat-number {
    display: block;
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--light-text);
    display: block;
    font-size: 1.05rem;
}

.about-image {
    display: flex;
    justify-content: center;
}

.image-placeholder {
    font-size: 10rem;
    opacity: 0.8;
    animation: float 3s ease-in-out infinite;
}

/* Why Us Section */
.why-us {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
}

.why-us .section-title {
    color: var(--white);
}

.why-us .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-box {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.feature-box:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.feature-box h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-box p {
    opacity: 0.95;
    line-height: 1.7;
    font-size: 1.05rem;
}

/* Departments Section */
.departments {
    padding: 80px 0;
    background: #f9f9f9;
}

.departments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.department-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    border-top: 4px solid var(--primary-color);
    text-align: center;
}

.department-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(196, 30, 58, 0.15);
}

.dept-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.department-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.7rem;
}

.department-card p {
    color: var(--light-text);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-size: 1.05rem;
}

.dept-features {
    list-style: none;
    text-align: right;
}

.dept-features li {
    color: var(--dark-text);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

/* Governorates Section */
.governorates {
    padding: 80px 0;
    background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
}

.governorates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.governorate-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    border-left: 4px solid var(--primary-color);
    text-align: center;
}

.governorate-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(196, 30, 58, 0.15);
}

.gov-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    display: block;
}

.governorate-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.governorate-card p {
    color: var(--light-text);
    line-height: 1.7;
    font-size: 1.05rem;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: var(--light-bg);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-form {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(45, 122, 74, 0.1);
}

.form-group input:invalid:focus,
.form-group textarea:invalid:focus {
    border-color: #ff6b6b;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-box {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.info-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.info-box h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.info-box p {
    color: var(--light-text);
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

.info-box a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
}

.info-box a:hover {
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icon {
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-bg);
    border-radius: 50%;
    font-size: 1.8rem;
    text-decoration: none;
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.footer-section p {
    opacity: 0.9;
    line-height: 1.7;
    font-size: 1.05rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: var(--transition);
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

.footer-section a:hover {
    color: var(--accent-color);
    padding-right: 0.5rem;
}

.newsletter {
    display: flex;
    gap: 0.5rem;
}

.newsletter input {
    flex: 1;
    padding: 0.75rem;
    border: none;
    border-radius: var(--border-radius);
    font-family: inherit;
}

.newsletter button {
    padding: 0.75rem 1.5rem;
    background: var(--accent-color);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
}

.newsletter button:hover {
    background: #ff5252;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 60px;
        right: 0;
        background: var(--primary-color);
        flex-direction: column;
        gap: 1rem;
        padding: 2rem;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: var(--transition);
        z-index: 999;
    }

    .nav-links.active {
        max-height: 500px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }

    .hero {
        padding: 100px 0 60px;
        margin-top: 60px;
    }

    .hero .container {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .floating-card {
        font-size: 4rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .section-subtitle {
        font-size: 1.2rem;
    }

    .introduction h2 {
        font-size: 2.5rem;
    }

    .intro-text p {
        font-size: 1.2rem;
    }

    .service-card h3 {
        font-size: 1.6rem;
    }

    .service-card p {
        font-size: 1.1rem;
    }

    .features-list li {
        font-size: 1.1rem;
    }

    .about-content,
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-text h2 {
        font-size: 2.5rem;
    }

    .about-text p {
        font-size: 1.2rem;
    }

    .feature-box h3 {
        font-size: 1.4rem;
    }

    .feature-box p {
        font-size: 1.1rem;
    }

    .department-card h3 {
        font-size: 1.6rem;
    }

    .department-card p {
        font-size: 1.1rem;
    }

    .governorate-card h3 {
        font-size: 1.4rem;
    }

    .governorate-card p {
        font-size: 1.1rem;
    }

    .info-box h3 {
        font-size: 1.3rem;
    }

    .info-box p {
        font-size: 1.1rem;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .image-placeholder {
        font-size: 6rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .departments-grid,
    .governorates-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.4rem;
    }

    .hero-subtitle {
        font-size: 1.15rem;
    }

    .section-title {
        font-size: 2.1rem;
    }

    .section-subtitle {
        font-size: 1.1rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .service-card h3 {
        font-size: 1.5rem;
    }

    .service-card p {
        font-size: 1.05rem;
    }

    .features-list li {
        font-size: 1.05rem;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    .about-text h2 {
        font-size: 2.1rem;
    }

    .about-text p {
        font-size: 1.1rem;
    }

    .feature-box h3 {
        font-size: 1.3rem;
    }

    .feature-box p {
        font-size: 1.05rem;
    }

    .department-card h3 {
        font-size: 1.5rem;
    }

    .department-card p {
        font-size: 1.05rem;
    }

    .contact-form,
    .info-box {
        padding: 1.5rem;
    }

    .info-box h3 {
        font-size: 1.25rem;
    }

    .info-box p {
        font-size: 1.05rem;
    }

    .floating-card {
        font-size: 3rem;
    }

    .image-placeholder {
        font-size: 4rem;
    }
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card,
.feature-box,
.info-box {
    animation: slideIn 0.5s ease-out;
    opacity: 1;
}

/* Utilities */
.active {
    color: var(--accent-color);
}

/* Loading and Performance */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Scroll Top Button */
#scrollTop {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 65px;
    height: 65px;
    background: var(--secondary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

#scrollTop.show {
    opacity: 1;
    visibility: visible;
}

#scrollTop:hover {
    background: var(--accent-color);
    transform: translateY(-5px);
}
/* =====================================================
   Floating Contact Buttons
   ===================================================== */

.floating-contact {
    position: fixed;
    right: 30px;
    bottom: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
    animation: slideInRight 0.6s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.contact-btn {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    font-size: 40px;
}

.contact-btn i {
    font-size: 54px;
    transition: transform 0.3s ease;
}

.contact-btn span {
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-weight: bold;
}

/* WhatsApp Button */
.whatsapp-btn {
    background: #25D366;
    animation: bounce 2s infinite;
}

.whatsapp-btn:hover {
    background: #1ead50;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.whatsapp-btn:hover span {
    opacity: 1;
}

.whatsapp-btn:hover i {
    transform: scale(1.2) rotate(10deg);
}

/* Call Button */
.call-btn {
    background: var(--primary-color);
    animation: pulse 2s infinite;
}

.call-btn:hover {
    background: #a01730;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(196, 30, 58, 0.4);
}

.call-btn:hover span {
    opacity: 1;
}

.call-btn:hover i {
    transform: scale(1.2) rotate(-10deg);
}

/* Animations */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(196, 30, 58, 0.3);
    }
    50% {
        box-shadow: 0 4px 25px rgba(196, 30, 58, 0.6);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .floating-contact {
        right: 20px;
        bottom: 20px;
        gap: 12px;
    }

    .contact-btn {
        width: 95px;
        height: 95px;
    }

    .contact-btn i {
        font-size: 46px;
    }

    .contact-btn span {
        font-size: 12px;
        bottom: -30px;
    }
}

@media (max-width: 480px) {
    .floating-contact {
        right: 15px;
        bottom: 15px;
        gap: 10px;
    }

    .contact-btn {
        width: 85px;
        height: 85px;
    }

    .contact-btn i {
        font-size: 42px;
    }

    .contact-btn span {
        font-size: 11px;
        bottom: -26px;
    }
}