@import url('https://fonts.googleapis.com/css2?family=Archivo:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:700');
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500&display=swap");
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Archivo', sans-serif;
}

:root {
    --dark-theme: #0d0e0f;
    --light-theme: #f9f9f9;
    --primary-bg: linear-gradient(var(--primary), var(--primary));
}

body {
    background: var(--dark-theme)
}

h1 {
    font-size: 5rem;
    color: white;
    text-align: center;
    padding-top: 10rem;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.3rem 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .1);
    backdrop-filter: blur(50px);
    z-index: -1;
}

.logo {
    display: flex;
    align-items: center;
    color: white;
    font-weight: 700;
    text-decoration: none;
    font-size: 1.5rem; /* Adjust size of text */
}

.logo-img {
    margin-right: 10px; /* Add some space between image and text */
}

@media (max-width: 768px) {
    .logo-img {
        height: 40px; /* Adjust logo image size for smaller screens if needed */
        width: 60px;
    }
}

ss #check {
    display: none;
}

.icons #menu-icon {
    display: block;
}

.icons #close-icon {
    display: none;
}

/* Hide hamburger menu on larger screens */
.icons {
    display: none;
}

/* --- Responsive Styling --- */
@media (max-width: 768px) {
    /* Show the hamburger icon on smaller screens */
    .icons {
        display: inline-flex;
    }

    /* By default, display the hamburger icon and hide the close icon */
    #menu-icon {
        display: block;
    }

    #close-icon {
        display: none;
    }


/* Icons (Hamburger and Close) */
.icons {
    font-size: 2rem;
    color: white;
    cursor: pointer;
}

/* By default, display the hamburger icon and hide the close icon */
#menu-icon {
    display: block;
}

#close-icon {
    display: none;
}

/* When the checkbox is checked, show the close icon and hide the hamburger icon */
#check:checked ~ .icons #menu-icon {
    display: none;
}

#check:checked ~ .icons #close-icon {
    display: block;
}

/* Responsive styling for the icons on smaller screens */
@media (max-width: 768px) {
    .icons {
        display: inline-flex;
    }
}

    /* Navbar toggle for mobile */
    .navbar {
        flex-direction: column;
        align-items: center;
        position: absolute;
        top: 100%;
        width: 100%;
        height: 0;
        background: rgba(0, 0, 0, .1);
        backdrop-filter: blur(50px);
        overflow: hidden;
        transition: height .3s ease;
    }

    #check:checked ~ .navbar {
        height: 12rem;
    }

    /* Adjust the display of links when the menu is opened */
    .navbar a {
        text-align: center;
        transform: translateY(-50px);
        opacity: 0;
        transition: .3s ease-in-out;
    }

    #check:checked ~ .navbar a {
        transform: translateY(0);
        opacity: 1;
        transition-delay: calc(.15s * var(--i));
    }
}


/*Navbar Anchor Hover transition begin*/
.navbar {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
}

.navbar a {
    /*Change this if you change the number of spans.*/
    --numberOfSpans: 4;
    /*Default 500ms*/
    --transition-speed: 500ms;
    /*Default 100ms*/
    --transition-delay: 100ms;
    /*Make sure width and height are in the ratio of 1:4 
    
    that means:
    "height * number of span elements inside the <anchor>"
    
    In the case of improper dimensions the transition will not look good, you can try if you want.
    */
    --size: calc(100% / var(--numberOfSpans));
    height: 2rem;
    aspect-ratio: 4;
    /* ^ This ensures that the width is 4x of the height*/
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    color: white;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    text-decoration: none;
    transition: color var(--transition-speed);
    overflow: hidden;
}

.navbar a span {
    width: var(--size);
    height: 100%;
    display: inline-block;
    position: absolute;
    inset: 0;
    left: calc(var(--size) * var(--index));
    z-index: -1;
    translate: 0% 150%;
    scale: 1;
    background-color: var(--light-theme);
    border-radius: 100vw;
    transition: scale var(--transition-speed), translate var(--transition-speed);
    transition-delay: calc(var(--transition-delay) * (var(--index) + 1));
    transition-timing-function: ease-in-out;
}

nav a:hover {
    color: var(--dark-theme)
}

nav a:hover span {
    translate: 0% 0%;
    scale: 2;
}

nav a span:nth-child(1) {
    --index: 0
}

nav a span:nth-child(2) {
    --index: 1
}

nav a span:nth-child(3) {
    --index: 2
}

nav a span:nth-child(4) {
    --index: 3
}

/*Navbar Anchor Hover transition end*/

/* BREAKPOINTS */
@media (max-width: 992px) {
    .header {
        padding: 1.3rem 5%;
    }
}

@media (max-width: 768px) {
    .icons {
        display: inline-flex;
    }

    #check:checked~.icons #menu-icon {
        display: none;
    }

    .icons #close-icon {
        display: none;
    }

    #check:checked~.icons #close-icon {
        display: block;
    }

    .navbar {
        flex-direction: column;
        align-items: center;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        height: 0;
        background: rgba(0, 0, 0, .1);
        backdrop-filter: blur(50px);
        box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .1);
        overflow: hidden;
        transition: .3s ease;
    }

    #check:checked~.navbar {
        height: 12rem;
    }

    .navbar a {
        text-align: center;
        transform: translateY(-50px);
        opacity: 0;
        transition: .3s ease-in-out;
    } */

    #check:checked~.navbar a {
        transform: translateY(0);
        opacity: 1;
        transition-delay: calc(.15s * var(--i));
     }
}

.blob-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

.blob {
    position: absolute;
    width: 400px;
    height: auto;
    filter: blur(80px) brightness(1.4);
    opacity: 0.7;
    z-index: -1;
    pointer-events: none;
    box-shadow: 0 0 100px 50px rgba(153, 0, 255, 0.4);
}


/* Blob 1 position */
.blob-1 {
    top: -100px;
    left: -100px;
    transform: rotate(15deg);
}

/* Blob 2 position */
.blob-2 {
    bottom: -100px;
    right: -100px;
    transform: rotate(-20deg);
}


.hero-heading {
    font-size: 3rem;
    font-weight: bold;
    color: white;
    text-align: center;
    margin-top: 2rem;
}

.typewriter {
    display: inline-block;
    vertical-align: bottom;
    white-space: nowrap;
    overflow: hidden;
    border-right: 2px solid white;
    animation: blink-caret 0.75s step-end infinite;
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: white; }
}

.glassmorphism-card {
    position: relative;
    border-radius: 15px;
    padding: 2rem;
    margin: 3rem auto;
    width: 80%;
    max-width: 600px;
    text-align: center;
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-size: 1.2rem;
    font-weight: 500;
    overflow: hidden;
    transition: transform 0.3s ease;
    transform-origin: center;
}

.glassmorphism-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 0;
    border-radius: 15px;
}

.glassmorphism-card:hover {
    transform: scale(1.05);
}

.glassmorphism-card * {
    position: relative;
    z-index: 1; /* Keeps text above blur layer */
}




.social-container {
    display: flex;
    justify-content: center;
    gap: 2rem; /* Space between icons */
    margin-top: 2rem;
    align-items: center;
}

.social-icon {
    font-size: 3rem;
    transition: transform 0.3s ease;
    cursor: pointer;
    color: white; /* Set icon color to white for monochromatic effect */
    position: relative;
}

.discord-icon i,
.github-icon i {
    color: white; /* Set both icons to white for monochromatic look */
}

.social-icon:hover {
    transform: scale(1.1);
}

.language-usage {
    margin: 2rem auto;
    max-width: 600px;
    text-align: center;
    color: white;
}

.language-bar {
    display: flex;
    height: 20px;
    border-radius: 10px;
    overflow: visible;
    margin: 1rem 0;
    box-shadow: inset 0 0 4px rgba(0,0,0,0.3);
}

.lang {
    height: 100%;
}

.lang.css {
    background-color: #264de4; /* CSS blue */
}

.lang.html {
    background-color: #e34c26; /* HTML orange */
}

.lang.javascript {
    background-color: #f1e05a; /* JAVASCRIPT yellow */
}

.language-labels {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 0.5rem;
    font-size: 0.95rem;
}

.dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 0.5rem;
}

.dot.css {
    background-color: #264de4;
}

.dot.html {
    background-color: #e34c26;
}

.dot.javascript {
    background-color: #f1e05a;
}

