@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800;1,300..800&family=Oswald:wght@200..700&display=swap');

body {
    font-family: "Open Sans", sans-serif;
    background-color: #E0E3DA;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: "Oswald", sans-serif;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

a {
    text-decoration: none;
}

/********************************************************************** utility classes **********************************************************************/
.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/********************************************************************** header bar Start *********************************************************************/
#header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    background-color: #ffffff;
    width: 100%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid #f0f0f0;
}

#header .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    height: 80px;
    padding: 0 20px;
    box-sizing: border-box;
}

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

#header .navbar .logo {
    height: 40px;
    width: auto;
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
    color: #2b6cb0;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #2b6cb0;
    cursor: pointer;
}

#header .navbar ul {
    display: flex;
    align-items: center;
    gap: 5px;
}

#header .navbar ul li a {
    color: #1a1a1a;
    font-size: 16px;
    padding: 8px 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

#header .navbar ul li a:hover {
    color: #2b6cb0;
}

/********************************************************************** home start *************************************************************************/
#home {
    background-color: #E0E3DA;
    padding-top: 70px;
}

#home .home_content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    min-height: 75vh;
    gap: 2rem;
    align-items: center;
}

#home h3 {
    font-size: 30px;
    margin: 5px 0;
    line-height: 1.3;
}

#home h1 {
    font-size: 40px;
    margin: 20px 0;
    line-height: 1.3;
}

#home p {
    font-size: 16px;
    color: #4a5568;
}

#home .content_text img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 380px;
    border-radius: 15px;
    object-fit: cover;
}

.downbar {
    position: relative;
    width: 100%;
    background: #E0E3DA;
    overflow: hidden;
    height: 80px;
    z-index: 9;
    margin: 30px 0;
}

.downbar ul {
    display: flex;
    animation: scrollImages 30s linear infinite;
}

.downbar li {
    flex: 0 0 auto;
}

.downbar img {
    height: 80px;
    margin-right: 15px;
    border-radius: 5px;
    width: 130px;
    object-fit: cover;
}
.downbar img.logo-img {
    object-fit: contain;
    width: 180px;
}
@keyframes scrollImages {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

.space {
    background-color: #ffffff;
    width: 100%;
    height: 15px;
}

/********************************************************************** about start *********************************************************************/
#about {
    padding: 7rem 0;
}

#about .row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    align-items: center;
}

#about .row .img {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#about .row img {
    display: block;
    width: 100%;
    height: 280px;
    border-radius: 15px;
    object-fit: cover;
}

.text_blue {
    color: #0072CE;
    font-size: 40px;
    margin: 0 0 15px 0;
    line-height: 1.3;
    text-align: center;
}

.about-content {
    font-size: 15px;
}

.numbus {
    text-align: center;
    font-size: 30px;
    margin: 20px 0;
    line-height: 1.3;
    color: #1a1a1a;
}

.statistics {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 15px;
}

.statistics ul {
    text-align: center;
    border-radius: 12px;
    padding: 15px;
    margin: 0;
    flex: 1 1 200px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    /* background-color: #ffffff; */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.statistics ul:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.statistics ul li:first-child {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 10px;
    border-bottom: 2px solid #f9a825;
    padding-bottom: 5px;
}

.statistics ul li:nth-child(2) {
    font-size: 32px;
    font-weight: bold;
    margin: 10px 0;
    color: #0072CE;
}

.statistics ul li:last-child {
    font-size: 14px;
    color: #555;
}

/********************************************************************* Ticket end **********************************************************************/
#ticket {
    padding: 6rem 0;
}

.tp {
    text-align: center;
    margin: 0 0 25px 0;
    font-size: 32px;
    color: #0072CE;
}

.price-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 20px auto;
    max-width: 800px;
}

.price-grid li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border: 1px solid #ccc;
    border-radius: 30px;
    font-size: 14px;
    /* background-color: #ffffff; */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: 0.2s ease;
}

.price-grid li:hover { border-color: #0072CE; }
.trip-info { font-weight: 500; color: #333; }
.trip-price { font-weight: bold; color: #f50b0b; }

.custom-line {
    width: 100%;
    max-width: 900px;
    border: none;
    height: 2px;
    background-color: #f9a825;
    margin: 30px auto;
    border-radius: 4px;
}

.bs {
    text-align: center;
    margin: 0 0 25px 0;
    font-size: 32px;
    color: #0072CE;
}

.station-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin: 0 auto;
    max-width: 1100px;
}

.station-grid li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
    /* background-color: #ffffff; */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: 0.2s ease;
}

.station-grid li:hover { border-color: #0072CE; }
.station-name { flex: 1; margin-right: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.map-icon { display: flex; align-items: center; }
.circle-outer { width: 24px; height: 24px; border: 2px solid #0072CE; border-radius: 50%; display: flex; justify-content: center; align-items: center; }
.circle-inner { width: 14px; height: 14px; border: 2px solid #f9a825; border-radius: 50%; display: flex; justify-content: center; align-items: center; }
.circle-inner i { font-size: 11px; color: #0072CE; }

/********************************************************************* Location Start ************************************************************************/
#location {
    padding: 5rem 0;
    background-color: #E0E3DA;
    text-align: center;
}

.sm {
    color: #0072CE;
    font-size: 35px;
    margin-bottom: 30px;
}

#map-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    height: 500px;
    margin: 0 auto;
    background-color: white;
    border: 2px solid #333;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

#map {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%; z-index: 1;
}

#map-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* background-image: url('https://a.tile.openstreetmap.org/11/1251/895.png'); */
    background: linear-gradient(135deg, #dfe9f3 0%, #ffffff 100%);
    background-size: cover;
    background-position: center;
    display: flex; justify-content: center; align-items: center;
    z-index: 1000; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#map-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.overlay-content {
    background: white; padding: 15px 30px; border-radius: 50px;
    border: 2px solid #0072CE; color: #0072CE; font-weight: bold;
    display: flex; align-items: center; gap: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

#info-box {
    margin-top: 20px; color: #0072CE; font-weight: bold; font-size: 18px; min-height: 30px;
}

/********************************************************************** Download App Section Style ********************************************************************/
#download-app {
    padding: 5rem 0;
    background-color: #E0E3DA;
    text-align: center;
}

.app-section-title {
    color: #0072CE;
    font-size: 35px;
    margin-bottom: 30px;
}

.app-content-wrapper {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px;
    border-radius: 25px;
    /* background-color: #ffffff; */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.app-phone-display {
    flex: 0 0 250px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    width: 100%;
    height: 490px;
    background: #0f172a;
    border-radius: 32px;
    border: 8px solid #1e293b;
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.phone-notch {
    width: 100px;
    height: 18px;
    background: #1e293b;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    z-index: 10;
}

.phone-screen-container {
    width: 100%;
    height: 100%;
    background: #f8fafc;
    position: relative;
}

.phone-mockup img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease-in-out;
}

.phone-fallback-view {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, #0072CE, #003b75);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    text-align: center;
    box-sizing: border-box;
}

.phone-fallback-view i {
    font-size: 45px;
    margin-bottom: 15px;
    color: #f9a825;
}

.phone-fallback-view h4 {
    font-size: 20px;
    margin: 8px 0;
}

.phone-fallback-view p {
    font-size: 12px;
    opacity: 0.8;
}

.app-features-grid-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.app-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.feature-card {
    padding: 20px 15px;
    border-radius: 16px;
    border: 2px solid #e2e8f0;
    /* background-color: #ffffff; */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e1;
}

.feature-card.active {
    border-color: #0072CE;
    box-shadow: 0 10px 20px -3px rgba(0, 112, 206, 0.2);
}

.feature-icon {
    font-size: 28px;
    color: #0072CE;
    margin-bottom: 8px;
}

.feature-card h3 {
    font-size: 17px;
    color: #1e293b;
    font-weight: bold;
    margin: 8px 0;
}

.feature-card p {
    font-size: 12.5px;
    color: #64748b;
    line-height: 1.5;
}

.app-download-action {
    border-top: 1px solid #e2e8f0;
    padding-top: 20px;
    text-align: center;
}

.app-download-action p {
    font-size: 15px;
    color: #334155;
    font-weight: 500;
    margin-bottom: 15px;
}

.download-buttons-flex {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.app-blue-btn, .app-black-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: white;
    padding: 12px 28px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: bold;
    transition: 0.3s ease;
}

.app-blue-btn {
    background-color: #0072CE;
    box-shadow: 0 4px 10px rgba(0, 72, 206, 0.2);
}

.app-blue-btn:hover { background-color: #f9a825; }

.app-black-btn {
    background-color: #1e293b;
    box-shadow: 0 4px 10px rgba(30, 41, 59, 0.2);
}

.app-black-btn:hover { background-color: #f9a825; }

/********************************************************************** Contact Section ********************************************************************/
#contact {
    padding: 5rem 0;
    background-color: #E0E3DA;
}

.contact-title {
    text-align: center;
    color: #0072CE;
    font-size: 35px;
    margin-bottom: 30px;
}

.contact-form-wrapper {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    background: #ffffff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    box-sizing: border-box;
}

#complaint-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

#complaint-form .input-group {
    display: flex;
    gap: 20px;
}

#complaint-form input {
    padding: 16px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
    color: #334155;
    width: 100%;
    box-sizing: border-box;
    background-color: #f8fafc;
    transition: all 0.3s ease;
}

#complaint-form textarea {
    padding: 16px 18px;
    min-height: 160px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
    color: #334155;
    width: 100%;
    box-sizing: border-box;
    background-color: #f8fafc;
    transition: all 0.3s ease;
    resize: vertical;
}

#complaint-form input:focus,
#complaint-form textarea:focus {
    outline: none;
    border-color: #0072CE;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(0, 114, 206, 0.1);
}

#complaint-form .submit-btn {
    background-color: #0072CE;
    color: white;
    border: none;
    padding: 16px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 114, 206, 0.2);
}

#complaint-form .submit-btn:hover {
    background-color: #f9a825;
    transform: translateY(-2px);
}

/********************************************************************** Chatbot Widget ********************************************************************/
#chatbot-wrapper {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 10000;
}

.chatbot-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #0072CE;
    color: white;
    border: none;
    font-size: 25px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s;
}

.chatbot-toggle:hover {
    transform: scale(1.1);
    background: #f9a825;
}

#chat-window {
    width: 340px;
    height: 450px;
    background: white;
    position: absolute;
    bottom: 80px;
    right: 0;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #ccc;
}

.chat-header {
    background: #0072CE;
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
}

.chat-header button {
    background: transparent;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

.chat-body {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bot-msg, .user-msg {
    padding: 10px 14px;
    border-radius: 15px;
    max-width: 85%;
    font-size: 14px;
    line-height: 1.4;
}

.bot-msg {
    background: #f1f1f1;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
    text-align: right;
    direction: rtl;
}

.user-msg {
    background: #0072CE;
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
    text-align: right;
    direction: rtl;
}

.chat-footer {
    padding: 10px;
    display: flex;
    gap: 5px;
    border-top: 1px solid #eee;
    background: #fafafa;
}

.chat-footer input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    text-align: right;
}

.chat-footer button {
    background: #0072CE;
    color: white;
    border: none;
    padding: 5px 15px;
    border-radius: 5px;
    cursor: pointer;
}

/* ============================================================
   Media Queries الاحترافية لتظبيط الشاشات
   ============================================================ */

/* للشاشات الكبيرة والمكتبية (iMac & Monitors) */
@media screen and (min-width: 1400px) {
    .container { max-width: 1300px; }
}

/* التابلت والأجهزة المتوسطة (Landscape & Portrait tablets) */
@media screen and (max-width: 1024px) {
    #home .home_content {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 40px 0;
    }
    #home .content_text img {
        margin: 0 auto;
        max-width: 80%;
    }
    #about .row {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .station-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .app-content-wrapper {
        flex-direction: column;
        gap: 40px;
        padding: 30px 20px;
    }
    .app-features-grid-wrapper {
        text-align: center;
        width: 100%;
    }
}

/* الشاشات الصغيرة وأجهزة الموبايل (Mobile Devices) */
@media screen and (max-width: 768px) {
    /* تظبيط الـ Navbar لتتحول لقائمة ذكية عند الضغط */
    .nav-toggle {
        display: block;
    }
    #header .navbar ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
        border-top: 1px solid #f0f0f0;
    }
    #header .navbar ul.active {
        display: flex;
    }
    #header .navbar ul li {
        width: 100%;
        text-align: center;
    }
    #header .navbar ul li a {
        display: block;
        padding: 12px 0;
    }

    #home h1 { font-size: 32px; }
    .text_blue { font-size: 32px; }

    .price-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
    }
    .station-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .app-features-grid {
        grid-template-columns: 1fr;
    }
    #map-container {
        height: 350px;
    }
    #complaint-form .input-group {
        flex-direction: column;
        gap: 24px;
    }
}

/* الموبايلات الصغيرة جداً */
@media screen and (max-width: 480px) {
    .logo-text { font-size: 18px; }
    .station-grid {
        grid-template-columns: 1fr;
    }
    .download-buttons-flex {
        flex-direction: column;
        align-items: center;
    }
    .app-blue-btn, .app-black-btn {
        width: 100%;
        justify-content: center;
        box-sizing: border-box;
    }
    #chat-window {
        width: 290px;
        height: 400px;
        right: -10px;
    }
}