/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4fc3f7;
    --primary-dark: #29b6f6;
    --primary-light: #81d4fa;
    --secondary-color: #e1f5fe;
    --accent-color: #0277bd;
    --text-dark: #263238;
    --text-light: #546e7a;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, #4fc3f7 0%, #29b6f6 100%);
    --gradient-soft: linear-gradient(
        135deg,
        rgba(79, 195, 247, 0.1) 0%,
        rgba(41, 182, 246, 0.05) 100%
    );
    --shadow: 0 10px 30px rgba(79, 195, 247, 0.15);
    --shadow-hover: 0 20px 60px rgba(79, 195, 247, 0.25);
    --success-color: #10b981;
    --whatsapp-color: #25d366;
}

body {
    font-family: "Cairo", sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    overflow-x: hidden;
    background: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 75vh;
    min-height: 650px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    filter: brightness(0.8) contrast(1.1) saturate(1.2);
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.hero-background::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        ellipse at center,
        rgba(79, 195, 247, 0.3) 0%,
        rgba(41, 182, 246, 0.6) 50%,
        rgba(2, 119, 189, 0.8) 100%
    );
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(79, 195, 247, 0.2) 0%,
        rgba(41, 182, 246, 0.15) 25%,
        rgba(2, 119, 189, 0.25) 50%,
        rgba(79, 195, 247, 0.3) 75%,
        rgba(41, 182, 246, 0.2) 100%
    );
    backdrop-filter: blur(0.5px) saturate(1.1);
    -webkit-backdrop-filter: blur(0.5px) saturate(1.1);
    z-index: 2;
}

.hero-overlay::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.05) 0%,
        transparent 30%,
        transparent 70%,
        rgba(255, 255, 255, 0.02) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 3;
    color: white;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2rem;
    box-shadow: 0 15px 35px rgba(255, 255, 255, 0.3),
        0 5px 15px rgba(79, 195, 247, 0.4);
}

.hero-badge i {
    font-size: 1.1rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.hero-title {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.highlight {
    color: var(--primary-color);
    font-weight: 900;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.95;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1rem 1.5rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 600;
}

.stat i {
    color: white;
    font-size: 1.2rem;
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    color: white;
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Contact Form Section */
.contact-form-section {
    padding: 8rem 0;
    background: #fafbfc;
    position: relative;
    overflow: hidden;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gradient-soft);
    color: var(--primary-color);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(79, 195, 247, 0.2);
}

.form-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.form-description {
    font-size: 1.2rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 3rem;
}

.contact-form {
    background: var(--white);
    padding: 3rem;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(79, 195, 247, 0.1);
    border: 1px solid rgba(79, 195, 247, 0.1);
    position: relative;
    z-index: 2;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.form-group {
    position: relative;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
    font-size: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid rgba(79, 195, 247, 0.2);
    border-radius: 15px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 195, 247, 0.1);
}

.form-group i {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 1.1rem;
}

.form-group textarea + i {
    top: 3rem;
    transform: none;
}

/* تحسين تمركز الأيقونات على الشاشات الصغيرة */
@media (max-width: 768px) {
    .form-group i {
        top: 60%;
        transform: translateY(-50%);
    }

    .form-group textarea + i {
        top: 2.1rem;
        transform: translateY(-20%);
    }
}

.form-actions {
    text-align: center;
    margin-top: 2rem;
}

.submit-btn {
    background: var(--gradient);
    color: white;
    padding: 1.2rem 3rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    box-shadow: var(--shadow);
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

/* Contact Info */
.contact-info {
    position: sticky;
    top: 120px;
    z-index: 1;
}

.info-card {
    background: var(--white);
    padding: 3rem;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(79, 195, 247, 0.1);
    border: 1px solid rgba(79, 195, 247, 0.1);
    position: relative;
}

.info-header h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.info-header p {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: #f8fafb;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.contact-method:hover {
    transform: translateX(-5px);
    box-shadow: var(--shadow);
    background: var(--white);
}

.method-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.method-info h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.3rem;
}

.method-info p {
    color: var(--text-light);
    margin: 0;
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.social-link {
    width: 50px;
    height: 50px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(79, 195, 247, 0.4);
}

/* Branches Section */
.branches-section {
    padding: 8rem 0;
    background: var(--white);
    position: relative;
}

.branches-header {
    text-align: center;
    margin-bottom: 5rem;
}

.branches-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.branches-description {
    font-size: 1.2rem;
    color: var(--text-light);
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

.branches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.branch-card {
    background: var(--white);
    padding: 3rem;
    border-radius: 24px;
    box-shadow: 0 15px 40px rgba(79, 195, 247, 0.08);
    transition: all 0.4s ease;
    position: relative;
    border: 1px solid rgba(79, 195, 247, 0.1);
    text-align: center;
}

.branch-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.branch-card.main-branch {
    border: 2px solid var(--primary-color);
    transform: scale(1.02);
}

.branch-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.branch-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
}

.branch-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.branch-description {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.branch-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
    text-align: right;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8fafb;
    border-radius: 10px;
}

.info-item i {
    color: var(--primary-color);
    font-size: 1.1rem;
    width: 20px;
}

.info-item div {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.info-item span {
    color: var(--text-dark);
    font-weight: 500;
}

.branch-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-primary,
.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

/* FAQ Section */
.faq-section {
    padding: 8rem 0;
    background: #fafbfc;
    position: relative;
}

.faq-header {
    text-align: center;
    margin-bottom: 5rem;
}

.faq-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.faq-description {
    font-size: 1.2rem;
    color: var(--text-light);
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border-radius: 15px;
    margin-bottom: 1rem;
    box-shadow: 0 8px 25px rgba(79, 195, 247, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(79, 195, 247, 0.1);
}

.faq-item:hover {
    box-shadow: var(--shadow);
}

.faq-question {
    padding: 1.5rem 2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: #f8fafb;
}

.faq-question h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.faq-question i {
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding: 0 2rem 1.5rem;
    color: var(--text-light);
    line-height: 1.7;
    margin: 0;
}

/* CTA Section */
.cta-section {
    padding: 6rem 0;
    background: var(--gradient);
    color: white;
}

.cta-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.cta-text h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.cta-text p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.cta-actions {
    display: flex;
    gap: 1rem;
}

.btn-whatsapp {
    background: var(--whatsapp-color);
    color: white;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    border: 2px solid transparent;
}

.btn-whatsapp:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

.cta-actions .btn-primary {
    background: white;
    color: var(--primary-color);
}

.cta-actions .btn-primary:hover {
    background: #f8fafb;
}

/* Responsive Design */

/* Large screens */
@media (max-width: 1200px) {
    .container {
        max-width: 1100px;
        padding: 0 30px;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .form-title,
    .branches-title,
    .faq-title {
        font-size: 2.5rem;
    }
}

/* Medium screens - Tablets */
@media (max-width: 1024px) {
    .container {
        max-width: 900px;
        padding: 0 25px;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-description {
        font-size: 1.2rem;
    }

    .contact-wrapper {
        gap: 3rem;
    }

    .form-title,
    .branches-title,
    .faq-title {
        font-size: 2.2rem;
    }

    .branches-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
}

/* Small tablets and large phones */
@media (max-width: 768px) {
    .container {
        max-width: 100%;
        padding: 0 20px;
    }

    .hero-section {
        height: 60vh;
        min-height: 500px;
        margin-top: 80px;
    }

    .hero-content {
        padding: 0 1rem;
    }

    .hero-background img {
        object-position: center top;
    }

    .hero-badge {
        margin-top: 1rem;
        margin-bottom: 1.5rem;
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
    }

    .hero-title {
        font-size: 2.2rem;
        line-height: 1.3;
        margin-bottom: 1.5rem;
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: 2rem;
        max-width: 100%;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
        margin-top: 2rem;
    }

    .stat {
        justify-content: center;
        text-align: center;
        padding: 1rem;
        min-width: 100px;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-info {
        position: static;
    }

    .contact-form {
        padding: 2rem;
    }

    .branches-grid {
        grid-template-columns: 1fr;
    }

    .branch-card {
        padding: 2rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .form-title,
    .branches-title,
    .faq-title {
        font-size: 2rem;
    }

    .form-description,
    .branches-description,
    .faq-description {
        font-size: 1.1rem;
    }

    .cta-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .cta-text h2 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .cta-text p {
        font-size: 1.1rem;
    }

    .cta-actions {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

    .btn-primary,
    .btn-whatsapp {
        width: 100%;
        justify-content: center;
    }

    .branch-actions {
        flex-direction: column;
        gap: 1rem;
    }

    .branch-actions .btn-primary,
    .branch-actions .btn-outline {
        width: 100%;
        justify-content: center;
    }
}

/* Mobile phones */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-section {
        height: 90vh;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .hero-badge {
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
        margin-bottom: 1.5rem;
    }

    .stat {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .form-title,
    .branches-title,
    .faq-title {
        font-size: 1.8rem;
    }

    .section-badge {
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
    }

    .contact-form-section,
    .branches-section,
    .faq-section {
        padding: 4rem 0;
    }

    .info-card {
        padding: 2rem;
    }

    .contact-method {
        padding: 1rem;
    }

    .method-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .branch-card {
        padding: 1.5rem;
    }

    .branch-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .cta-section {
        padding: 4rem 0;
    }

    .cta-text h2 {
        font-size: 1.8rem;
    }

    .cta-text p {
        font-size: 1rem;
    }

    .btn-primary,
    .btn-whatsapp {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .container {
        padding: 0 10px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .form-title,
    .branches-title,
    .faq-title {
        font-size: 1.6rem;
    }

    .contact-form {
        padding: 1rem;
    }

    .info-card {
        padding: 1.5rem;
    }

    .branch-card {
        padding: 1.2rem;
    }

    .btn-primary,
    .btn-whatsapp {
        padding: 0.9rem 1.5rem;
        font-size: 0.95rem;
    }
}
