/* Import or include common styles from hrhome.css if needed */
/* You can also create a shared 'style.css' for common elements */

/* Basic Reset and Setup */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #afafaf;
    background-color: #2C2C2C;
    overflow-x: hidden;
}

/* Navigation Panel (Consistent with hrhome.css) */
#menu {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 0 20px;
    z-index: 100;
}

#menu #logo img {
    width: 50px;
    height: 50px;
    filter: invert(1) grayscale(100%) contrast(200%);
}

#menu ul {
    list-style: none;
    display: flex; /* Default for larger screens */
    margin: 0;
    padding: 0;
}

#menu ul li {
    margin-left: 20px;
}

#menu ul li a {
    text-decoration: none;
    color: #afafaf;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

#menu ul li a:hover {
    color: white;
}

#menu ul li#userid {
    /* This rule might cause issues if you implement the dynamic user status from home.html */
    /* If dynamic login/logout is added, consider removing this specific #userid margin */
    margin-left: auto;
}

.writingone {
    font-family: "Bebas Neue", serif;
    font-weight: 400;
    font-style: normal;
    letter-spacing: 0.5px;
}

.writingtwo {
    font-family: "Fjalla One", serif;
    font-weight: 400;
    font-style: normal;
}

/* Mobile Menu Toggle Button (Specific to the button itself) */
#mobile-menu-toggle {
    background: none;
    color: #afafaf; /* Or any other color you prefer for the icon */
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    display: none; /* Hidden by default on larger screens */
    z-index: 101; /* Ensure it's above the navigation if needed */
}


/* About Page Specific Styles */
#about-intro {
    position: relative;
    width: 100%;
    height: 300px; /* Adjust as needed */
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
}

#about-intro .overlay {
    background-color: rgba(0, 0, 0, 0.6);
    padding: 20px;
    border-radius: 5px;
}

#about-intro h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

#about-intro p {
    font-size: 1.2rem;
}

#our-story {
    padding: 40px 20px;
    text-align: center;
}

#our-story h2 {
    font-size: 2.8rem;
    color: #afafaf;
    margin-bottom: 30px;
}

.story-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
}

.story-content p {
    margin-bottom: 15px;
    line-height: 1.7;
}

.story-content h3 {
    font-size: 2rem;
    color: #ddd;
    margin-top: 30px;
    margin-bottom: 15px;
}

.founder-info {
    display: flex;
    gap: 30px;
    align-items: center;
    margin-top: 20px;
}

.founder-info img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
}

.founder-bio {
    text-align: left;
}

#our-values {
    padding: 40px 20px;
    text-align: center;
    background-color: #333; /* A slightly darker background for contrast */
}

#our-values h2 {
    font-size: 2.8rem;
    color: #afafaf;
    margin-bottom: 30px;
}

.values-list {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
}

.values-list ul {
    list-style: none;
    padding-left: 20px; /* Adjust if you don't want a default indent */
}

.values-list li {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.values-list li strong {
    color: #ffab00;
}

/* Footer (Consistent with hrhome.css) */
footer {
    text-align: center;
    padding: 20px;
    background-color: #000;
    color: #afafaf;
    font-size: 0.9rem;
}

/* Responsive Design for Mobile Menu and Layouts */
@media (max-width: 768px) {
    html {
        font-size: 15px; /* Slightly reduce base font size for mobile */
    }

    #menu {
        flex-wrap: wrap; /* Allow items to wrap */
        padding: 0 1rem; /* Adjust padding for smaller screens */
        height: auto; /* Allow height to adjust if items wrap */
    }

    #menu #logo {
        margin-right: auto; /* Push logo to the left, mobile toggle to the right */
    }

    /* Hide the regular nav links and prepare for mobile dropdown */
    #menu ul {
        display: none; /* Hide by default on mobile */
        flex-direction: column; /* Stack items vertically */
        position: absolute; /* Position relative to the header */
        top: 60px; /* Adjust based on your header's actual height */
        left: 0;
        width: 100%; /* Take full width of the screen */
        background-color: rgba(0, 0, 0, 0.95); /* Semi-transparent overlay */
        padding: 1rem 0; /* Vertical padding for menu items */
        text-align: center;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5); /* Subtle shadow */
        z-index: 99; /* Ensure it's below sticky header but above content */
        transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out; /* Smooth slide/fade */
        transform: translateY(-100%); /* Start off-screen upwards */
        opacity: 0;
        pointer-events: none; /* Disable interaction when hidden */
    }

    /* Show the mobile menu when 'active' class is toggled by JS */
    #menu ul.active {
        display: flex; /* Make it visible */
        transform: translateY(0); /* Slide into view */
        opacity: 1;
        pointer-events: all; /* Enable interaction */
    }

    #menu ul li {
        margin: 0.75rem 0; /* Vertical spacing for menu items */
        width: 100%; /* Each list item takes full width */
    }

    #menu ul li a {
        padding: 10px 0; /* Increase clickable area for touch */
        display: block; /* Make the whole area of the list item clickable */
    }

    #menu ul li#userid {
        margin-left: 0; /* Override desktop auto-margin */
    }

    /* Display the mobile toggle button */
    #mobile-menu-toggle {
        display: block; /* Show the hamburger icon on small screens */
    }

    /* About page specific responsive adjustments */
    #about-intro {
        height: 250px; /* Adjust height for mobile banner */
    }

    #about-intro h1 {
        font-size: 2.2rem; /* Smaller heading for mobile */
    }

    #about-intro p {
        font-size: 1rem;
    }

    #our-story h2,
    #our-values h2 {
        font-size: 2.2rem; /* Smaller section headings */
    }

    .story-content,
    .values-list {
        padding: 15px; /* Adjust padding for content boxes */
        margin: 0 10px; /* Add slight horizontal margin */
    }

    .founder-info {
        flex-direction: column; /* Stack founder image and bio vertically */
        align-items: center; /* Center align items */
        text-align: center; /* Center text within bio for consistency */
    }

    .founder-bio {
        text-align: center; /* Ensure bio text is centered on mobile */
    }

    .values-list ul {
        padding-left: 0; /* Remove default list indent on mobile */
        text-align: center; /* Center value list items */
    }

    .values-list li {
        margin-bottom: 8px; /* Reduce space between list items */
        font-size: 1rem;
    }
}