/* == Navbar Styles == */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 30px;
    background-color: var(--background-color-3);
    border-bottom: 1px solid var(--primary-color);
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(37, 92, 153, 1);
    height: 80px;
}

.navbar .logo {
    max-height: 60px;
    height: auto;
    width: auto;
    display: block;
    transition: opacity 0.3s ease;
    object-fit: contain;
    padding-left: 50px;
}

.logo.dark-mode {
    display: none;
}

body.dark-mode .logo.light-mode {
    display: none;
}

body.dark-mode .logo.dark-mode {
    display: block;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--black-7);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 0;
    display: inline-block;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.nav-item:hover > .nav-link i {
    transform: rotate(180deg);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    padding: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    min-width: 200px;
    border-radius: 8px;
}

.nav-item:hover > .dropdown-menu {
    display: block;
}

/* Prevent dropdown links from wrapping */
/* Add vertical spacing between dropdown items */
.dropdown-menu a {
    white-space: nowrap;
    display: block;
    padding: 5px 0;
    /* You can tweak this for more/less spacing */
}


/* Mega Menu Wrapper (centered only for mega menu) */
.dropdown-menu.mega-menu-wrapper {
    left: 180%;
    transform: translateX(-50%);
    padding: 0;
    background: transparent;
    box-shadow: none;
    border: none;
    min-width: unset;
}

.mega-menu {
    margin-top: 10px;
    background: var(--background-color-3);
    display: flex;
    gap: 48px;
    padding: 25px 50px 25px 30px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    width: 1000px;
    max-width: 100%;
    box-sizing: border-box;
    border-top: 4px solid var(--primary-color);
}

.mega-column {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.mega-column a {
    position: relative;
    display: inline-flex;
    /* ensures width matches content */
    text-decoration: none;
    color: var(--black-7);
    margin-bottom: 8px;
    font-weight: 500;
    padding: 5px;
    width: max-content;
    transition: color 0.3s ease;
}

.mega-column a::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    height: 2px;
    background-color: var(--primary-color);
    width: 0;
    transition: width 0.3s ease;
}

.mega-column a:hover::after {
    width: 100%;
}

.mega-column a:hover {
    color: var(--primary-color);
}

/* First column (image column) */
.mega-column.image-column {
    flex: 0 0 auto;
    max-width: 260px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Mega menu image */
.mega-img {
    width: 100%;
    max-width: 240px;
    height: auto;
    border-radius: 8px;
    display: block;
}

/* == Single Column Dropdown Menus == */
.dropdown-menu.single-column-menu {
    background: var(--background-color-3);
    padding: 25px 30px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border-top: 4px solid var(--primary-color);
}

.dropdown-menu.single-column-menu a {
    position: relative;
    display: inline-flex;
    text-decoration: none;
    color: var(--black-7);
    margin-bottom: 8px;
    font-weight: 500;
    padding: 5px;
    width: max-content;
    transition: color 0.3s ease;
}

.dropdown-menu.single-column-menu a::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    height: 2px;
    background-color: var(--primary-color);
    width: 0;
    transition: width 0.3s ease;
}

.dropdown-menu.single-column-menu a:hover::after {
    width: 100%;
}

.dropdown-menu.single-column-menu a:hover {
    color: var(--primary-color);
}

.btn.navbar-contact-btn {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn.navbar-contact-btn-hvr:hover {
    background-color: var(--primary-color);
    border: 2px solid var(--primary-white);
    color: var(--primary-white);
    font-weight: 600;
    box-shadow: 0 0 12px 4px rgba(0, 0, 0, 0.6);
}

.btn.navbar-contact-btn i {
    margin-right: 5px;
    font-size: 13px;
    animation: navbar-up-icon 2s infinite ease-in-out;
}

@keyframes navbar-up-icon {
    0% {
        transform: translate(-5px, 0px);
        opacity: 0.8;
    }

    50% {
        transform: translate(0px, -5px);
        opacity: 1;
    }

    100% {
        transform: translate(-5px, 0px);
        opacity: 0.8;
    }
}


/* Navbar Right Side */
.navbar-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

#theme-toggle,
#menu-toggle {
    background: none;
    border: none;
    font-size: 25px;
    cursor: pointer;
}

#theme-toggle i {
    transition: transform 0.3s ease;
}

#theme-icon {
    background: var(--black-1);
    color: var(--white-color-12);
    font-size: 25px;
    border: 3px solid var(--white-color-12);
    border-radius: 50%;
    padding: 10px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 12px 4px rgba(0, 0, 0, 0.9);
}

#theme-icon:hover {
    color: var(--primary-color);
    border: 3px solid var(--primary-color);
    transition: background-color 0.3s ease;
}


#theme-toggle {
    background: none !important;
    background-color: transparent !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
}



/* Unified Side Menu Button */
.sidemenu_btn {
    width: 45px;
    height: auto;
    padding: 6px;
    margin-left: 8px;
    cursor: pointer;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.3s linear;
}


/* Bars */
.sidemenu_btn span {
    height: 4px;
    width: 100%;
    background: var(--primary-color);
    display: block;
    margin: auto;
    border-radius: 2px;
    transition: 0.5s ease;
}

/* Spacing between bars */
.sidemenu_btn span:nth-child(2) {
    margin: 5px 0;
}

/* Hover effect */
.sidemenu_btn:hover span:first-child,
.sidemenu_btn:hover span:last-child {
    width: 60%;
    background-color: var(--tertiary-color);
}

.sidemenu_btn:hover span:nth-child(2) {
    background-color: var(--primary-color);
}

/* Animate to "X" when open */
.sidemenu_btn.open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.sidemenu_btn.open span:nth-child(2) {
    opacity: 0;
}

.sidemenu_btn.open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}


/* == Side Menu Styles == */

/*close button*/
#close_side_menu {
    position: absolute;
    top: 30px;
    right: 30px;
    z-index: 1001;
    width: 50px;
    height: 50px;
    cursor: pointer;
}

#close_side_menu::before,
#close_side_menu::after {
    content: '';
    position: absolute;
    left: 12px;
    top: 24px;
    width: 26px;
    height: 3px;
    background-color: var(--primary-white);
    transition: 0.3s ease;
}

#close_side_menu::before {
    transform: rotate(45deg);
}

#close_side_menu::after {
    transform: rotate(-45deg);
}



.side-menu {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    justify-content: space-between;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.side-menu.active {
    display: flex;
    overflow: hidden;
}

.side-menu-content {
    overflow-y: auto;
    height: 100vh;
}


.side-menu .side-menu-close {
    position: absolute;
    top: 30px;
    right: 30px;
    z-index: 1001;
    font-size: 30px;
    color: var(--primary-white);
    cursor: pointer;
    background: none;
    border: none;
    outline: none;
}

.bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.side-menu-content {
    display: flex;
    width: 100%;
    color: white;
}

/* Left Menu */
.menu-left {
    flex: 1;
    background: rgba(0, 0, 0, 0.70);
    padding-top: 100px;
    padding-bottom: 100px;
    padding-right: 100px;
    padding-left: 180px;
    position: relative;
    overflow-y: auto;
    max-height: 100vh;
}

/* Reusable underline effect */
.menu-left a {
    position: relative;
    display: inline-block;
}

.menu-left a::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-white);
    transition: width 0.3s ease;
}

.menu-left a:hover::after {
    width: 100%;
}

.menu-left .submenu {
    display: none;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
}

.menu-left .submenu.show {
    display: block;
    opacity: 1;
    transform: translateX(0);
}

.main-menu {
    list-style: none;
    padding: 0;
}

.main-menu li {
    margin: 20px 0;
    font-size: 22px;
}

.main-menu li a {
    color: var(--primary-white);
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 25px;
    font-weight: 100;
    letter-spacing: 1px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.main-menu li a:hover {
    transform: translateX(5px);
}

.submenu {
    display: none;
    flex-direction: column;
    margin-top: 40px;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.submenu.active {
    display: flex;
    opacity: 1;
    transform: translateX(0);
}

.submenu a {
    position: relative;
    display: inline-flex;
    text-decoration: none;
    color: var(--primary-white);
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 100;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px;
    width: max-content;
    transition: color 0.3s ease, transform 0.3s ease;
}

.submenu a::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--primary-white);
    transition: width 0.3s ease;
}

.submenu a:hover::after {
    width: 100%;
}

.submenu a:hover {
    transform: translateX(5px);
}


.close-btn {
    position: absolute;
    top: 30px;
    right: 30px;
    background: transparent;
    color: var(--primary-white);
    border: none;
    font-size: 28px;
    cursor: pointer;
}

.back-btn {
    background: none;
    border: 2px solid var(--primary-white);
    color: var(--primary-white);
    padding: 10px 30px;
    font-size: 16px;
    cursor: pointer;
    margin-bottom: 20px;
    align-self: flex-start;
    border-radius: 50px;
}

.back-btn i {
    margin-right: 10px;
    font-size: 15px;
    animation: drop-icon 2s infinite ease-in-out;
}

@keyframes drop-icon {
    0% {
        transform: translateX(-3px);
        opacity: 0.8;
    }

    50% {
        transform: translateX(3px);
        opacity: 1;
    }

    100% {
        transform: translateX(-3px);
        opacity: 0.8;
    }
}

/* Right Info Panel */
.menu-right {
    flex: 1;
    background: rgba(0, 0, 0, 0.70);
    padding: 60px 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.menu-right h2.side-menu-right-heading {
    font-size: 45px;
    margin-bottom: -15px;
    text-transform: uppercase;
}

.menu-right h2.side-menu-right-sub-heading {
    font-size: 18px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.menu-right p {
    margin-top: 20px;
    margin-bottom: 30px;
    font-size: 16px;
}

.side-menu-copyright {
    font-size: 16px !important;
    color: var(--primary-white);
    margin-top: -10px !important;
}

.side-menu-copyright a {
    font-size: 16px !important;
    color: var(--primary-white);
    margin-top: -10px !important;
    text-decoration: none;
}


/* ========== Social Media Icons ========== */
.social-icons ul {
    margin-bottom: 0px;
}

.social-icons ul li {
    font-size: 15px;
    display: inline-block;
    margin-right: 5px;
    margin-left: 5px;
}

.social-icons ul li a {
    overflow: hidden;
    border-radius: 50%;
    display: block;
    color: var(--primary-white);
    height: 40px;
    line-height: 40px;
    width: 40px;
    border: 1px solid var(--primary-white);
    text-align: center;
    transition: transform 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.social-icons ul li a:hover {
    transform: translateY(-8px);
}


/*Socialmedia Icons Hover*/
.linked-in-hover:hover {
    color: var(--linkedin);
    transition: all 0.5s ease;
    background-color: var(--white);
    border-color: var(--linkedin);
    transform: translateY(-8px);
}

.twitter-x-hover:hover {
    color: var(--twitter-x);
    transition: all 0.5s ease;
    background-color: var(--white);
    border-color: var(--twitter-x);
    transform: translateY(-8px);
}

.instagram-hover:hover {
    color: var(--instagram);
    transition: all 0.5s ease;
    background-color: var(--white);
    border-color: var(--instagram);
    transform: translateY(-8px);
}

.facebook-hover:hover {
    color: var(--facebook);
    transition: all 0.5s ease;
    background-color: var(--white);
    border-color: var(--facebook);
    transform: translateY(-8px);
}

.youtube-hover:hover {
    color: var(--youtube);
    transition: all 0.5s ease;
    background-color: var(--white);
    border-color: var(--youtube);
    transform: translateY(-8px);
}

/* Horizontal Divider */
.section-divider {
    border: 0;
    height: 1px;
    background-color: var(--primary-white);
    margin: 30px 20px;
}


/* ========== Media Query - Responsive CSS Code ========== */


@media (max-width: 991px) {
    .navbar-nav {
        display: none !important;
    }

    .dropdown-menu,
    .mega-menu-wrapper {
        display: none !important;
        visibility: hidden !important;
    }

    .navbar-actions {
        display: flex;
    }
}

@media (max-width: 768px) {

    .navbar .logo {
        height: 40px;
        padding-left: 10px;
        transition: opacity 0.3s ease;
    }

    .navbar-actions {
        display: flex;
        align-items: center;
        gap: 1px;
    }
    
    .navbar-contact-btn {
        display: none !important;
    }

    .side-menu-content {
        display: flex;
        flex-direction: column;
        height: 100vh;
    }

    .menu-left,
    .menu-right {
        flex: unset;
        width: 100%;
        padding: 40px 30px;
    }

    .menu-left {
        max-height: none;
        overflow: visible;
        padding-top: 100px;
        padding-bottom: 60px;
        padding-right: 40px;
        padding-left: 40px;
    }

    .main-menu li {
        margin: 10px 0;
        font-size: 20px;
    }

    .main-menu li a {
        color: var(--primary-white);
        font-size: 20px;
        font-weight: 100;
        letter-spacing: 1px;
        transition: color 0.3s ease, transform 0.3s ease;
    }

    .main-menu li a:hover {
        transform: translateX(5px);
    }

    .submenu a {
        margin-bottom: 10px;
        font-size: 15px !important;
        font-weight: 100;
        letter-spacing: 1px;
    }

    .menu-right {
        display: block;
        padding: 30px 0px;
    }

    .menu-right h2 {
        font-size: 22px;
        margin-bottom: -10px;
    }

    .menu-right p {
        margin-top: 20px;
        margin-bottom: 30px;
        font-size: 14px;
    }

    .submenu a {
        font-size: 16px;
    }

    .menu-right h2.side-menu-right-heading {
        font-size: 35px;
    }

    .menu-right h2.side-menu-right-sub-heading {
        font-size: 12px;
    }

    .menu-right p {
        font-size: 13px;
    }

    .side-menu-copyright {
        font-size: 12px !important;
        color: var(--primary-white);
    }
    
    .sidemenu_btn {
        margin-left: 20px;
    }
}