/* Modern styling for Seattle Customer Service Requests Analysis */
body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: white;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.logo {
    height: 40px;
    width: auto;
    margin: 0;
    padding: 10px 0 10px 20px;
    display: block;
}

.logo-big {
    width: 100%;
    max-width: 500px;
    height: auto;
    margin: 0 auto 40px auto;
    display: block;
    text-align: center;
}

/* Navigation styling */
.page-navigation {
    background-color: #3b5664;
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0;
    min-height: 3rem;
    display: flex;
    align-items: center;
}

.page-navigation .container {
    display: flex;
    align-items: center;
    padding: 10px 0;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 100%;
    width: 100%;
    margin: 0;
}

/* Create a container for the navigation buttons */
.nav-buttons-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    padding-right: 20px;
}

.nav-button {
    padding: 12px 10px;
    background-color: transparent;
    color: black;
    border: none;
    cursor: pointer;
    font-weight: 500;
    font-size: .8rem;
    transition: all 0.2s ease;
    margin-left: 5px;
    margin-right: 5px;
    font-display: swap;
    font-weight: bold;
    font-style: normal;
    text-transform: uppercase;
    text-decoration: none;
}

.nav-button:hover {
    background-color: transparent;
    transform: translateY(-2px);
}

.nav-button:active {
    transform: translateY(0);
    box-shadow: none;
}

/* Responsive behavior for smaller screens */
@media (max-width: 1200px) {
    .page-navigation .container {
        flex-direction: column;
        align-items: center;
    }

    .container section {
        scroll-margin-top: 175px;
    }

    .logo {
        margin-bottom: 0px;
        padding: 10px 0 10px 0px;
    }

    .tableauPlaceholder {
        height: 500px !important;
    }

    .nav-buttons-container {
        justify-content: center;
        margin-top: 10px;
        padding-right: 0 !important;
    }

    .nav-button {
        margin-bottom: 5px;
        padding: 5px !important;
    }

    .code-screenshot {
        max-width: 100% !important;
        height: auto !important;
    }
}

header {
    background-color: lightblue;
    color: #21175a;
    margin-bottom: 0;
    text-align: center;
    width: 100%;
    padding: 20px 0;
    position: relative;
    z-index: 2000;
}

.header-title {
    margin: 0;
    font-size: 3rem;
    font-weight: 600;
}

.header-subtitle {
    margin: 0;
    padding: 0;
    font-size: 1.6rem;
    font-weight: 400;
    color: #21175a;
    opacity: 0.9;
}

h2 {
    color: #2c3e50;
    border-bottom: 2px solid #3b5664;
    padding-bottom: 0.5rem;
    margin-top: 2rem;
    font-size: 1.8rem;
}

h3 {
    color: #2c3e50;
    margin-top: 1.5rem;
    font-size: 1.4rem;
}

/* Navigation buttons */
.page-navigation {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin: 0;
    background-color: rgba(247, 247, 247, 0.75);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    left: 0;
    box-sizing: border-box;
}

/* Ensure the container doesn't restrict the nav width */
.container .page-navigation {
    max-width: none;
    margin-left: -20px;
    margin-right: -20px;
    width: calc(100% + 40px);
}

.github-button {
    margin-top: 12px;
    padding: 12px 30px;
    background-color: transparent;
    color: #21175a;
    border-radius: 4px;
    border: 1px solid #21175a;
    cursor: pointer;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.2s ease;
}

.github-button:hover {
    background-color: white;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.github-button:active {
    transform: translateY(0);
    box-shadow: none;
}


.tool-logo {
    width: 75px;
    height: 75px;
    margin: 10px;
}

/* Style for the team info box */
.team-info {
    background-color: #e3f2fd;
    border-left: 5px solid #2196f3;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 0 4px 4px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.team-info p {
    margin: 8px 0;
}

/* Meet the Team section */
.team-section {
    margin-top: 40px;
}

.team-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    padding: 20px;
    margin: 20px 0;
    background-color: white;
    position: relative;
    padding-top: 150px;
}

/* Position the logo at the top of the team container */
.team-container .logo-big {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 500px;
    height: auto;
    margin: 0 auto;
    display: block;
    margin-top: 25px;
}

.team-member {
    text-align: center;
    width: 250px;
}

.team-member-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid black;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.team-member-image:hover {
    transform: scale(1.05);
}

.team-member h3 {
    margin: 10px 0 5px;
    color: #21175a;
}

.team-member p {
    margin: 5px 0;
    color: #666;
}

.team-member .role {
    font-weight: 600;
    color: #3498db;
}

.team-member .contact {
    margin-top: 10px;
}

.team-member .contact a {
    color: #21175a;
    text-decoration: none;
    margin: 0 5px;
    font-size: 0.9rem;
}

.team-member .contact a:hover {
    text-decoration: underline;
}

/* Visualization containers */
.visualization-container {
    margin: 20px 0;
    background-color: white;
    border-radius: 4px;
    min-height: 650px;
    text-align: center;
}

.visualization-title {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.visualization-description {
    color: #666;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.visualization-note {
    color: #000000;
    margin-bottom: 20px;
    font-size: 0.95rem;
    font-weight: 500;
}

/* Filter dropdown styling */
.filter-container {
    margin: 15px 0;
    text-align: left;
    padding: 4px 10px;
    position: relative;
    z-index: 1500;
}

.filter-dropdown {
    border-radius: 4px;
    background-color: white;
    font-size: 1rem;
    color: #333;
    min-width: 200px;
    cursor: pointer;
}

/* Ensure Choices.js dropdown appears above the map but below the header */
.choices {
    position: relative;
    z-index: 1500 !important;
}

.choices__list--dropdown {
    z-index: 1600 !important;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

/* Style for the selected item in the dropdown */
.choices__item--selectable {
    display: flex !important;
    align-items: center !important;
    padding: 10px 15px !important;
    transition: background-color 0.2s ease !important;
}

/* Hover effect for dropdown items - using more specific selectors and !important */
.choices__list--dropdown .choices__item--selectable:hover,
.choices__list--dropdown .choices__item--selectable:hover.is-highlighted {
    background-color: #f0f7ff !important;
    cursor: pointer !important;
}

/* Active selection styling - using more specific selectors and !important */
.choices__list--dropdown .choices__item--selectable.is-highlighted {
    background-color: #e1efff !important;
}

/* Make sure the selected item in the main input is also vertically centered */
.choices__inner .choices__item--selectable {
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
}

/* Improve the main dropdown container */
.choices__inner {
    display: flex !important;
    align-items: center !important;
    min-height: 40px !important;
    padding: 4px 7.5px 4px 3.75px !important;
    border-radius: 4px !important;
    border: 1px solid #ddd !important;
    background-color: #fff !important;
    transition: border-color 0.2s ease !important;
}

.choices__inner:hover {
    border-color: #bbb !important;
}

.filter-dropdown:focus {
    outline: none;
    border-color: #21175a;
    box-shadow: 0 0 0 2px rgba(33, 23, 90, 0.2);
}

/* Choices.js Dropdown Styling - Direct Element Targeting */

/* Target the dropdown list items directly */
div.choices__list--dropdown .choices__item {
    padding: 10px 15px !important;
    display: flex !important;
    align-items: center !important;
    transition: background-color 0.15s ease !important;
}

/* Target hover state with higher specificity */
div.choices__list--dropdown .choices__item--selectable:hover {
    background-color: #f0f7ff !important;
}

/* Target the highlighted state with higher specificity */
div.choices__list--dropdown .choices__item--selectable.is-highlighted {
    background-color: #e1efff !important;
}

/* Target the selected item in the main input */
div.choices__inner .choices__item {
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
}

/* Target the main dropdown container */
div.choices__inner {
    display: flex !important;
    align-items: center !important;
    min-height: 40px !important;
    padding: 4px 7.5px 4px 3.75px !important;
    border-radius: 4px !important;
    border: 1px solid #ddd !important;
    background-color: #fff !important;
    transition: border-color 0.2s ease !important;
}

div.choices__inner:hover {
    border-color: #bbb !important;
}

/* Ensure the dropdown appears above the map */
div.choices__list--dropdown {
    z-index: 1600 !important;
    border-radius: 4px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    border: 1px solid #e0e0e0 !important;
}

/* Override any Choices.js internal styles */
.choices__list--dropdown .choices__item--selectable:after {
    display: none !important;
}

/* Links styling */
a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* Section dividers */
hr {
    border: 0;
    height: 1px;
    background: #e0e0e0;
    margin: 40px 0;
}

section {
    margin-bottom: 40px;
    scroll-margin-top: 100px;
}

/* Lists styling */
ul {
    padding-left: 20px;
}

li {
    margin-bottom: 8px;
}

/* Data details section */
.data-details {
    background-color: #f5f5f5;
    padding: 20px;
    border-radius: 4px;
    margin-top: 30px;
}

/* Map styling */
#map {
    height: 500px;
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.loading-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    font-size: 1.2rem;
    color: #555;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 20px;
    text-align: center;
}

.error-message {
    color: #d9534f;
    padding: 20px;
    text-align: center;
    background-color: #f8d7da;
    border-radius: 8px;
    margin: 10px 0;
}

/* Leaflet popup customization */
.leaflet-popup-content {
    font-size: 14px;
    line-height: 1.5;
}

.leaflet-popup-content strong {
    color: #2c3e50;
}

.code-screenshot {
    max-width: 600px;
    height: auto;
    margin: 20px 0;
}

/* Footer styling */
footer {
    background-color: #3b5664;
    color: #ffffff;
    padding: 0.75rem 0;
    margin-top: 1.5rem;
    text-align: center;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copyright {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
}

.hero-section {
    position: relative;
    width: 100%;
    height: 500px;
    /* Adjust height as needed */
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* NEW HERO TEXT POSITION AND ANIMATION */
.hero-text {
    position: absolute;
    bottom: 40px;
    left: 60px;
    color: white;
    font-size: 48px;
    /* made it bigger */
    font-weight: bold;
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.7);
    opacity: 0;
    transform: translateX(-50px);
    animation: slideIn 1.5s ease-out forwards;
}

/* SLIDE-IN ANIMATION */
@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}