/* Reset and Base Styles */
body, h1, p, ul, li, a {
    margin: 0;
    padding: 0;
    list-style: none;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
}

body {
    background: linear-gradient(135deg, #ffffff 0%, #e8f5e9 50%, #c8e6c9 100%);
    color: #2c5530;
    min-height: 100vh;
    overflow-y: auto;
    padding-top: 50px;
    padding-bottom: 50px;
}

/* Header Styles */
header {
    background: rgba(53, 122, 53, 0.95);
    backdrop-filter: blur(10px);
    padding: 10px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}

header h1 {
    font-size: 1.5rem;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    text-align: center;
}

nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 10px 0;
}

nav li a {
    color: #ffffff;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 30px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
}

nav li a i {
    font-size: 1.1rem;
}

nav li a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* About Section */
#about-section {
    margin: 120px auto 40px;
    max-width: 1000px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(76, 175, 80, 0.08);
}

#about-section h2 {
    color: #2c5530;
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-align: center;
    position: relative;
}

#about-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(45deg, #43A047, #4CAF50);
    border-radius: 2px;
}

#about-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4a4a4a;
    text-align: center;
}

/* Tree List Section */
.tree-list {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.tree-list h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #2c5530;
    margin-bottom: 40px;
    position: relative;
}

.tree-list h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(45deg, #43A047, #4CAF50);
    border-radius: 2px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.col-md-4 {
    width: 350px;
    margin-bottom: 30px;
}

.tree-item {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.tree-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(76, 175, 80, 0.15);
}

.tree-item img {
    width: 100%;
    object-fit: contain;
    background: #f5f5f5;
    padding: 10px;
    max-height: 300px;
    min-height: 200px;
}

.tree-caption {
    padding: 20px;
    background: rgba(255, 255, 255, 0.95);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tree-caption h5 {
    color: #2c5530;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.tree-caption p {
    color: #666;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.tree-caption p i {
    color: #43A047;
    font-size: 1.1rem;
    width: 20px;
}

/* Contact Section */
#contact-section {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    padding: 60px 20px;
    text-align: center;
    margin-top: 40px;
}

#contact-section h2 {
    color: #2c5530;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(45deg, #43A047, #4CAF50);
    color: white;
    border-radius: 30px;
    font-weight: 500;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.1);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.2);
    color: white;
}

/* Footer */
footer {
    background: rgba(53, 122, 53, 0.95);
    color: white;
    text-align: center;
    padding: 10px;
    margin-top: 40px;
    position: fixed;
    bottom: 0;
    width: 100%;
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
}

/* Profile Image Styles */
.profile-img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffffff;
}

.profile-img-header {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 2px solid rgba(255, 255, 255, 0.7) !important;
    max-width: 32px !important;
    max-height: 32px !important;
    display: inline-block !important;
}

/* User Profile in Header */
.user-profile {
    display: flex;
    align-items: center;
    
    padding: 5px 15px;
    border-radius: 30px;
    transition: all 0.3s ease;
    
}

.user-profile:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.user-profile img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffffff;
    margin-right: 10px;
}

.user-profile span {
    color: #ffffff;
    font-weight: 500;
    font-size: 0.95rem;
}

/* Logout button specific style */
.logout-btn {
   
    padding: 8px 16px;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* User Profile Dropdown Styles */
.user-profile-dropdown {
    position: relative;
    height: 100%;
}

.user-profile-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    padding: 0 15px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    white-space: nowrap;
    height: 100%;
    cursor: pointer;
    font-family: inherit;
}

.user-profile-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.user-dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: var(--card-bg);
    min-width: 200px;
    box-shadow: 0 8px 25px var(--shadow);
    border-radius: 8px;
    z-index: 1001;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.user-dropdown-content a {
    color: var(--text-primary) !important;
    padding: 12px 16px !important;
    text-decoration: none;
    display: flex !important;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    transition: background-color 0.2s ease;
    height: auto !important;
}

.user-dropdown-content a:hover {
    background: var(--hover-bg) !important;
    color: var(--text-accent) !important;
}

.user-profile-dropdown.active .user-dropdown-content {
    display: block;
}

.user-profile-dropdown.active .user-profile-btn i.bi-chevron-down {
    transform: rotate(180deg);
}

/* Responsive Design */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .col-md-4 {
        width: 100%;
        max-width: 350px;
    }
    
    .tree-item img {
        max-height: 250px;
    }

    #about-section {
        margin: 100px 20px 40px;
        padding: 30px 20px;
    }

    header h1 {
        font-size: 1.5rem;
    }
}

/* Header and Footer Transition Styles */
header, footer {
    transition: transform 0.3s ease-in-out;
}

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

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

/* Ensure smooth scrolling for the page */
html {
    scroll-behavior: smooth;
}

.header, .footer {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    text-align: center;
    padding: 10px;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

.header {
    top: 0;
}

.footer {
    bottom: 0;
}

header nav a {
    color: white;
    margin: 0;
    text-decoration: none;
    font-weight: bold;
}

/* Add container styles if not already present */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.header-logo {
    height: 45px;
    width: auto;
    vertical-align: middle;
    margin-right: 10px;
}

header h1 {
    display: flex;
    align-items: center;
    justify-content: center;
}