@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&family=Rubik:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,300&display=swap');

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

/* Header */

header{
    font-family: 'Rubik', sans-serif;
    background-image: url(../img/hero-bg.png);
}

.navbar-brand{
    letter-spacing: 2px;
}

.nav-item a{
    color: #fff;
}

.nav-item a:hover{
    color: #ffAA17;
}

.hero-content {
    margin: 160px auto 0;
    width: 80%;
}

/* Typing Animation */

.line{
    border-right: 2px solid rgba(255, 255, 255, .75);
    color: rgba(255, 255, 255, .75);
    white-space: nowrap;
    font-size: 1.5em;
    overflow: hidden;
}

.typing-animation{
    animation: blinkCursor 500ms infinite steps(40) normal, 
    typing 4s infinite steps(40) 2s normal both;
}

@keyframes blinkCursor{
    from{
        border-right-color: rgba(255, 255, 255, .75);
    }
    to{
        border-right-color: transparent;
    }
}

@keyframes typing{
    from{
        width: 0;
    }
    to{
        width: 14em;
    }
}

.colored-part{
    color: #ffAA17;
}

.icons-contact a:hover{
    background-color: #ffAA17;
}

.hero-btn{
    background-color: #ffAA17;
    padding: 8px 60px;
    text-decoration: none;
    color: #1C1E22;

}

.hero-btn:hover{
    background-color: #c18215;
}

.hero-img{
    margin: 115px auto 0;
    width: 80%;
}

main{
    font-family: 'Poppins', sans-serif;
}

/* About */

.about img{
    width: 100%;
    height: auto;
}

/* Ability */

.box{
    padding: 40px 20px;
    border: 2px solid #ffAA17;
}

.box:hover{
    transform: scale(1.02);
}

.ability-title{
    border-bottom: 1.5px solid #eee;
    padding-bottom: 10px;
}

/* Competition | Participation */

.competition-card{
    padding: 16px;
    border: 2px solid #ffAA17;
}

.competition-card img{
    width: 50%;
    height: 20%;
}

.competition-title{
    border-bottom: 1.5px solid #eee;
    padding-bottom: 10px;
}

.link-competition{
    font-weight: 600;
}

/* Projects */

.projects img{
    width: 100%;
    height: auto;
}

.Financial-App img{
    height: 300px;
    border-radius: 8px;
}

/* C++ Logo */
.tools img{
    width: 15%;
}

.tools-btn{
    background-color: #ffAA17;
    padding: 10px 95px;
    text-decoration: none;
    color: #1C1E22;
}

.tools-btn:hover{
    background-color: #c18215;
}

/* Back to Top */

#btn-back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    background-color: #ffAA17;
}

#btn-back-to-top:hover{
    background-color: #c18215;
}

/* Dark mode */

.dropdown button{
    color: white;
    background-color: #ffAA17;
}

.dropdown button:active,
.dropdown button:focus {
    background-color: #ffAA17;
    color: white;
}

.dropdown button:hover{
    background-color: #c18215;
    color: white;
}

.theme-icon,
.theme-icon-active {
    fill: #6c757d; 
}

[data-bs-theme="dark"] .theme-icon,
[data-bs-theme="dark"] .theme-icon-active {
    fill: #ffffff;
}

/* Footer */

footer{
    margin-top: 100px;
}

footer a{
    color: #fff;
    text-decoration: none;
}

footer a:hover{
    color: #ffAA17;
}

/* Tablet */

@media(max-width:900px){
    .hero-img img{
        width: 95%;
    }

}
@media(max-width:576px){
    .hero-img{
        margin: 135px auto 0;
        width: 80%;
    }
}

@media(max-width:480px){
    .hero-img{
        display: none;
    }
    .box:hover{
        transform: none;
    }

    .line{
        font-size: 1.3em;
    }
}

@media(max-width: 360px){
    .line{
        font-size: 1em;
    }
}