/* Add Google Font for Premium Look */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body Styling */
body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f4;
}

.topnav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: #000000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background 0.4s ease;
font-family: 'Poppins', sans-serif;

}

.nav-left {
    display: flex;
    align-items: center;
    gap: 0rem;
}



.logo img {
    width: 160px;
    object-fit: contain;
    transition: transform 0.4s ease;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2.2rem;
    padding: 0;
    margin: 0;
}

nav ul li a {
    text-decoration: none;
    color: #f6f6f6;
    font-weight: bold;
    font-size: 1.1rem;
    position: relative;
    letter-spacing: 0.05rem;
    transition: color 0.3s ease;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: #1675a9;
    transition: width 0.4s ease;
    border-radius: 10px;
}



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

nav ul li a:hover {
    color: #1675a9;
}
.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem; /* Space between search and menu toggle */
}

/* Ensure desktop search stays visible on larger screens */
@media screen and (max-width: 768px) {
    .nav-right .desktop-search {
        display: none;
    }
}

.nav-right ul {
    list-style: none;
    display: flex;
    gap: 1.8rem;
    padding: 0;
    margin: 0;
    align-items: center; /* Vertically center the items */
}


.loginlink {
    text-decoration: none;
    color: #1675a9;
    font-weight: bold;
    font-size: 1.1rem;
    position: relative;
    transition: color 0.3s ease;
}



.loginlink a:hover::after {
    width: 100%;
}

.loginlink a:hover {
    color: #f6f6f6;
}

.logout-icon::after {
    display: none;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 0.3rem;
    cursor: pointer;
}

.menu-toggle .bar {
    width: 20px;
    height: 3px;
    background: #f6f6f6;
    transition: 0.3s;
}
@media screen and (max-width: 768px) {
    nav ul {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #000000;
        padding: 1rem 0;
        text-align: center;
        
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .nav-menu li:last-child {
        margin-bottom: 1.5rem;
    }

    nav ul.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .menu-toggle.active .bar:first-child {
        transform: translateY(6px) rotate(45deg);
    }

    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:last-child {
        transform: translateY(-6px) rotate(-45deg);
    }

    .menu-toggle {
        display: flex;
        margin-left: 1rem; /* Adds space between menu toggle and the login section */
    }

    .logo img {
        width: 120px;
    }

    .firstname {
        display: none;
    }

    /* Ensure the nav-right stretches across and is aligned properly */
    .nav-right {
        display: flex;
        gap: 0.5rem;
        padding: 0;
        margin: 0;
        justify-content: flex-end; /* Align to the right */
        width: 100%; /* Ensure it takes up the full width */
        
    }

    /* Ensure menu toggle is after the login section */
    .menu-toggle {
        order: 0; /* First item in nav-left */
        margin-left: 0;
        margin-right: 1rem;
    }

    /* Move the login section to be fully on the right */
    .nav-right ul {
        display: flex;
        gap: 0 rem; 
        padding: 0px;
        margin: 0;
    }

    /* Ensure the login section is directly on the right before menu toggle */
    .nav-right ul li:first-child {
        margin-right: auto; /* Push login section to the right */
    }

    .logout-icon{
        top: 1px;
        
    }
}
/* Add smooth transition for hamburger bars */
.menu-toggle .bar {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.search-form {
    flex: 1;
    max-width: 500px;
    margin: 0 1 rem;
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    width: 100%;
    padding: 0.6rem 2.5rem 0.6rem 1rem;
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 25px;
    background: rgba(255,255,255,0.05);
    color: #f6f6f6;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #1675a9;
    background: rgba(22, 117, 169, 0.1);
    box-shadow: 0 0 10px rgba(22, 117, 169, 0.2);
}

.search-button {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #f6f6f6;
    transition: color 0.3s ease;
}

.search-button:hover {
    color: #1675a9;
}

/* Responsive Styles */
@media screen and (max-width: 1024px) {
    .search-form {
        margin: 0 1rem;
        max-width: 300px;
    }
}

@media screen and (max-width: 768px) {

    .topnav{
        padding: 1rem 1rem;
    }
    .nav-left {
        flex-wrap: wrap;
        gap: 0rem;
    }
    
    .search-form {
        order: 3;
        width: 100%;
        max-width: 100%;
        margin: 0;
    }
    
    .nav-menu {
        top: calc(100% + 50px);
    }
    
    .menu-toggle {
        margin-left: auto;
    }
}

@media screen and (max-width: 480px) {
    .search-input {
        padding: 0.5rem 2rem 0.5rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .search-button svg {
        width: 18px;
        height: 18px;
    }
}
.desktop-search {
    display: flex; /* Ensure search form aligns properly */
    align-items: center;
}

.mobile-search-trigger {
    display: none;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
    color: #f6f6f6; /* Add this line */
}

.mobile-search-trigger svg {
    width: 24px;
    height: 24px;
    fill: currentColor; /* Change from #f6f6f6 to currentColor */
}


.mobile-search-container {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #000;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 1000;
}

.mobile-search-container.active {
    display: block;
}

/* Expanded Search State */
.search-form.expanded {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #000;
    padding: 1rem;
    z-index: 1000;
}

.search-form.expanded .search-container {
    max-width: 100%;
}

@media screen and (max-width: 768px) {
    .desktop-search {
        display: none;
        order: 2;
    }
    
    .mobile-search-trigger {
        display: block;
    }
    
    .nav-left {
        flex-wrap: nowrap;
    }
    
    .search-form .search-input {
        width: 100%;
    }
}

@media screen and (min-width: 769px) {
    .search-form:hover .search-input {
        width: 100%;
    }
    
    .search-form:not(.expanded) .search-input {
        width: 200px;
        transition: width 0.3s ease;
    }
    
    .search-form.expanded {
        position: static;
        background: transparent;
        padding: 0;
    }
    
    .search-form.expanded .search-container {
        max-width: 600px;
    }
}
.mobile-search-item {
    display: none;
    padding: 15px;
}

.mobile-search-item .search-container {
    position: relative;
    width: 100%;
}

.mobile-search-item .search-input {
    width: 100%;
    padding: 10px 40px 10px 15px;
    border-radius: 25px;
    border: 2px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.05);
    color: #fff;
}

.mobile-search-item .search-button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0;
    color: #fff;
}

@media screen and (max-width: 768px) {
    .desktop-search {
        display: none;
    }
    
    .mobile-search-item {
        padding: 1rem;
        background: #111;
        display: block;
    }
    .mobile-search-item .search-container {
        width: 100%;
        max-width: 100%;
        padding: 20px;
    }
    .mobile-search-item .search-input {
        width: 100%;
        padding: 0.8rem 3rem 0.8rem 1rem;
        font-size: 1rem;
    }
    .mobile-search-item .search-button {
        right: 40px;
    }
    .nav-menu li a {
        display: block;
        width: 100%;
        padding: 0 rem;
        color: #f6f6f6;
        font-size: 1.1rem;
        transition: background 0.3s ease;
    }


    /* Active state */
    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #000000;
        padding: 0;
        margin: 0;
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    
    .nav-menu.active {
        padding-top: 15px;
    }

    .nav-menu li {
        width: 100%;
        padding: 0;
        margin: 0;
    }

    
    .nav-menu li:not(.mobile-search-item) {
        text-align: center;
    }
}

@media screen and (min-width: 769px) {
    .mobile-search-item {
        display: none !important;
    }
}

/* Avatar Styles */
.avatar-initial {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #494949;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 1.4rem;
    font-family: Arial, sans-serif; /* Use a neutral font */
    transition: all 0.3s ease;
    
    /* Add these for perfect centering */
    line-height: 1; /* Remove default line height */
    padding: 0; /* Remove any default padding */
    margin: 0; /* Remove any default margins */
    position: relative; /* For fine adjustments */
    top: 1px; /* Compensate for font baseline */
}

.avatar-initial::before {
    content: '';
    display: inline-block;
    height: 100%;
    vertical-align: middle;
}

/* Logout Icon Fix */
.logout-icon img {
    width: 18px;
    height: 18px;
    transition: all 0.3s ease;
    filter: invert(40%) sepia(60%) saturate(1238%) hue-rotate(166deg) brightness(92%) contrast(91%);
}

.logout-icon:hover img {
    transform: scale(1.05);
    filter: invert(100%) sepia(0%) saturate(7500%) hue-rotate(34deg) brightness(103%) contrast(103%);
}

/* Mobile Styles */
@media screen and (max-width: 768px) {
    .avatar-initial {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
        top: 0.5px; /* Adjusted for smaller size */
    }
    
}

.nav-left .logo {
    margin-right: 20px; /* Pushes everything else to the right */
}


nav {
    display: flex; /* Align search and nav items in a row */
    align-items: center;
    gap: 2rem; /* Add spacing between search and menu */
    margin-left: auto; /* Push both items to the right */
}

/* Avatar-specific styles */
.avatar-item {
    list-style: none;
}

.avatar-link {
    text-decoration: none;
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
    
    &:active,
    &:focus {
        outline: none !important;
    }
    
    &::after {
        display: none !important;
    }
}

.avatar-initial {
    /* Your existing styles */
    -webkit-tap-highlight-color: transparent; /* Disable mobile tap highlight */
}
footer {
    background-color: #1a1a1a;
    color: #f6f6f6;
    padding: 60px 20px 30px;
    position: relative;
    font-family: 'Arial', sans-serif;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #333;
}

.footer-column h4 {
    color: #1675a9;
    font-size: 1.2rem;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-column p {
    color: #aaa;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: #f6f6f6;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: #1675a9;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.social-links a {
    color: #f6f6f6;
    font-size: 1.5rem;
    transition: color 0.3s ease;
    padding: 8px;
}

.social-links a:hover {
    color: #1675a9;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.newsletter-form input {
    flex: 1 1 200px;
    padding: 12px;
    border: 1px solid #333;
    border-radius: 5px;
    background: #2a2a2a;
    color: #fff;
    min-width: 150px;
}

.newsletter-form button {
    background: #1675a9;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
    flex: 1 1 auto;
}

.newsletter-form button:hover {
    background: #135f8a;
}

.footer-bottom {
    max-width: 1200px;
    margin: 30px auto 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.payment-methods {
    display: flex;
    gap: 20px;
    font-size: 1.8rem;
    color: #888;
    flex-wrap: wrap;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #1675a9;
    color: #fff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.back-to-top:hover {
    opacity: 1;
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .contact-info li {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .payment-methods {
        justify-content: center;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .social-links a {
        font-size: 1.2rem;
    }

    .payment-methods {
        gap: 15px;
        font-size: 1.5rem;
    }
}