:root {
    --primary-color: #0f172a;
    --primary-light: #1e293b;
    --accent-color: #fbbf24;
    --accent-dark: #d97706;
    --secondary-color: #3b82f6;
    --text-color: #334155;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-lg: 24px;
    --radius-md: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-light);
    scroll-behavior: smooth;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 5rem 0;
}

h1,
h2,
h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-family: 'Montserrat', sans-serif;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(rgba(15, 23, 42, 0.75), rgba(15, 23, 42, 0.85)), url('images/hero.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 4rem 1rem;
}

.hero h1 {
    color: var(--white);
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.025em;
    text-wrap: balance;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards 0.2s;
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent-color), var(--white));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
    /* Helps with gradient rendering/clipping sometimes */
}

.hero .subtitle {
    font-size: clamp(1.1rem, 3vw, 1.8rem);
    margin-bottom: 4rem;
    opacity: 0;
    font-weight: 300;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards 0.4s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.total-raised-container {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    padding: 2.5rem 4rem;
    border-radius: var(--radius-lg);
    margin-bottom: 3rem;
    display: table;
    /* Acts like inline-block but forces new line context if we add margin auto? No, table is not right. Let's use fit-content + block behavior via margin */
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    box-shadow: var(--shadow-lg);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.total-label {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.8rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--primary-color);
}

.total-amount {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    font-family: 'Montserrat', sans-serif;
}

.donation-stats {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
    margin-top: 1rem;
}

.stat-divider {
    color: #e2e8f0;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #c5a02c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

/* History Section */
.invitation {
    background: var(--white);
}

.video-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto 3rem;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.video-container video {
    width: 100%;
    display: block;
}

.invitation-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.invitation-content p {
    margin-bottom: 1.2rem;
}

/* Gallery / Carousel */
.gallery {
    background: var(--bg-light);
}

.carousel {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.carousel-track-container {
    height: 500px;
}

.carousel-track {
    list-style: none;
    height: 100%;
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.5);
    border: none;
    font-size: 2rem;
    padding: 1rem;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.carousel-btn:hover {
    background: var(--white);
}

.btn-prev {
    left: 1rem;
}

.btn-next {
    right: 1rem;
}

.carousel-nav {
    display: flex;
    justify-content: center;
    padding: 1rem 0;
    gap: 0.5rem;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    border: none;
}

.carousel-indicator.active {
    background: var(--primary-color);
}

/* Objectives / Progress Bars */
.objectives {
    background: #e2e8f0;
}

.objective-item {
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 3rem;
    border-radius: var(--radius-lg);
    margin-bottom: 2.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.objective-image {
    flex: 0 0 200px;
    height: 200px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.objective-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.objective-item:hover .objective-image img {
    transform: scale(1.05);
}

.objective-content {
    flex: 1;
}

@media (max-width: 768px) {
    .objective-item {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }

    .objective-image {
        width: 100%;
        height: 250px;
        flex: 0 0 auto;
    }

    .objective-header {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .objective-title {
        justify-content: center;
        flex-direction: column;
        gap: 0.5rem;
    }
}

.objective-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    background: var(--white);
}

.objective-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.objective-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: 'Montserrat', sans-serif;
}

.completed-badge {
    font-size: 0.75rem;
    background: #10b981;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.objective-item.completed {
    border: 2px solid #10b981;
    background: #f0fdf4;
}

.objective-cost {
    font-weight: 700;
    color: var(--secondary-color);
    background: #eff6ff;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
}

.impact-text {
    margin-top: 1rem;
    font-size: 1rem;
    color: var(--secondary-color);
    font-weight: 400;
    margin-bottom: 1.5rem;
}

.progress-info-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 0.5rem;
    margin-top: 1rem;
    font-family: 'Montserrat', sans-serif;
}

.current-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.goal-info {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

.progress-container {
    height: 12px;
    background: #e5e7eb;
    /* Light gray background */
    border-radius: 50px;
    overflow: hidden;
    margin: 0;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.progress-bar {
    height: 100%;
    background: #fbbf24;
    /* Yellow color */
    width: 0;
    transition: width 2s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    border-radius: 50px;
}

.progress-bar.gold-glow {
    background: linear-gradient(90deg, #fbbf24, #d97706);
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.5);
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.3) 50%,
            rgba(255, 255, 255, 0) 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Donors Section */
/* Hall of Fame */
.hall-of-fame {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-top: 3rem;
}

.hall-of-fame-level {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.hall-of-fame-level:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.level-image-container {
    flex: 0 0 120px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.level-image {
    width: 120px;
    height: 120px;
    object-fit: contain;
    /* Removed drop-shadow per request */
}

.level-content {
    flex: 1;
}

.level-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
    font-weight: 800;
    font-family: 'Montserrat', sans-serif;
}

.level-range {
    font-size: 0.9rem;
    color: var(--accent-dark);
    font-weight: 700;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.level-description {
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.donor-list {
    font-size: 1.1rem;
    color: var(--text-color);
    line-height: 1.8;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.donor-name-item {
    padding-bottom: 0.25rem;
    border-bottom: 1px dashed #e2e8f0;
}

.donor-name-item:last-child {
    border-bottom: none;
}

.no-donors-msg {
    color: var(--text-light);
    font-style: italic;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .hall-of-fame-level {
        flex-direction: column;
        text-align: center;
    }

    .level-image-container {
        margin: 0 auto;
    }
}

/* How to Donate */
.how-to-donate {
    background: var(--primary-color);
    color: var(--white);
}

.how-to-donate h2 {
    color: var(--white);
}

.donation-info {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    padding: 3rem;
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

.donation-info a {
    color: var(--white);
    font-weight: 700;
    text-decoration: underline;
    transition: var(--transition);
}

.donation-info a:hover {
    color: var(--accent-color);
}

.account-details {
    padding: 2rem 0;
    font-size: 1.2rem;
}

.account-details p {
    margin-bottom: 0.5rem;
}

footer {
    padding: 3rem 0;
    text-align: center;
    background: #0f172a;
    color: #94a3b8;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

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

    .section {
        padding: 3rem 0;
    }

    .carousel-track-container {
        height: 300px;
    }
}