
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: black;
    color: white;
    font-family: 'Oswald', sans-serif;
    overflow-x: hidden;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

body::-webkit-scrollbar {
    display: none;
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 75px;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-right: 2px solid aqua;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 24px;
    transition: width 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    z-index: 1000;
    overflow: hidden;
    box-shadow: 0 0 8px rgba(204, 255, 0, 0.2);
}

.sidebar:hover {
    width: 250px;
    box-shadow: 0 0 20px aqua;
}

.menu {

    display: flex;
    flex-direction: column;
    width: 100%;
}

.menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 10px;
    color: white;
    text-decoration: none;
    transition: 0.3s;
    font-size: 10px;
}

.menu a img {
    width: 50px;
    height: 50px;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease, filter 0.3s ease;
}

.menu a:hover {
    background: white;
    color: black;
}

.menu a:hover img {
    filter: brightness(0);
    transform: scale(1.2);
}

.menu span {
    height: 25px;
    opacity: 0;
    white-space: nowrap;
    transition: opacity 0.3s ease;
    font-size: 10px;
    font-family: 'Orbitron', sans-serif;
}

.sidebar:hover .menu span {
    opacity: 1;
}

.menu span h1 {
    transition: opacity 0.3s ease;
    font-size: 18px;
    font-family: 'Orbitron', sans-serif;
    margin: 0;
}

.menu1 {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.menu1 a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 22px;
    color: white;
    text-decoration: none;
    transition: 0.5s;
}

.menu1 a img {
    min-width: 25px;
    width: 25px;
    height: 25px;
    filter: brightness(0) invert(1);
    transition: transform 0.5s ease, filter 0.5s ease;
}

.menu1 a:hover {
    background: aqua;
    color: black;
}

.menu1 a.no-hover:hover {
    background: transparent !important;
    color: aqua;
    cursor: default;
}

.menu1 a.no-hover:hover img {
    filter: brightness(0) invert(1) !important;
    transform: none !important;
}

.menu1 a:hover span p {
    color: black;
}

.menu1 a:hover img {
    filter: brightness(0);
    transform: scale(1.2);
}

.menu1 span {
    opacity: 0;
    white-space: nowrap;
    transition: opacity 0.3s ease;
}

.sidebar:hover .menu1 span {
    opacity: 1;
}

.munutext {
    color: white;
    font-size: 15px;
    position: relative;
    display: inline-block;
    cursor: pointer;
    margin: 0;
}

.munutext:hover {
    color: black;
}

.munutext::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0%;
    height: 2px;
    background: black;
    transition: width 0.3s ease;
}

.munutext::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0%;
    height: 2px;
    background: black;
    transition: width 0.3s ease;
}

.menu1 a:hover .munutext::after {
    width: 100%;
}

.main {
    margin-left: 75px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: black;
}

.top {
    background: linear-gradient(90deg, blue, aqua, purple);
    color: black;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.down {
    background: linear-gradient(90deg, blue, aqua, purple);
    color: black;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.top {
    top: 0;
}

.down {
    bottom: 0;
}


.top h1 {
    color: black;
    font-size: 30px;
    margin: 0;
    font-family: 'Orbitron', sans-serif;
    
}

.down h1 {
    color: black;
    font-size: 20px;
    margin: 0;
    font-family: 'Oswald', sans-serif;
    text-align: center;
    padding: 0 10px;
    
}

p {
    color: white;
    font-size: 14px;
    margin: 0;
    font-family: 'Oswald', sans-serif;
}

.grid {

    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    background-image: url("itx-about-bg.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow-y: auto;
    padding: 30px 0;
    align-items: center;
    scrollbar-width: none;
    -ms-overflow-style: none;
    position: relative;
}

.grid::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.grid::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}


.card {
    margin: 10px;
    width: 65%;
    border-radius: 12px;
    border: 1px solid rgba(0, 150, 255, 0.50);
    display: flex;
    flex-direction: column;
    padding: 25px 50px;
    transition: all 0.35s ease;
}

.card:hover {
    background: rgba(0, 150, 255, 0.15);
    border: 1px solid rgba(0, 200, 255, 0.6);
    background: rgba(0, 150, 255, 0.1);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.box-title {
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0 10px;
    display: inline-block;
    border-bottom: 3px solid white;
    padding-bottom: 4px;
    font-family: 'Oswald', sans-serif;
}

.box-title:hover {
    color: aqua;
}


.card h2 {
    font-size: 24px;
}

.card p {
    margin: 3px;
    color: rgba(255, 255, 255, 0.6);
    transition: 0.3s;
}

.card:hover p {
    color: white;
}

.card a {
    font-weight: bold;
    font-size: 14px;
    text-decoration: none;
    color: white;
    transition: 0.3s;
}

.card a:hover {
    color: aqua;
}


.card:hover p {
    color: white;
}

.card:hover .box-title {
    color: aqua;
    border-bottom: 3px solid aqua;
}

.card p,
.box-title {
    transition: color 0.3s ease, border-color 0.3s ease;
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    position: fixed;
    top: 4px;
    left: 8px;
    font-size: 18px;
    color: aqua;
    background: black;
    padding: 4px 4px;
    border-radius: 8px;
    z-index: 9999;
    cursor: pointer;
    box-shadow: 0 0 10px black;
}

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 9998;
}

.sidebar.active~.overlay {
    opacity: 1;
    visibility: visible;
}

.back-btn {
    display: none;
    margin: 20px auto;
    padding: 8px 15px;
    width: fit-content;
    text-align: center;
    background: aqua;
    color: black;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
}

.card p {
    color: white;
}

.card .box-title {
    color: aqua;
    border-bottom: 3px solid aqua;
}

.card p::before {
    content: "➤"; /* tame ● pan use kari sako */
    color: #00ccff;
    margin-right: 8px;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width:768px) {

    body {
        overflow: auto;
        overflow-y: auto;
        overflow-x: hidden;
    }


    .grid {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 8px;
    }


    .top {
        position: sticky;
        top: 0;
        z-index: 100;
    }

    .down {
        position: sticky;
        bottom: 0;
        z-index: 100;
    }

    .down h1 {
        font-size: 16px;
    }


    .grid {
        overflow-y: auto;
    }

    .card {
        width: 90%;
        text-align: center;
        padding: 20px;
    }

    .about {
        text-align: center;
    }

}


::-webkit-scrollbar {
    display: none;
}

html {
    scrollbar-width: none;
}

body::-webkit-scrollbar {
    display: none;
}



@media (min-width:769px) {

    .card:hover {
        transform: scale(1.10);
        box-shadow: 0 0 25px aqua;
        background: rgba(255, 255, 255, 0.12);
    }

    .card:hover p {
        color: white;
    }

    .card:hover .box-title {
        color: aqua;
        border-bottom: 3px solid aqua;
    }

    .card p {
        color: rgba(255, 255, 255, 0.6);
    }

    .card .box-title {
        color: white;
        border-bottom: none;
    }

    .card:hover {
        transform: scale(1.05);
        box-shadow: 0 0 25px rgba(0, 255, 255, 0.9);
        background: rgba(255, 255, 255, 0.12);
    }

    .card:hover p {
        color: white;
    }

    .card:hover .box-title {
        color: aqua;
        border-bottom: 3px solid aqua;
    }

}

/* Mobile view */
@media (max-width: 768px) {

    .mobile-menu-btn {
        display: block;
    }

    .sidebar {
        transform: translateX(-100%);
        width: 100%;
        transition: 0.4s;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .main {
        margin-left: 0;
    }

    .sidebar:hover {
        width: 100%;
        box-shadow: 0 0 20px aqua;


    }

    /* 🔥 sidebar open thay tyare text dekhaay */
    .sidebar.active .menu span,
    .sidebar.active .menu1 span {
        opacity: 1 !important;
    }

    /* 🔥 sidebar content center alignment */
    .sidebar {
        display: flex;
        flex-direction: column;
        align-items: center;
        /* horizontal center */
        justify-content: flex-start;
        text-align: center;
        border-right: 2px solid #000000;
    }

    .menu,
    .menu1 {
        width: 100%;
    }

    .menu a,
    .menu1 a {
        justify-content: flex-start;
        /* left align */
        width: 100%;
        /* full width */
        padding: 12px 20px;

        border-radius: 8px;
        justify-content: center;
        /* icon + text center */
        width: 80%;
        /* thodu margin left-right */
        margin: 1px auto;
        /* main */
        border-radius: 10px;
    }

    .menu a:hover {
        background: rgb(255, 0, 0);
    }

    /* 🔥 Sidebar open thay tyare logo white */
    .sidebar.active .menu a {
        background: white;
        color: black;
    }

    .sidebar.active .menu a img {
        filter: brightness(0);
    }

    .back-btn {
        display: block;
    }

    /* ❌ menu button hide when sidebar open */
    .sidebar.active~.mobile-menu-btn {
        display: none;
    }

    .sidebar {
        overflow-y: auto;
        /* scroll allow */
        overflow-x: hidden;
    }

    .back-btn {
        display: block;
        margin: 15px 10px;
        padding: 10px;
        width: calc(100% - 20px);
        /* perfect fit */
        text-align: center;
        background: aqua;
        color: black;
        border-radius: 10px;
        font-weight: bold;
        cursor: pointer;
    }


    .sidebar {
        overflow-y: auto;
        overflow-x: hidden;

        /* 🔥 scrollbar hide */
        -ms-overflow-style: none;
        /* IE/Edge */
        scrollbar-width: none;
        /* Firefox */
    }

    .sidebar::-webkit-scrollbar {
        display: none;
        /* Chrome/Safari */
    }


}