
/* General Reset */
* {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    margin: 0;
    padding: 0;
    font-family: "Poppins", sans-serif;
}




/* Navigation Bar */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #ffffff;
    color: #000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding:5px 15px;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
nav .logo {
    width: auto;
    /* or remove this line if not needed */
    height: auto;
    display: flex;
    align-items: center;
}

nav .logo img {
    height: 110px;
    /* increased from 90px to 110px */
    width: auto;
    margin-right: 10px;
    margin-top: -15px;
    /* more negative to keep inside nav */
    margin-bottom: -15px;
    /* more negative to keep inside nav */
    object-fit: contain;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

nav ul li {
    position: relative;
}

nav ul li a {
    position: relative;
    color: #000;
    text-decoration: none;
    font-size: 1rem;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: #2c64fc;
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

/* Dropdown Submenu */
.dropdown .submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    padding: 10px 0;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    text-align: left;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.dropdown:hover .submenu {
    display: block;
}

.submenu li a {
    padding: 8px 15px;
    display: block;
    font-size: 0.9rem;
    color: #000;
    border-radius: 3px;
}

.submenu li a:hover::after {
    width: 100%;
}

/* Hamburger Menu for Mobile */
.hamburger {
    display: none;
    cursor: pointer;
    z-index: 2000; /* Ensure it stays above other elements */
}

.hamburger img {
    height: 30px;
    width: auto;
}

/* Menubar Styles for Mobile */
.menubar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 75%;
    height: 100vh;
    background: #ffffff;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
    z-index: 1500;
    transition: left 0.3s ease-in-out;
    padding: 20px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.menubar.active {
    left: 0;
}

.menubar .logo img {
    width: 180px;
    height: auto;
    margin-bottom: 20px;
}
/* Menubar Items */
.menubar ul {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
}

.menubar ul li {
    margin: 20px 0;
}

.menubar ul li a {
    text-decoration: none;
    color: #000;
    font-size: 1rem;
    font-weight: 500;
    position: relative;
}

.menubar ul li a::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, #2c64fc, #b927fc);
    transition: width 0.3s ease;
}

.menubar ul li a:hover::after {
    width: 100%;
}


.menubar .submenu {
    display: none;
    list-style: none;
    padding-left: 20px;
    margin: 10px 0;
    background: #f9f9f9;
    border-radius: 5px;
}

.menubar .submenu.active {
    display: block;
}

.menubar .submenu li a {
    padding: 8px 0;
    display: block;
    color: #333;
}




.menubar > ul > li {
    position: relative;
}

.menubar .submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #f9f9f9;
    list-style: none;
    margin: 0;
    padding: 10px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    z-index: 1000;
}

.menubar .submenu li {
    padding: 5px 20px;
}

.menubar .submenu li a {
    text-decoration: none;
    color: #333;
    display: block;
}

.menubar li:hover > .submenu {
    display: block;
}



body.mobile-active {
    overflow: hidden;
}

@media screen and (max-width: 768px) {
    nav {
          padding: 10px 10px;
    }
    nav ul {
        display: none;
    }

    .hamburger {
        display: block;
    }
}

/* Fade-In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


body.loading {
    overflow: hidden;
}

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ffffff;
    /* cleaner background */
}

.preloader img {
    width: 100px;
    height: auto;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}


/* Social Media Floating Icons */
.social-icons {
    position: fixed;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1000;
}

/* Icon Container */
.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 50%;
    background-color: #151B54; /* Black background */
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

/* Icon SVG Styling */
.social-icon img {
    width: 20px;
    height: 20px;
    filter: invert(1); /* Ensures white icons on black background */
    transition: transform 0.3s ease;
}

/* Hover Effects */
.social-icon:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.6);
}

.social-icon:hover img {
    transform: scale(1.1);
}

/* Animation for the icons appearing */
.social-icons {
    animation: slideIn 1s ease-out forwards;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design for Mobile */
@media (max-width: 768px) {
    .social-icons {
        /* top: 85%; Move icons to bottom for better visibility */
        /* left: 50%; */
        transform: translate(-50%, -50%);
        flex-direction: column; /* Align icons in a row */
        gap: 10px;
    }

    .social-icon {
        width: 35px;
        height: 35px;
    }

    .social-icon img {
        width: 18px;
        height: 18px;
    }
}

/* Ensuring fixed position on all screens */
@media (max-height: 500px) {
    .social-icons {
        top: auto;
        bottom: 10px; /* Adjust for very small screens */
    }
}


.dropdown-icon {
    width: 16px;
    height: 16px;
    margin-left: 5px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    vertical-align: middle;
}

/* Hover Effect for Dropdown Icon */
.dropdown:hover .dropdown-icon {
    transform: rotate(180deg);
    opacity: 0.7;
}

.menubar .dropdown.active .submenu {
    display: block;
}

.menubar .dropdown-icon {
    width: 16px;
    height: 16px;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

/* Smooth Transition on Mobile */
.menubar .dropdown.active .dropdown-icon {
    transform: rotate(180deg);
}


/* General styling for the logo in the menubar */
.menubar .logo {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
    background-color: #fff; /* Optional: Set background color */
}

.menubar .logo img {
    max-width: 150px; /* Adjust this value based on your logo's size */
    height: 50px;
    object-fit: contain; /* Ensures logo maintains aspect ratio */
}










/* Back to Top Button */
#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #151B54;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.623);
    transition: background-color 0.3s;
    z-index: 50;
}


#back-to-top img {
filter: invert(100%);
    width: 30px;
    height: 30px;
}



#back-to-top:hover {
    border: 1px solid rgb(0, 0, 0);
}
