/* === NEW: Loading Screen Styles === */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0e17; /* Match the body background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Ensure it's on top of everything */
    transition: opacity 0.7s ease, visibility 0.7s ease;
    opacity: 1;
    visibility: visible;
}
#loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}
.loading-content {
    text-align: center;
}
.loading-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 20px;
}
.progress-bar-container {
    width: 250px;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}
.progress-bar {
    width: 0;
    height: 100%;
    background: var(--gold-gradient);
    border-radius: 4px;
    transition: width 0.5s ease-out;
}

/* Base Styles */
:root {
    --primary-color: #4a6fa5;
    --secondary-color: #6c63ff;
    --accent-color: #ff6b6b;
    --text-light: #ffffff;
    --text-dark: #333333;
    --background-dark: #0a0e17;
    --card-bg: rgba(28, 32, 51, 0.8);
    --card-border: rgba(255, 255, 255, 0.1);
    --success-color: #4caf50;
    --warning-color: #ff9800;
    --error-color: #f44336;
    --transition-speed: 0.5s;
    --border-radius: 12px;
    --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --gold-color: #d4af37;
    --gold-gradient: linear-gradient(to right, #BF953F, #FCF6BA, #B38728, #FBF5B7, #AA771C);
}
/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    margin: 0;
    overflow-x: hidden;
    background: linear-gradient(
        135deg,
        #0a0e17 0%,
        #1c2033 50%,
        #0a0e17 100%
    );
    min-height: 100vh;
    font-family: 'Poppins', sans-serif;
    color: var(--text-light);
    line-height: 1.6;
}
.oil-spill-text {
    background: linear-gradient(
        0deg,
        #a7f9ff 0%, #a7f9ff 16.66%,
        #ff78c4 16.66%, #ff78c4 33.32%,
        #ffe37a 33.32%, #ffe37a 49.98%,
        #8effc4 49.98%, #8effc4 66.64%,
        #d3caff 66.64%, #d3caff 83.30%,
        #a7f9ff 83.30%, #a7f9ff 100%
    );
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 
        0 0 8px rgba(255, 255, 255, 0.15),
        0 0 15px rgba(175, 255, 255, 0.1);
    animation: oilSlick 8s linear infinite;
}
@keyframes oilSlick {
    0% {
        background-position: 50% 0%;
    }
    100% {
        background-position: 50% 200%;
    }
}
/* Work In Progress Text */
.wip-text {
    width: 100%;
    text-align: center;
    padding: 5px 0;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    z-index: 100;
    background-color: transparent;
    color: transparent;
    background-image: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    text-shadow: 0px 0px 1px rgba(212, 175, 55, 0.3);
}
/* Donations Text */
.donations-section {
    width: 100%;
    text-align: center;
    padding: 8px 0;
    margin-top: 20px;
    position: relative;
    z-index: 100;
    background-color: transparent;
}
.donations-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: transparent;
    background-image: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    text-shadow: 0px 0px 1px rgba(212, 175, 55, 0.3);
}
.crypto-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 5px;
    font-size: 0.8rem;
}
.crypto-item {
    display: flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 15px;
}
.crypto-name {
    font-weight: 700;
    margin-right: 5px;
    color: var(--gold-color);
}
/* Star Background Styles */
.starlight-ceiling {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}
.star-particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(150, 150, 255, 0.8);
    border-radius: 50%;
    opacity: 0.3;
    will-change: transform, opacity;
    animation: starDrift var(--duration, 10s) infinite ease-in-out;
}
@keyframes starDrift {
    0% {
        transform: translateY(0) translateX(0) scale(0.8);
        opacity: 0.1;
    }
    40% {
        transform: translateY(-5vh) translateX(var(--x-drift, 0px)) scale(1.5);
        opacity: 0.8;
    }
    100% {
        transform: translateY(-10vh) translateX(var(--x-drift, 0px)) scale(0.8);
        opacity: 0.1;
    }
}
/* Container Styles */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
}
/* Header Styles */
header {
    text-align: center;
    padding: 20px 0;
    margin-bottom: 30px;
}
.logo h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 5px;
    letter-spacing: 1px;
}
.tagline {
    font-size: 1.2rem;
    color: var(--text-light);
    opacity: 0.8;
}
/* Main Content Area */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    min-height: 500px;
    overflow: hidden;
}
/* Section Styles */
.section {
    width: 100%;
    max-width: 900px;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-speed) ease, transform var(--transition-speed) ease, visibility var(--transition-speed);
    transform: translateX(50px);
}
.section.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    position: relative;
}
.section.inactive-left {
    transform: translateX(-50px);
    opacity: 0;
    visibility: hidden;
}
.section.inactive-right {
    transform: translateX(50px);
    opacity: 0;
    visibility: hidden;
}
.section-title {
    margin-bottom: 30px;
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-light);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    text-align: center;
}
/* Back Button */
.back-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.2s ease;
    box-shadow: 0 0 0 2px var(--gold-color);
    flex-shrink: 0;
}
.back-arrow:hover {
    background: rgba(74, 111, 165, 0.4);
}
.back-arrow svg {
    width: 20px;
    height: 20px;
    fill: var(--text-light);
}
/* Category Section Headers */
.category-header {
    text-align: center;
    margin: 30px 0 20px 0;
    padding: 15px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}
.category-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 5px;
}
.category-description {
    font-size: 0.9rem;
    opacity: 0.8;
}
/* Language Wall Styles */
.language-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    justify-content: center;
    padding: 20px;
}
.language-item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}
.language-item:hover {
    transform: scale(1.05);
}
.language-bubble {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    padding: 20px 15px;
    font-size: 1.2rem;
    box-shadow: var(--box-shadow);
    transition: background-color 0.2s ease;
}
.language-bubble:hover {
    background: rgba(74, 111, 165, 0.4);
    border-color: var(--primary-color);
}
.language-item.additional .language-bubble {
    opacity: 0.5;
}
/* City Selection Styles */
.city-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    justify-content: center;
    padding: 20px;
}
.city-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
    box-shadow: var(--box-shadow);
}
.city-item:hover {
    transform: translateY(-5px);
    background: rgba(74, 111, 165, 0.4);
    border-color: var(--primary-color);
}
.city-item.unavailable {
    opacity: 0.5;
    position: relative;
}
.city-name {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 5px;
}
.city-population {
    font-size: 0.9rem;
    opacity: 0.7;
}
/* Group Selection Styles */
.group-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    justify-content: center;
    padding: 20px;
}
.group-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    padding: 25px 20px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
    box-shadow: var(--box-shadow);
}
.group-item:hover {
    transform: translateY(-5px);
    background: rgba(74, 111, 165, 0.4);
    border-color: var(--primary-color);
}
.group-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}
.group-description {
    font-size: 0.9rem;
    opacity: 0.8;
}
/* Resource Menu Styles */
.resource-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}
.resource-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    padding: 20px;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
    box-shadow: var(--box-shadow);
}
.resource-item:hover {
    transform: translateY(-3px);
    background: rgba(74, 111, 165, 0.4);
    border-color: var(--primary-color);
}
.resource-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}
.resource-item-name {
    font-size: 1.2rem;
    font-weight: 600;
    flex-grow: 1;
}
.resource-item-category {
    background: rgba(108, 99, 255, 0.2);
    color: var(--secondary-color);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    white-space: nowrap;
}
.resource-item-description {
    font-size: 0.95rem;
    margin-bottom: 15px;
}
.resource-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    opacity: 0.8;
}
/* Resource Details Styles */
.resource-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    padding: 30px;
    width: 100%;
    box-shadow: var(--box-shadow);
}
.resource-card h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--text-light);
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 15px;
}
.resource-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.resource-content h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--secondary-color);
}
.resource-content p {
    font-size: 1rem;
    line-height: 1.6;
    word-wrap: break-word;
}
.resource-website {
    margin-top: 20px;
}
/* Progress Indicator */
.progress-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    height: 40px;
}
.progress-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: background-color 0.2s ease;
}
.progress-dot.active {
    background: var(--secondary-color);
}
/* Scroll to Top Button */
.scroll-to-top-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 0 0 2px var(--gold-color);
    transition: opacity 0.3s, visibility 0.3s, background-color 0.2s;
    opacity: 0;
    visibility: hidden;
}
.scroll-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
}
.scroll-to-top-btn:hover {
    background: rgba(74, 111, 165, 0.4);
}
.scroll-to-top-btn svg {
    width: 24px;
    height: 24px;
    fill: var(--text-light);
}
/* Button Styles */
.button {
    display: inline-block;
    background: var(--primary-color);
    color: var(--text-light);
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 500;
    transition: background-color 0.2s ease;
    text-align: center;
    border: none;
    cursor: pointer;
    position: relative;
    box-shadow: 0 0 0 2px var(--gold-color);
}
.button:hover {
    background: var(--secondary-color);
}
/* Footer Styles */
footer {
    text-align: center;
    padding: 20px 0;
    margin-top: auto;
    border-top: 1px solid var(--card-border);
    opacity: 0.7;
}

/* === RESPONSIVE DESIGN FIXES START === */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    .logo h1, .loading-title {
        font-size: 2.2rem;
    }
    .tagline {
        font-size: 1rem;
    }
    .section-title {
        font-size: 1.6rem;
        gap: 15px;
    }
    .language-grid, .city-grid, .group-grid {
        padding: 10px 0;
    }
    .resource-item-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .resource-card {
        padding: 20px;
    }
}
@media (max-width: 480px) {
    .logo h1, .loading-title {
        font-size: 1.8rem;
        line-height: 1.2;
    }
    .tagline {
        font-size: 0.9rem;
    }
    .section-title {
        font-size: 1.3rem;
        line-height: 1.3;
    }
    .language-grid,
    .city-grid,
    .group-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 10px 0;
    }
    .group-item, .city-item, .language-bubble {
        padding: 15px;
    }
    .group-name {
        font-size: 1.1rem;
    }
    .group-description {
        font-size: 0.85rem;
    }
    .resource-item {
        padding: 15px;
    }
    .donations-section, .crypto-container {
        flex-direction: column;
        gap: 8px;
    }
}
/* === RESPONSIVE DESIGN FIXES END === */
