/* ======================================================= */
/* Customerdashboard.css - COMPACT MODAL VERSION */
/* ======================================================= */

/* 0. CSS Variables & Global Resets */
:root {
    /* Brand Colors */
    --primary-color: #004d40; 	 /* Dark Teal/Green (Header, Footer Bottom, Main Buttons) */
    --secondary-color: #17422f; 	 /* Darker Green (Hero/Footer Main) */
    --accent-color: #66bb6a; 	 /* Bright Green Accent (Highlights, Icons) */
    --highlight-color: #72F7BD; 	 /* Lighter Highlight */
    
    /* Neutral Colors */
    --text-light: #fff; 	 	 /* White */
    --text-dark: #333; 	 	 /* Dark Gray */
    --bg-light: #f0f0f0; 	 	 /* Light Gray Background (Main Body) */
    --border-light: #ccc; 	 	 /* Light Gray Border */
    
    --header-height: 65px; 	 	 /* Fixed header height */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Added smooth scroll for anchor links (Single Page Look) */
html, body {
    scroll-behavior: smooth; 
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
    /* Adjust padding-top based on fixed header height */
    padding-top: var(--header-height);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    z-index: 10000;
    text-decoration: none;
}

.skip-link:focus {
    top: 0;
}

/* ---------------------------------------------- */
/* Header / Navigation Bar Styling */
/* ---------------------------------------------- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 50px;
    background-color: var(--primary-color);
    color: var(--text-light);
    position: fixed;
    width: 100%;
    box-sizing: border-box;
    z-index: 1000;
    top: 0;
    left: 0;
    right: 0;
}

.logo-container { display: flex; align-items: center; gap: 5px; color: var(--text-light); font-weight: 700; }
.logo-circle { width: 45px; height: 45px; background-color: var(--primary-color); border-radius: 50%; display: flex; justify-content: center; align-items: center; overflow: hidden; }
.logo-circle img { max-width: 80%; height: auto; border-radius: 50%; }
.logo-text { display: flex; flex-direction: column; justify-content: center; }
.logo-main { font-size: 24px; line-height: 1; margin-bottom: -4px; }
.logo-sub { font-size: 16px; line-height: 1; }

nav { display: flex; flex-grow: 1; justify-content: flex-end; align-items: center; padding: 0; margin: 0 40px 0 0; position: relative; z-index: 1000; }
nav ul { list-style: none; display: flex; margin: 0; padding: 0; }
nav ul li { margin: 0 15px; font-size: 14px; font-weight: 500; }
nav a:hover { text-decoration: underline; }

/* ACTIVE LINK STYLING (Controlled by JavaScript Scroll Spy) */
nav ul li a.active-link {
    font-weight: 700;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 5px;
}

.header-actions { display: flex; align-items: center; gap: 10px; }

/* Focus styles for accessibility */
.btn-primary:focus,
.category-btn:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* ---------------------------------------------- */
/* Hero Section Styling (HOME) */
/* ---------------------------------------------- */
.hero-section {
    position: relative;
    height: calc(100vh - var(--header-height)); 
    padding: 20px 20px 0 20px; 
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    text-align: center;
    overflow: hidden; 
    margin-bottom: 120px;
}
/* Background Image Container with Blur and Brightness */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/Background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(6px) brightness(0.4); 
    transform: scale(1.02); 
}

/* Overlay made transparent as the brightness filter is used */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--secondary-color); 
    opacity: 0; 
}

.hero-content {
    position: relative;
    z-index: 5;
    max-width: 900px; 
}

.hero-content h1 { font-size: 60px; font-weight: 700; margin: 0 0 10px 0; line-height: 1.1; letter-spacing: 5px; }
.hero-content h2 { font-size: 28px; font-weight: 400; margin: 0 0 30px 0; color: var(--accent-color); letter-spacing: 2px; }
.hero-content p { font-size: 18px; line-height: 1.6; margin-bottom: 25px; padding: 0 50px; font-weight: 500; }
.warning-text { font-weight: 700; color: var(--highlight-color); font-style: italic; margin-top: 5px; }

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: none;
    padding: 12px 30px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

/* ---------------------------------------------- */
/* General Content Container (Features & About) */
/* ---------------------------------------------- */

.main-content {
    min-height: auto;
    padding-top: 30px; 	 
    padding-left: 20px; 	 
    padding-right: 20px; 	 
    padding-bottom: 80px;
    max-width: 1200px;
    margin: 0 auto;
    flex: 1;
    width: 100%;
}

.section-title {
    text-align: center;
    font-size: 20px; 
    font-weight: 500;
    padding: 8px 20px; 
    margin: 0 auto 30px auto; 
    color: var(--text-light);
    background-color: var(--primary-color);
    display: block;
    width: fit-content;
    border-radius: 5px;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* ---------------------------------------------- */
/* Features Section Styling */
/* ---------------------------------------------- */

.features-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 30px;
    text-align: center;
}

.feature-card {
    background-color: rgba(0, 77, 64, 0.05); 
    border: 1px solid var(--primary-color); 
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 77, 64, 0.2); 
    width: 210px; 
    padding: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between; 
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 77, 64, 0.4); 
}

.icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--accent-color); 
    color: var(--text-light);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.feature-card p {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    min-height: 70px; 
}

.read-more-btn {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 700;
    border: 1px solid var(--primary-color);
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 14px;
    transition: background-color 0.3s, color 0.3s;
}

.read-more-btn:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
    text-decoration: none;
}

/* Modal Styling */
.modal { 
    display: none; 
    position: fixed; 
    z-index: 10000; 
    left: 0; 
    top: 0; 
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.7); 
    padding: 10px;
}
.modal-content { 
    background-color: var(--text-light); 
    margin: 2% auto; 
    padding: 20px; 
    border: 1px solid #888; 
    width: 90%; 
    max-width: 600px; 
    border-radius: 10px; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.3); 
    position: relative; 
    text-align: center; 
    animation-name: animatetop; 
    animation-duration: 0.4s; 
    max-height: 95vh;
    overflow-y: auto;
}
@keyframes animatetop { from {top: -300px; opacity: 0} to {top: 0; opacity: 1} }
.modal-content h2 { color: var(--primary-color); font-size: 24px; margin-top: 0; border-bottom: 2px solid var(--accent-color); padding-bottom: 10px; margin-bottom: 20px; }
.modal-content p { font-size: 16px; line-height: 1.6; color: var(--text-dark); text-align: left; }
.close-btn { color: #aaa; float: right; font-size: 28px; font-weight: bold; position: absolute; top: 10px; right: 15px; }
.close-btn:hover, .close-btn:focus { color: var(--primary-color); text-decoration: none; cursor: pointer; }

/* ---------------------------------------------- */
/* About Us Section Styling */
/* ---------------------------------------------- */

.about-us-container {
    padding-top: 20px; 
    padding-bottom: 80px;
    margin-top: 50px;
}

.about-content {
    display: flex;
    gap: 50px;
    align-items: flex-start;
    margin-bottom: 50px;
}

.about-text {
    flex: 2;
    padding-right: 20px;
}

.about-text h2 {
    color: var(--primary-color); 
    font-size: 17px;
    margin-top: 35px;
    margin-bottom: 8px;
}

.about-text p {
    color: #444;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 12px;
}

.about-image {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; 
    align-items: center;
    max-width: 400px;
}

.about-image .img-wrapper {
    width: 100%;
    height: 180px; 
    margin-bottom: 20px; 
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
}
.about-image .img-wrapper:hover {
    transform: scale(1.7);
    z-index: 100;
}
.about-image img {
    width: 100%;
    height: 100%; 
    object-fit: cover; 
    display: block;
    transition: transform 0.5s ease-in-out; 
}

/* ========================================== */
/* Login Dropdown Styles */
/* ========================================== */

.login-dropdown {
    position: relative;
    display: inline-block;
}

.login-button {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.login-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.login-button:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    min-width: 180px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 6px;
    z-index: 1001;
    margin-top: 5px;
    overflow: hidden;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    display: block;
    padding: 12px 16px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s;
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: var(--primary-color);
}

.login-button::after {
    content: "▼";
    font-size: 10px;
    transform: scaleY(0.7);
}

/* ---------------------------------------------- */
/* Footer Styling - FIXED */
/* ---------------------------------------------- */
footer { 
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    background-color: var(--secondary-color); 
    color: var(--text-light);
    margin-top: auto;
    margin-bottom: 0;
    padding: 0;
}
.footer-main-content { 
    display: flex; 
    justify-content: space-between; 
    padding: 40px 20px 20px 20px; 
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    flex-wrap: wrap;
}

.footer-col { 
    flex: 1; 
    padding: 0 15px; 
    min-width: 200px; 
    box-sizing: border-box;
    margin-bottom: 20px;
}

.footer-col h3 { 
    font-size: 18px; 
    border-bottom: 1px solid var(--accent-color); 
    padding-bottom: 8px; 
    margin-bottom: 20px; 
    font-weight: 700; 
    color: var(--text-light); 
}

.footer-info { 
    max-width: 300px; 
}

.footer-info .logo-container { 
    margin-bottom: 20px; 
}

.footer-info .logo-container .logo-main { 
    font-size: 20px; 
}

.footer-info .logo-container .logo-sub { 
    font-size: 14px; 
}

.footer-info p { 
    font-size: 14px; 
    line-height: 1.6; 
    margin-top: 20px; 
    color: #ccc; 
}

.footer-links ul { 
    list-style: none; 
    padding: 0; 
    margin: 0; 
}

.footer-links ul li { 
    margin-bottom: 8px; 
}

.footer-links a { 
    font-size: 14px; 
    color: #e0e0e0; 
    transition: color 0.3s; 
}

.footer-links a:hover { 
    color: var(--accent-color); 
}

.footer-contact p { 
    font-size: 14px; 
    line-height: 1.8; 
    margin-bottom: 10px; 
    color: #ccc; 
}

.footer-contact i { 
    color: var(--accent-color); 
    margin-right: 10px; 
    width: 15px; 
    text-align: center; 
}

.footer-social { 
    text-align: left; 
}

.social-icons { 
    display: flex; 
    gap: 10px; 
    justify-content: flex-start; 
}

.social-icons a { 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    width: 35px; 
    height: 35px; 
    border-radius: 50%; 
    background-color: var(--primary-color); 
    color: var(--text-light); 
    font-size: 16px; 
    transition: background-color 0.3s; 
}

.social-icons a:hover { 
    background-color: var(--accent-color); 
}

.footer-bottom-bar { 
    width: 100%; 
    background-color: var(--primary-color); 
    padding: 12px 20px; 
    text-align: center; 
    font-size: 12px; 
    margin: 0;
    box-sizing: border-box;
}

/* ---------------------------------------------- */
/* Responsive Design */
/* ---------------------------------------------- */

/* Anchor Offset Fix */
#home-section,
#features-section,
#aboutus-section {
    scroll-margin-top: calc(var(--header-height) + 15px);
}

@media (max-width: 768px) {
    .hero-content h1 { font-size: 45px; }
    .hero-content h2 { font-size: 22px; }
    .hero-content p { font-size: 16px; padding: 0 20px; }
    .features-grid { gap: 20px; }
    .feature-card { width: 45%; }
    
    header { 
        flex-direction: column; 
        padding: 15px; 
        height: auto; 
        position: static; 
    }
    body { 
        padding-top: 0; 
    } 
    #home-section, #features-section, #aboutus-section {
        scroll-margin-top: 0; 
    }
    
    nav { margin: 10px 0; justify-content: center; }
    nav ul { flex-wrap: wrap; justify-content: center; }
    nav ul li { margin: 5px 10px; }
    .header-actions { margin-top: 10px; }
}

@media (max-width: 650px) {
    .feature-card { width: 80%; max-width: 350px; }
}

@media (max-width: 480px) {
    .hero-section {
        height: auto;
        min-height: 80vh;
        margin-bottom: 80px;
    }
    .hero-content h1 { font-size: 30px; }
    .hero-content h2 { font-size: 18px; }
    .hero-content p { padding: 0 5px; }

    .footer-main-content { 
        flex-direction: column; 
        text-align: center; 
        padding: 30px 20px 20px 20px;
    }
    .footer-col { padding: 15px 0; min-width: auto; }
    .footer-social .social-icons { justify-content: center; }
    .footer-info .logo-container { justify-content: center; }
    .modal-content { width: 95%; margin: 5% auto; }
    
    .about-us-container {
        padding-bottom: 60px;
        margin-top: 30px;
    }
}
#aboutus-section {
    padding-bottom: 0 !important;
}
.about-us-container {
    padding-bottom: 0 !important;
}