/* ==========================
   SONTHOR - style.css
   ========================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Inter',sans-serif;
}

html,body{
    width:100%;
    height:100%;
}

body{

    overflow:hidden;
    color:#fff;

    background:
    linear-gradient(rgba(5,15,35,.88),rgba(5,15,35,.90)),
    url("background.jpg");

    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;
    background-attachment:fixed;

}

/* ==========================
   GRID EFFECT
========================== */

.background-overlay{

    position:fixed;
    inset:0;

    background:

    linear-gradient(rgba(255,255,255,.025) 1px,transparent 1px),

    linear-gradient(90deg,rgba(255,255,255,.025) 1px,transparent 1px);

    background-size:55px 55px;

    animation:gridMove 30s linear infinite;

    opacity:.45;

    z-index:1;

}

@keyframes gridMove{

    from{

        background-position:0 0;

    }

    to{

        background-position:55px 55px;

    }

}

/* ==========================
   ROBOT
========================== */

.robot-bg{

    position:fixed;

    right:0;

    bottom:0;

    width:48%;

    height:100%;

    background:url("assets/ai-robot.png") no-repeat right bottom;

    background-size:contain;

    opacity:.28;

    z-index:2;

    pointer-events:none;

    animation:floatRobot 6s ease-in-out infinite;

}

@keyframes floatRobot{

    0%,100%{

        transform:translateY(0);

    }

    50%{

        transform:translateY(-12px);

    }

}

/* ==========================
   HEADER
========================== */

header{

    position:absolute;

    top:35px;

    left:70px;

    right:70px;

    display:flex;

    justify-content:space-between;

    align-items:center;

    z-index:10;

}

.logo{

    font-size:34px;

    font-weight:800;

    letter-spacing:8px;

}

.logo::after{

    content:"";

    display:block;

    width:90px;

    height:4px;

    margin-top:10px;

    background:#00BFFF;

    border-radius:10px;

}

.version{

    color:#d0d9e5;

    background:rgba(255,255,255,.08);

    border:1px solid rgba(255,255,255,.12);

    padding:10px 18px;

    border-radius:30px;

}

/* ==========================
   HERO (ĐÃ ĐƯỢC CĂN GIỮA)
========================== */

.hero{

    position:relative;

    z-index:5;

    height:100vh;

    display:flex;

    align-items:center;

    justify-content:center; /* Căn giữa hero theo chiều ngang */

    padding:0 100px;

    text-align:center; /* Căn giữa toàn bộ dòng chữ */

}

.hero-left{

    width:100%; /* Cho phép khối nội dung mở rộng ra giữa */

    max-width:900px; /* Giới hạn chiều rộng để cân đối */

    display:flex;

    flex-direction:column;

    align-items:center; /* Căn giữa các phần tử con (nút, badge, feature) */

}

.hero-right{

    display:none; /* Ẩn khối hero-right nếu bạn không dùng */

}

/* ==========================
   BADGE
========================== */

.badge{

    display:inline-block;

    padding:10px 22px;

    border-radius:30px;

    background:rgba(0,191,255,.08);

    color:#58d2ff;

    border:1px solid rgba(0,191,255,.35);

    margin-bottom:30px;

    letter-spacing:2px;

    font-size:13px;

}

/* ==========================
   TITLE
========================== */

.hero h1{

    font-size:64px;

    line-height:1.2;

    margin-bottom:25px;

    font-weight:800;

}

.hero h1 span{

    color:#00BFFF;

}

.hero p{

    font-size:20px;

    color:#cfd7e3;

    line-height:1.8;

    margin-bottom:40px;

    max-width:700px;

    margin-left:auto;

    margin-right:auto;

}

/* ==========================
   FEATURES
========================== */

.features{

    display:grid;

    grid-template-columns:repeat(2,250px);

    gap:18px;

    margin-bottom:45px;

    justify-content:center; /* Căn giữa lưới features */

}

.feature{

    display:flex;

    align-items:center;

    gap:15px;

    padding:18px;

    background:rgba(255,255,255,.05);

    border:1px solid rgba(255,255,255,.08);

    border-radius:12px;

    backdrop-filter:blur(10px);

    transition:.3s;

    text-align:left;

}

.feature:hover{

    transform:translateY(-4px);

    border-color:#00BFFF;

}

.feature i{

    color:#00BFFF;

    font-size:22px;

}

.feature span{

    font-size:15px;

}

/* ==========================
   BUTTON
========================== */

.buttons{

    display:flex;

    gap:20px;

    justify-content:center; /* Căn giữa cụm nút bấm */

}

button{

    padding:18px 40px;

    font-size:15px;

    font-weight:700;

    border:none;

    cursor:pointer;

    border-radius:8px;

    transition:.35s;

}

.btn-primary{

    background:#009dff;

    color:white;

}

.btn-secondary{

    background:transparent;

    color:white;

    border:2px solid #009dff;

}

button:hover{

    transform:translateY(-4px);

    box-shadow:0 15px 35px rgba(0,157,255,.35);

}

/* ==========================
   FOOTER
========================== */

footer{

    position:absolute;

    left:70px;

    right:70px;

    bottom:25px;

    display:flex;

    justify-content:space-between;

    color:#b7c5d4;

    font-size:14px;

    z-index:10;

}

/* ==========================
   POPUP
========================== */

.popup{

    position:fixed;

    inset:0;

    display:none;

    justify-content:center;

    align-items:center;

    background:rgba(0,0,0,.75);

    z-index:999;

}

.popup-content{

    width:520px;

    background:#0c1728;

    padding:45px;

    text-align:center;

    border-radius:18px;

    border:1px solid rgba(0,191,255,.25);

    box-shadow:0 0 45px rgba(0,191,255,.18);

    animation:popup .35s;

}

@keyframes popup{

    from{

        opacity:0;

        transform:translateY(30px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}

.popup-content i{

    font-size:55px;

    color:#00BFFF;

    margin-bottom:20px;

}

.popup-content h2{

    margin-bottom:18px;

    font-size:30px;

}

.popup-content p{

    color:#d5dce6;

    line-height:1.8;

    margin-bottom:25px;

}

.email{

    font-size:22px;

    color:#00BFFF;

    font-weight:600;

    margin-bottom:25px;

}

.popup-content button{

    width:170px;

    background:#009dff;

    color:white;

}