/* ========================================
   PREMIUM SIDEBAR MENU - DARK GLASSMORPHISM THEME
   ======================================== */

/* Side Menu Container */
.side-menu {
    position: fixed;
    top: 0;
    right: -350px;
    width: 350px;
    height: 100%;
    background: linear-gradient(180deg, #0a0a1a 0%, #1a1a3a 50%, #0d0d2b 100%);
    box-shadow: -15px 0 50px rgba(0, 0, 0, 0.5);
    z-index: 1060;
    transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    overflow-y: auto;
    padding-top: 100px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.side-menu.active {
    right: 0;
}

/* Decorative gradient blob */
.side-menu::before {
    content: '';
    position: absolute;
    top: 10%;
    left: -50%;
    width: 200%;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.side-menu::after {
    content: '';
    position: absolute;
    bottom: 10%;
    right: -30%;
    width: 150%;
    height: 200px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

/* Overlay */
.side-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 1055;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.side-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Close Button */
.side-menu-close {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    cursor: pointer;
    z-index: 1070;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.side-menu-close:hover {
    transform: rotate(90deg) scale(1.1);
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    border-color: transparent;
}

.side-menu-close:focus {
    outline: none;
}

.side-menu-close span {
    position: absolute;
    width: 50%;
    height: 2px;
    background: linear-gradient(90deg, #ffd700, #ff8c00);
    display: block;
    left: 25%;
    top: 50%;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.side-menu-close:hover span {
    background: #000;
}

.side-menu-close span:nth-child(1) {
    transform: translateY(-50%) rotate(45deg);
}

.side-menu-close span:nth-child(2) {
    transform: translateY(-50%) rotate(-45deg);
}

/* Menu Content */
.side-menu-content {
    padding: 0 35px 35px;
    position: relative;
    z-index: 2;
}

/* Navigation Links */
.side-menu-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.side-menu-nav li {
    margin-bottom: 10px;
    opacity: 0;
    transform: translateX(30px);
    animation: slideInRight 0.5s forwards;
}

.side-menu-nav li:nth-child(1) {
    animation-delay: 0.1s;
}

.side-menu-nav li:nth-child(2) {
    animation-delay: 0.2s;
}

.side-menu-nav li:nth-child(3) {
    animation-delay: 0.3s;
}

.side-menu-nav li:nth-child(4) {
    animation-delay: 0.4s;
}

.side-menu-nav li:nth-child(5) {
    animation-delay: 0.5s;
}

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.side-menu-nav a {
    display: block;
    padding: 18px 25px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.side-menu-nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #ffd700, #ff8c00);
    transform: scaleY(0);
    transition: transform 0.3s ease;
    border-radius: 0 2px 2px 0;
}

.side-menu-nav a:hover::before,
.side-menu-nav a.active::before {
    transform: scaleY(1);
}

.side-menu-nav a:hover,
.side-menu-nav a.active {
    color: #ffd700;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 140, 0, 0.05));
    border-color: rgba(255, 215, 0, 0.2);
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Contact Section */
.side-menu-contact {
    margin-top: 40px;
    padding: 30px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s forwards;
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.side-menu-contact h5 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    position: relative;
    padding-bottom: 12px;
}

.side-menu-contact h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #ffd700, #ff8c00);
    border-radius: 1.5px;
}

.side-menu-contact p {
    margin-bottom: 12px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.7);
}

.side-menu-contact i {
    margin-right: 15px;
    color: #ffd700;
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

/* Social Links */
.side-menu-social {
    display: flex;
    margin-top: 25px;
    gap: 15px;
}

.side-menu-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #ffd700;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.side-menu-social a:hover {
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    color: #000;
    border-color: transparent;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.3);
}

/* ========================================
   MENU TOGGLE BUTTON - MODERN ANIMATED DESIGN
   ======================================== */
.navbar-toggler {
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(10px);
    padding: 0;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    position: relative;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar-toggler:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 140, 0, 0.1));
    border-color: rgba(255, 215, 0, 0.3);
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.2);
}

.navbar-toggler:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
}

/* Modern Staggered Lines */
.navbar-toggler-icon {
    position: relative;
    width: 24px;
    height: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
    content: '';
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, #ffd700, #ff8c00);
    transition: all 0.3s ease;
}

.navbar-toggler-icon::before {
    width: 100%;
}

.navbar-toggler-icon::after {
    width: 60%;
}

/* Middle bar using box-shadow trick on the icon itself */
.navbar-toggler-icon {
    background: linear-gradient(90deg, #ffd700, #ff8c00);
    background-size: 80% 3px;
    background-repeat: no-repeat;
    background-position: right center;
}

/* Hover animation - bars expand */
.navbar-toggler:hover .navbar-toggler-icon::before {
    width: 70%;
}

.navbar-toggler:hover .navbar-toggler-icon::after {
    width: 100%;
}

.navbar-toggler:hover .navbar-toggler-icon {
    background-size: 100% 3px;
}

/* ========================================
   RESPONSIVE STYLES
   ======================================== */
@media (min-width: 992px) {

    .side-menu,
    .side-menu-overlay,
    .navbar-toggler {
        display: none;
    }
}

@media (max-width: 991px) {
    .navbar-collapse {
        display: none !important;
    }

    .navbar-toggler {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .side-menu {
        width: 100%;
        right: -100%;
    }

    .side-menu-content {
        padding: 0 25px 25px;
    }

    .side-menu-nav a {
        padding: 15px 20px;
        font-size: 1rem;
    }

    .side-menu-contact {
        padding: 25px;
    }

    .navbar-toggler {
        width: 45px;
        height: 45px;
        margin-right: 10px;
    }
}