section.hero {
    height: 100dvh;
    padding: 250px var(--content-padding);
    gap: 15px;
}

section.hero h1 {
    font-size: 50px;
}

section.hero h1 span {
    color: var(--accent-light);
}

section.hero p {
    width: 100%;
    max-width: 650px;

    font-size: 18px;
    opacity: 0.8;
}

section.hero .actions {
    z-index: 1;
    width: auto;
    height: auto;

    display: flex;
    flex-direction: row;

    justify-content: flex-start;
    align-items: center;

    flex-wrap: wrap;
    gap: 10px;
}

section.hero .actions a {
    z-index: -1;
    font-size: 15px;
    display: flex;

    justify-content: center;
    align-items: center;

    transition: 0.3s ease-out;
    gap: 5px;

    opacity: 0.8;
}

section.hero .actions a i {
    font-size: 18px;
}

section.hero .actions a:hover {
    color: var(--accent-light);
}

section.hero .actions a i.abt {
    transform: translateX(-2px) translateY(2px);
    transition: 0.3s ease-out;
}
section.hero .actions a:hover i.abt {
    transform: translateX(0) translateY(0);
}

section.hero .actions .separator {
    width: 2px;
    height: 14px;

    border-radius: 5px;

    background-color: var(--text-color);
    opacity: 0.4;
}

/* ---------- Attention to Detail ---------- */
.PL {
    position: relative;
}

.PL::before {
    display: inline-block;

    width: max-content;
    height: auto;

    margin-right: 5px;
    background-color: transparent;

    transition: 0.3s ease-out;
}

.PR:not(:hover)::after {
    width: 0%;
    opacity: 0;
}

.PR::after {
    display: inline-block;

    width: max-content;
    height: auto;

    margin-left: 5px;
    background-color: transparent;

    transition: 0.3s ease-out;
}

.PL:not(:hover)::before {
    width: 0%;
    opacity: 0;
}

.PL.sri-lanka::before {
    content: "🇱🇰";
}

.PR.interactive::after {
    content: "🤝";
}

.PR.performance::after {
    content: "💪";
}

/* ---------- My Skills ---------- */
section.skills {
    padding: 100px var(--content-padding) 100px var(--content-padding);
    gap: 15px;
}

section.skills h2 {
    font-size: 30px;
    font-weight: 600;
}

section.skills h2 i {
    font-size: 30px;
    margin-right: 10px;
    color: var(--accent-light);
}

section.skills .list {
    width: 100%;
    height: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 15px;
}

section.skills .list .tile {
    position: relative;
    overflow: hidden;

    width: 150px;
    height: 150px;
    display: flex;
    flex-direction: column;

    justify-content: center;
    align-items: center;

    border-radius: 10px;

    background-color: rgba(93, 93, 93, 0.2);
    color: var(--text-color);

    transition: 0.3s cubic-bezier(0.075, 0.82, 0.165, 1);
}

section.skills .list .tile.ribbon::before {
    position: absolute;

    width: 140px;
    padding: 6px 0;

    background-color: rgba(102, 204, 238, 0.9);
    color: #ffffff;

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;

    top: 18px;
    right: -40px;

    display: flex;
    align-items: center;
    justify-content: center;

    transform: rotate(45deg);
}

section.skills .list .tile.ribbon.learning::before {
    content: "LEARNING";
    background-color: red;
}

section.skills .list .tile.ribbon.hobby::before {
    content: "HOBBY";
    background-color: orangered;
}

section.skills .list .tile img {
    aspect-ratio: 1/1;

    width: 50%;
    height: auto;

    border-radius: 50%;
    transition: 0.3s cubic-bezier(0.075, 0.82, 0.165, 1);
}

section.skills .list .tile span {
    font-size: 18px;
    font-weight: 600;
    transition: 0.3s 0.1s cubic-bezier(0.075, 0.82, 0.165, 1);
}

section.skills .list .tile:hover img,
section.skills .list .tile:hover span {
    transform: translateY(-5px) translateX(5px) scale(1.1);
}

section.skills .list:hover .tile:not(:hover) {
    opacity: 0.5;
}

/* ---------- Projects ---------- */
section.projects {
    padding: 100px var(--content-padding) 100px var(--content-padding);
    gap: 15px;
}

section.projects h2 {
    font-size: 30px;
    font-weight: 600;
}

section.projects h2 i {
    font-size: 30px;
    margin-right: 10px;
    color: var(--accent-light);
}

section.projects .projects-list {
    width: 100%;

    display: flex;
    flex-direction: row;

    justify-content: flex-start;
    align-items: center;

    flex-wrap: wrap;
}

section.projects .projects-list .project {
    width: 100%;
    max-width: 500px;

    border-radius: 5px;
    height: max-content;
    padding-bottom: 35px;

    display: flex;
    flex-direction: column;

    justify-content: flex-start;
    align-items: center;

    border: 1px solid #121f37;

    gap: 15px;
    overflow: hidden;

    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

section.projects .projects-list .project:hover {
    scale: 1.02;
}

section.projects .projects-list .project .pc {
    aspect-ratio: 16/9;
    width: 100%;
    overflow: hidden;
}

section.projects .projects-list .project .pc img {
    width: 100%;
    height: 100%;
}

section.projects .projects-list .project .content {
    width: 100%;
    height: auto;

    display: flex;
    flex-direction: column;

    justify-content: flex-start;
    align-items: center;
}

section.projects .projects-list .project .content h3 {
    font-size: 22px;
    font-weight: 600;
}

section.projects .projects-list .project .content p {
    font-size: 16px;
    font-weight: 400;
}

section.projects .projects-list .project .content a {
    font-size: 12px;
    margin-top: 20px;
    padding: 10px 15px;
    border-radius: 5px;
    color: #000000;
    background-color: #ffffff;
    transition: 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

section.projects .projects-list .project .content a:hover {
    scale: 1.1;
}

@media (max-width: 700px) {
    .popup::after {
        transform: translateY(0) translateX(0);
    }
}

@media (max-width: 580px) {
    section.hero {
        padding-top: 150px;
    }
    section.skills .list {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        justify-items: center;
    }

    section.skills .list .tile {
        width: 100%;
        max-width: none;
        aspect-ratio: 1 / 1;
        height: auto;
    }
}
