/* Loading */
@keyframes rotateWithPause {
    0% {
        transform: rotate(0deg);
    }

    66.67% {
        transform: rotate(360deg);
    }

    100% {
        transform: rotate(360deg);
    }
}
/* Added a pulsing glow keyframe for the loader */
@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.4);
    }

    50% {
        box-shadow: 0 0 25px 8px rgba(255, 255, 255, 0.8);
    }
}

loading {
    height: 100%;
    overflow: hidden;
    background: #00000080; /* This overlay is fine */
    z-index: 999999;
    display: block;
    top: 0px;
    position: absolute;
    left: 0;
    width: 100vw;
    backdrop-filter: blur(8px);
}

.loadlogo {
    left: 0;
    right: 5%;
    position: relative;
    margin: 0 auto;
    top: 40vh;
    transform: translateY(-50%);
    height: 256px;
    width: 256px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.6);
    /* Added pulseGlow animation */
    box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.4);
    animation: rotateWithPause 2.5s infinite, pulseGlow 2.5s infinite ease-in-out;
}

/* Fonts, and main parts */
@font-face {
    font-family: SegoeVista;
    src: url("../fonts/segoeui.ttf");
}

a, h1, p, button, h3, li, #sidetime, #bloglist {
    font-family: SegoeVista;
    font-weight: 400;
    transition: 0.8s;
}

body {
    overflow: hidden;
    background: radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.5), transparent 40%), linear-gradient(160deg, #38c0ff 0%, #0078d7 100%);
    background-blend-mode: screen;
}

    /* soft floating highlights using pseudo-elements on body */
    body::before,
    body::after {
        content: '';
        position: absolute;
        width: 120%;
        height: 120%;
        top: -10%;
        left: -10%;
        pointer-events: none;
        mix-blend-mode: screen;
        animation: float 20s linear infinite alternate;
    }

    /* Made highlights slightly brighter to work on the new background */
    body::before {
        background: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.25), transparent 60%);
    }

    body::after {
        background: radial-gradient(circle at 80% 70%, rgba(135, 206, 250, 0.2), transparent 60%);
        animation-duration: 25s;
    }

/* subtle floating animation */
@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(20px, 15px) rotate(5deg);
    }

    100% {
        transform: translate(-20px, -15px) rotate(-5deg);
    }
}

container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    padding: 20px;
    box-sizing: border-box;
    gap: 10px;
    transition: 0.5s;
}
container.hidden {
    interactivity: inert;
    opacity: 0;
}
@media (pointer:none), (pointer:coarse) {
    #sidebar {
        position: fixed !important;
        top: 0px;
        left: 0px;
        width: 100% !important;
        height: 10% !important;
        border-radius: 0px !important;
        box-shadow: none !important;
        border: none !important;
        padding: 0px !important;
    }

    #main {
        position: fixed !important;
        bottom: 0px;
        left: 0px;
        width: 100% !important;
        height: 90% !important;
        border-radius: 0px !important;
        box-shadow: none !important;
        padding: 0px !important;
    }
        body::before, body::after {
        content: unset !important;
    }

    .containerhidebtn {
        height: 32px;
    }

    .projecticons {
        width: 94vw !important;
    }

    #sidebar br {
        display: none
    }

    .tab {
        padding: 20px;
    }

    .sidelogo {
        gap: 14px !important;
        left: 8px;
        top: 8px;
        position: relative;
    }

        .sidelogo > img {
            height: 100px !important;
            width: 100px !important;
        }

    #sidebar button {
        left: 10px;
        position: relative
    }

    .mwwgif, #sidetime, .blogprofile > br {
        display: none;
    }

    a, h1, p, button, h3, li, #sidetime, #bloglist {
        font-size: 35px !important;
    }

    .blogpfp {
        height: 64px !important;
        width: 64px !important;
    }

    .blogusername {
        bottom: 35px !important;
        left: 4px !important;
        background: transparent !important;
        color: #1a1a1a !important;
        background-clip: unset !important;
        margin: 10px 0 0 0;
    }

    .post {
        margin: 0 0 15px 0px !important;
    }

    .postContent {
        bottom: 2px !important;
        left: 8px !important;
        background: transparent !important;
        color: #1a1a1a !important;
        background-clip: unset !important;
        margin: 10px 0 0 0;
    }

    .timestamp {
        right: 70px !important;
        left: unset !important;
        bottom: 12px !important;
        background: transparent !important;
        color: #1a1a1a !important;
        background-clip: unset !important;
        margin: 10px 0 0 0;
    }

    #main p, #main li {
        background: transparent !important;
        color: #1a1a1a !important;
        background-clip: unset !important;
        margin: 10px 0 0 0;
    }
}

#sidebar {
    position: relative;
    width: 8%;
    height: 40vh;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.1) 100%), rgba(255, 255, 255, 0.2);
    padding: 20px;
    color: cadetblue;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(12px) saturate(180%);
    transition: all 0.3s ease;
}


    #sidebar:hover {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.15) 100%), rgba(255, 255, 255, 0.25);
        box-shadow: 0 12px 36px rgba(0, 0, 0, 0.3), inset 0 1px 2px rgba(255, 255, 255, 0.5);
    }

    #sidebar button {
        margin-top: 2px;
        right: 10px;
        border-bottom-left-radius: 4px;
        border-bottom-right-radius: 4px;
        background: none;
        color: #004d7f;
        text-shadow: none;
        border: none;
        cursor: pointer;
        transition: text-shadow 0.2s ease, color 0.2s ease;
        position: relative;
    }

        #sidebar button:hover,
        #sidebar button.hover {
            text-shadow: 0 0 8px #004d7f; 
            text-decoration: none;
            cursor: default;
        }

        #sidebar button.active {
            text-shadow: 0 0 10px black; 
            color: #000000; 
            text-decoration: none;
        }

#sidetime {
    position: absolute;
    bottom: 2px;
    text-align: center;
    left: 0;
    right: 0;
    background: repeating-linear-gradient(to bottom, #000000, #004d7f);
    color: transparent;
    background-clip: text;
    text-shadow: 0 0 4px #1a1a1a;
}

#main {
    position: relative;
    width: 30%;
    height: 40vh;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.1) 100%), rgba(255, 255, 255, 0.2);
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(12px) saturate(180%);
    transition: all 0.3s ease;
}

    #main:hover {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.15) 100%), rgba(255, 255, 255, 0.25);
        box-shadow: 0 12px 36px rgba(0, 0, 0, 0.3), inset 0 1px 2px rgba(255, 255, 255, 0.5);
    }


.tab {
    height: 99%;
    overflow-y: auto;
    display: none;
}

    .tab.active {
        display: block;
    }

#main p, #main li {
    color: #1a1a1a;
    margin: 10px 0 0 0;
    text-shadow: 0px 0px 4px #000000;
}

    #main li::marker {
        color: #1a1a1a;
    }

#blogtab {
    overflow: hidden;
}

.title {
    margin-top: 0;
    background: linear-gradient(to bottom, #1a1a1a, #004d7f);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 4px #000000;
}

.sidelogo {
    gap: 6px;
    display: flex;
    right: 10px;
    position: relative;
}

    .sidelogo > img {
        height: 48px;
        width: 48px;
        transition: 0.8s;
        border-radius: 50%;
        border: 2px solid rgba(255, 255, 255, 0.6);
    }

        .sidelogo > img:hover {
            transform: scale(1.10) rotate(359.9deg);
        }

    .sidelogo > h3 {
        top: -8px;
        position: relative;
        background: repeating-linear-gradient(to bottom, #1a1a1a, #004d7f);
        color: transparent;
        background-clip: text;
        white-space: nowrap;
        text-shadow: 0 0 4px #1a1a1a;
    }

.hover img {
    transition: 0.8s;
}

    .hover img:hover {
        transform: scale(1.10);
    }

button {
    border: none;
    background: transparent;
    transition: 0.8s;
    color: #004d7f;
    text-shadow: none;
}

    button:hover, button.hover {
        text-shadow: 0 0 8px #004d7f;
    }

    button.active {
        text-decoration: underline;
        background: linear-gradient(to bottom, transparent, transparent, cadetblue);
        color: #000000; 
    }

.mwwgif {
    position: absolute;
    bottom: 4px;
    left: 0;
    right: 0;
    margin: 0 auto;
    box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.4);
}

/* projects page */
.projecticons {
    width: 90%;
    overflow-x: auto;
    overflow-y: hidden;
    position: fixed;
    white-space: nowrap;
    padding: 10px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: saturate();
    transition: 0.8s;
    margin-top: 10px;
}

    .projecticons a {
        display: inline-block;
        text-align: center;
        padding: 5px;
        margin-right: 10px;
        text-decoration: none;
        color: #1a1a1a; 
        font-family: SegoeVista;
        border-radius: 16px;
        transition: 0.8s;
        cursor: default;
    }

        .projecticons a p {
            margin: 0 0 0 0 !important;
            text-shadow: 0 0 8px #000000 !important;
        }

        .projecticons a:hover p {
            text-shadow: 0 0 4px #000000 !important;
        }

        .projecticons a.knetwork img {
            box-shadow: 0 0 12px 6px rgba(128, 0, 128, 0.5)
        }

       /* .projecticons a.contricon:hover {
            background: linear-gradient(to bottom, transparent, transparent, rgba(0, 110, 255, 0.705)) !important;
        }*/

        .projecticons a:hover img {
            transform: scale(1.10);
        }
        /* Style for the images */
        .projecticons a.skyos > img {
            height: 64px;
            width: 44px;
        }

        .projecticons a.knetwork > img {
            border-radius: 8px;
        }

    .projecticons img {
        height: 64px;
        width: 64px;
        transition: 0.8s;
        border-radius: 8px;
    }

    .projecticons a:last-child {
        margin-right: 0;
    }


/* Blog page */
#bloglist {
    overflow-x: hidden;
    height: 70%;
    overflow-y: scroll;
    width: 99%;
    bottom: 10px;
    position: relative;
}

.post {
    margin: 0 0 5px 0px;
    width: calc(100% - 11%);
    padding: 10px;
    color: cadetblue;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 28px;
    /* background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.1) 100%), rgba(255, 255, 255, 0.2); */
    box-shadow: 0 8px 14px rgba(0, 0, 0, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.4);
    backdrop-filter: saturate();
}

    .post p, .post strong, .post a, .post .timestamp, .post .blogusername {
        color: #1a1a1a;
        text-shadow: 0 1px 1px rgba(255, 255, 255, 0.6);
    }

    .post > p {
        margin: 5px;
    }

.blogprofile {
    left: 5px;
    position: relative;
    top: 3px;
}

.blogusername {
    position: relative;
    bottom: 20px;
    left: 4px;
}

.blogpfp {
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
}

.postContent {
    bottom: 14px;
    position: relative;
    left: 8px;
}

.timestamp {
    position: relative;
    left: 40px;
    display: inline-block;
    vertical-align: middle;
    white-space: nowrap;
    bottom: 28px;
}

.bubbles {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
    backdrop-filter: blur(8px)
}

.bubble {
    position: absolute;
    bottom: -10%;
    border-radius: 50%;
    /* Realistic soap bubble gradient */
    background: radial-gradient(circle at 30% 30%, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(255, 255, 255, 0.4) 20%, 
        rgba(255, 255, 255, 0.1) 50%, 
        rgba(255, 255, 255, 0.05) 80%,
        rgba(255, 255, 255, 0.8) 100%
    );
    box-shadow: 
        inset 0 0 10px rgba(255, 255, 255, 0.5),
        0 0 15px rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
    opacity: 0.9;
    animation: floatUp 8s linear forwards;
}
.containerhidebtn {
        top: 8px;
    position: absolute;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.4) 20%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.05) 80%, rgba(255, 255, 255, 0.8) 100%);
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.5), 0 0 15px rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 14px;
    transform: scale(1.5);
    color: transparent;
}

@keyframes floatUp {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0;
    }

    10% {
        opacity: 0.9;
    }

    90% {
        opacity: 0.9;
    }
        99.5% {
        opacity: 0.9;
    }
            99.9% {
        opacity: 0.5;
    }

    100% {
        transform: translateY(-110vh) scale(1.1);
        opacity: 0;
    }
}





