nav {
    position: sticky;
    top: 0;
    width: 100%;
    background: rgba(26,54,93,0.85);
    backdrop-filter: blur(8px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 2rem;
    transition: background 0.3s;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 2px;
    text-shadow: 0 2px 8px rgba(0,188,212,0.1);
    transition: color 0.3s;
    width: auto; /* Changed from 30% to auto */
    height: 60px; /* Reduced from 250px to 60px */
    object-fit: cover;
    display: block;
}

.logo img {
    height: 100%; /* Make image fill the container height */
    width: auto; /* Maintain aspect ratio */
    object-fit: contain; /* Ensure the logo fits nicely */
}


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

nav ul li a {
    color: var(--white);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    position: relative;
    transition: color 0.3s;
    padding: 0.3rem 0.5rem;
}

nav ul li a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s;
    position: absolute;
    left: 0;
    bottom: -4px;
}

nav ul li a:hover,
nav ul li a:focus {
    color: var(--accent);
}

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

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 100;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--white);
    position: absolute;
    transition: all 0.3s ease;
}

.hamburger span:first-child {
    top: 0;
}

.hamburger span:nth-child(2) {
    top: 9px;
}

.hamburger span:last-child {
    top: 18px;
}

/* Hamburger Animation */
.hamburger.active span:first-child {
    transform: rotate(45deg);
    top: 9px;
}

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

.hamburger.active span:last-child {
    transform: rotate(-45deg);
    top: 9px;
}

/* Media Query pentru Mobile */
@media screen and (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--main-blue);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease;
        z-index: 99;
    }

    .nav-links.active {
        right: 0;
    }

    nav ul {
        gap: 3rem;
    }

    nav ul li a {
        font-size: 1.5rem;
    }

    /* Adaugă blur effect când meniul este deschis */
    .nav-links::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        backdrop-filter: blur(8px);
        background: rgba(26,54,93,0.95);
        z-index: -1;
    }
}