/* --- CSS Variables --- */
:root {
    --color-bg: #1A1A1A;
    --color-bg-darker: #111111;
    --color-surface: #2B2B2B;
    /* Brand primary */
    --color-surface-hover: #363636;
    --color-accent: #E32634;
    /* Brand accent */
    --color-accent-hover: #ff3344;
    --color-text: #F3F4F6;
    --color-text-muted: #9CA3AF;

    --font-sans: 'articulat-cf', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-display: 'bicyclette', var(--font-sans);

    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 4rem;
    --spacing-xxl: 6rem;

    --transition-fast: 0.2s ease;
    --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);

    --border-radius: 12px;
}

/* --- Resets & Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

/* --- Typography --- */
h1,
h2,
h3,
h4,
.logo-text {
    font-family: var(--font-display);
    line-height: 1;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    font-weight: 900;
}

@media (min-width: 768px) {

    h1,
    h3,
    h4,
    .logo-text {
        line-height: 65px;
    }

    h2 {
        line-height: 50px;
    }
}

.accent {
    color: var(--color-accent);
}

.section-title {
    font-size: 2.25rem;
    margin-bottom: var(--spacing-md);
}

@media (min-width: 768px) {
    .section-title {
        font-size: 3.5rem;
    }
}

.section-desc {
    color: var(--color-text-muted);
    font-size: 1.125rem;
    max-width: 600px;
}

.center {
    text-align: center;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* --- Layout --- */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section {
    padding: var(--spacing-xl);
}

@media (min-width: 768px) {
    .section {
        padding: var(--spacing-xxl) 0;
    }
}

.grid {
    display: grid;
    gap: var(--spacing-lg);
}

.bg-darker {
    background-color: var(--color-bg-darker);
}

/* --- Components --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-family: var(--font-sans);
    transition: var(--transition-fast);
    text-align: center;
}

.btn-primary {
    background-color: var(--color-accent);
    color: #fff;
    box-shadow: 0 4px 14px rgba(227, 38, 52, 0.4);
}

.btn-primary:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(227, 38, 52, 0.6);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-block {
    width: 100%;
}

/* --- Glassmorphism --- */
.glass {
    background: rgba(43, 43, 43, 0.5);
    /* #2B2B2B with opacity */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.glass-dark {
    background: rgba(17, 17, 17, 0.7);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
}

/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    transition: all 0.3s ease;
    padding: 1.5rem 0;
}

.header.scrolled {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 48px;
    width: auto;
    display: block;
}

.logo-text {
    font-size: 1.75rem;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.nav-list {
    display: none;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 768px) {
    .nav-list {
        display: flex;
    }
}

.nav-link {
    font-weight: 500;
    color: var(--color-text-muted);
}

.nav-link:hover {
    color: #fff;
}

.mobile-toggle {
    display: block;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1000;
}

@media (min-width: 768px) {
    .mobile-toggle {
        display: none;
    }
}

.hamburger,
.hamburger::before,
.hamburger::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background-color: #fff;
    position: absolute;
    transition: var(--transition-fast);
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

.nav-open .hamburger {
    background-color: transparent;
}

.nav-open .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.nav-open .hamburger::after {
    transform: rotate(-45deg);
    bottom: 0;
}

.nav-menu.active .nav-list {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--color-bg);
    padding: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 5rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -2;
    transform: scale(1.05);
    /* parallax scaling room */
    /* Add a subtle red gradient mixed with dark to enhance background */
    background-image: linear-gradient(135deg, rgba(43, 43, 43, 0.3) 0%, rgba(227, 38, 52, 0.1) 100%);
    background-color: var(--color-surface);
    /* Fallback */
}

/* Optional gentle animation */
@keyframes backgroundDrift {
    0% {
        transform: scale(1.05) translate(0, 0);
    }

    50% {
        transform: scale(1.1) translate(-1%, -1%);
    }

    100% {
        transform: scale(1.05) translate(0, 0);
    }
}

.hero-bg {
    animation: backgroundDrift 20s ease-in-out infinite alternate;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(26, 26, 26, 0.6) 0%, rgba(26, 26, 26, 0.95) 100%);
    z-index: -1;
}

.hero-content {
    width: 100%;
    max-width: 1400px;
    text-align: center;
    margin: 0 auto;
    padding: 0 1rem;
}

.hero-title {
    font-size: clamp(2rem, 4.5vw, 4.5rem);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
    text-align: center;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- Features --- */
.features-grid {
    grid-template-columns: 1fr;
    margin-top: var(--spacing-xl);
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature-card {
    padding: 2.5rem 2rem;
    transition: var(--transition-normal);
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    background: var(--color-surface-hover);
    border-color: rgba(227, 38, 52, 0.4);
    box-shadow: 0 10px 40px rgba(227, 38, 52, 0.1);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--color-accent), #f97316);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.feature-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* --- Showcase --- */
.showcase-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    align-items: stretch;
}

@media (min-width: 992px) {
    .showcase-split {
        grid-template-columns: 1fr 1fr;
    }
}

.showcase-text {
    padding: var(--spacing-xl) 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (min-width: 768px) {
    .showcase-text {
        padding: var(--spacing-xxl) 0;
    }
}

.showcase-image {
    height: 100%;
}

.benefit-list {
    margin-top: 2rem;
}

.benefit-list li {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

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

/* --- Fundraising Stats --- */
.fundraising-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: var(--spacing-xl);
    text-align: center;
}

@media (min-width: 768px) {
    .fundraising-stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

.stat-item {
    padding: 2rem;
}

.stat-number {
    display: block;
    font-size: 4.5rem;
    font-weight: 900;
    font-family: var(--font-display);
    color: var(--color-accent);
    line-height: 1;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px rgba(227, 38, 52, 0.3);
}

.stat-label {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    font-weight: 600;
}

/* --- Testimonials --- */
.testimonial-grid {
    grid-template-columns: 1fr;
    margin-top: var(--spacing-xl);
}

@media (min-width: 768px) {
    .testimonial-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.testimonial-card {
    padding: 2.5rem;
}

.quote {
    font-size: 1.125rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.quote::before {
    content: '"';
    font-family: var(--font-display);
    font-size: 5rem;
    position: absolute;
    top: -30px;
    left: -20px;
    color: rgba(227, 38, 52, 0.15);
    line-height: 1;
    z-index: -1;
}

.quote-author {
    display: flex;
    flex-direction: column;
}

.quote-author strong {
    color: var(--color-accent);
    font-size: 1.125rem;
}

.quote-author span {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

/* Photo Gallery */
.photo-gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .photo-gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}

.overflow-hidden {
    overflow: hidden;
    border-radius: var(--border-radius);
}

.gallery-img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.mt-4 {
    margin-top: 2rem;
}

.mt-5 {
    margin-top: 4rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

/* --- Contact Section --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    padding: 2rem;
    gap: 3rem;
}

@media (min-width: 992px) {
    .contact-wrapper {
        grid-template-columns: 1fr 1fr;
        padding: 4rem;
        gap: 5rem;
    }
}

.contact-info .section-title {
    margin-bottom: 1rem;
    font-size: 2.25rem;
}

.contact-info p {
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    font-size: 1.125rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-details li {
    font-size: 1.25rem;
    font-weight: 600;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-accent);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(227, 38, 52, 0.2);
}

/* Fix dropdown styling natively */
select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

/* Option styling (cannot be styled heavily cross-browser, but text color inside select) */
select.form-control option {
    background-color: var(--color-surface);
    color: var(--color-text);
}


/* --- Footer --- */
.footer {
    background-color: #0a0a0a;
    padding-top: var(--spacing-xl);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

.footer-logo {
    height: 56px;
    width: auto;
    display: block;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--color-text-muted);
    margin-top: 1rem;
    max-width: 300px;
}

.footer-links h3 {
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--color-text-muted);
}

.footer-links a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    padding: 1.5rem 0;
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

/* --- Carousel Section --- */
.carousel-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

@media (min-width: 992px) {
    .carousel-layout {
        grid-template-columns: 1fr 1.2fr;
    }
}

.carousel-features {
    display: flex;
    gap: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    flex-wrap: wrap;
}

.c-feature {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    position: relative;
    font-family: var(--font-sans);
}

.c-feature:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -0.75rem;
    top: 50%;
    transform: translateY(-50%);
    height: 70%;
    width: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.carousel-visual {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1200px;
    margin-bottom: 2rem;
}

.carousel-slide {
    position: absolute;
    width: 320px;
    height: 320px;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease, z-index 0.6s;
    border-radius: 20px;
    overflow: hidden;
    background: var(--color-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
    z-index: 0;
    transform: translateX(0) scale(0.6);
    pointer-events: none;
}

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

.carousel-slide.active {
    opacity: 1;
    z-index: 3;
    transform: translateX(0) scale(1.1);
    pointer-events: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
}

.carousel-slide.prev1 {
    opacity: 1;
    z-index: 2;
    transform: translateX(-40%) scale(0.85);
}

.carousel-slide.next1 {
    opacity: 1;
    z-index: 2;
    transform: translateX(40%) scale(0.85);
}

.carousel-slide.prev2 {
    opacity: 0.4;
    z-index: 1;
    transform: translateX(-75%) scale(0.65);
}

.carousel-slide.next2 {
    opacity: 0.4;
    z-index: 1;
    transform: translateX(75%) scale(0.65);
}

/* Controls */
.carousel-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.carousel-btn {
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color var(--transition-fast), transform var(--transition-fast);
}

.carousel-btn:hover {
    color: var(--color-text);
    transform: scale(1.1);
}

.carousel-dots {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: background var(--transition-fast), transform var(--transition-fast);
}

.dot.active {
    background: var(--color-accent);
    transform: scale(1.4);
}

/* --- Animations --- */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.active.reveal-up,
.active.reveal-left,
.active.reveal-right {
    opacity: 1;
    transform: translate(0);
}

.delay-1 {
    transition-delay: 0.15s;
}

.delay-2 {
    transition-delay: 0.3s;
}