/* ===========================
   GOOGLE FONT
=========================== */

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

/* ===========================
   RESET
=========================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{

    font-family:'Poppins',sans-serif;

    background:
    radial-gradient(circle at top left,#7c3aed 0%,transparent 35%),
    radial-gradient(circle at bottom right,#f97316 0%,transparent 35%),
    #0f172a;

    min-height:100vh;

    color:white;

}

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

header{

    width:100%;

    display:flex;

    justify-content:center;

    padding:25px 40px;

}

.logo{

    font-size:30px;

    font-weight:800;

    letter-spacing:1px;

}

/* ===========================
   HERO
=========================== */

.hero{

    text-align:center;

    margin-top:30px;

    padding:20px;

}

.badge{

    display:inline-block;

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

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

    backdrop-filter:blur(15px);

    padding:10px 22px;

    border-radius:50px;

    font-size:14px;

    letter-spacing:2px;

    margin-bottom:25px;

}

.hero h1{

    font-size:58px;

    font-weight:800;

    line-height:1.15;

}

.hero p{

    width:700px;

    max-width:90%;

    margin:25px auto;

    color:#d1d5db;

    line-height:1.8;

    font-size:18px;

}

/* ===========================
   UPLOAD SECTION
=========================== */

.upload-section{

    display:flex;

    justify-content:center;

    padding:40px 20px 80px;

}

.upload-card{

    width:900px;

    max-width:95%;

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

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

    backdrop-filter:blur(25px);

    border-radius:30px;

    padding:40px;

    box-shadow:
    0 20px 50px rgba(0,0,0,.35);

}
/* ===========================
   UPLOAD BOX
=========================== */

.upload-box{

    position:relative;

    display:flex;

    flex-direction:column;

    justify-content:center;

    align-items:center;

    border:2px dashed rgba(255,255,255,.25);

    border-radius:24px;

    padding:70px 30px;

    cursor:pointer;

    transition:.35s;

    overflow:hidden;

}

.upload-box::before{

    content:"";

    position:absolute;

    inset:0;

    background:linear-gradient(135deg,#8b5cf6,#f97316);

    opacity:0;

    transition:.35s;

}

.upload-box>*{

    position:relative;

    z-index:2;

}

.upload-box:hover{

    transform:translateY(-6px);

    border-color:transparent;

    box-shadow:0 20px 50px rgba(0,0,0,.4);

}

.upload-box:hover::before{

    opacity:.12;

}

.upload-icon{

    width:95px;

    height:95px;

    display:flex;

    justify-content:center;

    align-items:center;

    font-size:45px;

    border-radius:50%;

    background:linear-gradient(135deg,#8b5cf6,#f97316);

    margin-bottom:22px;

}

.upload-box h2{

    font-size:30px;

    margin-bottom:10px;

}

.upload-box p{

    color:#d1d5db;

    font-size:16px;

}

/* ===========================
   BUTTONS
=========================== */

.buttons{

    display:flex;

    justify-content:center;

    gap:20px;

    margin-top:35px;

    flex-wrap:wrap;

}

button{

    border:none;

    padding:16px 38px;

    border-radius:60px;

    cursor:pointer;

    font-size:17px;

    font-weight:600;

    transition:.3s;

}

#convertBtn{

    background:linear-gradient(135deg,#8b5cf6,#7c3aed);

    color:white;

}

#downloadBtn{

    background:linear-gradient(135deg,#f97316,#ea580c);

    color:white;

}

button:hover{

    transform:translateY(-4px);

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

}

/* ===========================
   IMAGE PREVIEW
=========================== */

#preview{

    margin-top:45px;

    display:grid;

    grid-template-columns:repeat(auto-fill,minmax(170px,1fr));

    gap:22px;

}

.preview-card{

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

    border-radius:18px;

    overflow:hidden;

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

    transition:.3s;

}

.preview-card:hover{

    transform:translateY(-8px);

}

.preview-card img{

    width:100%;

    height:170px;

    object-fit:cover;

    display:block;

}

.preview-card p{

    padding:12px;

    text-align:center;

    font-size:14px;

    color:#ddd;

}

/* ===========================
   MOBILE
=========================== */

@media(max-width:768px){

.hero h1{

font-size:38px;

}

.hero p{

font-size:16px;

}

.upload-card{

padding:25px;

}

.upload-box{

padding:50px 20px;

}

.upload-box h2{

font-size:24px;

}

.buttons{

flex-direction:column;

}

button{

width:100%;

}

}