@font-face {
    src: url("./Fonts/Vazirmatn/Vazirmatn-VariableFont_wght.ttf");    
}

:root {
    --Aqua: #03cece;
    --Gold: #FFD700;
    --white: #ffffff;
    --red: #ff2600;
    --black: #000000;
    --Nav-button: rgba(255,255,255,0.05);
    --Nav-hover: rgba(255,255,255,0.1);
    --popup: rgba(0,0,0,0.5);
}


h1, h2 {
    font-size: 5rem;
    margin: 0;
}

p{
  font-size: 3rem;  
}

a{
    text-decoration: none;
}

html {
    font-size: 62.5%;
}

body {
    font-family: vazir, Arial, Helvetica, sans-serif;
    background-color: white;
}

.header{
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 75vh;
    align-items: center;
    justify-content: space-between;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 0.75rem;
    text-decoration: none;
}

.navbar {
    background-color: #36c4c7;
    background: linear-gradient(90deg, rgba(54, 196, 199, 1) 7%, rgba(125, 232, 150, 1) 43%, rgba(255, 229, 0, 1) 85%);;
    width: 100%;
    height: 11%;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    border-radius: 0.75rem;
    align-items: center;
}

.nav-item{
    width: 4.5%;
    height: 34%;
    color: var(--black);
    background-color: var(--white);
    text-align: center;
    margin-left: 70rem;
    margin-top: 5rem;
    font-size: 2.25rem;
    padding: 0.5rem 20rem;
    border-radius: 1rem;
    transition: 0.2s ease-in-out;
}

.nav-item:hover{
    background-color: var(--Aqua);
    transform: translateY(0.56rem);
}

.hero-image{
    width: 100%;
    max-width: 500px;
    height: auto;
}

.imgr{
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 75vh;
    /* background: url(../images/mrz.png); */
    align-items: center;
    justify-content: space-between;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 0.75rem;
    margin-top: 0.5rem;
}


/* .burger{
    background-color: var(--Nav-hover);
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    margin: 1.5rem;
    padding: 0.25rem;
    display: none;
} */

.logo{
    width: 7rem;
    display: flex;
    /*justify-content: left;*/
}

@media only screen and (max-width: 768px) {
    .header{
        background: url(../images/banner-mobile.png);
        background-size: cover;
    }
    .nav-item{
    display: none;
        
    }
    .nav-item-show{
    display: flex;
        
    }
}

@keyframes burger{
    from{
        opacity: 0;
    }

    to{
        opacity: 1;
    }
}


.burger{
    display: flex;
}
.logo{
    width: 7rem;
}



/* menu*/
/* .menu{
    background-color: var(--Gold);
}

.button {
    border-radius: 2rem;
    padding: 1rem 2rem;
    font-size: 3rem;
    font-weight: 600;
    transition: 0.2s ease-in-out;
    margin-bottom: 2rem; 
}

.menu h1 {
    padding: 2rem;
    color: var(--white);
}

.menu-items{
    width: 100%;
    display: grid;
    grid-template-columns: 20% 20% 20% 20%;
    justify-content: space-evenly;
    align-content: space-between;


}

.menu-item{
    display: flex;
    flex-direction: space-between;
    cursor: pointer;
    transition: 0.2s ease-in-out;
    margin: 3rem 0;
}

.menu-item:hover{
    transform: scale(1.02);
}

.menu-item-text{
   background-color: var(--White);
   color: var(--Gold);
   text-align: center;
   padding; 1rem;
   box-sizing: border-box;
}

.menu-item-image{
    border-redus: 2rem;
    margin-bottom: 0.5rem;
}

.header .button{
    margin-bottom: 2rem;
}

.button-gold{
    background-color: var(--Gold);
    color: var(--Aqua);
}

.button-gold:hover{
    background-color: var(--white);
}

 @media only screen and (max-width: 992px) {
    .menu-items{
        grid-template-columns: 40% 40%;
}}

@media only screen and (max-width: 600px) {
    .menu-items{
        grid-template-columns: 90%;
}} */





/*Comments*/
/* .comments{
    display: flex;
    flex-direction: column;
    align-items: space-between;
}

.comments h2{
    color: var(--Aqua);
    text-align: center;
    padding: 2rem;
}

.comment-items{
    width: 100%;
    display: grid;
    grid-template-columns: 15% 15% 15%;
    justify-content: space-evenly;
    align-content: space-between;
}

.comment-item{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: 3rem 0;
}
.comment-item-animation{
    animation: comments 0.5s
}
@keyframes comments{
    from{
      opacity: 0.5;
      transform: translateX(-50px);
     }

    to {}
      opacity: 1;
      transform: translateX(0);
}
.comment-item-image{
    border-radius: 50%;
    box-shadow: rgba(0, 0, 0, 0, 0.35) 0px 5px 15px;
}

.comment-item-text h3{
    text-align: center;
    font-size: 2rem;
    color: var(--black);
}

.comment-item-text p{
    text-align: justify;
    font-size: italic;
    border-left: 0.3rem solid var(--Gold);
    padding-left: 2rem;
}

@media only screen and (max-width: 992px) {
    .menu-items{
        grid-template-columns: 30% 30%;
}}

@media only screen and (max-width: 600px) {
    .menu-items{
        grid-template-columns: 50%;
}} */





/*About us*/
/* .about-us {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    background-color: var(--red);
    color: var(--white);
    padding: 5rem 0;
}

.about-us-image{
    width: 40%;
    border-radius: 5rem;
}

.about-us-text{
    text-align: justify;
    font-size: 2rem;
}

@media only screen and (max-width: 992px) {
    .about-us{
        flex-direction: column;
        padding: 2rem 0;
    }
    .about-us-image, .about-us-text{
        width: 90%;
    }
} */





/*Footer*/
/* .footer{
    color: var(--white);
    background: linear-gradient(90deg,rgba(255, 0, 0, 1) 0%, rgba(224, 0, 0, 1) 47%, rgba(171, 9, 14, 1) 66%);
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    margin-top: 100rem;
    border-radius: 0.75rem;
    padding: 1rem;
} */
.footer h3{
    margin-bottom: 10px;
}

footer {
    background-color: #222;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    color: var(--white);
    background: linear-gradient(90deg,rgba(255, 0, 0, 1) 0%, rgba(224, 0, 0, 1) 47%, rgba(171, 9, 14, 1) 66%);
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    margin-top: 20rem;
    border-radius: 0.75rem;
    /*padding: 1rem;*/
}

footer h3 {
    margin-bottom: 10px;
}

footer .social-links a {
    color: #fff;
    margin: 0 10px;
    text-decoration: none;
    transition: color 0.3s;
}

footer .social-links a:hover {
    color: #1da1f2; 
}


.footer h2{
    font-size: 2rem;
}
.contact-us, .form {
    width: 40%;
    height: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    background-color: var(--Aqua);
    padding: 2rem;
    border-radius: 1rem;
}
.contact-us-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}
.contact-us-title{
    display: flex;
    flex-direction: row;
    align-items: center;
}
.contact-us-title img{
    width: 2.75rem;
    margin-left: 0.5rem;
    /* background-color: var(--black); */
    border-radius: 20%;
    padding: 0.5rem;
}
.contact-us-item a, .contact-us-item-Email{
    color: var(--black);
    background-color: var(--Gold);
    padding: 2rem;
    width: 50%;
    box-sizing: border-box;
    text-align: center;
    border-radius: 1rem;
    cursor: pointer;
    font-size: 2rem;
    transition: 0.2s ease-in-out;
}
.contact-us-item a:hover, .contact-us-item-Email:hover{
    background-color: var(--white);
}
@media only screen and (max-width: 768px){
    .footer{
        flex-direction: column;
    }
    .contact-us, .form{
        width: 80%;
    }
    .contact-us{
        margin-bottom: 2rem;
    }
}

/* .float{
    position: flex;
    bottom: 1.5rem;
    right: 1.5rem;
    background-color: var(--white);
    border: solid var(--Gold);
    border-radius: 50%;
} */

/* popup */
/* .popup{
    display: none;
}

.popup{
    position: fixed;
    width: 100%;
    height: 100hv;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(popup);
    animation: fadeIn 1s;
}

.popup-message{
    width: 50%;
    height: 40vh;
    background-color: var(--white);
    border: solid var(--Gold);
    color: var(--Gold);
    border-radius: 1rem;
    padding: 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
} */

@keyframes fadIn{
    from{
        opacity: 0;
    }
    to{
        opacity: 1;
    }
}





/* Resume Style */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial,sans-serif, url(../fonts/Vazirmatn/Vazirmatn-VariableFont_wght.ttf);
}

body{
    background:#f5f5f5;
}

.container{
    display:flex;
    min-height:100vh;
}

.left{
    width:48%;
    text-align:center;
    border-right:1px solid var(--black);
}

.profile{
    padding:60px 20px;
}

.profile img{
    width:250px;
    height:250px;
    border-radius:50%;
    object-fit:cover;
}

.profile h1{
    margin-top:30px;
    color:#011e75;
}

.profile h3{
    margin-top:10px;
    font-size: 20px;
    color: #b39800;
}

.social{
    border-top:1px solid var(--black);
    padding:40px;
    font-size: 20px;
}

.right{
    width:59%;
}

.about{
    padding:33px;
}

.about h4,
.section h4{
    color: var(--black);
    margin-bottom:11px;
}

.about h2{
    color: var(--black);
    margin-bottom:20px;
    font-size:40px;
}

.about p{
    line-height:1.1;
}

.section{
    border-top:1px solid var(--black);
    padding:40px 60px;
}

.row{
    margin-bottom:2px;
}

.year {
    font-weight: normal;
    margin-bottom:10px;
    font-size: 20px;
}

.home{
    background-color: var(--black);
    background: linear-gradient(90deg, rgba(54, 196, 199, 1) 7%, rgba(125, 232, 150, 1) 43%, rgba(255, 229, 0, 1) 85%);;
    width: 10%;
    height: 5%;
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    border-radius: 0.75rem;
    align-items: center;
    text-align: center;
    font-size: medium;
    
}

/* .btn{
    display:inline-block;
    background:#2f4fb0;
    color:white;
    padding:12px 35px;
    text-decoration:none;
    margin-top:20px;
} */

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.social-links a {
    color: var(--black);
    font-size: 24px;
    transition: 0.3s;
}

.social-links a:hover {
    transform: scale(1.2);
    color: #00bcd4;
}

.social {
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
}



/* Home Bottom */
.contact-us-itemss {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 20%;
}
.contact-us-itemss .home:hover{
    background-color: var(--Aqua);
    transform: translateY(0.56rem);
}
.contact-us-itemss a, .contact-us-itemss-Email{
    color: var(--black);
    background-color: var(--Gold);
    padding: 2rem;
    width: 50%;
    box-sizing: border-box;
    text-align: center;
    border-radius: 1rem;
    cursor: pointer;
    font-size: 2rem;
    transition: 0.2s ease-in-out;
}


/* QR Code */
.qr-code{
    text-align:center;
    margin-top:30px;
}

.qr-code img{
    width:120px;
    height:120px;
}

.qr-section{
    margin-top: 25px;
    text-align: center;
}

.qr-section h4{
    margin-bottom: 10px;
}

#qrcode{
    display: flex;
    justify-content: center;
}



/* YouTube and Medium posts */
.latest-content{
    margin-top: 60px;
}

.latest-content h2{
    text-align: center;
    margin-bottom: 40px;
}

.content-section{
    margin-bottom: 50px;
}

.content-section h3{
    margin-bottom: 20px;
}

/* YouTube */

.youtube-banner{
    display: flex;
    align-items: center;
    gap: 20px;

    background: #fff;
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 20px;

    box-shadow: 0 5px 15px rgba(0,0,0,.08);
}

.youtube-banner img{
    width: 260px;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
}

.youtube-info{
    flex: 1;
}

.youtube-info h4{
    margin-bottom: 10px;
}

.btn-watch{
    display: inline-block;
    margin-top: 10px;

    background: #ff0000;
    color: white;
    padding: 10px 18px;

    border-radius: 8px;
    text-decoration: none;
    transition: .3s;
}

.btn-watch:hover{
    transform: translateY(-2px);
}
.subscribe-container{
    text-align:center;
    margin:40px 0;
}

.btn-subscribe{
    display:inline-flex;
    align-items:center;
    gap:10px;

    background:#ff0000;
    color:white;
    text-decoration:none;

    padding:14px 28px;
    border-radius:50px;

    font-size:18px;
    font-weight:bold;

    transition:0.3s ease;
}

.btn-subscribe:hover{
    background:#cc0000;
    transform:translateY(-2px);
}

.btn-subscribe i{
    font-size:24px;
}

/* Medium */

.medium-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(250px,1rem));
    gap: 25px;
}

.medium-card{
    text-decoration: none;
    color: inherit;

    background: white;
    border-radius: 15px;
    overflow: hidden;

    box-shadow: 0 5px 15px rgba(0,0,0,.08);
    transition: .3s;
}

.medium-card:hover{
    transform: translateY(-5px);
}

.medium-card img{
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.medium-body{
    padding: 15px;
    font-size:2.5rem;
}

.medium-body h5{
    line-height: 1.5;
}


.pp{
    margin-top: 19rem;
}

.op{
    margin-top: 1rem;
    font-size: 2rem;
    font-weight: bold;
    line-height: 1.4;
    text-align: center;
    color: #222;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;

    overflow: hidden;
    text-overflow: ellipsis;

    min-height: 5.6rem;
}

.medium-container{
    text-align:center;
    margin:20px 0 40px;
}

.btn-medium{
    display:inline-flex;
    align-items:center;
    gap:10px;

    background:#12100e;
    color:white;
    text-decoration:none;

    padding:14px 28px;
    border-radius:50px;

    font-size:18px;
    font-weight:bold;

    transition:0.3s ease;
}

.btn-medium:hover{
    background:#000;
    transform:translateY(-2px);
}

.btn-medium i{
    font-size:24px;
}




/* Mobile Responsive */
@media screen and (max-width: 768px) {

    html{
        font-size: 50%;
    }

    .navbar{
        height: auto;
        padding: 1rem;
    }

    .nav-item{
        width: auto;
        margin: 0.5rem;
        padding: 1rem 2rem;
        font-size: 1.6rem;
    }

    .header,
    .imgr{
        height: auto;
        min-height: 50vh;
    }

    h1,
    h2{
        font-size: 3rem;
        text-align: center;
    }

    p{
        font-size: 1.6rem;
    }

    /* Resume */
    .container{
        flex-direction: column;
    }

    .left,
    .right{
        width: 100%;
        border-right: none;
    }

    .profile{
        padding: 3rem 1rem;
    }

    .profile img{
        width: 160px;
        height: 160px;
    }

    .profile h1{
        font-size: 3rem;
    }

    .profile h3{
        font-size: 1.8rem;
    }

    .about{
        padding: 2rem;
    }

    .about h2{
        font-size: 3rem;
    }

    .about p{
        font-size: 1.6rem;
        line-height: 1.7;
    }

    .section{
        padding: 2rem;
    }

    .social{
        padding: 2rem;
    }

    .social-links{
        flex-wrap: wrap;
        justify-content: center;
    }

    /* YouTube */
    .youtube-banner{
        flex-direction: column;
        text-align: center;
    }

    .youtube-banner img{
        width: 100%;
        height: auto;
    }




    /* Medium */
.medium-grid{
    display: grid;
    grid-template-columns: repeat(3, minmax(3, 300px));
    gap: 25px;
    margin-top: 20px;
    justify-content: center;
    margin-top:30px;
}
.medium-card img{
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}
.medium-card{
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,.08);
}






    /* Footer */
    footer{
        flex-direction: column;
        gap: 2rem;
        padding: 2rem;
    }

    .contact-us,
    .form{
        width: 95%;
        height: auto;
    }

    .contact-us-item a,
    .contact-us-item-Email{
        width: 100%;
    }

    .contact-us-itemss{
        width: 100%;
    }

    .contact-us-itemss a{
        width: 100%;
    }

    .home{
        width: 100%;
        justify-content: center;
        padding: 1rem;
    }

    .op{
        font-size: 1.2rem;
        line-height: 1.7;
        padding: 0 1rem;
    }
}

@media (max-width: 768px){

    .medium-grid{
        grid-template-columns: 1rem;
    }

}