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

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: #030303;
    color: #e0e0e0;
    margin: 0;
    overflow-y: scroll;
    overflow-x: hidden;
}

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

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

::-webkit-scrollbar-thumb {
    background-color: #222; 
    border-radius: 5px;
}

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

.bg-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Layering both the gif token and your pattern asset without overwriting background-color */
    background-image: 
        url('https://dakg4cmpuclai.cloudfr\6fnt.n\65\74/qadhf49aeoubn609m3kbmm5bw/bWlra21lci5tZQ%3D%3D/img.gif'), 
        url('assets/patternf-min.jpg');
    background-repeat: no-repeat, no-repeat;
    background-position: center center, center center;
    background-size: auto, cover;
    opacity: 0.12;
    z-index: -2;
}

.bg-vignette {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* The inner clear area is reduced and the dark vignette starts closing in much sooner (at 45% instead of 90%), making the clear center circle half the size */
    background: radial-gradient(circle at center, transparent 10%, #030303 99%);
    z-index: -1;
    pointer-events: none;
}

/* Forces layout view to occupy exactly the first fold screen size */
.viewport-wrapper {
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Creates the requested empty space below the content fold */
.empty-scroll-space {
    height: 120vh;
    width: 100%;
    pointer-events: none;
}

.container {
    position: relative;
    width: 80%;
    height: 80%;
}

.top-left {
    position: absolute;
    top: 20px;
    left: 20px;
    animation: fadeInSlide 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

h1 {
    font-size: 2.5rem;
    font-weight: 500;
    color: #ffffff;
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    letter-spacing: -0.5px;
}

.highlight {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid #ffffff;
    color: #ffffff;
    animation: typing 1.5s steps(30, end) 0.5s forwards, blink 0.8s step-end infinite;
    max-width: 0;
    margin-left: 12px;
    font-weight: 700;
}

.description-text {
    font-size: 1.1rem;
    font-weight: 300;
    color: #a3a3a3;
    margin-top: 15px;
    margin-bottom: 25px;
    max-width: 65%;
    line-height: 1.6;
}

.social-icons {
    display: flex;
    gap: 25px;
}

.icon {
    color: #444;
    font-size: 1.8rem;
    position: relative;
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.icon:hover {
    color: #ffffff;
    transform: translateY(-5px);
}

.popup-label {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    background-color: #111;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

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

.middle-right {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    text-align: right;
    max-width: 320px;
    opacity: 0;
    animation: fadeInSlideRight 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) 0.4s forwards;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 15px;
    display: inline-block;
    position: relative;
    letter-spacing: -0.3px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -4px;
    height: 1px;
    background: #ffffff;
    width: 0;
    transition: width 0.4s ease;
}

.middle-right .section-title::after {
    right: 0;
}

.bottom-left .section-title::after {
    left: 0;
}

.middle-right:hover .section-title::after,
.bottom-left:hover .section-title::after {
    width: 100%;
}

.description {
    font-size: 1.05rem;
    font-weight: 300;
    color: #a3a3a3;
    line-height: 1.6;
}

.bottom-left {
    position: absolute;
    left: 20px;
    bottom: 110px;
    text-align: left;
    opacity: 0;
    animation: fadeInSlide 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) 0.6s forwards;
}

.skills {
    display: flex;
    gap: 25px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.skill-icon {
    font-size: 45px;
    color: #444;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    cursor: default;
}

.skill-icon:hover {
    color: #ffffff;
    transform: translateY(-6px);
}

@keyframes fadeInSlide {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInSlideRight {
    0% { opacity: 0; transform: translate(30px, -50%); }
    100% { opacity: 1; transform: translate(0, -50%); }
}

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

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

@media only screen and (max-width: 768px) {
    .viewport-wrapper {
        height: auto;
        display: block;
    }

    .container {
        flex-direction: column;
        height: auto;
        width: 100%;
        padding: 40px 20px;
        margin-top: 0;
        display: flex;
        gap: 40px;
    }

    .top-left, .middle-right, .bottom-left {
        position: static;
        transform: none;
        max-width: 100%;
        text-align: left;
        opacity: 1;
        animation: none;
    }

    .middle-right .section-title::after {
        right: auto;
        left: 0;
    }

    .description-text {
        max-width: 100%;
    }

    .skills {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
}