/* Logo Styles */
.logo-container {
    display: inline-block;
    padding: 0.5rem 1rem 0.5rem 0;
    text-decoration: none;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
}

.mountain-icon {
    position: relative;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: flex-end;
}

.mountain-peak {
    position: absolute;
    bottom: 0;
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-bottom: 24px solid #2c5530;
    transform-origin: bottom center;
}

.mountain-peak.middle {
    left: 12px;
    border-bottom-color: #4a8c56;
    z-index: 2;
}

.mountain-peak.small {
    left: 24px;
    border-bottom-color: #6abf69;
    z-index: 3;
}

.mountain-base {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, #2c5530, #4a8c56);
    border-radius: 4px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-main {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #2c5530, #4a8c56);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -moz-text-fill-color: transparent;
    color: transparent;
}

.logo-sub {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    color: #4a8c56;
    letter-spacing: 0.5px;
}

/* Hover effect */
.logo:hover .mountain-peak {
    animation: bounce 0.5s ease;
}

.logo:hover .mountain-peak.middle {
    animation-delay: 0.1s;
}

.logo:hover .mountain-peak.small {
    animation-delay: 0.2s;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Header and Navigation Styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.8rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* Logo Styles */
.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-logo i {
    font-size: 2rem;
    color: #2c5530;
    margin-right: 0.8rem;
    transition: transform 0.3s ease;
}

.nav-logo span {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c5530;
    background: linear-gradient(45deg, #2c5530, #4a8c56);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.3s ease;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-item {
    margin: 0 0.5rem;
    position: relative;
}

.nav-link {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    padding: 0.8rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #2c5530, #4a8c56);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.nav-link:hover::before,
.nav-link.active::before {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-link:hover {
    color: #2c5530;
}

/* Search Bar */
.nav-search {
    margin: 0 1.5rem;
    position: relative;
    flex: 0 1 300px;
}

.search-container {
    position: relative;
    display: flex;
}

.search-input {
    width: 100%;
    padding: 0.6rem 1rem;
    padding-right: 3rem;
    border: 1px solid #e0e0e0;
    border-radius: 50px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.search-input:focus {
    outline: none;
    border-color: #4a8c56;
    box-shadow: 0 0 0 2px rgba(74, 140, 86, 0.2);
}

.search-btn {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.search-btn:hover {
    color: #2c5530;
    background: rgba(0, 0, 0, 0.05);
}

/* User Menu */
.nav-user {
    display: flex;
    align-items: center;
}

/* Mobile Menu Button */
.hamburger {
    display: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.bar {
    display: block;
    width: 25px;
    height: 2px;
    margin: 5px auto;
    background-color: #2c5530;
    transition: all 0.3s ease-in-out;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .nav-link {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .nav-search {
        flex: 0 1 250px;
    }
}

@media (max-width: 992px) {
    .hamburger {
        display: block;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        gap: 0;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        padding: 2rem 0;
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-item {
        margin: 1rem 0;
        width: 100%;
    }
    
    .nav-link {
        padding: 1rem;
        width: 100%;
        display: block;
    }
    
    .nav-search {
        position: absolute;
        left: 2rem;
        right: 2rem;
        top: 120%;
        margin: 0;
        z-index: 1001;
        display: none;
    }
    
    .nav-search.active {
        display: block;
    }
    
    .nav-user {
        margin-left: auto;
        margin-right: 1rem;
    }
}

/* Animation for header on scroll */
@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.navbar {
    animation: slideDown 0.5s ease-out;
}

/* Active state for current page */
.nav-link.active {
    color: #2c5530;
    font-weight: 600;
}

/* Dropdown Menu (if needed in future) */
.dropdown-menu {
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.dropdown-item {
    padding: 0.5rem 1.5rem;
    color: #2c3e50;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: #f8f9fa;
    color: #2c5530;
    padding-left: 1.8rem;
}

/* Notification Badge */
.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}
