/* ==========================================================
   SMART HOOPS ANALYZER AI
   MODERN UI
========================================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    scroll-behavior:smooth;
}

:root{

    --bg:#081120;
    --card:#111b2f;
    --card2:#152238;

    --blue:#2563eb;
    --blue2:#38bdf8;

    --orange:#ff8c00;
    --orange2:#ff5e00;

    --white:#ffffff;
    --text:#cbd5e1;

    --success:#22c55e;

}

body{

    font-family:'Poppins',sans-serif;

    background:var(--bg);

    color:white;

    overflow-x:hidden;

}


/* ==========================================================
BACKGROUND
========================================================== */

.blur1{

    position:fixed;

    width:420px;

    height:420px;

    background:#ff7b00;

    filter:blur(180px);

    opacity:.15;

    top:-100px;

    left:-100px;

    z-index:-1;

}

.blur2{

    position:fixed;

    width:420px;

    height:420px;

    background:#2563eb;

    filter:blur(180px);

    opacity:.15;

    right:-100px;

    bottom:-100px;

    z-index:-1;

}

/* ==========================================================
NAVBAR
========================================================== */

nav{

    width:100%;

    position:fixed;

    top:0;

    left:0;

    padding:20px 8%;

    display:flex;

    justify-content:space-between;

    align-items:center;

    z-index:1000;

    backdrop-filter:blur(15px);

    background:rgba(10,18,35,.75);

    border-bottom:1px solid rgba(255,255,255,.08);

}

.logo{

    font-size:28px;

    font-weight:700;

    color:white;

}

nav ul{

    display:flex;

    list-style:none;

    gap:35px;

}

nav ul li a{

    color:white;

    text-decoration:none;

    font-weight:500;

    transition:.3s;

}

nav ul li a:hover{

    color:var(--orange);

}

/* ==========================================================
BUTTON
========================================================== */

.btn{

    display:inline-flex;

    justify-content:center;

    align-items:center;

    gap:8px;

    padding:16px 34px;

    border-radius:15px;

    text-decoration:none;

    font-weight:600;

    transition:.35s;

}

.btn-primary{

    background:linear-gradient(
        135deg,
        var(--orange),
        var(--orange2)
    );

    color:white;

    box-shadow:0 10px 30px rgba(255,140,0,.3);

}

.btn-primary:hover{

    transform:translateY(-4px);

}

.btn-secondary{

    background:rgba(255,255,255,.05);

    color:white;

    border:1px solid rgba(255,255,255,.08);

    backdrop-filter:blur(10px);

}

.btn-secondary:hover{

    background:rgba(255,255,255,.08);

}

/* ==========================================================
HERO
========================================================== */

.hero{

    min-height:100vh;

    display:flex;

    justify-content:center;

    align-items:center;

    text-align:center;

    padding:130px 10% 80px;

}

.hero-content{

    max-width:920px;

    animation:fadeUp 1s ease;

}

.hero h1{

    font-size:68px;

    line-height:1.15;

    margin-bottom:25px;

}

.hero span{

    color:var(--orange);

}

.hero p{

    color:var(--text);

    font-size:20px;

    line-height:1.8;

    margin-bottom:45px;

}

.hero-buttons{

    display:flex;

    justify-content:center;

    gap:20px;

    flex-wrap:wrap;

}

/* ==========================================================
SECTION
========================================================== */

section{

    padding:120px 10%;

}

.section-title{

    text-align:center;

    margin-bottom:70px;

}

.section-title h2{

    font-size:48px;

    margin-bottom:15px;

}

.section-title p{

    color:var(--text);

    max-width:700px;

    margin:auto;

    line-height:1.8;

}

/* ==========================================================
ANIMATION
========================================================== */

@keyframes fadeUp{

    from{

        opacity:0;

        transform:translateY(40px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}

/* ==========================================================
ABOUT CARD
========================================================== */

.about-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));

    gap:30px;

}

.card{

    background:rgba(255,255,255,.05);

    border:1px solid rgba(255,255,255,.08);

    backdrop-filter:blur(16px);

    border-radius:25px;

    padding:35px;

    transition:.35s;

    overflow:hidden;

    position:relative;

}

.card::before{

    content:"";

    position:absolute;

    width:120px;

    height:120px;

    background:rgba(255,140,0,.15);

    border-radius:50%;

    top:-40px;

    right:-40px;

}

.card:hover{

    transform:translateY(-10px);

    border-color:rgba(255,140,0,.35);

    box-shadow:0 20px 40px rgba(0,0,0,.25);

}

.card-icon{

    width:70px;

    height:70px;

    border-radius:18px;

    display:flex;

    justify-content:center;

    align-items:center;

    background:linear-gradient(
        135deg,
        var(--orange),
        var(--orange2)
    );

    font-size:34px;

    margin-bottom:22px;

}

.card h3{

    margin-bottom:15px;

    font-size:24px;

}

.card p{

    color:var(--text);

    line-height:1.8;

}


/* ==========================================================
UPLOAD BOX
========================================================== */

.upload-box{

    max-width:900px;

    margin:auto;

    background:rgba(255,255,255,.05);

    border:1px solid rgba(255,255,255,.08);

    border-radius:32px;

    backdrop-filter:blur(20px);

    padding:55px;

    box-shadow:0 20px 60px rgba(0,0,0,.35);

}

.upload-box h2{

    font-size:36px;

    text-align:center;

    margin-bottom:12px;

}

.upload-box p{

    text-align:center;

    color:var(--text);

    margin-bottom:35px;

}


/* ==========================================================
FORM
========================================================== */

.upload-form{

    margin-top:25px;

}

.form-item{

    margin-bottom:24px;

}

.form-item label{

    display:flex;

    align-items:center;

    gap:10px;

    color:white;

    font-weight:600;

    font-size:15px;

    margin-bottom:12px;

}

.ai-input{

    width:100%;

    height:60px;

    padding:0 22px;

    border-radius:18px;

    background:#1b2941;

    border:2px solid rgba(255,255,255,.08);

    color:white;

    font-size:16px;

    transition:.35s;

}

.ai-input::placeholder{

    color:#94a3b8;

}

.ai-input:hover{

    border-color:#2563eb;

}

.ai-input:focus{

    outline:none;

    border-color:#38bdf8;

    background:#22314d;

    box-shadow:0 0 25px rgba(56,189,248,.35);

}


/* ==========================================================
UPLOAD AREA
========================================================== */

.upload-area{

    display:flex;

    justify-content:center;

    align-items:center;

    min-height:220px;

    border:2px dashed rgba(56,189,248,.45);

    border-radius:24px;

    background:rgba(37,99,235,.05);

    transition:.35s;

    cursor:pointer;

}

.upload-area:hover{

    transform:translateY(-3px);

    background:rgba(37,99,235,.10);

    border-color:#38bdf8;

}

.upload-content{

    text-align:center;

}

.upload-icon{

    width:90px;

    height:90px;

    margin:auto;

    border-radius:50%;

    display:flex;

    justify-content:center;

    align-items:center;

    background:linear-gradient(
        135deg,
        var(--blue),
        var(--blue2)
    );

    font-size:42px;

    margin-bottom:20px;

    box-shadow:0 10px 30px rgba(37,99,235,.35);

}

.upload-content h3{

    font-size:24px;

    margin-bottom:10px;

}

.upload-content p{

    color:#94a3b8;

}

.modern-file{

    display:none;

}

/* ==========================================================
PREVIEW
========================================================== */

.preview-container{

    display:none;

    margin-top:35px;

    border-radius:24px;

    overflow:hidden;

    border:2px solid rgba(255,255,255,.08);

    background:rgba(255,255,255,.04);

    box-shadow:0 20px 50px rgba(0,0,0,.30);

}

.preview-container img,
.preview-container video{

    width:100%;

    max-height:500px;

    object-fit:cover;

    display:block;

}

/* ==========================================================
SUCCESS
========================================================== */

.success-box{

    display:none;

    margin-top:25px;

    padding:18px;

    border-radius:18px;

    background:rgba(34,197,94,.12);

    border:1px solid rgba(34,197,94,.35);

    color:#86efac;

    font-weight:600;

    animation:fadeUp .5s ease;

}

/* ==========================================================
LOADING AI
========================================================== */

.loading{

    display:none;

    margin-top:30px;

    padding:25px;

    border-radius:24px;

    background:rgba(255,255,255,.04);

    border:1px solid rgba(255,255,255,.08);

}

.loading h3{

    text-align:center;

    margin-bottom:20px;

    font-size:22px;

}

.loading-bar{

    width:100%;

    height:18px;

    border-radius:50px;

    overflow:hidden;

    background:rgba(255,255,255,.08);

}

.loading-progress{

    width:0%;

    height:100%;

    border-radius:50px;

    background:linear-gradient(
        90deg,
        #2563eb,
        #38bdf8,
        #22d3ee
    );

    transition:.35s;

}

.loading-text{

    text-align:center;

    margin-top:18px;

    color:#cbd5e1;

    font-size:15px;

}

/* ==========================================================
BUTTON ANALYZE
========================================================== */

button{

    width:100%;

    margin-top:25px;

    padding:18px;

    border:none;

    border-radius:18px;

    cursor:pointer;

    font-size:17px;

    font-weight:700;

    color:white;

    background:linear-gradient(
        135deg,
        var(--orange),
        var(--orange2)
    );

    transition:.35s;

    box-shadow:0 12px 30px rgba(255,140,0,.30);

}

button:hover{

    transform:translateY(-3px);

    box-shadow:0 18px 45px rgba(255,140,0,.35);

}

button:disabled{

    opacity:.65;

    cursor:not-allowed;

    transform:none;

}

/* ==========================================================
RESULT
========================================================== */

.result{

    margin-top:40px;

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(230px,1fr));

    gap:20px;

}

.result-card{

    background:rgba(255,255,255,.05);

    border:1px solid rgba(255,255,255,.08);

    border-radius:24px;

    padding:28px;

    transition:.35s;

    backdrop-filter:blur(15px);

}

.result-card:hover{

    transform:translateY(-6px);

    border-color:rgba(56,189,248,.35);

}

.result-card h3{

    display:flex;

    align-items:center;

    gap:10px;

    margin-bottom:15px;

    font-size:20px;

}

.result-card p{

    color:white;

    font-size:18px;

    line-height:1.8;

}

/* ==========================================================
SCORE CARD
========================================================== */

#score{

    font-size:46px;

    font-weight:700;

    color:#22c55e;

}

#angle{

    font-size:42px;

    font-weight:700;

    color:#f59e0b;

}

#feedback{

    color:#cbd5e1;

    font-size:15px;

    white-space:pre-line;

}

/* ==========================================================
HISTORY BUTTON
========================================================== */

.btn-history{

    display:block;

    margin-top:20px;

    text-align:center;

}

/* ==========================================================
FOOTER
========================================================== */

footer{

    margin-top:120px;

    padding:45px 20px;

    text-align:center;

    display:flex;

    flex-direction:column;

    justify-content:center;

    align-items:center;

    gap:12px;

    color:#94a3b8;

    font-size:15px;

    line-height:1.8;

    border-top:1px solid rgba(255,255,255,.08);

    background:rgba(255,255,255,.03);

    backdrop-filter:blur(12px);

}

footer strong{

    color:#ffffff;

    font-size:18px;

    font-weight:600;

}

/* ===========================
FILE INFO
=========================== */

.file-info{

    display:flex;

    align-items:center;

    gap:18px;

}

.file-icon{

    width:60px;

    height:60px;

    border-radius:15px;

    background:#2563eb;

    display:flex;

    justify-content:center;

    align-items:center;

    font-size:28px;

}

.file-detail h4{

    color:white;

    font-size:17px;

    margin-bottom:5px;

}

.file-detail p{

    color:#cbd5e1;

    font-size:14px;

}