/* Basic reset for menu elements */
#navbar,
.sidebar {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Header layout */
#navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Karla', sans-serif;
    padding: 20px 80px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    transition: background-color 0.3s ease;
}

.navbar {
    background-color: transparent;
}

.scrolled {
    background-color: #0B1427;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Project Search Styles */
.project-search-container {
    position: relative;
    z-index: 900;
}

.project-search-form {
    position: relative;
}

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

.project-search-input {
    width: 280px;
    padding: 12px 45px 12px 15px;
    border: 2px solid #fff;
    border-radius: 4px;
    background-color: #fff;
    color: #000000;
    font-family: 'Figtree', sans-serif;
    font-size: 14px;
    transition: all 0.3s ease;
    outline: none;
}

.project-search-input::placeholder {
    color: #636363;
}

.search-submit {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #fff;
    transition: color 0.3s ease;
}

.search-submit:hover {
    color: #D5BFA2;
}

.search-icon {
    width: 18px;
    height: 18px;
}

/* Search Results Dropdown */
.search-results-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    font-family: 'Figtree', sans-serif;
    background-color: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    max-height: 400px;
    overflow-y: auto;
    z-index: 9999;
}

.search-results-content {
    padding: 12px 45px 12px 15px;
    line-height: 1.5rem;
}

.search-results-content > div > a{
    text-decoration: none;
    font-size: 14px;
    color: #000000;
}

.search-results-content > div > a:hover{
    color: #000F73;
    font-weight: 600;
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    text-decoration: none;
    color: #333;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background-color: #f8f9fa;
}

.search-result-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 12px;
    flex-shrink: 0;
}

.search-result-title {
    font-size: 14px;
    font-weight: 600;
    color: #000F73;
    margin-bottom: 4px;
    line-height: 1.2;
}

.search-result-meta {
    font-size: 12px;
    color: #666;
    line-height: 1.3;
}

.search-result-location {
    font-weight: 500;
    color: #000F73;
}

.search-thumb-img {
    width: 65px;
}

.search-no-results {
    padding: 20px;
    text-align: center;
    color: #666;
    font-size: 14px;
}

.search-loading {
    padding: 20px;
    text-align: center;
    color: #666;
    font-size: 14px;
}

.search-loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #ddd;
    border-radius: 50%;
    border-top-color: #000F73;
    animation: spin 1s linear infinite;
    margin-left: 8px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.logo-header img {
    width: auto;
    height: 60px;
}

.logo-header a {
    display: block;
    line-height: 0;
}

.get-a-quote {
    font-size: 14px;
    font-family: 'Figtree', sans-serif;
    font-weight: 700;
    background-color: #1F3B73;
    color: #fff;
    padding: 15px 30px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.get-a-quote:hover {
    background-color: #D8BFAA;
    color: #1F3B73;
    font-weight: 700;
}

.burger {
    font-size: 44px;
    cursor: pointer;
    color: #fff;
    background: none;
    border: none;
    padding: 0;
    line-height: 0;
    transition: opacity 0.3s ease;
}

.burger img {
    width: auto;
    height: 50px;
    margin-left: -10px;
    margin-right: -10px;
}

.burger:hover {
    opacity: 0.8;
}

/* Sidebar styles */
.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    background-color: #0B1427;
    color: white;
    padding: 160px 80px 80px 80px;
    box-sizing: border-box;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
}

.sidebar.open {
    transform: translateX(0);
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 24px;
    font-family: 'Figtree', sans-serif;
    font-weight: 300;
    text-transform: uppercase;
}

.sidebar ul li {
    margin-bottom: 10px;
}

.sidebar ul li a {
    display: inline-block;
    position: relative;
    color: #D8BFAA;
    text-decoration: none;
    padding: 10px 0;
    transition: color 0.3s ease;
}

.sidebar ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: currentColor;
    transform: scaleX(0);
    transform-origin: bottom left;
    transition: transform 0.25s ease-out;
}

.sidebar ul li a:hover::after {
    transform: scaleX(1);
}

.sidebar-menu {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sidebar-extra-items {
    margin: 30px 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-extra-items .get-a-quote,
.sidebar-extra-items .project-search-container {
    width: 100%;
}

.sidebar-extra-items .project-search-input {
    width: 100%;
}

.menu-icon {
    width: 20rem;
    height: auto;
    margin-bottom: 45px;
    display: block;
}

.contact-info {
    color: #D8BFAA;
    margin-top: auto;
    line-height: 2.2;
}

.contact-info h4 {
    font-size: 24px;
    font-family: 'Figtree', sans-serif;
    font-weight: 300;
    text-transform: uppercase;
}

.contact-info p {
    font-size: 16px;
    font-family: 'Figtree', sans-serif;
    font-weight: 300;
}

.social-icon-container {
    display: flex;
    gap: 12px;
    margin-top: 36px;
    flex-wrap: wrap;
}

.social-icon {
    width: 36px;
    height: auto;
    transition: opacity 0.3s ease;
}

.social-icon-container a:hover .social-icon {
    opacity: 0.7;
}

.close-btn {
    position: absolute;
    top: 30px;
    right: 70px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    z-index: 1001;
}

.close-btn img {
    width: auto;
    height: 50px;
    transition: opacity 0.3s ease;
}

.close-btn:hover img {
    opacity: 0.8;
}

/* Overlay for mobile */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
    #navbar {
        padding: 10px 20px;
    }

    .project-search-input {
        width: 200px;
    }

    /* 
    .logo-header img {
        width: 150px;
    }

    .get-a-quote {
        padding: 10px 20px;
        font-size: 16px;
    }

    .burger {
        font-size: 36px;
    }

    .sidebar {
        padding: 120px 40px 40px 40px;
    }

    .sidebar ul {
        font-size: 20px;
    }

    .contact-info h4 {
        font-size: 20px;
    }

    .contact-info p {
        font-size: 14px;
    }

    .menu-icon {
        width: 15rem;
        margin-bottom: 30px;
    } */
}

@media (max-width: 768px) {

    #navbar {
        background-color: #0B1427;
    }

    .project-search-input {
        width: 180px;
    }
}

@media (max-width: 480px) {
    .sidebar-extra-items .get-a-quote {
        font-size: 13px;
        padding: 15px;
    }

    .sidebar-extra-items .project-search-input {
        font-size: 13px;
        padding: 5px 16px;
    }

    .sidebar-extra-items .search-submit {
        right: 10px;
    }

    .sidebar {
        width: 100%;
        padding: 60px;
    }

    .navbar {
        height: 60px;
        padding: 10px 15px;
    }

    .close-btn {
        top: 30px;
        right: 30px;
    }

    .close-btn img {
        width: auto;
        height: 32px;
        transition: opacity 0.3s ease;
    }

    .logo-header img {
        width: 100px;
        height: auto;
    }

    .get-a-quote {
        padding: 6px 15px;
        font-size: 12px;
    }

    .burger img {
        height: 32px;
    }

    .sidebar ul {
        font-size: 20px;
    }

    .contact-info h4 {
        font-size: 20px;
    }

    .contact-info p {
        font-size: 14px;
    }

    .menu-icon {
        width: 10rem;
        margin-bottom: 30px;
    }

    .social-icon {
        width: 2rem;
    }

    .project-search-input {
        width: 140px;
        height: 32px;
        font-size: 12px;
        padding: 0 35px 0 12px;
    }

    .search-icon {
        width: 14px;
        height: 14px;
    }

    .search-submit {
        right: 6px;
        padding: 6px;
    }

    .nav-right {
        gap: 8px;
    }

    .search-results-dropdown {
        left: -50px;
        right: -50px;
        max-height: 300px;
    }

    .search-result-item {
        padding: 10px 12px;
    }

    .search-result-image {
        width: 40px;
        height: 40px;
        margin-right: 8px;
    }

    .search-result-title {
        font-size: 13px;
    }

    .search-result-meta {
        font-size: 11px;
    }
}

/* Animation for smooth transitions */
@media (prefers-reduced-motion: reduce) {

    .sidebar,
    .sidebar-overlay,
    .burger,
    .get-a-quote,
    .close-btn img,
    .social-icon {
        transition: none;
    }
}