/* =========================
   RESET & BASICS
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* =========================
   NAVBAR
========================= */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
    background: linear-gradient(to right, #007bff, #00c6ff);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: white;
    text-decoration: none;
    transition: 0.3s;
}

.logo:hover {
    transform: scale(1.05);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
    transition: all 0.3s ease-in-out;
}

.nav-links li {
    display: inline;
}

.nav-links a {
    text-decoration: none;
    font-size: 18px;
    color: white;
    font-weight: 500;
    transition: 0.3s;
    padding: 10px 15px;
    border-radius: 6px;
}

.nav-links a:hover,
.nav-links .active {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* Hamburger menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
}
.menu-toggle span {
    background: white;
    height: 3px;
    width: 25px;
    margin: 4px 0;
    transition: 0.3s;
}

/* Animation for hamburger -> X */
.menu-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* =========================
   WELCOME SECTION
========================= */
.welcome_div {
    height: 50vh;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to right, #2980b9, #6dd5fa);
    color: white;
    padding: 20px;
    margin-bottom: 20vh;
    margin-top: 10vh;
    text-align: right;
}

.welcome_div h1 {
    font-size: 8vw;
    margin-left: 10%;
    text-align: center;
}

.welcome_div img {
    height: 280px;
    width: auto;
    display: inline-block;
    margin: 10px 0;
}

/* =========================
   IMAGE SECTIONS
========================= */
.image-container,
.image-container-1 {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
    width: 100%;
}

.image-box {
    display: flex;
    flex-direction: column;
    position: relative;
    width: 300px;
    height: 200px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 2px 4px 8px rgba(0, 0, 0, 0.2);
}
.image-box img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.image-box:hover img {
    transform: scale(1.1);
}
.overlay {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;   /* يبين دايمًا */
}
.image-box:hover .overlay { opacity: 1; }
.overlay p {
    font-size: 18px;
    font-weight: bold;
    text-align: center;
}

/* =========================
   FORMS
========================= */

.form-title {
    text-align: center;
    justify-content: center;
    font-family: 'Arial', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    margin: 40px 0 20px 0;
    color: #00c6ff;
}

form {
    max-width: 700px;
    margin: 100px auto;
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

form input[type="text"],
form input[type="email"],
form input[type="tel"],
form input[type="date"],
form textarea,
form select {
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
}

form textarea {
    resize: vertical;
    min-height: 120px;
}

form label {
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

/* Radio options */
.elevator-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.radio-options {
    display: flex;
    gap: 20px;
    align-items: center;
}
.radio-options input[type="radio"] {
    accent-color: #007bff;
    transform: scale(1.3);
    margin-right: 8px;
}

/* Submit button */
button[type="submit"] {
    padding: 14px;
    background: linear-gradient(to right, #007BFF, #00c6ff);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
button[type="submit"]:hover {
    background: linear-gradient(to right, #0056b3, #0095ff);
}

/* =========================
   SERVICES, ABOUT, MISSION
========================= */
.services, .about-section, .mission-section {
    text-align: center;
    padding: 60px 20px;
}
.services h1 { font-size: 36px; margin-bottom: 10px; color: #333; }
.services p { font-size: 18px; color: #555; margin-bottom: 40px; }
.service-list { list-style: none; padding: 0; max-width: 600px; margin: 0 auto; text-align: left; }
.service-list li {
    font-size: 18px;
    background: white;
    padding: 15px;
    margin: 10px 0;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.2s ease-in-out;
}
.service-list li:hover { transform: scale(1.03); background-color: #e3f2fd; }
.service-list span { font-weight: bold; color: #007bff; }

/* About section */
.about-section { background: linear-gradient(to right, #e0f7fa, #ffffff); }
.about-section h1 { font-size: 2.8rem; margin-bottom: 20px; color: #2c3e50; }
.about-section p { font-size: 1.2rem; color: #555; max-width: 800px; margin: 0 auto 30px; line-height: 1.7; }

/* Mission */
.mission-section { background-color: #f7f9fb; }
.mission-section h2 { font-size: 2.2rem; color: #2c3e50; margin-bottom: 20px; }
.mission-section p { font-size: 1.1rem; color: #555; max-width: 700px; margin: 0 auto; line-height: 1.6; }

/* =========================
   FOOTER
========================= */
.footer {
    background-color: #2c3e50;
    color: white;
    padding: 40px 0;
    text-align: center;
}
.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    max-width: 1200px;
    margin: auto;
}
.footer h3 { font-size: 18px; margin-bottom: 10px; }
.footer p, .footer ul { font-size: 14px; line-height: 1.6; list-style: none; padding: 0; }
.footer ul li { margin-bottom: 8px; }
.footer ul li i { margin-right: 10px; }
.footer-links a { color: #f1c40f; text-decoration: none; transition: color 0.3s; }
.footer-links a:hover { color: #e67e22; }
.footer-bottom {
    margin-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 10px;
    font-size: 12px;
}

/* =========================
   MEDIA QUERIES
========================= */
@media (max-width: 768px) {
    .navbar { flex-direction: column; padding: 15px; }

    /* Mobile nav hidden by default with animation */
    .nav-links {
        flex-direction: column;
        background: rgba(0,0,0,0.8);
        position: absolute;
        top: 60px; 
        right: 0;
        width: 200px;
        text-align: right;

        /* Animation prep */
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        padding: 0 20px;
        transition: all 0.4s ease-in-out;
    }

    .nav-links.active {
        max-height: 400px; /* adjust based on number of links */
        opacity: 1;
        padding: 20px;
    }

    .menu-toggle { display: flex; }

    .welcome_div { flex-direction: column; text-align: center; height: 40vh; }
    .welcome_div h1 { font-size: 4rem; margin-bottom: 20px; }
    .welcome-img {
        max-width: 50%; height: auto; object-fit: contain;
        margin: 0 auto; display: block; padding-bottom: 24px;
    }

    .image-container { flex-direction: column; align-items: center; }
    .image-box { width: 90%; }

    form { padding: 20px; }
    .radio-options { flex-direction: row; align-items: flex-start; }
    .floor-selection { flex-direction: column; }
}

@media (max-width: 480px) {
    .welcome_div h1 { font-size: 3rem; }
}

/* =========================
   MOBILE ENHANCEMENTS
========================= */
@media (max-width: 768px) {
  /* تحسين المساحة للصور والنص على الجوال */
  .welcome_div {
    height: auto;
    flex-direction: column;
    padding: 30px 20px;
    margin-bottom: 10vh;
    margin-top: 5vh;
    text-align: center;
  }

  .welcome_div h1 {
    font-size: 2.5rem;
    margin: 0 0 20px 0;
    width: 100%;
  }

  .welcome-img {
    max-width: 100%;
    height: auto;
    margin: 0 auto;
  }

  /* تحسين عرض الصور */
  .image-container {
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
  }

  .image-box {
    width: 90%;
    height: 180px;
  }

  .overlay p {
    font-size: 16px;
    padding: 0 10px;
  }

  /* تحسين النص فوق النموذج */
  .form-title {
    font-size: 1.5rem;
    margin: 40px 20px 20px;
    line-height: 1.4;
    text-align: center;
    color: #007bff;
    padding: 0 10px;
  }

  /* تحسين النموذج للجوال */
  form {
    margin: 30px auto;
    padding: 20px;
    width: 90%;
  }

  /* تحسين عناصر النموذج */
  .service-selection select,
  form input[type="text"],
  form input[type="email"],
  form input[type="tel"],
  form input[type="date"],
  form textarea,
  form select {
    font-size: 16px; /* منع التكبير في iOS */
  }

  .radio-options {
    flex-direction: row;
    justify-content: flex-start;
    gap: 15px;
  }

  .floor-selection {
    flex-direction: column;
    align-items: flex-start;
  }

  .moving-label {
    width: 100% !important;
    margin-bottom: 8px;
  }
}

@media (max-width: 768px) {
  .welcome_div h1 {
    font-size: 2rem;
  }
  
  .form-title {
    font-size: 1.3rem;
  }
  
  .image-box {
    width: 95%;
    height: 160px;
  }
  
  /* تعديل الهيدر للجوال */
  body {
    padding-top: 140px;
  }
  .rut-h2 {
        font-size: 1.4rem;
    }
    .rut-p {
        font-size: 1rem;
        width: 90%;;
    }
    .rut-div {
        margin: 48px 10px;
        background-color: #00c6ff;
        color: #ffffff;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 20px;
        border-radius: 12px; /* lite snyggare */
    }
}

/* تحسينات عامة للجوال */
.mobile-optimized {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.welcome-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}


/* @media (max-width: 600px) {
    
} */


.rut-div {
    margin: 48px 10px;
    /* margin-left: 2rem;
    margin-right: 2rem; */
    /* max-width: 80%;  */
    background-color: #00c6ff;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-radius: 12px; /* lite snyggare */
}

.rut-h2 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.rut-p {
    font-size: 1.1rem;
    font-weight: 500;
    text-align: center;
    max-width: 900px;
    width: 100%;
}
