
/* Navbar Styles */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2.5%;
    background: linear-gradient(to right, #fff, #fff);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s ease;
}

.navbar a{color: #000;text-decoration: none;}
.navbar.scrolled {
    padding: 0.8rem 5%;
    background: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(10px);
}

.logo a img {
    width:28%;
    transition: color 0.3s ease;
}

.logo a:hover {
    color: #00a8cc;
    text-shadow: 0 0 10px rgba(0, 168, 204, 0.3);
}

.nav-menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: #000;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    position: relative;
}

.nav-link:hover {
    color: #d4002a;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #d4002a;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: #d4002a;
}

.nav-link.active::after {
    width: 100%;
    background-color: #d4002a;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: #000;
    transition: all 0.3s ease-in-out;
}




/* Media Queries for Responsive Design */
@media screen and (max-width: 768px) {
    .hamburger {
        display: none;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }    .nav-menu {
        position: sticky;
    flex-direction: row;
    background: #fff;
    backdrop-filter: blur(10px);
    width: 150px;
    text-align: center;
    transition: 0.3s;margin-bottom: 0;
    gap: 0;
    padding: 5px;
    }    .nav-item {
        margin: 0;
    }

    .nav-menu.active {
        left: 0;
        border-left: 3px solid #00a8cc;
    }


@media screen and (max-width: 480px) {
    .navbar {
        padding: 1rem 4%;
    }

    .logo a {
        font-size: 1.5rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }
}

.mob-nav{display: none;}

/* Additional padding for sections to account for fixed navbar */
#about, #services, #portfolio, #contact {
    padding-top: 100px; /* Navbar height + some extra space */
}
