:root {
    /* Define a color palette for easier management */
    --primary-dark: #4A148C; /* Deep Purple */
    --primary-light: #6A1B9A; /* Lighter Purple */
    --accent-pink: #880E4F; /* Plum/Magenta for accents */
    --text-dark: #333;
    --text-light: #f0f0f0; /* For text on dark backgrounds */
    --section-bg: rgba(255, 255, 255, 0.97); /* Almost opaque white for content sections */
    --box-shadow-light: 0 3px 15px rgba(0,0,0,0.08);
    --box-shadow-medium: 0 6px 20px rgba(0,0,0,0.15);
    --box-shadow-heavy: 0 10px 30px rgba(0,0,0,0.25);
    --button-hover-dark: #3a0f6b;
}

body {
    font-family: 'Open Sans', sans-serif; /* A more readable body font */
    margin: 0;
    padding: 0;
    color: var(--text-dark);
    background-image: url('women.jpg'); /* Your background image */
    background-size: cover; /* Cover the entire viewport */
    background-position: center center; /* Center the image */
    background-attachment: fixed; /* Fix the image so it doesn't scroll */
    background-repeat: no-repeat;
    display: flex; /* Use flexbox for body to manage overall layout */
    flex-direction: column;
    min-height: 100vh; /* Ensure body takes full viewport height */
    line-height: 1.6; /* Improved line spacing for readability */
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.75); /* Slight white overlay for readability */
    z-index: -1;
}

/* Header Section */
header {
    background-color: var(--primary-dark);
    color: var(--text-light);
    text-align: center;
    padding: 50px 20px 70px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
    position: relative;
    z-index: 10;
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeInDown 1s ease-out forwards;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

header h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.8rem;
    margin: 0;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.4);
    letter-spacing: 2px;
}

header p {
    font-size: 1.4rem;
    margin-top: 15px;
    font-weight: 400;
}

.header-button {
    display: inline-block;
    background-color: var(--accent-pink);
    color: var(--text-light);
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    margin-top: 30px;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.header-button:hover {
    background-color: var(--button-hover-dark);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* Navigation Section */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: var(--primary-light);
    color: var(--text-light);
    font-size: 1.1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

nav .logo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}
nav .logo:hover {
    color: #fff8e1;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: var(--text-light);
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-weight: 600;
}

nav ul li a:hover {
    background-color: var(--accent-pink);
    transform: translateY(-2px);
}

nav .menu-icon {
    display: none;
    cursor: pointer;
    font-size: 28px;
    padding: 5px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

nav .menu-icon:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Language Selector Styles */
.language-selector {
    margin-left: 30px;
    display: flex;
    align-items: center;
}

.language-selector select {
    padding: 8px 10px;
    border-radius: 5px;
    border: 1px solid var(--primary-dark);
    background-color: var(--primary-dark);
    color: var(--text-light);
    font-size: 1rem;
    cursor: pointer;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23f0f0f0" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>');
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 20px;
}

.language-selector select:hover {
    background-color: var(--button-hover-dark);
}

/* Announcement Bar Styling */
.announcement-bar {
    background-color: var(--accent-pink);
    color: var(--text-light);
    padding: 10px 0;
    overflow: hidden;
    white-space: nowrap;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
    z-index: 90;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    border-top: 2px solid rgba(255,255,255,0.2);
    border-bottom: 2px solid rgba(255,255,255,0.2);
}

.announcement-text {
    display: inline-block;
    padding-left: 100%;
    animation: scroll-left 25s linear infinite;
}

/* Keyframe animation for scrolling text */
@keyframes scroll-left {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Main Content Wrapper */
.content-wrapper {
    flex-grow: 1;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

section {
    padding: 50px 30px;
    max-width: 950px;
    width: 100%;
    margin-bottom: 30px;
    background-color: var(--section-bg);
    border-radius: 15px;
    box-shadow: var(--box-shadow-medium);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

section:hover {
    transform: translateY(-7px);
    box-shadow: var(--box-shadow-heavy);
}

h2 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-light);
    border-bottom: 3px solid var(--accent-pink);
    padding-bottom: 12px;
    margin-bottom: 30px;
    font-size: 2.5rem;
    text-align: center;
    position: relative;
}
h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-dark);
    margin: 10px auto 0;
    border-radius: 2px;
}

iframe {
    width: 100%;
    border: none;
    border-radius: 12px;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.15);
}

/* Founder Section */
.founder {
    text-align: center;
    margin-top: 50px;
}

.founder img {
    width: 250px;
    height: 250px;
    object-fit: cover;
    object-position: top;
    border-radius: 50%;
    margin: 25px auto;
    box-shadow: 0 0 25px rgba(0,0,0,0.4);
    border: 6px solid var(--accent-pink);
    transition: transform 0.3s ease;
}
.founder img:hover {
    transform: scale(1.05);
}

.founder p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 20px auto;
    padding: 0 10px;
}

.founder ul {
    list-style: none;
    padding: 0;
    margin-top: 25px;
    text-align: left;
    display: inline-block;
    max-width: 700px;
}

.founder ul li {
    background-color: #f8f0f9;
    margin-bottom: 12px;
    padding: 15px 20px;
    border-left: 6px solid var(--primary-light);
    border-radius: 8px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.founder ul li:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 12px rgba(0,0,0,0.12);
}

.founder ul li strong {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-dark);
    display: block;
    margin-bottom: 8px;
    font-size: 1.2rem;
    font-weight: 600;
}

.founder ul li ul {
    list-style: disc;
    margin-top: 10px;
    margin-left: 25px;
    font-size: 1rem;
    color: #555;
}
.founder ul li ul li {
    background: none;
    border: none;
    box-shadow: none;
    padding: 5px 0;
    margin-bottom: 5px;
    transition: none;
}

/* Gallery Section Specific Styles */
#gallery {
    text-align: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 40px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    object-position: center; /* This change helps center the image content */
    display: block;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(74, 20, 140, 0.85);
    color: var(--text-light);
    padding: 15px 10px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
    text-align: center;
    box-sizing: border-box;
}

.gallery-item:hover .overlay {
    transform: translateY(0);
}

.gallery-note {
    font-size: 0.9rem;
    color: #777;
    margin-top: 30px;
}

/* Footer Section */
footer {
    text-align: center;
    font-size: 1rem;
    padding: 30px;
    margin-top: 60px;
    color: #666;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 -3px 15px rgba(0,0,0,0.12);
    position: relative;
    z-index: 10;
}

/* General link styling */
a {
    color: var(--accent-pink);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Specific styles for the "Report a Civic Problem" and "Join Our Team" links outside iframes */
section p a {
    font-weight: bold;
}

/* Responsive Adjustments for smaller screens */
@media screen and (max-width: 768px) {
    header {
        padding: 40px 15px 60px;
    }
    header h1 {
        font-size: 3rem;
    }
    nav {
        padding: 10px 20px;
    }
    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 65px;
        left: 0;
        background: var(--primary-light);
        box-shadow: 0 5px 10px rgba(0,0,0,0.2);
    }
    nav ul.active {
        display: flex;
    }
    nav ul li {
        margin: 0;
        text-align: center;
        border-bottom: 1px solid rgba(255,255,255,0.15);
    }
    nav ul li:last-child {
        border-bottom: none;
    }
    nav ul li a {
        display: block;
        padding: 18px 20px;
    }
    nav .menu-icon {
        display: block;
    }
    .language-selector {
        margin-left: 0;
        width: 100%;
        padding: 10px 0;
        border-bottom: 1px solid rgba(255,255,255,0.15);
    }
    .language-selector select {
        width: calc(100% - 40px);
        margin: 0 auto;
        display: block;
    }
    .announcement-bar {
        font-size: 0.95rem;
        padding: 8px 0;
    }
}

@media screen and (max-width: 600px) {
    header {
        padding: 30px 15px;
    }
    header h1 {
        font-size: 2.8rem;
    }
    header p {
        font-size: 1.1rem;
    }
    .header-button {
        font-size: 1rem;
        padding: 12px 25px;
    }
    nav {
        padding: 10px 15px;
    }
    nav .logo {
        font-size: 1.4rem;
    }
    section {
        padding: 30px 15px;
        margin-bottom: 20px;
        border-radius: 10px;
    }
    h2 {
        font-size: 2rem;
        margin-bottom: 20px;
    }
    h2::after {
        width: 40px;
        height: 3px;
    }
    .founder img {
        width: 180px;
        height: 180px;
        margin: 15px auto;
    }
    .founder p {
        font-size: 1rem;
    }
    .founder ul {
        max-width: 100%;
    }
    .founder ul li {
        padding: 12px 15px;
    }
    .founder ul li strong {
        font-size: 1.1rem;
    }
    .founder ul li ul {
        margin-left: 20px;
    }
    footer {
        padding: 20px;
        font-size: 0.85rem;
    }
    .announcement-bar {
        font-size: 0.8rem;
    }
    /* Responsive adjustments for gallery */
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 15px;
    }
    .gallery-item img {
        height: 200px;
    }
    .gallery-item .overlay {
        font-size: 1rem;
        padding: 10px;
    }
}

@media screen and (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* Map Section Specific Styles */
#map iframe {
    height: 400px;
    width: 100%;
    border: 1px solid black;
    border-radius: 12px;
    box-shadow: var(--box-shadow-medium);
}