:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --background-color: #f5f6fa;
    --text-color: #2c3e50;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh; /* Ensure body takes up full viewport height */
    display: flex;
    flex-direction: column; /* Enable vertical stacking of body content */
}

body.modal-open {
    overflow: hidden;
}

header {
    background-color: white;
    padding: 1rem;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
}

.header-title {
    text-align: center;
    flex-grow: 1;
    max-width: 70vw;
    margin: 0 auto; /* Center the title */
}

.header-title h1 {
    margin: 0;
    text-align: center; /* Center text within the title */
}

.hamburger-menu-wrapper {
    position: fixed; /* Changed to fixed positioning */
    top: 1rem;
    left: 1rem; 
    z-index: 1002; /* Ensure it's above the menu content */
}

.hamburger-menu {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    padding: 0.5rem;
    color: var(--primary-color);
    position: relative;
    transition: transform 0.3s ease;
}

.hamburger-menu:focus {
    outline: none;
}

.hamburger-menu-content {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    background-color: var(--primary-color);
    color: white;
    box-shadow: var(--shadow);
    height: 100vh;
    width: 70vw;
    z-index: 1001;
    transform: translateX(-70vw);
    transition: transform 0.3s ease;
    border-radius: 0 0 0 8px;
    overflow-y: auto;
    padding: 1rem;
}

.hamburger-menu-content.show {
    display: block;
    transform: translateX(0);
}

.hamburger-menu-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hamburger-menu-content li {
    padding: 0.5rem 1rem;
    border-bottom: 1px solid #eee;
}

.hamburger-menu-content li:last-child {
    border-bottom: none;
}

.hamburger-menu-content a {
    text-decoration: none;
    color: white;
}

.hero {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 1rem;
    flex-shrink: 0; /* Prevent footer from shrinking */
}

footer p {
    margin: 0; /* Remove default margin from paragraph */
}

html.modal-open {
  overflow: hidden;
}

.header-container.show .hamburger-menu {
    transform: translateX(70vw);
}
.header-container .hamburger-menu-wrapper {
    display: inline-block;
}

#hamburgerMenuContent button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.5rem;
    color: white;
    margin-bottom: 1rem;
}

#hamburgerMenuContent button:focus {
    outline: none;
}

/* Modal-like background darkening */
.show {
    display: block;
    transform: translateX(0);
}
.show ~ .modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); 
    z-index: 1000;
}

@media (max-width: 768px) {
    .header-title h1{
        font-size: 1.2rem;
    }
    .hero h1 {
        font-size: 1.2rem;
    }
    .header-container {
        flex-direction: column;
        align-items: flex-start;
    }

}
