/*=========================================
        Balestani Smart Nafaghe Calculator
==========================================*/

@font-face{

    font-family:"IranNastaliq";

    src:url("fonts/IranNastaliq.ttf") format("truetype");

}

:root{

    --black:#090909;
    --black2:#131313;
    --gold:#d4af37;
    --gold2:#f5d76e;
    --green:#18d26e;
    --white:#ffffff;
    --border:rgba(212,175,55,.35);

}

*{

    margin:0;
    padding:0;
    box-sizing:border-box;

}

body{

    background:linear-gradient(180deg,#050505,#151515);

    color:#fff;

    font-family:Tahoma,sans-serif;

    overflow-x:hidden;

}

.container{

    width:100%;

    max-width:850px;

    margin:auto;

    padding:18px;

}

a{

    text-decoration:none;

    color:inherit;

}

img{

    max-width:100%;

    display:block;

}
/*=========================================
            TOP BAR
=========================================*/

.top-bar{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:12px;

    margin-bottom:22px;

}

.top-box{

    background:rgba(18,18,18,.96);

    border:1px solid var(--border);

    border-radius:16px;

    padding:14px 10px;

    text-align:center;

    box-shadow:0 0 18px rgba(212,175,55,.12);

    transition:.35s;

}

.top-box:hover{

    transform:translateY(-3px);

    box-shadow:0 0 24px rgba(212,175,55,.35);

}

.top-box i{

    color:var(--gold);

    font-size:22px;

    margin-bottom:8px;

}

.top-box .title{

    display:block;

    color:#d6d6d6;

    font-size:12px;

    margin-bottom:6px;

}

.top-box span:last-child{

    color:var(--gold2);

    font-size:16px;

    font-weight:bold;

}


/*=========================================
                LOGO
=========================================*/

.logo-box{

    display:flex;

    justify-content:center;

    margin:25px 0 15px;

}

.logo{

    width:130px;

    animation:logoBlink 2.2s infinite;

    filter:drop-shadow(0 0 18px rgba(212,175,55,.65));

}

@keyframes logoBlink{

    0%{

        opacity:1;

        transform:scale(1);

    }

    50%{

        opacity:.65;

        transform:scale(1.04);

    }

    100%{

        opacity:1;

        transform:scale(1);

    }

}


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

.title-box{

    text-align:center;

    margin-bottom:28px;

}

.title-box h1{

    font-family:"IranNastaliq";

    font-size:50px;

    font-weight:normal;

    color:var(--gold);

    line-height:1.4;

}

.title-box h2{

    font-family:"IranNastaliq";

    font-size:62px;

    font-weight:normal;

    color:#f5d76e;

    line-height:1.1;

    margin-top:-6px;

    text-shadow:0 0 16px rgba(212,175,55,.45);

}

.title-box p{

    margin-top:12px;

    color:#d7d7d7;

    font-size:15px;

    letter-spacing:.5px;

}
/*=========================================
          CALCULATOR BOX
=========================================*/

.calculator,
.result-box,
.contact-box{

    background:#121212;

    border:1px solid rgba(212,175,55,.35);

    border-radius:20px;

    padding:25px;

    margin-bottom:25px;

    box-shadow:0 0 25px rgba(212,175,55,.12);

}

.box-title{

    display:flex;

    align-items:center;

    justify-content:center;

    gap:10px;

    color:#d4af37;

    font-size:22px;

    font-weight:bold;

    margin-bottom:25px;

}

.box-title i{

    font-size:24px;

}


/*=========================================
             FORM
=========================================*/

.form-grid{

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:18px;

}

.form-group{

    display:flex;

    flex-direction:column;

}

.form-group label{

    color:#d4af37;

    margin-bottom:8px;

    font-size:14px;

}

.form-group input,
.form-group select{

    width:100%;

    height:52px;

    background:#1b1b1b;

    color:#fff;

    border:1px solid rgba(212,175,55,.35);

    border-radius:12px;

    padding:0 15px;

    font-size:15px;

    outline:none;

    transition:.3s;

}

.form-group input:focus,
.form-group select:focus{

    border-color:#d4af37;

    box-shadow:0 0 12px rgba(212,175,55,.35);

}


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

.calc-btn{

    width:100%;

    height:56px;

    margin-top:25px;

    border:none;

    border-radius:14px;

    background:linear-gradient(90deg,#b88a18,#f0d36c);

    color:#000;

    font-size:18px;

    font-weight:bold;

    cursor:pointer;

    transition:.35s;

}

.calc-btn:hover{

    transform:translateY(-2px);

    box-shadow:0 0 22px rgba(212,175,55,.45);

}


/*=========================================
            RESULT
=========================================*/

#result{

    text-align:center;

    color:#18d26e;

    font-size:28px;

    font-weight:bold;

    line-height:2;

    min-height:80px;

}
/*=========================================
        CONTACT & FOOTER
=========================================*/

.contact-text{

    text-align:center;

    color:#dddddd;

    line-height:2;

    margin-bottom:22px;

    font-size:15px;

}

.social-row{

    display:flex;

    justify-content:center;

    align-items:center;

    gap:18px;

    flex-wrap:wrap;

}

.social-item{

    width:65px;

    height:65px;

    border-radius:50%;

    background:#1b1b1b;

    border:1px solid rgba(212,175,55,.35);

    display:flex;

    flex-direction:column;

    justify-content:center;

    align-items:center;

    transition:.35s;

}

.social-item:hover{

    transform:translateY(-4px);

    box-shadow:0 0 18px rgba(212,175,55,.45);

    border-color:#d4af37;

}

.social-item i{

    font-size:24px;

    color:#d4af37;

    margin-bottom:5px;

}

.social-item span{

    color:#ffffff;

    font-size:11px;

}

.footer{

    margin:35px 0 15px;

    text-align:center;

    color:#bdbdbd;

    font-size:13px;

    line-height:2;

    border-top:1px solid rgba(212,175,55,.20);

    padding-top:18px;

}



/*=========================================
            RESPONSIVE
=========================================*/

@media(max-width:768px){

.container{

    padding:12px;

}

.top-bar{

    grid-template-columns:repeat(3,1fr);

    gap:8px;

}

.top-box{

    padding:10px 5px;

}

.top-box i{

    font-size:18px;

}

.top-box .title{

    font-size:10px;

}

.top-box span:last-child{

    font-size:12px;

}

.logo{

    width:100px;

}

.title-box h1{

    font-size:34px;

}

.title-box h2{

    font-size:42px;

}

.title-box p{

    font-size:13px;

}

.form-grid{

    grid-template-columns:1fr;

}

.box-title{

    font-size:18px;

}

#result{

    font-size:22px;

}

.calc-btn{

    height:52px;

    font-size:17px;

}

.social-row{

    gap:12px;

}

.social-item{

    width:58px;

    height:58px;

}

.social-item i{

    font-size:20px;

}

.social-item span{

    font-size:10px;

}

}
