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

body {
    background: #ffffff;
    color: #3a5f4c;
    line-height: 1.6;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
    background: #ffffff;
    box-shadow: 0 2px 15px rgba(79, 127, 99, 0.08);
    width: 100%;
    transition: all 0.3s ease;
}

/* Logo */
.logo {
    font-size: 28px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #3a5f4c;
}

.logo img {
    margin-top: 5px;
    height: 50px;   /* text ke equal */
    width: auto;
    /* object-fit: contain; */
}

.logo span {
    color: #4f7f63;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1; /* vertical alignment better */
}


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

/* Links */
nav a {
    text-decoration: none;
    color: #4f7f63;
    font-weight: 700;
    font-size: 17px;
    position: relative;
    padding: 5px 0;
    transition: all 0.3s ease;
}

/* Hover underline */
nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 3px;
    background: #4f7f63;
    border-radius: 2px;
    transition: width 0.3s ease;
}

nav a:hover {
    color: #2d5a44;
    transform: translateY(-2px);
}

nav a:hover::after {
    width: 100%;
}

/* Menu Icon - Hidden by default */
.menu-toggle {
    display: none;
    font-size: 32px;
    cursor: pointer;
    color: #4f7f63;
    padding: 5px;
    transition: transform 0.3s ease;
}

.menu-toggle:hover {
    transform: scale(1.1);
    color: #2d5a44;
}

/* Active Link */
nav a.active {
    color: #2d5a44;
}

nav a.active::after {
    width: 100%;
}

/* MOBILE VIEW */
@media (max-width: 992px) {
    .navbar {
        padding: 15px 40px;
    }
    
    nav {
        gap: 25px;
    }
    
    nav a {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 12px 25px;
    }
    
    .logo {
        font-size: 24px;
    }
    
    .logo img {
        height: 40px;
    }
    
    .logo span {
        font-size: 28px;
    }
    
    /* Show menu icon on mobile */
    .menu-toggle {
        display: block;
    }
    
    /* Hide nav by default on mobile */
    nav {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #ffffff;
        flex-direction: column;
        text-align: center;
        z-index: 1000;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        gap: 0;
        opacity: 0;
        transform: translateY(-20px);
        transition: opacity 0.3s ease, transform 0.3s ease;
        pointer-events: none;
        visibility: hidden;
    }
    
    /* Reset link margins for mobile */
    nav a {
        margin: 6px 0;
        padding: 10px 20px;
        font-size: 18px;
        width: 100%;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }
    
    nav a:hover {
        background: rgba(79, 127, 99, 0.05);
        border-radius: 8px;
        transform: none;
    }
    
    nav a::after {
        display: none;
    }
    
    /* Show nav when active class is added */
    nav.active {
        opacity: 1;
        transform: translateY(0);
        pointer-events: all;
        visibility: visible;
        transition: opacity 0.3s ease, transform 0.3s ease;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 10px 20px;
    }
    
    .logo {
        font-size: 20px;
        gap: 8px;
    }
    
    .logo img {
        height: 35px;
    }
    
    .logo span {
        font-size: 24px;
    }
    
    .menu-toggle {
        font-size: 28px;
    }
    
    nav a {
        font-size: 16px;
        padding: 12px 15px;
    }
}