* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f5f5f5;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
    padding: 1rem 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
    margin-right: -10px; /* Shift logo slightly to the left */
}

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

.logo-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2a6dc9;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background: linear-gradient(45deg, #2a6dc9, #4a90e2);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.logo-text img {
    max-width: 220px; /* Logo image size for desktop */
    height: auto; /* Maintain aspect ratio */
    max-height: 50px; /* Thinner height for desktop */
    transition: transform 0.3s ease; /* Smooth transition for hover/tap effect */
}

.logo-text img:hover {
    transform: scale(1.1); /* Subtle scale effect for interactivity */
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    position: relative;
    margin-left: 1.5rem;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 1.2rem;
    transition: all 0.3s;
    display: block;
    padding: 0.5rem;
    position: relative;
}

.nav-links a:before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #4a90e2;
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: #4a90e2;
}

.nav-links a:hover:before {
    width: 100%;
}

.dropdown-content {
    display: block;
    position: absolute;
    background-color: #fff;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    z-index: 1;
    border-radius: 4px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.dropdown-content a {
    padding: 0.75rem 1rem;
    display: block;
    border-bottom: 1px solid #f1f1f1;
    transform: translateX(-10px);
    opacity: 0;
    transition: all 0.3s ease;
}

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

.dropdown:hover .dropdown-content a {
    transform: translateX(0);
    opacity: 1;
    transition-delay: 0.1s;
}

.dropdown:hover .dropdown-content a:nth-child(2) {
    transition-delay: 0.15s;
}

.dropdown:hover .dropdown-content a:nth-child(3) {
    transition-delay: 0.2s;
}

.dropdown:hover .dropdown-content a:nth-child(4) {
    transition-delay: 0.25s;
}

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

.dropdown-content a:hover {
    background-color: #f8f8f8;
}

.dropdown-indicator {
    margin-left: 5px;
    transition: transform 0.3s ease;
    display: inline-block;
}

.dropdown:hover .dropdown-indicator {
    transform: rotate(180deg);
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    z-index: 2;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #333;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Responsive adjustments for logo */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .logo-text {
        font-size: 1rem;
    }

    .logo-text img {
        max-width: 180px; /* Smaller logo image size for mobile */
        max-height: 40px; /* Thinner height for mobile */
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #fff;
        flex-direction: column;
        align-items: center;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease;
        z-index: 1;
    }

    .nav-links.active {
        max-height: 500px;
    }

    .nav-links li {
        margin: 1rem 0;
        width: 100%;
        text-align: center;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.3s ease;
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-links.active li:nth-child(1) {
        transition-delay: 0.1s;
    }

    .nav-links.active li:nth-child(2) {
        transition-delay: 0.2s;
    }

    .nav-links.active li:nth-child(3) {
        transition-delay: 0.3s;
    }

    .nav-links.active li:nth-child(4) {
        transition-delay: 0.4s;
    }

    .dropdown-content {
        position: static;
        box-shadow: none;
        width: 100%;
        max-height: 0;
        transition: max-height 0.5s ease;
        overflow: hidden;
        transform: none;
    }

    .dropdown.active .dropdown-content {
        max-height: 500px;
        visibility: visible;
        opacity: 1;
    }
}

/* Additional media query for smaller devices (e.g., phones) */
@media (max-width: 480px) {
    .logo-text {
        font-size: 0.9rem;
    }

    .logo-text img {
        max-width: 160px; /* Even smaller logo image for very small screens */
        max-height: 35px; /* Thinner height for very small screens */
    }

    .navbar {
        padding: 0.8rem 1.5rem;
    }
}