@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@200;300;400;600&display=swap');

:root{
    --yellow: #f9ca24;
    --dark-bg: #111;
    --card-bg: #1a1a1a;
    --text-light: #fff;
    --text-muted: #ccc;
}

*{
    font-family: 'Nunito', sans-serif;
    margin: 0; padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    outline: none; border: none;
    transition: all .2s linear;
}

*::selection{
    background: var(--yellow);
    color: #333;
}

html{
    font-size: 62.5%;
    overflow-x: hidden;
    scroll-behavior: smooth; /* Modernus sklandus slinkimas be JS! */
}

html::-webkit-scrollbar{
    width: 1.4rem;
}

html::-webkit-scrollbar-track{
    background: #222;
}

html::-webkit-scrollbar-thumb{
    background: var(--yellow);
}

body{
    background: var(--dark-bg);
    overflow-x: hidden;
    padding-left: 35rem;
}

section{
    min-height: 100vh;
    padding: 2rem;
}

.btn{
    padding: .7rem 3rem;
    background: #333;
    color: var(--text-light);
    cursor: pointer;
    margin-top: 1rem;
    margin-bottom: 1rem;
    font-size: 2rem;
    border-radius: 5rem;
    font-weight: 600;
}

.btn i{
    padding: 0 .5rem;
    font-size: 1.8rem;
}

.btn:hover{
    background: var(--yellow);
    color: #111;
}

.heading{
    text-align: center;
    margin: 0 6rem 2rem 6rem;
    font-size: 4rem;
    padding: 1rem;
    border-bottom: .1rem solid #fff4;
    color: var(--text-light);
}

.heading span{
    color: var(--yellow);
}

header{
    position: fixed;
    top: 0; left: 0;
    z-index: 1000;
    height: 100%;
    width: 35rem;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-flow: column;
    text-align: center;
}

header .user img{
    height: 17rem;
    width: 17rem;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: .7rem solid var(--yellow);
}

header .user .name{
    font-size: 3.5rem;
    color: var(--text-light);
    text-transform: capitalize;
}

header .user .post{
    font-size: 2rem;
    color: #eee;
    text-transform: capitalize;
}

header .navbar{
    width: 100%;
}

header .navbar ul{
    list-style: none;
    padding: 1rem 3rem;
}

header .navbar ul li a{
    display: block;
    padding: 1rem;
    margin: 1.5rem 0;
    background: #333;
    color: var(--text-light);
    font-size: 2rem;
    border-radius: 5rem;
    text-transform: capitalize;
}

header .navbar ul li a:hover{
    background: var(--yellow);
    color: #111;
}

#menu{
    position: fixed;
    top: 2rem; right: 2rem;
    background: #333;
    color: var(--text-light);
    cursor: pointer;
    font-size: 2.5rem;
    padding: 1rem 1.5rem;
    z-index: 1000;
    display: none;
    border-radius: 0.5rem;
}

.home{
    display: flex;
    justify-content: center;
    flex-flow: column;
    padding: 0 15rem;
}

.home h3{
    font-size: 2.5rem;
    color: var(--text-light);
}

.home h1{
    font-size: 5rem;
    color: var(--text-light);
}

.home h1 span{
    color: var(--yellow);
}

.home p {
    font-size: 1.8rem;
    color: #eee;
    padding: 1rem 0;
    line-height: 1.6;
}

.about .row{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    padding: 1rem 0;
}

.about .row .info{
    flex: 1 1 40rem;
    padding: 2rem 1rem;
    padding-left: 6rem;
}

.about .row .info h3{
    font-size: 2rem;
    color: var(--yellow);
    padding: 1rem 0;
    font-weight: normal;
}

.about .row .info h3 span{
    color: #eee;
    padding: 0 .5rem;
    text-transform: capitalize;
}

.about .row .counter{
    flex: 1 1 40rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.about .row .counter .box{
    width: 15rem;
    background: #222;
    text-align: center;
    padding: 2rem;
    margin: 1rem;
    border-radius: 1rem;
}

.about .row .counter .box span{
    font-size: 3.5rem;
    color: var(--yellow);
}

.about .row .counter .box h3{
    font-size: 1.8rem;
    color: var(--text-light);
    margin-top: 1rem;
}

.education .box-container{
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 1rem 0;
    padding-left: 3rem;
}

.education .box-container .box{
    width: 27rem;
    margin: 4rem 1rem;
    padding-left: 4rem;
    border-left: .2rem solid var(--text-light);
    position: relative;
}

.education .box-container .box span{
    font-size: 1.3rem;
    background: #222;
    color: var(--text-light);
    border-radius: 5rem;
    padding: .5rem 2.5rem;
}

.education .box-container .box h3{
    font-size: 2rem;
    color: var(--text-light);
    padding-top: 1.5rem;
}

.education .box-container .box p{
    font-size: 1.4rem;
    color: #eee;
    padding: 1rem 0;
}

.education .box-container .box i{
    position: absolute;
    top: -1.5rem; left: -2.5rem;
    height: 5rem;
    width: 5rem;
    border-radius: 50%;
    line-height: 5rem;
    text-align: center;
    font-size: 2rem;
    color: #111;
    background: var(--yellow);
}

/* Naujas modernus Portfolio dizainas */
.projects {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem; 
    padding: 2rem;
}

.project {
    display: flex;
    flex-direction: column;
    width: 350px;
    background: var(--card-bg);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(249, 202, 36, 0.15);
}

.project img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 3px solid var(--yellow);
}

.project-info {
    padding: 2rem;
    flex-grow: 1; 
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: left;
}

.project-title {
    font-size: 2.2rem;
    color: var(--text-light);
    font-weight: 600;
}

.project-description {
    font-size: 1.5rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.project-action {
    padding: 0 2rem 2.5rem 2rem;
    text-align: center;
}

.btn-link {
    display: inline-block;
    padding: 1rem 3rem;
    background: #333;
    color: var(--text-light);
    font-size: 1.6rem;
    border-radius: 5rem;
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn-link i {
    margin-left: 0.8rem;
}

.btn-link:hover {
    background: var(--yellow);
    color: #111;
}

/* Contact sekcija */
.contact .row{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4rem;
}

.contact .row .content{
    flex: 1 1 30rem;
    padding: 2rem;
}

.contact .row .content .title{
    text-transform: uppercase;
    color: var(--text-light);
    font-size: 3rem;
    padding-bottom: 2rem;
}

.contact .row .content .info h3{
    display: flex;
    align-items: center;
    font-size: 2rem;
    color: #eee;
    padding: 1rem 0;
    font-weight: normal;
}

.contact .row .content .info .meil{
    text-transform: none;
}

.contact .row .content .info h3 a{
    display: flex;
    align-items: center;
    color: #eee;
}

.contact .row .content .info h3 a:hover {
    color: var(--yellow);
}

.contact .row .content .info h3 i{
    padding-right: 1.5rem;
    color: var(--yellow);
}

.row .contact-img{
    height: 35rem;
    width: 35rem;
    object-fit: contain;
}

.top {
    position: fixed;
    bottom: 7.5rem;
    right: 2rem;
    z-index: 100;
    display: none; /* JS valdo rodymą/slėpimą */
    background: #333; /* Tamsus fonas aplink rodyklę */
    border-radius: 50%; /* Padarome apskritimą */
    width: 5rem; /* Apskritimo plotis */
    height: 5rem; /* Apskritimo aukštis */
    text-align: center; /* Centruojame ikoną horizontaliai */
    line-height: 5rem; /* Centruojame ikoną vertikaliai */
    box-shadow: 0 4px 6px rgba(0,0,0,0.3); /* Subtilus šešėlis */
    transition: all 0.3s ease; /* Sklandus perejimas efektams */
}

/* Naujas stilius pačiai ikonai viduje */
.top i {
    font-size: 2.5rem; /* Rodyklės dydis */
    color: var(--text-light); /* Rodyklės spalva (balta) */
}

/* Efektas užvedus pelę */
.top:hover {
    background: var(--yellow); /* Fonas tampa geltonas */
    transform: translateY(-5px); /* Šiek tiek pakyla į viršų */
}

.top:hover i {
    color: #111; /* Rodyklė tampa tamsi ant geltono fono */
}

/* Media Queries */
@media (max-width:1200px){
    html{
        font-size: 55%;
    }
    .home{
        padding: 1rem 4rem;
    }
}

@media (max-width:991px){
   header{
       left: -120%;
   }
   #menu{
       display: block;
   }
   header.toggle{
       left: 0%;
   }
   body{
       padding: 0;
   }
}

@media (max-width:768px){
    html{
        font-size: 50%;
    }
}

@media (max-width:450px){
    header{
        width: 100vw;
    }
    .heading{
        margin: 0 3rem 2rem 3rem;
    }
    .about .row .counter .box{
        width: 100%;
    }
    .education .box-container .box{
        width: 100%;
    }
    .project {
        width: 100%;
    }
}
/* --- Nauja animated pašto lėktuvėlio animacija --- */

/* Konteineris lėktuvėliui ir takeliui */
.contact-icon-container {
    position: relative;
    width: 350px; /* Toks pat dydis, koks buvo senos nuotraukos */
    height: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Kad takelis neišlįstų */
    background: transparent;
}

/* Pagrindinis SVG lėktuvėlis */
.paper-plane-svg {
    width: 100px;
    height: 100px;
    position: relative;
    z-index: 5;
    /* Pagrindinė skrydžio animacija */
    animation: fly-loop 4s ease-in-out infinite;
}

/* Sukuriame sekimo takelį naudojant pseudo-elementus ir div */
.plane-trail {
    position: absolute;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    opacity: 0;
}

/* Takelio sudedamosios dalys, kurios sekioja lėktuvėlį */
.trail-1 {
    width: 120px; height: 80px;
    border-radius: 40px;
    animation: trail-fade 4s ease-in-out infinite;
    animation-delay: 0.1s; /* Atidėtas rodymas */
}

.trail-2 {
    width: 160px; height: 110px;
    border-radius: 50px;
    animation: trail-fade 4s ease-in-out infinite;
    animation-delay: 0.2s;
}

.trail-3 {
    width: 200px; height: 140px;
    border-radius: 60px;
    animation: trail-fade 4s ease-in-out infinite;
    animation-delay: 0.3s;
}

/* -- Pagrindinė lėktuvėlio skrydžio animacija -- */
@keyframes fly-loop {
    0% {
        transform: translate(-150px, 150px) rotate(-10deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    /* Skrendame į viršų ir į dešinę */
    50% {
        transform: translate(50px, -50px) rotate(-25deg);
    }
    /* Slenkame atgal į pradinę zoną */
    90% {
        opacity: 1;
    }
    100% {
        transform: translate(150px, -150px) rotate(-40deg);
        opacity: 0;
    }
}

/* -- Sekimo takelio "išblukimo" animacija -- */
@keyframes trail-fade {
    0% {
        opacity: 0;
        transform: translate(-130px, 130px) scale(0.6) rotate(-10deg);
    }
    15% {
        opacity: 0.7;
    }
    /* Takelis seka lėktuvėlio skrydžio trajektoriją */
    50% {
        transform: translate(70px, -70px) scale(1) rotate(-25deg);
    }
    /* Takelis išnyksta prieš lėktuvėliui apsisukant */
    85% {
        opacity: 0;
    }
    100% {
        opacity: 0;
        transform: translate(130px, -130px) scale(0.8) rotate(-40deg);
    }
}

/* Mobiliesiems įrenginiams pritaikytas dydis */
@media (max-width: 768px){
    .contact-icon-container {
        width: 100%;
        height: 250px;
    }
    .paper-plane-svg {
        width: 80px;
        height: 80px;
    }
}