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

body {
    font-family: 'Roboto', sans-serif;
    background-color: #000;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    overflow-y: scroll;
    overflow-x: hidden;
    opacity: 0.7;
}

::-webkit-scrollbar {
    width: 16px;
}

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

::-webkit-scrollbar-thumb {
    background-color: #888; 
    border-radius: 10px;
    border: 3px solid #333;
}

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

.container {
    position: relative;
    width: 80%;
    height: 80%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 200%;
    background: url('assets/patternf-min.jpg') no-repeat center center;
    background-size: cover;
    opacity: 0.2;
    z-index: -1;
}

.top-left {
    position: absolute;
    top: 20px;
    left: 20px;
    animation: fadeIn 1.5s ease-in-out;
}

.top-left h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: #f0f0f0;
    display: flex;
    align-items: center;
}

.highlight {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid #f0f0f0;
    animation: typing 2s steps(100, end) 1s forwards, blink 1s step-end infinite, fadeCursor 0.5s 3s forwards;
    max-width: 0;
}

.highlight::before {
    content: '\00a0';
}

.social-icons {
    margin-top: 20px;
    display: flex;
    gap: 20px;
}

.icon {
    color: #f0f0f0;
    font-size: 1.8em;
    position: relative;
    display: inline-block;
}

.icon:hover {
    color: #FFFFFF;
    transform: translateY(-3px);
}

.popup-label {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    background-color: rgba(51, 51, 51, 0.5);
    color: #f0f0f0;
    padding: 2px 4px;
    border-radius: 3px;
    font-size: 0.7em;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
    z-index: 10;
}

.icon:hover .popup-label {
    opacity: 1;
    transform: translateX(-50%) translateY(10px);
}

.description-text {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2em;
    font-weight: 600;
    color: #dddddd;
    margin-top: 20px;
    margin-bottom: 20px;
    text-align: left;
    max-width: 65%;
    line-height: 1.4;
}

.middle-right {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    text-align: right;
    max-width: 300px;
    opacity: 0;
    animation: slideIn 2s ease-out forwards;
}

.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2em;
    font-weight: 600;
    color: #f0f0f0;
    margin-bottom: 10px;
}

.description {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2em;
    color: #dddddd;
    line-height: 1.5;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    0% {
        opacity: 0;
        transform: translateX(30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes typing {
    from {
        max-width: 0;
    }
    to {
        max-width: 9ch;
    }
}

@keyframes blink {
    0% {
        border-color: #f0f0f0;
    }
    50% {
        border-color: transparent;
    }
    100% {
        border-color: #f0f0f0;
    }
}

@keyframes fadeCursor {
    0% {
        border-color: #f0f0f0;
    }
    100% {
        border-color: transparent;
    }
}

@media only screen and (max-width: 768px) {
    body {
        justify-content: flex-start;
    }

    .container {
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        height: auto;
        width: 100%;
        padding: 0 20px;
        margin-top: -40px;
        flex-wrap: wrap;
    }

    .top-left {
        position: static;
        margin-top: 0;
        margin-bottom: 10px;
        text-align: left;
        width: 100%;
    }

    .top-left h1 {
        font-size: 1.7em;
        margin-bottom: 5px;
    }

    .description-text {
        max-width: 100%;
        font-size: 1em;
        margin-left: 0;
        margin-right: 0;
        margin-bottom: 10px;
    }

    .middle-right {
        position: static;
        margin-top: 10px;
        max-width: 100%;
        text-align: right;
    }

    .section-title {
        font-size: 1.8em;
    }

    .description {
        font-size: 1em;
    }

    .bottom-left {
        position: static;
        text-align: left;
        margin-bottom: -280px
    }
    .skills {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .skill {
        margin-bottom: 0;
    }
}

.bottom-left {
    position: absolute;
    left: 20px;
    bottom: 110px;
    text-align: left;
    opacity: 0;
    animation: fadeIn 2s ease-out forwards;
}

.skills {
    display: flex;
    gap: 20px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.skill {
    position: relative;
}

.skill-icon {
    font-size: 50px;
    color: #f0f0f0;
    cursor: default;
}