@font-face {
    font-family: 'New Eridu';
    src: url('../fonts/new-eridu.ttf');
}
@font-face {
    font-family: 'JetBrain Mono';
    src: url('../fonts/JetBrainsMono-VariableFont_wght.ttf');
}

* {
    font-size: 16px;
    box-sizing: border-box;
}

html,body {
    overflow-x: hidden;
    width: 100%;
    height: 100vh;
}

body {
    font-size: 1rem;
    color: #fff;
    font-family: 'New Eridu', Arial, Helvetica, sans-serif;
    margin: 0;
    background-image: url('../images/background-img.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Typography */
h1 {
    font-size: 2.5rem;
    margin: 0;
}
h2 {
    font-size: 2.25rem;
    margin: 0;
}
h3 {
    font-size: 2rem;
    margin: 0;
}
h4 {
    font-size: 1.75rem;
    margin: 0;
}
h5 {
    font-size: 1.5rem;
    margin: 0;
}
a {
    color: #fff;
    text-decoration: none;
}
hr {
    width: 100%;
    color: #04f03f;
    margin-top: 20px;
    box-shadow: 0 0 10px #04f03f, 0 0 30px #04f03f, 0 0 60px #04f03f;;
}


/* Layout */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    background-color: #000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.loading-screen h1 {
    font-size: 1.5rem;
}

.navbar {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1000;

    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #000;
    padding: 10px;
}

.navbar img {
    width: 30px;
    height: auto;
}

.menu-checkbox {
    display: none;
}

.container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    max-width: 980px;
    margin: 4em auto;
    padding: 1.25em;
}

.container i {
    font-size: 2rem;
}
.avatar {
    max-width: 180px;
    border-radius: 30px;
    border: 3px solid #fff;
    transition: all 0.3s ease;
}
.avatar-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
}


/* Mobile (default) */
/* PAGE: HOME */ 
.hamburger-btn {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger-btn .bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #fff;
    border-radius: 2px;
    transition: 0.3s;
}

.menu-checkbox:checked ~ .hamburger-btn .bar-1 {
    transform: translateY(8px) rotate(45deg);
}

.menu-checkbox:checked ~ .hamburger-btn .bar-2 {
    opacity: 0;
}

.menu-checkbox:checked ~ .hamburger-btn .bar-3 {
    transform: translateY(-8px) rotate(-45deg);
}

.menu-links {
    display: flex;
    flex-direction: column;
    width: 40%;
    height: 100vh;
    gap: 20px;
    top: 100%;
    right: 0;
    margin: 0;
    padding: 1.5em;
    background-color: #000;
    position: absolute;
    list-style: none;
    opacity: 0;
    
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out,
                opacity 0.3s ease-in-out;
}

.menu-links li a {
    color: #c5c5c5;
    text-decoration: none;
}

.menu-links li a:hover {
    color: #fff;
    transition: 0.3s ease;
}

.menu-links .active,
.menu-links .active:hover {
    color: #178be9;
    text-decoration: underline;
    transition: 0.3s ease;
}



.menu-checkbox:checked ~ .menu-links {
    transform: translateX(0);
    opacity: 1;
    
}

.hero-section {
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    gap: 1.5rem;
    align-items: center;
}

.hero-section h2 {
    text-align: center;
    font-size: 1.5rem;
    margin: 0;
}
.hero-section h5 {
    text-align: center;
    font-size: .75rem;
    margin: 0;
}
.hero-section i {
    text-align: center;
    font-size: .95rem;
    margin: 0;
}

.name-section h5,
.personal-info h5,
.personal-contact h5 {
    color: #ffffff85;
}

.name-section {
    display: flex;
    flex-direction: column;
    gap: 0px;
}

.cat {
    max-width: 120px;
    top: -79px;
    position: absolute;
}

.personal-info {
    display: flex;
    flex-direction: column;
    align-items: start;
}

.personal-contact {
    display: flex;
    justify-content: space-between;
    gap: 1.5em;
}


/* PAGE: CONTACT */ 
.social-media-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.social-media-grid .span,
.social-media-grid .span-2 {
    display: flex;
    min-height: 2rem;
    border: 2px solid #fff;
    padding: 4rem;
    border-radius: 10px;
    justify-content: center;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}


.social-media-grid .span-2 { grid-column: span 2; }

.social-media-grid .github {
    background-color: #000;
    border-color: #000;
}

.social-media-grid .linkedin {
    background-color: #0A66C2 ;
    border-color: #0A66C2 ;
}

.social-media-grid .facebook {
    background-color: #1877f2 ;
    border-color: #1877f2 ;
}
/* .social-media-grid .leetcode img {
    width: 4rem;
    z-index: 999;
} */

.social-media-grid .email {
    background-color: #fff;
    border-color: #fff;
}
.social-media-grid .email img {
    width: 4rem;
    z-index: 999;
}
.social-media-grid .youtube {
    background-color: #ff0000 ;
    border-color: #ff0000;
}
.social-media-grid .discord {
    background-color: #5865f2;
    border-color: #5865f2;
}
.social-media-grid .htb {
    background-color: #1A2332;
    border-color: #1A2332;
}
.social-media-grid .htb img {
    width: 4rem;
    z-index: 999;
}
@media (hover: hover) {
    .social-media-grid:hover .span,
    .social-media-grid:hover .span-2 {
        opacity: 0.4;
        cursor: pointer;
        transform: scale(0.94);
        
    }
    .social-media-grid .span:hover,
    .social-media-grid .span-2:hover {
        opacity: 1;
        border: 2px solid #fff;
        cursor: pointer;
        transform: scale(1.3);
        position: relative;
        z-index: 10;
    }
    .social-media-grid .github:hover { border-color: #fff; }
    .social-media-grid .linkedin:hover { border-color: #fff; }
    .social-media-grid .facebook:hover { border-color: #fff; }
    .social-media-grid .email:hover { border-color: #ff1212; }
    .social-media-grid .youtube:hover { border-color: #fff; }
    .social-media-grid .discord:hover { border-color: #fff; }
    .social-media-grid .htb:hover { border-color: #2bff00; }
}

/* PAGE: ABOUT */ 
.about-me-grid {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 5px;
    justify-content: center;
    align-items: center;
    font-family: 'JetBrain Mono', Arial, Helvetica, sans-serif;
}

.btn-resume {
    background-color: #2c9c00;
    margin: .5rem;
    padding: .5rem;
    border: 2px solid #fff;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-family: 'JetBrain Mono';
}

.introduction {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.introduction p {
    background-color: #00000054;
    border: 2px solid transparent;
    border-radius: 15px;
    padding: .5rem;
}
.donut {
    color: #04f03f; 
    font-family: monospace; 
    font-size: 8px; 
    line-height: 8px; 
    text-align: center; 
    font-weight: bold;
}

.about-education {
    display: flex;
    flex-direction: column;
    align-items: start;
}
.education-item {
    border-left: 5px solid #04f03f;
    padding: .75rem;
    background-color: #00000050;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.about-techstack {
    display: flex;
    flex-direction: column;
    align-items: start;
}
.techstack-display {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 10px;
}
.techstack-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 5px auto;
    padding: .75rem;
    border: 2px solid white;
    border-radius: 10px;
    background-color: #00000050;
    transition: all 0.3s ease;
}
.icon-frame {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.techstack-item img {
    width: 5rem;
}

.about-projects {
    display: flex;
    flex-direction: column;
    align-items: start;
}
.project-carousel {
    position: relative;
    display: flex;
    margin-top: -6rem;
    gap: 20px;
    align-items: center;
    width: 100%;
}
/* .project-carousel-btn {
    display: none;
    color: #fff;
    background-color: green;
    border: 2px solid #fff;
    border-radius: 20px;
    transform: scale(1.5);
    cursor: pointer;
    transition: all 0.3s ease;
} */
.project-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 2rem 0;
    scrollbar-width: none;
}
.project-track::-webkit-scrollbar {
    display: none;
}
.project-item {
    border: 2px solid #fff;
    border-radius: 20px;
    padding: .75rem;
    min-width: 100vw;
    transition: all 0.3s cubic-bezier(0.215, 0.610, 0.355, 1);
}
.project-item:hover {
    position: relative;
    border-color: #04f03f;
    z-index: 10;
    transform: scale(1.05);
}
.project-item h3,
.project-item h4,
.project-item h5 {
    font-family: 'JetBrain Mono', Arial, Helvetica, sans-serif;
    color: #ffffff8c;
}

/* PAGE: Service */
.service-display {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
    font-family: 'JetBrain Mono', Arial, Helvetica, sans-serif;
}
.service-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 2px solid #fff;
    border-radius: 30px;
    padding: .75rem;
    background-color: #00000056;
    transition: all 0.3s cubic-bezier(0.215, 0.610, 0.355, 1);
}
.service-item:hover {
    border: 2px solid #04f03f;
    transform: scale(1.2);
}
.service-item img {
    filter: invert();
    width: 10rem;
}

.service-item-front {
    transition: all 0.3s ease;
}

.service-info-display {
    margin: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.service-info {
    text-align: center;
    text-wrap: balance;
}
.service-info-desc {
    margin: 2.5rem;
    padding: 1.25rem;
    background-color: #00000050;
    border: 2px solid #fff;
    border-radius: 30px;
    color: #ffffff9d;
}


/* Desktop */
@media (min-width: 768px) {

    .container {
        margin-top: 10rem;
    }

    .navbar {
        background-color: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(10px);
    }

    .hamburger-btn {
        display: none;
    }

    .menu-links {
        display: flex;
        flex-direction: row;
        position: static;
        width: auto;
        height: auto;
        background-color: transparent;

        transform: none;
        opacity: 1;
    }

    .cat {
        top: -79px;
    }

    .loading-screen h1 {
        font-size: 2.5rem;
    }

    .social-media-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .linkedin {
        grid-column: span 2;
    }

    .btn-resume:hover,
    .btn-resume a:hover {
        background-color: #ffd900;
        color: #000;
    }

    .education-item:hover {
        border-left: 5px solid #ff0909;
        background-color: #000;
        transform: scale(1.1);
        z-index: 999;
    }

    .techstack-display {
        grid-template-columns: repeat(5, 1fr);
    }

    .techstack-item:hover {
        border-color: #04f03f;
        background-color: #000;
        transform: scale(1.1);
        z-index: 999;
    }

    .icon-frame {
        grid-template-columns: repeat(2, 1fr);
    }

    .project-carousel-btn {
        display: block;
    }

    .project-item {
        min-width: 31.5vw;
    }
 
    .service-display {
        grid-template-columns: repeat(3, 1fr);
    }
}