/*======================================================
  AUTOLINE SYSTEMS
  Main Stylesheet
  Version 1.0
=======================================================*/

/*=========================
  RESET
=========================*/

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Inter','Cairo',sans-serif;
    background:#f5f7fa;
    color:#222;
    overflow-x:hidden;
    line-height:1.6;
}

/*=========================
  VARIABLES
=========================*/

:root{

    --primary:#0B4F6C;
    --primary-dark:#08364b;

    --secondary:#1E88E5;

    --success:#2E7D32;

    --danger:#dc3545;

    --light:#ffffff;

    --gray:#f5f7fa;

    --border:#e5e5e5;

    --text:#222222;

}

/*=========================
  CONTAINER
=========================*/

.als-container{

    width:1400px;

    max-width:95%;

    margin:auto;

}

/*=========================
  NAVBAR
=========================*/

.als-navbar{

    position:fixed;

    top:0;

    left:0;

    width:100%;

    height:80px;

    background:#ffffff;

    border-bottom:1px solid var(--border);

    z-index:999;

}

.als-navbar .als-container{

    height:100%;

    display:flex;

    justify-content:space-between;

    align-items:center;

}

.als-logo{

    display:flex;

    align-items:center;

}

.als-logo img{

    height:95px;

    width:auto;

    display:block;

}

.als-menu{

    display:flex;

    align-items:center;

    gap:35px;

    list-style:none;

}

.als-menu li{

    list-style:none;

}

.als-menu a{

    text-decoration:none;

    color:var(--text);

    font-weight:600;

    transition:.3s;

}

.als-menu a:hover{

    color:var(--primary);

}

.als-actions{

    display:flex;

    align-items:center;

    gap:15px;

}

/*=========================
  BUTTONS
=========================*/

.als-btn{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    text-decoration:none;

    padding:12px 25px;

    border-radius:8px;

    font-weight:600;

    transition:.3s;

}

.als-btn-outline{

    border:1px solid var(--primary);

    color:var(--primary);

    background:#fff;

}

.als-btn-outline:hover{

    background:var(--primary);

    color:#fff;

}

.als-btn-primary{

    background:var(--primary);

    color:#fff;

}

.als-btn-primary:hover{

    background:var(--primary-dark);

}

/*=========================
  HERO SECTION
=========================*/

.hero{

    padding-top:80px;

    min-height:700px;

    display:flex;

    align-items:center;

    background:#f5f7fa;

}

.hero-container{

    width:1400px;

    max-width:95%;

    margin:auto;

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:80px;

    align-items:center;

}

.hero-content h1{

    font-size:58px;

    font-weight:700;

    line-height:1.2;

    margin-bottom:25px;

}

.hero-content p{

    font-size:20px;

    color:#555;

    margin-bottom:40px;

}

.hero-buttons{

    display:flex;

    gap:20px;

}

.hero-image{

    display:flex;

    justify-content:center;

    align-items:center;

}

.hero-image img{

    width:100%;

    max-width:650px;

}

/*=========================
  SECTION
=========================*/

section{

    padding:100px 0;

}

/*=========================
  TITLES
=========================*/

.section-title{

    text-align:center;

    font-size:40px;

    margin-bottom:20px;

}

.section-subtitle{

    text-align:center;

    color:#777;

    margin-bottom:60px;

}

/*=========================
  SERVICES
=========================*/

.services-grid{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:30px;

}

.service-card{

    background:#fff;

    border-radius:12px;

    overflow:hidden;

    box-shadow:0 10px 30px rgba(0,0,0,.05);

    transition:.3s;

}

.service-card:hover{

    transform:translateY(-8px);

}

.service-card img{

    width:100%;

    display:block;

}

.service-content{

    padding:25px;

}

.service-content h3{

    margin-bottom:15px;

}

.service-content p{

    color:#666;

}

/*=========================
  FOOTER
=========================*/

.site-footer{

    background:var(--primary);

    color:#fff;

    text-align:center;

    padding:40px;

}

/*=========================
  RESPONSIVE
=========================*/

@media(max-width:992px){

    .hero-container{

        grid-template-columns:1fr;

        text-align:center;

    }

    .hero-buttons{

        justify-content:center;

    }

    .services-grid{

        grid-template-columns:1fr;

    }

    .als-menu{

        display:none;

    }

}

/*==================================================
SERVICES SECTION
==================================================*/

.services-section{

    padding:120px 0;

    background:#ffffff;

}

.section-header{

    text-align:center;

    max-width:750px;

    margin:0 auto 70px;

}

.section-badge{

    display:inline-block;

    padding:8px 18px;

    background:#E8F4FD;

    color:#0B4F6C;

    border-radius:50px;

    font-size:14px;

    font-weight:600;

    margin-bottom:18px;

}

.section-header h2{

    font-size:46px;

    line-height:1.2;

    margin-bottom:20px;

    color:#1E293B;

}

.section-header p{

    font-size:18px;

    color:#64748B;

    line-height:1.8;

}

.services-grid{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:30px;

}

.service-card{

    background:#fff;

    border-radius:18px;

    padding:35px;

    border:1px solid #E5E7EB;

    transition:.35s;

    box-shadow:0 10px 30px rgba(0,0,0,.05);

}

.service-card:hover{

    transform:translateY(-10px);

    box-shadow:0 20px 40px rgba(0,0,0,.10);

}

.featured{

    border:2px solid #0B4F6C;

}

.service-icon{

    width:70px;

    height:70px;

    border-radius:16px;

    background:#EDF6FB;

    display:flex;

    justify-content:center;

    align-items:center;

    font-size:34px;

    margin-bottom:25px;

}

.service-card h3{

    font-size:24px;

    margin-bottom:18px;

    color:#1E293B;

}

.service-card p{

    color:#64748B;

    line-height:1.8;

    margin-bottom:30px;

    min-height:110px;

}

.service-btn{

    text-decoration:none;

    color:#0B4F6C;

    font-weight:700;

}

.service-btn:hover{

    color:#1E88E5;

}

.coming-soon{

    display:inline-block;

    background:#FFF3CD;

    color:#8A6D3B;

    padding:8px 18px;

    border-radius:50px;

    font-size:13px;

    font-weight:700;

}

.coming{

    opacity:.92;

}

/*=========================
Responsive
=========================*/

@media(max-width:1200px){

    .services-grid{

        grid-template-columns:repeat(2,1fr);

    }

}

@media(max-width:768px){

    .services-grid{

        grid-template-columns:1fr;

    }

}

/*====================================
AUTH PAGES (LOGIN & SIGNUP)
====================================*/
.auth-page {
    background: #f5f7fa;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 60px; /* لترك مسافة للنافبار الثابت */
}

.auth-box {
    background: #fff;
    width: 100%;
    max-width: 800px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
    padding: 50px;
}

.auth-box.login-box {
    max-width: 500px; /* صفحة الدخول تكون أضيق لأن حقولها أقل */
}

.auth-header {
    text-align: center;
    margin-bottom: 35px;
}

.auth-header h2 {
    font-size: 32px;
    color: #1E293B;
    margin-bottom: 10px;
    font-weight: 700;
}

.auth-header p {
    color: #64748B;
    font-size: 16px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.form-group label {
    font-size: 14px;
    font-weight: 700;
    color: #475569;
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #d6dce5;
    border-radius: 10px;
    background: #fafcff;
    font-size: 15px;
    transition: 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #1E88E5;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(30,136,229,0.15);
}

.auth-btn {
    width: 100%;
    background: #0B4F6C;
    color: #fff;
    border: none;
    padding: 16px;
    border-radius: 10px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 10px;
}

.auth-btn:hover {
    background: #08364b;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(11, 79, 108, 0.2);
}

.auth-footer {
    text-align: center;
    margin-top: 25px;
    color: #64748B;
    font-size: 15px;
}

.auth-footer a {
    color: #0B4F6C;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s;
}

.auth-footer a:hover {
    color: #1E88E5;
}

/* تنبيهات النجاح والخطأ */
.alert {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 25px;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
}

.alert-error {
    background: #fef2f2;
    color: #dc3545;
    border: 1px solid #fecaca;
}

.alert-success {
    background: #f0fdf4;
    color: #2E7D32;
    border: 1px solid #bbf7d0;
}

/* استجابة للهواتف المحمولة */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    .auth-box {
        padding: 30px 20px;
    }
}