html, body {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    width: 100%;
    height: auto;
    min-height: 100%;
    overflow-x: hidden;
}

body {
    background: linear-gradient(135deg, #000000, #222222 25%, #444444 50%, #222222 75%, #000000);
    background-size: 300% 300%; /* Larger background size for slower movement */
    background-attachment: fixed;
    animation: gradient 30s ease infinite; /* Slower animation (30s instead of 15s) */
    position: relative;
    overflow-x: hidden;
}

/* Add a blur effect overlay */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(80px);
    -webkit-backdrop-filter: blur(80px);
    opacity: 0.3;
    z-index: -1;
    pointer-events: none;
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.page-container {
    padding: 50px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

.content-box {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 40px;
    max-width: 1000px;
    width: 100%;
    color: #333;
    margin-bottom: 40px;
    box-sizing: border-box;
}

.back-link {
    display: inline-block;
    margin-top: 20px;
    margin-bottom: 50px;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    background-color: #1a2a6c;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.back-link:hover {
    background-color: #0f1a42;
}

h1 {
    color: #1a2a6c;
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.5rem;
}

h2 {
    color: #1a2a6c;
    border-bottom: 2px solid #1a2a6c;
    padding-bottom: 10px;
    margin-top: 30px;
    margin-bottom: 20px;
}

p {
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Project page styles */
.project-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.highlight-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.highlight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.highlight-icon {
    font-size: 2rem;
    color: #1a2a6c;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.highlight-icon span {
    margin-left: 10px;
    font-size: 1.5rem;
    font-weight: 600;
}

.timeline {
    margin: 40px 0;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background-color: #1a2a6c;
    transform: translateX(-50%);
}

.timeline-item {
    margin-bottom: 40px;
    display: flex;
    align-items: center;
}

.timeline-content {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    max-width: 45%;
    position: relative;
}

.timeline-date {
    font-weight: 600;
    color: #1a2a6c;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.timeline-item:nth-child(odd) {
    justify-content: flex-start;
}

.timeline-item:nth-child(even) {
    justify-content: flex-end;
}

.timeline-item:nth-child(odd) .timeline-content::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -10px;
    width: 20px;
    height: 20px;
    background-color: white;
    transform: translateY(-50%) rotate(45deg);
    border-top: 1px solid rgba(0,0,0,0.1);
    border-right: 1px solid rgba(0,0,0,0.1);
}

.timeline-item:nth-child(even) .timeline-content::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -10px;
    width: 20px;
    height: 20px;
    background-color: white;
    transform: translateY(-50%) rotate(45deg);
    border-bottom: 1px solid rgba(0,0,0,0.1);
    border-left: 1px solid rgba(0,0,0,0.1);
}

/* Team page styles */
.team-section {
    margin-bottom: 50px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.team-member {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.member-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background-color: #f0f0f0;
    margin: 0 auto 15px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.member-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #1a2a6c;
}

.member-title {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

.member-bio {
    font-size: 0.9rem;
    line-height: 1.5;
    text-align: left;
}

.collaborators-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.collaborator {
    background-color: #f0f0f0;
    padding: 8px 15px;
    border-radius: 30px;
    font-size: 0.9rem;
}

/* Network page styles */
.partner-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.partner-item {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.partner-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.partner-item h3 {
    color: #1a2a6c;
    margin-top: 0;
    margin-bottom: 10px;
}

.partner-logo {
    width: 100%;
    height: 100px;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    border-radius: 4px;
}

.map-container {
    width: 100%;
    height: 400px;
    background-color: #f0f0f0;
    border-radius: 8px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
}

/* Supporters page styles */
.supporters-intro {
    margin-bottom: 30px;
    line-height: 1.6;
}

.supporters-categories {
    margin-bottom: 50px;
}

.supporter-tier {
    margin-bottom: 40px;
}

.tier-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #1a2a6c;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.tier-title::after {
    content: '';
    flex-grow: 1;
    height: 1px;
    background-color: #ddd;
    margin-left: 15px;
}

.supporter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.supporter-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.supporter-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.supporter-logo {
    height: 100px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.supporter-name {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #1a2a6c;
}

.supporter-description {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #666;
}

.become-supporter {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 30px;
    margin-top: 40px;
    text-align: center;
}

.become-supporter h3 {
    color: #1a2a6c;
    margin-top: 0;
    margin-bottom: 15px;
}

.contact-btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: #1a2a6c;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.contact-btn:hover {
    background-color: #0f1a42;
}

.acknowledgements {
    margin-top: 40px;
}

.acknowledgements ul {
    list-style-type: none;
    padding-left: 0;
    columns: 2;
}

.acknowledgements li {
    margin-bottom: 10px;
    break-inside: avoid;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        justify-content: flex-start;
        margin-left: 50px;
    }
    
    .timeline-content {
        max-width: 80%;
    }
    
    .timeline-item:nth-child(even) {
        justify-content: flex-start;
    }
    
    .timeline-item:nth-child(even) .timeline-content::after {
        top: 50%;
        left: -10px;
        border-top: none;
        border-right: none;
        border-bottom: 1px solid rgba(0,0,0,0.1);
        border-left: 1px solid rgba(0,0,0,0.1);
    }
    
    .canvas-grid {
        grid-template-columns: 1fr;
    }
    
    .controls {
        flex-direction: column;
        gap: 10px;
    }
    
    .acknowledgements ul {
        columns: 1;
    }
}