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

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

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Inter',Arial,Helvetica,sans-serif;
    background:#f4f7fb;
    color:#1e293b;
    line-height:1.7;
}

img{
    max-width:100%;
    display:block;
}

a{
    text-decoration:none;
}

.container{
    width:90%;
    max-width:1200px;
    margin:auto;
}

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

.header{
    background:#fff;
    box-shadow:0 2px 15px rgba(0,0,0,.05);
    position:sticky;
    top:0;
    z-index:1000;
}

.navbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:20px 0;
    gap:30px;
}

.logo-container{
    display:flex;
    align-items:center;
    gap:15px;
    color:#0f172a;
}

.logo{
    width:60px;
    height:60px;
    object-fit:contain;
}

.logo-text h2{
    font-size:22px;
    font-weight:800;
}

.logo-text span{
    font-size:13px;
    color:#64748b;
}

.nav-menu ul{
    display:flex;
    gap:25px;
    list-style:none;
}

.nav-menu a{
    color:#0f172a;
    font-weight:600;
    transition:.3s;
}

.nav-menu a:hover{
    color:#2563eb;
}

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

.hero{
    background:
    linear-gradient(
        135deg,
        #2563eb,
        #1d4ed8
    );
    color:#fff;
    text-align:center;
    padding:90px 0;
}

.badge{
    display:inline-block;
    background:#dbeafe;
    color:#2563eb;
    padding:8px 18px;
    border-radius:999px;
    font-size:14px;
    font-weight:700;
    margin-bottom:20px;
}

.hero h1{
    font-size:52px;
    font-weight:800;
    line-height:1.2;
    margin-bottom:20px;
}

.hero p{
    max-width:850px;
    margin:auto;
    font-size:19px;
    opacity:.95;
}

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

.hero-buttons{
    display:flex;
    justify-content:center;
    align-items:center;
    flex-wrap:wrap;
    gap:15px;
    margin-top:35px;
}

.btn-primary,
.btn-secondary{
    border:none;
    border-radius:14px;
    padding:15px 28px;
    font-weight:700;
    cursor:pointer;
    transition:.3s;
    display:inline-flex;
    align-items:center;
    justify-content:center;
}

.btn-primary{
    background:#2563eb;
    color:#fff;
}

.btn-primary:hover{
    background:#1d4ed8;
    transform:translateY(-2px);
}

.btn-secondary{
    background:#fff;
    color:#2563eb;
}

.btn-secondary:hover{
    transform:translateY(-2px);
}

/* =========================
   SECTIONS
========================= */

section{
    padding:80px 0;
}

.section-title{
    text-align:center;
    margin-bottom:45px;
}

.section-title span{
    display:inline-block;
    background:#dbeafe;
    color:#2563eb;
    padding:6px 14px;
    border-radius:999px;
    font-size:13px;
    font-weight:700;
    margin-bottom:12px;
}

.section-title h2{
    font-size:38px;
    margin-bottom:15px;
}

.section-title p{
    color:#64748b;
    max-width:750px;
    margin:auto;
}

/* =========================
   CARDS
========================= */

.hero-card{
    background:#fff;
    padding:35px;
    border-radius:24px;
    box-shadow:
        0 10px 35px
        rgba(0,0,0,.08);
}
/* =========================
   SEARCH FORM
========================= */

.form-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:25px;
}

.form-group{
    display:flex;
    flex-direction:column;
    margin-bottom:20px;
}

.form-group label{
    font-weight:700;
    color:#0f172a;
    margin-bottom:10px;
}

.form-group input,
.form-group select{
    width:100%;
    padding:16px;
    border:1px solid #dbe2ea;
    border-radius:14px;
    background:#fff;
    font-size:16px;
    transition:.3s;
}

.form-group input:focus,
.form-group select:focus{
    outline:none;
    border-color:#2563eb;
    box-shadow:
        0 0 0 4px
        rgba(37,99,235,.12);
}

/* =========================
   RESULTS
========================= */

#results{
    margin-top:35px;
}

.preview-placeholder{
    text-align:center;
    color:#64748b;
    padding:40px 20px;
    font-size:17px;
}

.result-card{
    background:#fff;
    border-radius:22px;
    padding:25px;
    box-shadow:
        0 10px 30px
        rgba(0,0,0,.08);
    margin-bottom:20px;
    transition:.3s;
}

.result-card:hover{
    transform:translateY(-4px);
}

.result-card h3{
    font-size:23px;
    color:#0f172a;
    margin-bottom:12px;
}

.result-card p{
    color:#64748b;
    margin-bottom:10px;
}

.result-actions{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
    margin-top:20px;
}

.result-actions a{
    background:#2563eb;
    color:#fff;
    padding:12px 18px;
    border-radius:12px;
    font-weight:700;
    transition:.3s;
}

.result-actions a:hover{
    background:#1d4ed8;
}

/* =========================
   LOADING
========================= */

#loadingBox{
    display:none;
    text-align:center;
    padding:35px;
}

.loader{
    width:50px;
    height:50px;
    border:5px solid #dbeafe;
    border-top:5px solid #2563eb;
    border-radius:50%;
    margin:auto auto 20px;
    animation:spin 1s linear infinite;
}

@keyframes spin{
    from{
        transform:rotate(0deg);
    }
    to{
        transform:rotate(360deg);
    }
}

/* =========================
   STATS & CARDS
========================= */

.cards{
    display:grid;
    grid-template-columns:
        repeat(4,1fr);
    gap:25px;
}

.card{
    background:#fff;
    padding:35px;
    border-radius:22px;
    text-align:center;
    box-shadow:
        0 10px 30px
        rgba(0,0,0,.08);
    transition:.3s;
}

.card:hover{
    transform:translateY(-5px);
}

.card h3{
    color:#2563eb;
    font-size:28px;
    margin-bottom:15px;
}

.card p{
    color:#64748b;
    font-size:16px;
}

/* =========================
   SCORE BOX
========================= */

.cv-score-box{
    background:#fff;
    padding:35px;
    border-radius:24px;
    text-align:center;
    box-shadow:
        0 10px 35px
        rgba(0,0,0,.08);
}

#letterScore{
    font-size:58px;
    color:#2563eb;
    font-weight:800;
    margin:20px 0;
}
/* =========================
   FOOTER
========================= */

footer{
    background:#0f172a;
    color:#fff;
    text-align:center;
    padding:60px 20px;
    margin-top:60px;
}

.footer-logo,
footer img{
    height:65px;
    width:auto;
    display:block;
    margin:0 auto 20px;
}

footer p{
    color:#cbd5e1;
    line-height:1.8;
    margin-bottom:12px;
}

.footer-links{
    display:flex;
    justify-content:center;
    align-items:center;
    flex-wrap:wrap;
    gap:22px;
    margin:30px 0;
}

.footer-links a{
    color:#cbd5e1;
    transition:.3s;
}

.footer-links a:hover{
    color:#fff;
}

/* =========================
   TOAST
========================= */

.toast{
    position:fixed;
    bottom:30px;
    right:30px;
    background:#0f172a;
    color:#fff;
    padding:15px 22px;
    border-radius:14px;
    box-shadow:
        0 10px 30px
        rgba(0,0,0,.2);
    z-index:9999;
    opacity:0;
    visibility:hidden;
    transition:.3s;
}

.toast.show{
    opacity:1;
    visibility:visible;
}

/* =========================
   ANIMATIONS
========================= */

.hero-card,
.card,
.result-card{
    animation:fadeUp .5s ease;
}

@keyframes fadeUp{
    from{
        opacity:0;
        transform:
            translateY(20px);
    }

    to{
        opacity:1;
        transform:
            translateY(0);
    }
}

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

.result-actions a{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:120px;
}

/* =========================
   TABLET
========================= */

@media(max-width:992px){

    .navbar{
        flex-direction:column;
    }

    .nav-menu ul{
        justify-content:center;
        flex-wrap:wrap;
        gap:15px;
    }

    .cards{
        grid-template-columns:
            repeat(2,1fr);
    }
}

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

@media(max-width:768px){

    .container{
        width:95%;
    }

    .hero{
        padding:60px 0;
    }

    .hero h1{
        font-size:34px;
    }

    .hero p{
        font-size:16px;
    }

    .section-title h2{
        font-size:28px;
    }

    .hero-card{
        padding:22px;
    }

    .form-grid{
        grid-template-columns:1fr;
    }

    .cards{
        grid-template-columns:1fr;
    }

    .hero-buttons{
        flex-direction:column;
    }

    .hero-buttons a,
    .hero-buttons button{
        width:100%;
        max-width:350px;
    }

    .result-actions{
        flex-direction:column;
    }

    .result-actions a{
        width:100%;
    }

    .footer-links{
        flex-direction:column;
        gap:14px;
    }

    .logo{
        width:50px;
        height:50px;
    }

    .logo-text h2{
        font-size:18px;
    }

    .logo-text span{
        font-size:12px;
    }

    .toast{
        left:20px;
        right:20px;
        bottom:20px;
        text-align:center;
    }
}

/* =========================
   SMALL PHONE
========================= */

@media(max-width:480px){

    .hero h1{
        font-size:28px;
    }

    .section-title h2{
        font-size:24px;
    }

    .card{
        padding:25px;
    }

    .result-card{
        padding:20px;
    }

    .result-card h3{
        font-size:20px;
    }

    #letterScore{
        font-size:44px;
    }
}

/* =========================
   PRINT
========================= */

@media print{

    header,
    footer,
    .hero,
    .hero-buttons,
    #loadingBox{
        display:none !important;
    }

    body{
        background:#fff;
    }

    .hero-card,
    .result-card{
        box-shadow:none;
        border:1px solid #ddd;
    }
}