@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap");

:root {
    --font-size-base: 16px;
    --font-size-scale: 0.5vw;
}

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

::-webkit-scrollbar {
  width: 10px;
  height: 10px; 
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #888;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(to top, #02AABD, #00CDAC);
    color: #fff;
    overflow: auto;
    min-height: 100vh;
    min-width: 100%;
    font-size: 0.8em;
    position: relative;
    padding-bottom: 50px;
}

header {
    background-color: #000;
    position: fixed; 
    width: 100%; 
    top: 0; 
    left: 0;
    z-index: 1000; 
}

.nav-list {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    padding: 0 20px;
    margin: 0;
    list-style: none;
}

.logo-icon {
    height: 3.15em;
    vertical-align: middle;

}

.nav-items {
    display: flex;
    justify-content: center;
    flex-grow: 1;
}

.nav-item {
    color: #999;
    text-decoration: none;
    font-size: 0.6em;
    padding: 8px 12px;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 20px;
    position: relative;
    width: 1.5em;
    height: 1.5em;
}

.nav-icon {
    width: 100%;
    height: 120%;
    transition: opacity 0.3s;
    position: absolute;
    top: 0;
    left: -50%;
}

.nav-text {
    opacity: 0;
    transition: opacity 0.3s, color 0.3s;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
    font-size: 0.35rem;
}

.nav-item:hover {
    color: #2A9D8F;
}

.nav-item:hover .nav-icon {
    opacity: 0;
}

.nav-item:hover .nav-text {
    opacity: 1;
    color: #2A9D8F;
}

.social-links {
    display: flex;
    align-items: center;
}

.social-links a {
    margin-left: 8px;
}

.social-icon {
    width: 2em;
    height: 2em;
    transition: filter 0.3s, transform 0.3s;
}

.social-icon:hover {
    transform: scale(1.2);
}

.menu-icon {
    display: none;
    cursor: pointer;
}

.menu-icon img {
    width: 30px;
    height: 30px;
}

@media (max-width: 768px) {
    .menu-icon {
        display: block;
    }

    .nav-items {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: #000;
        padding: 10px 0;
    }

    .nav-items.active {
        display: flex;
    }

    .nav-item {
        margin: 5px 0;
    }

    .social-links {
        display: none;
    }
}

main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    height: auto;
    padding: 2vw;
    padding-top: 80px;
    padding-bottom: 5vh;
    position: relative;
    overflow: auto;
    min-width: 0;
    min-height: auto;
}

.left-column,
.right-column {
    flex: 1 1 50%;
    padding: 2vw;
}

.intro1 {
    margin-top: 5vh;
    text-align: left;
}

.intro1 h1 {
    font-size: calc(3em + 1vw);
    color: #51e8d6;
}

.intro1 p {
    font-size: calc(1.2em + 0.5vw);
    margin: 2vh 0;
    margin-bottom: 2vh;
}

.skill {
    margin: 1vh 0;
    padding: 1vh;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 0.5vh;
    text-align: left;
    animation: popIn 2s ease-out;
    position: relative;
    color: #fff;
}

.skill span {
    display: block;
    margin-bottom: 0.5vh;
    font-size: 1.2em;
}

.progress-bar {
    height: 2vh;
    border-radius: 0.5vh;
    transition: width 0.3s;
}

.skill-buttons {
    margin: 2vh 0; 
}

.skill-buttons button {
    background-color: #2A9D8F;
    color: #fff;
    padding: 1vh 2vw; 
    margin: 0 1vw; 
    border: none;
    border-radius: 0.5vh; 
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.skill-buttons button:hover {
    background-color: #CD0021;
    transform: scale(1.05);
}

.fade-in-left-letter-by-letter span {
    display: inline-block;
    opacity: 0;
    animation: fadeInLetter 1s forwards;
}

@keyframes fadeInLetter {
    to {
        opacity: 1;
    }
}

.pop-in {
    animation: popIn 2s ease forwards;
}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.bubbles-box {
    position: absolute;
    top: 0;
    right: 0;
    width: 50vw;
    height: 100vh;
    pointer-events: none; 
    overflow: hidden;
    z-index: 0; 
}

.bubble {
    margin: 10px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.7), rgba(173, 216, 230, 0.5));
    box-shadow: 0 0 20px rgba(173, 216, 230, 0.5);
    position: absolute;
    animation: upDown 2s ease-in-out infinite alternate;
}

.bubble img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
}

@keyframes upDown {
    0% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(-40px);
    }
}


@media (max-width: 768px) {
    .nav-list {
        justify-content: space-between;
    }
    .social-links {
        margin-top: 1vh; 
    }
    .left-column,
    .right-column {
        flex: 1 0 100%;
    }
    .logo, .menu-icon {
        flex-grow: 0;
    }
    .nav-items.active {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: #000;
        z-index: 10;
    }
    .bubbles-box {
        top: 22.5vh;
        transform: translateY(-50%);
    }
}

.full-screen-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    overflow-y: auto;
}

.full-screen-menu.active {
    display: block;
}

.close-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.full-screen-nav {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.full-screen-nav-item {
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
    font-size: calc(24px + 1vw);
    margin: 20px 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s, transform 0.3s;
}

.full-screen-nav-item.active {
    opacity: 1;
    transform: translateY(0);
}

.full-screen-nav-item img {
    width: 30px;
    height: 30px;
    margin-right: 10px;
}
