@import url('https://fonts.googleapis.com/css2?family=Pontano+Sans&display=swap');

/* CSS Variables */
:root {
    --primary-color: rgb(24, 46, 124);
    --primary-off-white: rgb(250, 250, 250);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

h1, h2, h3, h4, h5, h6 {
    font-family: adonis-web;
    font-weight: 400;
}

p {
    font-family: 'Pontano Sans', sans-serif;
}

button, .donate-button, .btn-primary, .btn-secondary {
    font-family: 'Pontano Sans', sans-serif;
}

/* Header Styles */
header {
    background-color: transparent;
    color: #333;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.page-content {
    padding-top: 140px;
    padding-left: 20px;
    padding-right: 20px;
}

/* Navigation Styles */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: adonis-web;
}

nav h1 {
    font-size: 1.5rem;
}

.logo {
    height: 75px;
    width: auto;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 2rem;
    font-size: 1.5rem;
}

nav a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

nav a:hover {
    color: #3498db;
}

.donate-button {
    background-color: white !important;
    color: var(--primary-color) !important;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: bold;
    transition: transform 0.3s, box-shadow 0.3s;
}

.donate-button:hover {
    color: var(--primary-color) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Light text on dark backgrounds */
header.dark-bg nav a {
    color: var(--primary-off-white);
}

header.dark-bg nav a:hover {
    color: #5dade2;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
}

header.dark-bg .hamburger span {
    background-color: white;
}

.hamburger.active span {
    background-color: #333 !important;
}

/* Hero Section */
.hero {
    background-image: url('../image/header-background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-overlay {
    background-color: rgba(0, 0, 0, 0.4);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--primary-off-white);
    max-width: 1200px;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}

.hero-text {
    flex: 1;
    text-align: left;
}

.hero-text h1 {
    font-size: 4.5rem;
    margin-bottom: 1rem;
    color: var(--primary-off-white);
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.7));
}

.hero-text h2 {
    font-size: 3rem;
    margin-bottom: 0;
    color: var(--primary-off-white);
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.7));
}

.hero-subtitle {
    font-size: 2rem;
    margin-bottom: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-headshot {
    max-width: 600px;
    width: 100%;
    height: auto;
    border: 5px solid var(--primary-color);
    border-radius: 8px;
    margin-bottom: 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

.hero-buttons a {
    display: inline-block;
    padding: 1rem 2rem;
    margin: 0.5rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: transform 0.3s, box-shadow 0.3s;
}

.hero-buttons a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

.btn-secondary {
    background-color: #2ecc71;
    color: white;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.98);
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        justify-content: center;
        gap: 3rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        font-size: 1.5rem;
    }

    /* Ensure mobile menu text is always dark on white menu background */
    .nav-menu a,
    header.dark-bg .nav-menu a {
        color: #333 !important;
    }

    .nav-menu a:hover,
    header.dark-bg .nav-menu a:hover {
        color: #3498db !important;
    }

    /* Keep donate button styled in mobile menu */
    .nav-menu .donate-button,
    header.dark-bg .nav-menu .donate-button {
        background-color: var(--primary-color) !important;
        color: white !important;
    }

    .nav-menu .donate-button:hover,
    header.dark-bg .nav-menu .donate-button:hover {
        color: white !important;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-6px, 6px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-6px, -6px);
    }

    .hero-headshot {
        max-width: 300px;
        margin-bottom: 2rem;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        text-align: center;
    }

    .hero-text h1 {
        font-size: 3.5rem;
    }

    .hero-text h2 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }
}

/* Footer Styles */
footer {
    background-color: rgb(234, 236, 246);
    color: #333;
    padding: 2rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.footer-left,
.footer-right {
    text-align: center;
}

.footer-left h4,
.footer-right h4 {
    margin-bottom: 0.75rem;
    font-size: 1.6rem;
}

.footer-left p {
    margin-bottom: 1rem;
}

.footer-right p {
    margin: 0;
}

/* About Page Styles */
.about-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 2rem;
    text-align: center;
}

.about-heading {
    font-size: 4.5rem;
    margin-bottom: 2rem;
}

.about-portrait {
    max-width: 400px;
    width: 100%;
    height: auto;
    border: 5px solid rgb(24, 46, 124);
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.about-info {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.about-quote {
    font-size: 1.8rem;
    font-style: italic;
    line-height: 1.8;
    margin: 2rem 0;
    padding: 2rem;
    border-left: 4px solid rgb(24, 46, 124);
    background-color: rgba(234, 236, 246, 0.5);
    text-align: left;
}

.experience-and-education-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.exp-edu-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 3rem;
    align-items: center;
}

.exp-edu-left h2 {
    font-size: 3rem;
}

.exp-edu-right p {
    font-size: 1.5rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.exp-edu-right p:last-child {
    margin-bottom: 0;
}

.horizontal-divider {
    width: 100%;
    height: 2px;
    background-color: #ccc;
    margin: 2rem 0;
}

/* District Page Styles */
.district-container {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.district-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.district-left h1 {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
}

.district-left p {
    font-size: 1.5rem;
    line-height: 1.8;
}

.district-right {
    display: flex;
    justify-content: center;
    align-items: center;
}

.district-map {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Voting Info Styles */
.voting-info-container {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.voting-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.voting-info-left {
    color: rgb(24, 46, 124);
}

.voting-info-left h2 {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.voting-info-left h3 {
    font-size: 2.8rem;
    line-height: 1.6;
}

.voting-info-right p {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    line-height: 1.8;
}

.voting-info-right p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .district-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .voting-info-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .exp-edu-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}
