/* ========= GLOBAL ========= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #f8f9fa;
}

/* ========= NAVBAR ========= */
.nav {
    width: 100%;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

/* Navbar inner container */
.nav-container {
    max-width: 1200px;
    margin: auto;
    padding: 5px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.logo {
    margin-top: 7px;
    height: 50px;          
    width: auto;
    transition: transform 0.3s ease;
}

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

/* Logo wrapper */
.nav-left {
    display: flex;
    align-items: center;    /* qendron vertikalisht */
}

/* Desktop links */
.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links li a {
    text-decoration: none;
    color: #1e3a8a;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

/* Hover underline effect */
.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    background: #2563eb;
    left: 0;
    bottom: 0;
    transition: width 0.3s ease;
    border-radius: 2px;
}

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

/* Mobile icon */
.menu-icon {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-icon span {
    display: block;
    height: 3px;
    width: 25px;
    background: #1e3a8a;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Mobile menu */
.mobile-menu {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    text-align: center;
    gap: 20px;
    list-style: none;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    position: absolute;
    width: 100%;
    max-width: 100%;
    top: 100%;
    left: 50%;
    transform: translate(-50%, -20px);
    opacity: 0;
    pointer-events: none; 
    padding: 20px 0;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Mobile menu active */
.mobile-menu.active {
    opacity: 1;
    transform: translate(-50%, 0);
    pointer-events: auto;
}

/* Mobile links styling */
.mobile-menu li a {
    text-decoration: none;
    color: #1e3a8a;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s ease;
    padding: 10px 20px;
    border-radius: 8px;
}

.mobile-menu li a:hover {
    background: #2563eb;
    color: #fff;
    transform: translateX(5px);
}

/* Animate hamburger to X */
.menu-icon.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.menu-icon.active span:nth-child(2) {
    opacity: 0;
}
.menu-icon.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .menu-icon {
        display: flex;
    }
}