/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Header Styles */
.header {
    background: transparent;
    position: relative;
    width: 100%;
    z-index: 1000;
}

.header-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    box-sizing: border-box;
    width: 100%;
}

/* Logo Styles */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: white;
}

.logo img {
    height: 50px;
    width: auto;
    border-radius: 25px;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* Navigation Styles */
.nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.dropdown {
    position: relative;
}

/* Dropdown Toggle Button */
.dropdown-toggle {
    background: #f8f9fa;  /* Brighter background for better contrast */
    color: #212529;      /* Darker text for better readability */
    padding: 12px 24px;
    border: 2px solid #dee2e6;  /* Added border for better visibility */
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;    /* Slightly bolder for better readability */
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.dropdown-toggle:hover, .dropdown-toggle:focus {
    background: #e9ecef;  /* Slightly darker on hover/focus */
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    outline: 2px solid #3a86ff;  /* Focus indicator */
    outline-offset: 2px;
}

.dropdown-arrow {
    transition: transform 0.3s ease;
    font-size: 12px;
}

.dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 5px);  /* Add space between button and menu */
    min-width: 220px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1001;
    border: 1px solid #dee2e6;
    right: 0;
    background: white;
    min-width: 250px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    margin-top: 8px;
    overflow: hidden;
    z-index: 1001;
}

.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 12px 24px;
    color: #212529;  /* Darker text for better contrast */
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 500;  /* Slightly bolder for better readability */
    line-height: 1.5;
    border-bottom: 1px solid #f0f0f0;
}

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

.dropdown-item:hover, .dropdown-item:focus {
    background: #f1f3f5;
    color: #3a86ff;  /* Primary color for hover state */
    outline: none;
}

/* Contact Button */
.contact-btn {
    background: rgba(255,255,255,0.9);
    color: #333;
    padding: 12px 24px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.contact-btn:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .header {
        position: relative;
        width: 100%;
        z-index: 1000;
    }
    
    .header-container {
        padding: 0 10px;
        height: 60px;
        max-width: 100%;
        position: relative;
    }

    .logo {
        z-index: 1001;
    }

    .logo img {
        height: 40px;
        max-width: 150px;
        -webkit-tap-highlight-color: transparent;
    }

    .logo-text {
        display: none;
    }

    .nav {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        flex: 1;
        margin-left: 10px;
        z-index: 1000;
        -webkit-tap-highlight-color: transparent;
    }

    .dropdown {
        position: static;
        display: flex;
        justify-content: flex-end;
    }

    .dropdown-toggle {
        background: rgba(255,255,255,0.9);
        padding: 10px 20px;
        font-size: 16px;
        white-space: nowrap;
        border: none;
        border-radius: 6px;
        cursor: pointer;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        -webkit-tap-highlight-color: rgba(0,0,0,0);
    }

    .dropdown-menu {
        position: absolute;
        top: 100%;
        right: 0;
        left: auto;
        min-width: 200px;
        margin: 5px 0 0 0;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: all 0.2s ease;
        max-height: 70vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 8px;
        background: white;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        z-index: 1001;
        display: block !important;
    }

    .dropdown.active .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .dropdown-item {
        padding: 12px 20px;
        font-size: 16px;
        display: block;
        color: #333;
        text-decoration: none;
        border-bottom: 1px solid #f0f0f0;
        -webkit-tap-highlight-color: transparent;
    }
    
    .dropdown-item:last-child {
        border-bottom: none;
    }
    
    .dropdown-item:active {
        background-color: #f8f8f8;
    }
}

/* Prevent body scroll when dropdown is open */
body.dropdown-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}