﻿/* ---------------- NAVBAR ---------------- */
.nav1 {
    width: 100%;
    background: linear-gradient(90deg, #1a1a2e, #22253c);
    height: 50px;
    position: fixed;
    top: 0;
    left: 0;
    line-height: 50px;
    font-family: 'SHABI', sans-serif;
    font-size: 16px;
    text-align: center;
    z-index: 900;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
}

/* Logo adjustments */
.nav1 a img {
    transition: transform 0.4s ease, filter 0.4s ease;
}
.nav1 a img:hover {
    transform: scale(1.1);
    filter: brightness(1.2);
}

/* ---------------- HAMBURGER ---------------- */
.menu-tab {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    transition: all 0.4s ease-in-out;
}

.menu-tab div {
    width: 28px;
    height: 3px;
    border-radius: 5px;
    background: linear-gradient(90deg, #00c6ff, #0072ff);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    box-shadow: 0 0 5px rgba(0, 198, 255, 0.6);
}

/* Hover glow */
.menu-tab:hover div {
    background: linear-gradient(90deg, #36d1dc, #5b86e5);
    box-shadow: 0 0 10px rgba(54, 209, 220, 0.8);
    transform: scaleX(1.1);
}

/* Active transformation (X) */
.menu-tab.active #one {
    transform: translateY(8px) rotate(45deg);
    background: linear-gradient(90deg, #000000, #0072ff);
    z-index: 1000000;
}
.menu-tab.active #two {
    opacity: 0;
    transform: scaleX(0);
}
.menu-tab.active #three {
    transform: translateY(-8px) rotate(-45deg);
    background: linear-gradient(
64deg, #36d1dc, #5b86e5);
    z-index: 1000000;
}

/* ---------------- SLIDE MENU ---------------- */
.menu-hide {
    width: 35%;
    right: -35%;
    height: 100vh;
    position: fixed;
    top: 0;
    z-index: 999;
    transition: all 0.6s ease-in-out;
    background: rgba(10, 12, 25, 0.95);
    backdrop-filter: blur(6px);
    border-left: 1px solid rgba(0,198,255,0.2);
    display: flex;
    flex-direction: column;
    padding-top: 60px;
}

.menu-hide.show {
    right: 0;
}

/* Menu items styling (smaller & blue gradient) */
.menu-hide nav ul li {
    text-align: center;
    margin: 8px 0;
    position: relative;
}

.menu-hide nav ul li a {
    display: block;
    width: 85%;
    margin: 0 auto;
    padding: 10px 0;
    font-size: 1.4rem;
    font-weight: 500;
    border-radius: 10px;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(135deg, #00c6ff, #0072ff);
    box-shadow: 0 3px 10px rgba(0,198,255,0.4);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
    font-family: danamedium;
}

/* Hover effect for menu items */
.menu-hide nav ul li a:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(0,198,255,0.6);
    background: linear-gradient(135deg, #36d1dc, #5b86e5);
}

/* Optional sliding shine animation */
.menu-hide nav ul li a::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, rgba(255,255,255,0.15), rgba(255,255,255,0.3), rgba(255,255,255,0.15));
    transform: skewX(-20deg);
    transition: all 0.5s ease;
}
.menu-hide nav ul li a:hover::before {
    left: 100%;
}

/* Image menu item */
.menu-hide nav ul li a img {
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, filter 0.3s ease;
}
.menu-hide nav ul li a img:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
}

/* ---------------- MEDIA QUERY ---------------- */
@media only screen and (max-width: 500px) {
    .menu-hide {
        width: 80%;
        right: -80%;
    }
    .menu-hide nav ul li a {
        font-size: 1.2rem;
        padding: 8px 0;
    }
}
