/* --- Global Reset & Fonts --- */
:root {
    --primary-color: #27ae60;
    --admin-color: #2980b9;
    --danger: #c0392b;
    --dark-text: #333;
    --light-text: #666;
    --bg-color: #f4f4f4;
    --white: #fff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body { font-family: 'Poppins', sans-serif; background: var(--bg-color); color: var(--dark-text); line-height: 1.6; }

/* --- Navbar --- */
.navbar { background: var(--primary-color); padding: 1rem 5%; display: flex; justify-content: space-between; align-items: center; }
.navbar.admin-nav { background: var(--admin-color) !important; }

.logo { color: var(--white); font-weight: 600; font-size: 1.5rem; }
.logo a { color: white; text-decoration: none; }
.nav-links { display: flex; list-style: none; gap: 20px; }
.nav-links a { color: white; text-decoration: none; }
.btn { background: white; color: var(--primary-color) !important; padding: 5px 15px; border-radius: 20px; font-weight: 600; }

/* --- Layout --- */
.container { max-width: 1200px; margin: 0 auto; padding: 40px 20px; }
.card { background: white; padding: 30px; border-radius: 10px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); margin-bottom: 20px; }

/* --- HERO SECTION FIXED --- */
.hero { 
    /* Darker Gradient (0.85) to make text readable against the busy e-trike photo */
    background: linear-gradient(rgba(0,0,0,0.85), rgba(0,0,0,0.85)), url('img/HomePage.png');
    background-size: cover; 
    background-position: center;
    background-repeat: no-repeat;
    height: 85vh; 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    padding: 0 10%;
    color: var(--white);
}

.hero-content { max-width: 600px; }

.hero-content h1 { 
    font-size: 3.5rem; 
    margin-bottom: 20px; 
    line-height: 1.2; 
}

.hero-content p { 
    font-size: 1.2rem; 
    margin-bottom: 50px; /* BIGGER SPACE HERE to stop overlap */
    opacity: 0.9; 
    line-height: 1.8;
}

.cta-button { 
    background: var(--primary-color); 
    color: white; 
    padding: 15px 50px; 
    text-decoration: none; 
    border-radius: 30px; 
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-block;
    border: 2px solid var(--primary-color);
    transition: 0.3s;
    margin-top: 10px; /* Extra safety margin */
}
.cta-button:hover { background: transparent; border: 2px solid white; }

/* --- Road Sign Widget --- */
.sign-widget {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.2);
    text-align: center;
    width: 280px;
    height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
}

/* Inputs & Buttons */
input, select, textarea, button { 
    width: 100%; padding: 10px; margin: 10px 0; border: 1px solid #ddd; border-radius: 5px; 
    font-family: 'Poppins', sans-serif; height: 45px; box-sizing: border-box;
}
button { background: var(--primary-color); color: white; border: none; cursor: pointer; font-weight: 600; margin-bottom: 0; }
button:hover { opacity: 0.9; }
textarea { height: auto; } 

/* Tables */
.table-container { background: white; padding: 20px; border-radius: 10px; overflow-x: auto; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
table { width: 100%; border-collapse: collapse; min-width: 600px; }
table th { background: #eee; padding: 15px; text-align: left; }
table td { padding: 15px; border-bottom: 1px solid #eee; }

/* Forms & Contact */
.auth-container { display: flex; justify-content: center; align-items: center; min-height: 80vh; padding: 20px; }
.form-box { background: white; padding: 40px; border-radius: 10px; width: 100%; max-width: 450px; box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
.contact-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }

.contact-info { display: flex; flex-direction: column; gap: 20px; }
/* Map Container */
#map { width: 100%; height: 250px; border-radius: 10px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.image-box { width: 100%; height: 250px; overflow: hidden; border-radius: 10px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.image-box img { width: 100%; height: 100%; object-fit: cover; }

/* Modal */
.modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.5); justify-content: center; align-items: center; }
.modal.show { display: flex; }
.modal-content { background: white; padding: 30px; border-radius: 10px; text-align: center; width: 90%; max-width: 400px; position: relative; }
.close-modal { position: absolute; top: 10px; right: 15px; font-size: 1.5rem; cursor: pointer; color: #aaa; }

/* Utils */
.hidden { display: none; }
.filter-bar { display: flex; gap: 15px; flex-wrap: wrap; align-items: flex-end; }
.filter-group { flex: 1; min-width: 150px; }

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero { flex-direction: column; text-align: center; gap: 30px; }
    .contact-wrapper { grid-template-columns: 1fr; }
    #weatherWidget { display: none; }
}