* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}
body, html { 
    width: 100%; 
    height: 100%; 
    font-family: sans-serif; 
}

.interface {
    height: 100vh; width: 100%;
    background-image: url('./img/img1.png');
    background-size: cover; 
    background-position: center;
    position: relative; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    color: white; 
    overflow: hidden;  /*منع أي عنصر يخرج برا التصميم */
}

.overlay {
    position: absolute;  /* فوق الخلفية */
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: rgba(0, 0, 0, 0.4); 
    z-index: 1;  /* ترتيب الطبقات */
}

.top-page {
    position: absolute; 
    top: 0; 
    width: 100%; 
    padding: 20px 50px;
    display: flex;
    justify-content: space-between; 
    align-items: center; 
    z-index: 10;
}

.btns button {
    padding: 10px 25px; 
    border-radius: 50px; 
    border: none;
    font-weight: bold; 
    cursor: pointer; 
    transition: 0.3s; 
    margin-left: 10px;
}

#sign-up {
    background-color: #3d8b40;
    color: white;
}

#sign-up:hover{
    background-color: #2e6b31;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

#log-in{
    background-color: #5a6268;
    color: white;
}

#log-in:hover{
    background-color: #495057;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}
.content {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-direction: column;
    height: 100%;
    width: 100%;
    padding-bottom: 10vh;
    box-sizing: border-box;
    z-index: 3;
}
#description{
    font-size: 2.5rem;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    margin: 0;
}

.dev-sync{
    animation: popIn 1s ease-out ;
}
@keyframes popIn {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }

}
.install-banner {
    background: #1c212c;
    border: 1px solid #3d5afe;
    border-radius: 12px;
    padding: 16px 24px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(61, 90, 254, 0.15);
}

.banner-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.banner-icon {
    font-size: 24px;
    color: #3d5afe;
}

.banner-text h3 {
    font-size: 1rem;
    color: #ffffff;
    margin-bottom: 4px;
}

.banner-text p {
    font-size: 0.85rem;
    color: #8b949e;
}

.banner-actions {
    display: flex;
    gap: 10px;
}

.install-btn {
    background: #3d5afe;
    color: #ffffff;
    border: none;
    padding: 8px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

.close-banner-btn {
    background: transparent;
    color: #8b949e;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
}

/* Tablets */
@media (max-width: 992px) {
    .top-page{
        padding:20px 30px;
    }
    #description{
        font-size:2rem;
        text-align:center;
        padding:0 20px;
    }
    .btns button{
        padding:10px 18px;
        font-size:14px;
    }
    .modal-content{
        width:90%;
        max-width:420px;
    }
}
/* mobile */
@media (max-width:768px){
    .interface{
        background-position:center;
    }
    .top-page{
        flex-direction:column;
        gap:20px;
        padding:20px;
    }
    .name-web h1{
        font-size:2rem;
    }
    .btns{
        width:100%;
        display:flex;
        justify-content:center;
        gap:10px;
    }
    .btns button{
        flex:1;
        margin:0;
        max-width:150px;
        padding:12px;
        font-size:15px;
    }
    .content{
        justify-content:center;
        padding:20px;
        padding-bottom:0;
    }
    #description{
        font-size:2rem;
        text-align:center;
        line-height:1.5;
    }
    .modal{
        padding:20px;
    }
    .modal-content{
        width:100%;
        max-width:360px;
        padding:25px;
    }
    .modal-content h3{
        font-size:24px;
    }
    .modal-description{
        font-size:14px;
    }
    .info-input{
        width:100%;
        font-size:15px;
        padding:14px;
    } 
    .auth-btn{
        width:100%;
        padding:14px;
        font-size:16px;
    }
    .install-banner{
        position:fixed;
        left:10px;
        right:10px;
        bottom:15px;
        margin:0;
        z-index:9999;

        flex-direction:column;
        align-items:flex-start;
        gap:15px;

        padding:15px;
    }
    .banner-content{
        width:100%;
    }
    .banner-actions{
        width:100%;
    }
    .install-btn, .close-banner-btn{
        flex:1;
        padding:12px;
    }
}
/* Small Phones */
@media (max-width:480px){
    .top-page{
        padding:15px;
    }
    .name-web h1{
        font-size:1.7rem;
    }
    .btns{
        flex-direction:column;
        align-items:center;
    }
    .btns button{
        width:100%;
        max-width:none;
    }
    #description{
        font-size:1.6rem;
        line-height:1.6;
        padding:0 10px;
    }
    .modal-content{
        width:100%;
        padding:20px;
        border-radius:18px;
    }
    .modal-content h3{
        font-size:22px;
    }
    .info-input{
        padding:13px;
        font-size:14px;
    }
    .auth-btn{
        padding:13px;
        font-size:15px;
    }
    .banner-text h3{
        font-size:15px;
    }
    .banner-text p{
        font-size:13px;
    }
}