@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* { 
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'Poppins', sans-serif;
}

:root{
    --bg-color: #081b29;
    --second-bg-color: #112e42;
    --text-color: #ededed;
    --main-color: #00abf0;
}

html {
    font-size: 62.5%;
    overflow-x: hidden;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
}

.header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 9%;
    background: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: .3s;
}

.header.sticky{
    background: var(--bg-color);
}

.logo{
    font-size: 2.5rem;
    color: var(--text-color);
    font-weight: 600;
}

.navbar a{
    font-size: 1.7rem;
    color: var(--text-color);
    font-weight: 500;
    margin-left: 2.5rem;
    transition: .3s;
}

.navbar a:hover,
.navbar a.active{
    color: var(--main-color);
}

#menu-icon {
    font-size: 3.6rem;
    color: var(--text-color);
    cursor: pointer;
    display: none;
}

section{
    min-height: 100vh;
    padding: 10rem 9% 2rem;
}

.home{
    display: flex;
    align-items: center;
    padding: 0 9%;
    background: url('Images/ygor.png') no-repeat;
    background-size: 60%;
    background-position: calc(150% - 100px) center;
}

.home-content{
    max-width: 60rem;
    z-index: 99;
}

.home-content h1{
    font-size: 6.6rem;
    font-weight: 700;
    line-height: 1.3;
}

.home-content p{
    font-size: 1.6rem;
    margin: 2rem 0 4rem;
    text-align: justify;
    text-shadow: 2px 2px 10px #000;
}

.home-content .text-animate {
    position: relative;
    width: 32.8rem;
}

.home-content .text-animate h3 {
    font-size: 3.2rem;
    font-weight: 700;
    color: transparent;
    -webkit-text-stroke: .7px var(--main-color);
}

.btn-box {
    position: relative;
    display: flex;
    justify-content: space-between;
    width: 34.5rem;
    height: 5rem;
}

.btn-box .btn {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 16rem;
    height: 100%;
    background: var(--main-color);
    border: .2rem solid var(--main-color);
    border-radius: .9rem;
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: .1rem;
    color: var(--bg-color);
    z-index: 1;
    overflow: hidden;
    transition: .5s;
}

.btn-box .btn:hover {
    color: var(--main-color);
}

.btn-box .btn:nth-child(2){
    background: transparent;
    color: var(--main-color);
}

.btn-box .btn:nth-child(2):hover {
    color: var(--bg-color);
}

.btn-box .btn:nth-child(2)::before{
    background: var(--main-color);
}

.btn-box .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--bg-color);
    z-index: -1;
    transition: .5s;
}

.btn-box .btn:hover::before{
    width: 100%;
}

.home-sci {
    position: absolute;
    bottom: 4rem;
    width: 220px;
    display: flex;
    justify-content: space-between;
}

.home-sci a {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: .2rem solid var(--main-color);
    border-radius: 50%;
    font-size: 20px;
    color: var(--main-color);
    z-index: 1;
    overflow: hidden;
}

.home-sci a:hover {
    color: var(--bg-color);
}

.home-sci a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--main-color);
    z-index: -1;
    transition: .5s;
}

.home-sci a:hover::before {
    width: 100%;
}

.home-imgHover:hover {
    background: var(--bg-color);
    opacity: 0.8;
}

/* ===== About Section ===== */

.about {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 2rem;
    background: var(--second-bg-color);
    padding-bottom: 6rem;
}

.heading {
    font-size: 5rem;
    margin-bottom: 3rem;
    text-align: center;
}

span {
    color: var(--main-color);
}

.about-img{
    position: relative;
    width: 25rem;
    height: 25rem;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-img img{
    width: 90%;
    border-radius: 50%;
    border: .2rem solid var(--main-color);
}

.about-img .circle-spin {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(0);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border-top: .2rem solid var(--second-bg-color);
    border-bottom: .2rem solid var(--second-bg-color);
    border-left: .2rem solid var(--main-color);
    border-right: .2rem solid var(--main-color);
}

.about-content {
    text-align: justify;
    height: 100%;
}

.about-content h3{
    font-size: 2.6rem;
}

.about-content p {
    font-size: 1.6rem;
    margin: 2rem 0 3rem;
}

.btn-box.btns {
    display: inline-block;
    width: auto;
}

.btn-box.btns a::before{
    background: var(--second-bg-color);
}

/* ===== Experience Section (Accordion) ===== */

.experience {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    min-height: auto;
    padding-bottom: 5rem;
}

.accordion-container {
    width: 100%;
    max-width: 90rem;
}

.accordion-item {
    margin-bottom: 1rem;
    border-radius: .6rem;
    overflow: hidden;
}

.accordion-btn {
    width: 100%;
    background: var(--second-bg-color);
    color: var(--text-color);
    padding: 2rem 2.5rem;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.6rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    border-left: .3rem solid transparent;
    transition: all 0.3s ease;
}

.accordion-btn:hover,
.accordion-btn.active {
    border-left-color: var(--main-color);
    background: rgba(0, 171, 240, 0.08);
}

.accordion-btn span {
    color: var(--text-color);
    text-align: left;
}

.accordion-btn.active span {
    color: var(--main-color);
}

.accordion-btn i {
    font-size: 1.6rem;
    color: var(--main-color);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 1.5rem;
}

.accordion-btn.active i {
    transform: rotate(45deg);
}

.accordion-panel {
    max-height: 0;
    overflow: hidden;
    background: rgba(17, 46, 66, 0.5);
    transition: max-height 0.4s ease;
}

.accordion-period {
    font-size: 1.4rem;
    color: var(--main-color);
    margin: 2rem 2.5rem 1.5rem;
    font-weight: 500;
}

.accordion-period i {
    margin-right: .5rem;
}

.accordion-panel ul {
    list-style-type: disc;
    padding: 0 2.5rem 2.5rem 4.5rem;
}

.accordion-panel ul li {
    font-size: 1.4rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    color: var(--text-color);
}

/* ===== Education Section ===== */

.education {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    min-height: auto;
    padding-bottom: 5rem;
    background: var(--second-bg-color);
}

.education-card {
    width: 100%;
    max-width: 70rem;
    background: var(--bg-color);
    border: .2rem solid var(--main-color);
    border-radius: .6rem;
    padding: 3rem;
    position: relative;
}

.education-card-content .year {
    font-size: 1.5rem;
    color: var(--main-color);
    margin-bottom: 1rem;
}

.education-card-content .year i {
    margin-right: .5rem;
}

.education-card-content h3 {
    font-size: 2rem;
    margin-bottom: .5rem;
}

.education-card-content h4 {
    font-size: 1.6rem;
    color: var(--main-color);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.education-card-content p {
    font-size: 1.4rem;
    line-height: 1.8;
}

/* ===== Skills Section (Grid) ===== */

.skills {
    min-height: auto;
    padding-bottom: 6rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    padding: 0 2rem;
    max-width: 120rem;
    margin: 0 auto;
}

.skill-card {
    background: var(--second-bg-color);
    border-radius: .8rem;
    padding: 2.5rem;
    border: .1rem solid rgba(0, 171, 240, 0.1);
    transition: all 0.3s ease;
}

.skill-card:hover {
    border-color: var(--main-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 171, 240, 0.1);
}

.skill-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1.8rem;
    color: var(--main-color);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.skill-card h3 i {
    font-size: 2rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
}

.skill-tag {
    display: inline-block;
    background: rgba(0, 171, 240, 0.1);
    color: var(--text-color);
    padding: .5rem 1.2rem;
    border-radius: 2rem;
    font-size: 1.3rem;
    font-weight: 400;
    border: .1rem solid rgba(0, 171, 240, 0.2);
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: var(--main-color);
    color: var(--bg-color);
    border-color: var(--main-color);
}

/* ===== Contact Section ===== */

.contact {
    min-height: auto;
    padding-bottom: 7rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background: var(--second-bg-color);
}

.contact-content {
    max-width: 70rem;
    text-align: center;
}

.contact-content p {
    font-size: 1.6rem;
    margin-bottom: 3rem;
    line-height: 1.8;
}

.contact-content .btn-box.btns {
    display: flex;
    justify-content: center;
}

.contact-content .btn-box.btns .btn {
    width: auto;
    padding: 0 3rem;
    gap: 1rem;
    font-size: 1.8rem;
    height: 5.5rem;
}

.contact-content .btn-box.btns .btn i {
    font-size: 2.2rem;
}

/* ===== Footer ===== */

.footer{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding: 2rem 9%;
    background: var(--bg-color);
    opacity: 0.6;
}

.footer-text p{
    font-size: 1.6rem;
    text-align: center;
}

/* ===== BREAKPOINTS ===== */

@media (max-width: 3000px) {
    html {
        font-size: 80%;
    }
}

@media (max-width: 1920px) {
    html {
        font-size: 62%;
    }
}

@media (max-width: 1200px) {
    html {
        font-size: 55%;
    }
}

@media (max-width: 991px) {
    .header {
        padding: 2rem 4%;
    }

    section {
        padding: 10rem 4% 2rem;
    }

    .home {
        padding: 0 4%;
        background-size: 10%;
    }

    .footer {
        padding: 2rem 4%;
    }
}

@media (max-width: 768px) {
    .header {
        background: var(--bg-color);
    }

    #menu-icon {
        display: block;
        font-size: 25px;
    }

    .navbar {
        position: absolute;
        top: 100%;
        left: -100%;
        width: 100%;
        padding: 1rem 4%;
        background: var(--main-color);
        box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .2);
        z-index: 1;
        transition: .25s ease;
        transition-delay: .25s;
    }

    .navbar.active {
        left: 0;
        transition-delay: .0s;
    }

    .navbar .active-nav {
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: var(--bg-color);
        border-top: .1rem solid rgba(0, 0, 0, .2);
        z-index: -1;
        transition: .25s ease;
        transition-delay: 0s;
    }

    .navbar.active .active-nav {
        left: 0;
        transition-delay: .25s;
    }

    .navbar a {
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
    }

    .accordion-btn {
        font-size: 1.4rem;
        padding: 1.5rem 2rem;
    }

    .accordion-btn span {
        font-size: 1.4rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
}

@media (max-width: 520px) {
    html {
        font-size: 50%;
    }

    .home-content h1 {
        display: flex;
        flex-direction: column;
    }

    .home-sci {
        width: 200px;
    }

    .home-sci a {
        width: 38px;
        height: 38px;
    }

    .accordion-btn {
        font-size: 1.3rem;
        padding: 1.2rem 1.5rem;
    }
}

@media (max-width: 462px) {
    .home-content h1 {
        font-size: 5.2rem;
    }

    .experience {
        padding: 10rem 4% 5rem 5%;
    }

    .education {
        padding: 10rem 4% 5rem 5%;
    }

    .footer {
        flex-direction: column-reverse;
    }

    .footer p {
        margin-top: 2rem;
        text-align: center;
    }

    .contact-content .btn-box.btns .btn {
        font-size: 1.5rem;
        padding: 0 2rem;
    }
}

@media (max-width: 371px) {
    .home {
        justify-content: center;
    }

    .home-content {
        display: flex;
        align-items: center;
        flex-direction: column;
        text-align: center;
    }

    .home-content h1 {
        font-size: 5rem;
    }
}