/* ===== RESET & BASE ===== */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: black;
    color: white;
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
    -ms-overflow-style: none;
    /* IE/Edge hide scroll */
    scrollbar-width: none;
    /* Firefox hide scroll */
}

body::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari hide scroll */
}

/* ===== SIDEBAR (same for all) ===== */
.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 greenyellow;
    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 greenyellow;
}

/* Logo item (menu) */
.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;
    font-family: 'Orbitron', sans-serif;
}

.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;
    /* logo hover stays white (distinct) */
    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;
}

/* Menu items (menu1) */
.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: greenyellow;
    color: black;
}

.menu1 a.no-hover:hover {
    background: transparent !important;
    color: greenyellow;
    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;
}

/* Underline animation for menu text */
.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,
.down {
    background: linear-gradient(90deg, yellow, greenyellow, green);
    color: black;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 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;
    
}

.grid {
    flex: 1;
    display: grid;
    gap: 2px;
    background: black;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
    min-height: 0;
}

.card1,
.card2,
.card3,
.card4 {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    transition: transform 0.4s ease, box-shadow 0.4s ease, filter 0.4s ease;
    filter: grayscale(100%) brightness(80%);
    overflow-y: auto;
}

.card1 {
    background-image: url("C1.jpg");
}

.card2 {
    background-image: url("C2.jpg");
}

.card3 {
    background-image: url("C3.jpg");
}

.card4 {
    background-image: url("C4.jpg");
}

@media (hover: hover) and (pointer: fine) {

    .card1:hover,
    .card2:hover,
    .card3:hover,
    .card4:hover {
        z-index: 9999;
        transform: scale(1.10);
        box-shadow: 0 0 25px greenyellow;
        filter: grayscale(0%);
    }
}

/* Card text */
.card1 h2,
.card2 h2,
.card3 h2,
.card4 h2 {
    font-weight: bold;
}

.card1 p,
.card2 p,
.card3 p,
.card4 p {
    
    font-family: 'Oswald', sans-serif;
    font-size: 12px;
    line-height: 1.6;
    color: white;
    margin: 1px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.card1 a,
.card2 a,
.card3 a,
.card4 a {
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    text-decoration: none;
    color: white;
    transition: 0.3s;
}

.card1 a:hover,
.card2 a:hover,
.card3 a:hover,
.card4 a:hover {
    color: greenyellow;
}

/* box-title style */
.box-title {
    margin: 0 0 10px;
    display: inline-block;
    border-bottom: 3px solid greenyellow;
    padding-bottom: 4px;
    color: greenyellow;
    font-family: 'Oswald', sans-serif;
}

/* ===== MOBILE OVERRIDES (max-width:768px) ===== */
@media (max-width: 768px) {
    .sidebar {
        width: 75px;
    }

    .main {
        margin-left: 75px;
        overflow-y: auto;
        /* main scroll for mobile */
    }

    /* make top and bottom sticky on mobile */
    .top {
        position: sticky;
        top: 0;
        z-index: 100;
    }

    .down {
        position: sticky;
        bottom: 0;
        z-index: 100;
    }

    /* grid: single column, auto rows based on content */
    .grid {
        display: grid;
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
        /* let cards expand naturally */
        gap: 8px;
        padding: 8px;
        min-height: auto;
        overflow-y: visible;
    }

    /* cards: no internal scroll, padding adjusted */
    .card1,
    .card2,
    .card3,
    .card4 {
        overflow-y: visible;
        padding: 20px;
        filter: grayscale(100%) brightness(80%);
    }

    .top h1 {
        font-size: 20px;
    }

    .down h1 {
        font-size: 12px;
    }

    /* ---------- explicit disable of card hover effects on mobile ---------- */
    .card1:hover,
    .card2:hover,
    .card3:hover,
    .card4:hover {
        z-index: 5;
        transform: none !important;
        /* no zoom */
        box-shadow: none !important;
        /* no glow */
        filter: grayscale(100%) brightness(80%) !important;
        /* keep original black & white */

    }

    /* optional: ensure links inside still have their own hover (kept) */
}

/* extra small adjustment */
@media (max-width: 480px) {

    .card1,
    .card2,
    .card3,
    .card4 {
        padding: 15px;
        filter: grayscale(100%) brightness(80%);
    }
}

/* hide scrollbars everywhere */
.main::-webkit-scrollbar {
    display: none;
}

.main {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ===== MOBILE OVERRIDES (max-width:768px) ===== */
@media (max-width: 768px) {


    /* make top and bottom sticky on mobile */
    .top {
        position: sticky;
        top: 0;
        z-index: 100;
    }

    .down {
        position: sticky;
        bottom: 0;
        z-index: 100;
    }

    /* grid: single column, auto rows based on content */
    .grid {
        display: grid;
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
        gap: 8px;
        padding: 8px;
        min-height: auto;
        overflow-y: visible;
    }

    /* cards: no internal scroll, padding adjusted */
    .card1,
    .card2,
    .card3,
    .card4 {
        overflow-y: visible;
        padding: 20px;
        filter: grayscale(100%) brightness(80%);
        /* keep grayscale on mobile */
        transform: none !important;
        /* prevent any zoom */
        box-shadow: none !important;
        /* remove shadow on hover */

    }

    /* remove hover effects entirely for mobile */
    .card1:hover,
    .card2:hover,
    .card3:hover,
    .card4:hover {
        transform: none !important;
        box-shadow: none !important;
        filter: brightness(80%) !important;
        filter: none !important;
        /* brightness problem fix */
    }

    /* text inside card should remain visible */
    .card1 h2,
    .card2 h2,
    .card3 h2,
    .card4 h2,
    .card1 p,
    .card2 p,
    .card3 p,
    .card4 p,
    .card1 a,
    .card2 a,
    .card3 a,
    .card4 a {
        color: white;
        /* keep text visible */
    }

    .down h1 {
        font-size: 16px;
    }
}

@media (max-width: 768px) {

    /* 🔴 REMOVE DARK FILTER (main issue) */
    .card1,
    .card2,
    .card3,
    .card4 {
        filter: none !important;
        /* brightness problem fix */
        filter: grayscale(100%) brightness(80%);
    }


    /* ✨ TEXT COLOR FIX */
    .card1 h2,
    .card2 h2,
    .card3 h2,
    .card4 h2 {
        color: #ccff00 !important;
        /* heading */
    }

    .card1 p,
    .card2 p,
    .card3 p,
    .card4 p {
        color: #ffffff !important;
        /* main text */
    }

    .card1 a,
    .card2 a,
    .card3 a,
    .card4 a {
        color: #00ffcc !important;
        /* links */
    }


}

.card1::before,
.card2::before,
.card3::before,
.card4::before {
    content: "";
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
    filter: grayscale(100%) brightness(80%);
}

/* Individual background images */
.card1::before {
    background-image: url("C1.jpg");
}

.card2::before {
    background-image: url("C2.jpg");
}

.card3::before {
    background-image: url("C3.jpg");
}

.card4::before {
    background-image: url("C4.jpg");
}

/* Remove original background from card */
.card1,
.card2,
.card3,
.card4 {
    background: none;
    position: relative;
}

/* Text ne upar lavva */
.card1 *,
.card2 *,
.card3 *,
.card4 * {
    position: relative;
    z-index: 1;
}

/* 🔥 Bullet icon for all card paragraphs */
.card1 p::before,
.card2 p::before,
.card3 p::before,
.card4 p::before {
    content: "➤"; /* tame ● pan use kari sako */
    color: greenyellow;
    margin-right: 10px;
    font-size: 14px;
}


@media (max-width: 768px) {

    .card1,
    .card2,
    .card3,
    .card4 {
        background: none;
        /* remove original */
        position: relative;
    }

    .card1::before,
    .card2::before,
    .card3::before,
    .card4::before {
        content: "";
        position: absolute;
        inset: 0;
        background-size: cover;
        background-position: center;
        z-index: 0;
        filter: grayscale(100%) brightness(80%);
    }

    .card1::before {
        background-image: url("C1.jpg");
    }

    .card2::before {
        background-image: url("C2.jpg");
    }

    .card3::before {
        background-image: url("C3.jpg");
    }

    .card4::before {
        background-image: url("C4.jpg");
    }

    /* text upar rahe */
    .card1 *,
    .card2 *,
    .card3 *,
    .card4 * {
        position: relative;
        z-index: 1
    }

}

@media (min-width: 768px) {

    .card1::before,
    .card2::before,
    .card3::before,
    .card4::before {
        filter: grayscale(100%) brightness(80%);
        transition: 0.4s;
    }

    .card1:hover::before,
    .card2:hover::before,
    .card3:hover::before,
    .card4:hover::before {
        filter: grayscale(0%) brightness(75%);
        /* ✅ color on hover */
    }

}

/* Mobile menu button */
.mobile-menu-btn {
display: none;
position: fixed;
top: 4px;
left: 8px;
font-size: 18px;
color: greenyellow;
background: black;
padding: 4px 4px;
border-radius: 8px;
z-index: 9999;
cursor: pointer;
box-shadow: 0 0 10px black;
}

/* 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 #ccff00;
    
    
}
}

@media (max-width: 768px) {

/* 🔥 sidebar open thay tyare text dekhaay */
.sidebar.active .menu span,
.sidebar.active .menu1 span {
    opacity: 1 !important;
}

}
@media (max-width: 768px) {

    /* 🔥 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);
    }

}

/* 🔥 OVERLAY BACKGROUND */
.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 open thay tyare overlay visible */
.sidebar.active ~ .overlay {
    opacity: 1;
    visibility: visible;
}
/* BACK BUTTON STYLE */
.back-btn {
    display: none;
    margin: 20px auto;
    padding: 8px 15px;
    width: fit-content;   /* 🔥 main fix (auto size) */
    text-align: center;
    background: greenyellow;
    color: black;
    border-radius: 8px;  /* thodu rounded look */
    font-weight: bold;
    cursor: pointer;
}

/* Mobile view */
@media (max-width: 768px) {

    .back-btn {
        display: block;
    }

    /* ❌ menu button hide when sidebar open */
    .sidebar.active ~ .mobile-menu-btn {
        display: none;
    }
}



@media (max-width: 768px) {

    .sidebar {
        overflow-y: auto;   /* scroll allow */
        overflow-x: hidden;
    }

}

@media (max-width: 768px) {

    .back-btn {
        display: block;
        margin: 15px 10px;
        padding: 10px;
        width: calc(100% - 20px);  /* perfect fit */
        text-align: center;
        background: greenyellow;
        color: black;
        border-radius: 10px;
        font-weight: bold;
        cursor: pointer;
    }

}

@media (max-width: 768px) {

    .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 */
    }
}

