header {
    background-color: var(--primary-color);
    color: #fff;
    padding: 1rem 0;
    box-shadow: 0 4px 8px var(--shadow-medium); /* Stronger shadow */
    position: relative; /* Needed for absolute positioning of mobile nav */
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    margin: 0;
    font-size: 1.9rem; /* Slightly larger heading */
    font-weight: 700; /* Bolder */
    flex-shrink: 0; /* Ensure logo doesn't shrink on desktop */
}

/* Desktop navigation */
header nav {
    flex-grow: 0; /* Ensure nav only takes necessary width on desktop */
    flex-shrink: 0; /* Ensure nav doesn't shrink on desktop */
}

header nav ul {
    list-style: none;
    display: flex;
}

header nav ul li {
    margin-left: 25px; /* More space between links */
}

header nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease, transform 0.2s ease; /* Add transform for subtle effect */
    position: relative; /* For underline effect */
}

header nav ul li a:hover {
    color: var(--accent-color); /* Highlight with accent color */
    transform: translateY(-2px); /* Subtle lift */
}

/* Optional: Underline effect on hover */
header nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

header nav ul li a:hover::after {
    width: 100%;
}

/* Hamburger menu toggle - hidden by default on desktop */
.menu-toggle {
    display: none; /* Hide on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1100; /* Ensure it's above the mobile nav when open */
    position: relative; /* For z-index to work correctly with fixed nav */
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Styles for when menu is active (hamburger transform) */
.menu-toggle.active .hamburger:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

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

.menu-toggle.active .hamburger:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

main {
    flex: 1;
    padding: 2rem 0;
}

section {
    background-color: var(--card-bg);
    padding: 40px;
    margin-bottom: 30px;
    border-radius: 10px; /* Slightly more rounded corners */
    box-shadow: 0 6px 20px var(--shadow-medium); /* More pronounced shadow for sections */
}

.hero-section {
    text-align: center;
    padding: 90px 20px; /* Increased padding */
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%); /* Use primary color shades */
    color: #fff;
    border-radius: 10px;
    margin-bottom: 30px;
    display: flex; /* Use flex for content centering */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative; /* For potential background elements */
    overflow: hidden;
}

.hero-section h2 {
    font-size: 3.2rem; /* Larger font size for main heading */
    margin-bottom: 25px;
    font-weight: 700;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4); /* Stronger text shadow */
    line-height: 1.2;
}

.hero-section p {
    font-size: 1.4rem; /* Larger description text */
    max-width: 800px; /* Adjusted width */
    margin: 0 auto 40px auto; /* More margin below paragraph for button */
    font-weight: 300; /* Lighter weight for readability */
}

.btn-primary {
    display: inline-block;
    background-color: var(--accent-color); /* Green button */
    color: #fff;
    padding: 16px 32px; /* Slightly larger padding */
    border-radius: 50px; /* Pill-shaped button */
    text-decoration: none;
    font-size: 1.15rem; /* Slightly larger font */
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px var(--shadow-strong); /* Stronger shadow */
}

.btn-primary:hover {
    background-color: var(--accent-dark); /* Darker green on hover */
    transform: translateY(-4px); /* More pronounced lift */
    box-shadow: 0 8px 25px var(--shadow-strong); /* Stronger shadow on hover */
}

.card-management-section h2, .about-section h2 {
    text-align: center;
    margin-bottom: 35px; /* More space below section title */
    color: var(--primary-color);
    font-size: 2.2rem; /* Slightly larger section titles */
    font-weight: 700;
}

footer {
    background-color: var(--primary-color);
    color: #fff;
    text-align: center;
    padding: 1.8rem 0; /* More padding */
    margin-top: auto; /* Pushes footer to the bottom */
    box-shadow: 0 -4px 8px var(--shadow-medium); /* Stronger shadow */
}

footer p {
    margin: 0;
    font-size: 0.95rem; /* Slightly larger footer text */
    font-weight: 300;
}

/* Media Queries for Mobile Navigation */
@media (max-width: 768px) {
    /* Ensure header container keeps logo and toggle on one row */
    header .container {
        justify-content: space-between;
        align-items: center;
    }

    /* Hide desktop nav list */
    header nav ul {
        display: none;
    }

    /* Show hamburger on mobile */
    .menu-toggle {
        display: block;
    }

    /* Mobile navigation overlay/sidebar */
    header nav {
        position: fixed;
        top: 0;
        right: -100%; /* Start off-screen */
        width: 70%; /* Mobile menu width */
        max-width: 300px; /* Limit max width for very large phones */
        height: 100%;
        background-color: var(--primary-dark); /* Darker background for mobile menu */
        box-shadow: -4px 0 15px rgba(0, 0, 0, 0.3);
        transition: right 0.3s ease-in-out;
        z-index: 1000;
        display: flex; /* Flex container for content */
        flex-direction: column;
        padding-top: 80px; /* Space for header above */
        flex-grow: initial; /* Reset flex-grow for mobile */
        flex-shrink: initial; /* Reset flex-shrink for mobile */
    }

    header nav.active {
        right: 0; /* Slide in */
    }

    /* Re-enable ul for mobile menu, but with flex-direction column */
    header nav ul {
        display: flex; /* Override display: none from above */
        flex-direction: column;
        width: 100%;
        padding: 20px 0;
        margin-top: 0;
        align-items: center;
    }

    header nav ul li {
        margin: 15px 0;
        width: 100%;
        text-align: center;
    }

    header nav ul li a {
        font-size: 1.3rem;
        padding: 10px 0;
        display: block; /* Make links full width of li */
        color: #fff;
    }

    header nav ul li a::after {
        background-color: var(--accent-color);
        height: 3px;
        bottom: -2px;
    }

    /* Overlay and scroll lock when mobile menu is open */
    body.menu-open {
        overflow: hidden; /* Prevent body scroll when menu is open */
    }

    body.menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999; /* Below menu, above other content */
    }
}