/* Updated Navbar Styling */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    min-height: 90px; /* Reduced from 120px */
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 4rem;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12); /* More prominent shadow */
}

.navbar.hide {
    transform: translateY(-100%);
}

.navbar.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

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

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.3rem; /* Reduced from 0.5rem */
    margin: 0;
    padding: 1rem 0;
    flex-wrap: nowrap; /* Prevent wrapping */
    white-space: nowrap; /* Keep items in single line */
}

.nav-links li {
    list-style: none;
    position: relative;
    margin: 0 2px; /* Reduced from 5px */
}

.nav-item {
    text-decoration: none;
    color: #2c3e50;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem; /* Increased from 0.7rem */
    font-weight: 600;
    letter-spacing: 0.3px;
    padding: 1.2rem 1.5rem; /* Increased padding */
    border-radius: 10px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.2rem; /* Reduced icon gap */
    text-transform: uppercase;
    white-space: nowrap; /* Prevent text wrapping */
}

.nav-item i {
    font-size: 13px;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.nav-item:hover {
    background-color: rgba(45, 158, 68, 0.08);
    color: var(--primary-color);
    transform: translateY(-2px);
    text-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.nav-item:hover i {
    transform: scale(1.1);
}


@media screen and (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .navbar {
        padding: 0.8rem 1.5rem;
        min-height: 90px;
    }

    .nav-links {
        background: white;
        padding: 2rem;
        gap: 1.5rem;
    }

    .nav-links li::after {
        display: none;
    }

    .nav-item {
        justify-content: center;
        width: 100%;
        padding: 1rem;
        border-radius: 10px;
        background: rgba(45, 158, 68, 0.05);
    }

    .nav-item:hover {
        background: rgba(45, 158, 68, 0.1);
        transform: none;
    }
}

/* Updated Responsive Navbar Styling */
@media screen and (min-width: 1441px) {
    .navbar {
        height: 90px; /* Reduced from 120px */
        padding: 0 6rem;
    }
    .navbar-spacer {
        height: 90px; /* Reduced from 120px */
    }
}

@media screen and (min-width: 1024px) and (max-width: 1440px) {
    .navbar {
        padding: 0 4rem;
        height: 90px; /* Reduced from 120px */
    }

    .nav-item {
        font-size: 1rem;
        padding: 0.8rem 1.2rem;
    }

    .nav-links {
        gap: 0.4rem; /* Reduced from 0.8rem */
    }
}

@media screen and (min-width: 768px) and (max-width: 1023px) {
    .navbar {
        padding: 0 2rem;
        height: 65px; /* Reduced from 75px */
    }

    .nav-item {
        font-size: 0.9rem;
        padding: 0.5rem 0.7rem;
        letter-spacing: 0.2px;
    }

    .nav-links {
        gap: 0.3rem;
        margin-right: 0.5rem;
    }

    .nav-item i {
        font-size: 1rem;
    }
}

@media screen and (min-width: 480px) and (max-width: 767px) {
    .navbar {
        padding: 0 1.5rem;
        height: 60px; /* Reduced from 70px */
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 60px; /* Reduced from 70px */
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px); /* Adjusted to match new height */
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        padding: 2rem;
        transition: 0.3s;
    }

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

    .nav-item {
        font-size: 1rem;
        width: 100%;
        text-align: center;
        padding: 1rem;
    }
}

/* Update navbar breakpoint to include iPad Pro */
@media screen and (max-width: 1024px) {
    .hamburger {
        display: flex;
        margin-left: auto;
    }

    .navbar {
        min-height: 90px;
        padding: 1rem 2rem;
    }

    .nav-links {
        position: absolute;
        top: 90px;
        right: -300px;
        width: 300px;
        height: fit-content; /* Change from auto to fit-content */
        max-height: calc(100vh - 90px); /* Adjust max-height */
        background: white;
        border-radius: 0 0 0 15px;
        box-shadow: -5px 5px 15px rgba(0, 0, 0, 0.1);
        padding: 1.5rem;
        gap: 0.5rem;
        transition: right 0.3s ease;
        margin: 0;
        z-index: 1000;
        display: flex;
        flex-direction: column;
        overflow-y: auto;
    }

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

    .nav-links li {
        width: 100%;
        margin: 0.3rem 0;
    }

    .nav-item {
        width: 100%;
        font-size: 0.9rem;
        padding: 0.8rem 1.2rem;
        justify-content: flex-start;
        border-radius: 8px;
        background: rgba(45, 158, 68, 0.03);
    }

    .nav-item:hover {
        background: rgba(45, 158, 68, 0.08);
        transform: none;
    }

    .dropdown-content {
        position: static;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        margin: 0;
        padding: 0;
        border: none;
        transform: none;
        transition: max-height 0.3s ease, padding 0.3s ease;
        background: rgba(248, 249, 250, 0.5);
        border-radius: 8px;
    }

    .dropdown.open .dropdown-content {
        max-height: 500px;
        padding: 0.5rem;
        margin-top: 0.5rem;
    }

    .dropdown-content a {
        padding: 12px 16px;
        color: #333;
        width: 100%;
        display: block;
        text-align: left;
        border-radius: 6px;
    }

    .dropdown-content a:hover {
        background-color: rgba(45, 158, 68, 0.1);
        color: var(--primary-color);
    }
}

/* Standardized Mobile Navigation Styles */
@media screen and (max-width: 1024px) {
    .nav-links {
        position: fixed;
        top: 90px;
        left: -100%;
        width: 100%;
        height: fit-content; /* Change from calc(100vh - 90px) to fit-content */
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 1.5rem;
        gap: 0.8rem;
        transition: 0.3s ease;
        overflow-y: auto;
        z-index: 1000;
        align-items: flex-start;  /* Change from center to flex-start */
        padding-top: 2rem;
    }

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

    .nav-item {
        width: 100%;
        font-size: 1rem;
        padding: 1rem;
        justify-content: flex-start;  /* Change from center to flex-start */
        border-radius: 8px;
        background: rgba(45, 158, 68, 0.03);
    }

    .dropdown-content {
        position: static;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        margin: 0;
        padding: 0;
        border: none;
        transform: none;
        transition: max-height 0.3s ease, padding 0.3s ease;
        background: rgba(248, 249, 250, 0.5);
        border-radius: 8px;
    }

    .dropdown.open .dropdown-content {
        max-height: 500px;
        padding: 0.5rem;
        margin-top: 0.5rem;
    }

    .dropdown-content a {
        padding: 12px 16px;
        color: #333;
        width: 100%;
        display: block;
        text-align: left;
        border-radius: 6px;
    }

    .dropdown-content a:hover {
        background-color: rgba(45, 158, 68, 0.1);
        color: var(--primary-color);
    }
}

/* Logo Styling */
.navbar .logo {
    display: flex;
    align-items: center;
}

.navbar .logo img {
    height: 40px;
    margin-right: 10px;
}

.navbar .logo a {
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    color: var(--primary-color); /* Use primary color */
}

.logo {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

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

/* Navigation Links */
.nav-links {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin: 0;
    padding: 0;
    gap: 20px;
}

.nav-links li {
    margin: 0 15px;
    list-style: none;
}

/* Default Button Style */
.nav-links a {
    text-decoration: none;
    color: var(--text-color); /* Use text color */
    font-size: 1rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 5px;
    position: relative; /* For underline effect */
    transition: all 0.3s ease-in-out;
    background: transparent;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 3px;
    /* background: var(--secondary-color); Use secondary color */
    transition: width 0.3s ease-in-out;
    border-radius: 2px;
}

/* Hover Effect - Increase Font Size Smoothly */
.nav-links a:hover {
    color: var(--primary-color);
    background: rgba(45, 158, 68, 0.1);
    transform: translateY(-2px);
}

.nav-links a:hover::after {
    width: 100%; /* Underline expands fully */
}

.nav-item {
    text-decoration: none;
    color: var(--text-color);
    font-size: 1rem;
    font-weight: bold;
    padding: 10px 15px;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
}

.nav-item:hover {
    /* background-color: var(--primary-color); */
    color: white;
    /* box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); */
    background: none;
}

/* Updated Dropdown styles */
.dropdown-content {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: white;
    min-width: 300px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    border-radius: 12px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    padding: 15px 0;
    z-index: 1001;
    border: 1px solid rgba(0,0,0,0.08);
    text-align: center; /* Add this */
}

.dropdown-content li {
    display: block;
    margin: 5px 0;
    text-align: center; /* Add this */
}

.dropdown-content a {
    color: #333;
    padding: 12px 25px;
    display: block;
    transition: all 0.2s ease;
    font-size: 1rem;
    font-weight: 500;
    position: relative;
    text-align: left; /* Add this */
}

.dropdown-content a:hover {
    background-color: #f8f9fa;
    color: #28a745;
    padding-left: 25px; /* Change this from 30px to 25px to maintain centering */
}

/* Desktop Dropdown styles */
@media (min-width: 769px) {
    .dropdown-content {
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%) translateY(-10px);
        background: white;
        min-width: 300px;
        box-shadow: 0 15px 35px rgba(0,0,0,0.2);
        border-radius: 12px;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        padding: 15px 0;
        z-index: 1001;
        border: 1px solid rgba(0,0,0,0.08);
        text-align: left;
    }

    .dropdown-content li {
        text-align: left;
    }

    .dropdown-content a {
        text-align: left;
        padding: 12px 25px;
    }

    .dropdown:hover .dropdown-content {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }
}

/* Mobile and Tablet Dropdown styles */
@media (max-width: 1024px) {
    .navbar {
        padding: 0 1rem;
        height: 75px; /* Increased from 70px */
    }

    .nav-links {
        position: fixed;
        top: 75px;
        left: -100%;
        width: 100%;
        height: fit-content; /* Change from calc(100vh - 75px) to fit-content */
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        transition: left 0.3s ease-in-out;
        overflow-y: auto;
    }

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

    .nav-item {
        width: 100%;
        justify-content: center;
        font-size: 1rem;
        padding: 1rem;
    }

    .dropdown {
        width: 100%;
    }

    .dropdown-content {
        position: static;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        margin: 0;
        padding: 0;
        border: none;
        transform: none;
        transition: max-height 0.3s ease, padding 0.3s ease;
        background: rgba(248, 249, 250, 0.5);
        border-radius: 8px;
        text-align: center;
    }

    .dropdown-content li {
        width: 100%;
        text-align: center;
        margin: 0;
    }

    .dropdown-content a {
        width: 100%;
        text-align: center;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0.8rem;
    }

    .dropdown:hover .dropdown-content {
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .dropdown.open .dropdown-content {
        max-height: 300px;
        padding: 0.5rem 0;
        overflow: visible;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0 0.8rem;
        height: 90px; /* Increased from 60px */
    }

    .nav-links {
        top: 90px;  /* Match navbar height */
        height: calc(100vh - 90px);
        padding: 1.5rem;
    }

    .nav-item {
        font-size: 0.95rem;
        padding: 0.8rem;
    }

    .logo img {
        height: 45px !important;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .navbar {
        padding: 0 2rem;
    }

    .nav-item {
        font-size: 0.9rem;
        padding: 0.6rem 0.8rem;
    }

    .nav-links {
        gap: 1rem; /* Reduced from 3rem */
    }
}
