:root {
    --primary: #f18334;
    --primary-light: #ffd4b8;
    --dark: #212327;
    --white: #ffffff;
    --background: #f9f9f9;
    --gray: #666666;
    --shadow: rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Quicksand', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
header {
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
}

nav .logo {
    display: flex;
    align-items: center;
}

nav .logo img {
    max-height: 50px;
    width: auto;
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    gap: 20px;
}

nav ul li {
    white-space: nowrap;
}

nav ul li a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
    padding: 8px 12px;
    display: block;
}

nav ul li a:hover {
    color: var(--primary);
}

/* Mobile styles */
@media screen and (max-width: 768px) {
    header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
    }

    nav {
        display: flex;
        align-items: center;
        padding: 0.5rem;
        height: 60px;
        position: relative;
    }

    nav .logo {
        margin: 0;
        padding-right: 10px;
    }

    nav .logo img {
        max-height: 40px;
    }

    /* Navigation scroll container */
    nav ul {
        flex: 1;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        padding: 0 40px 0 5px; /* Increased right padding for indicator */
        margin: 0;
        gap: 10px;
        position: relative;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    nav ul::-webkit-scrollbar {
        display: none;
    }

    /* Remove old arrow */
    nav ul::after {
        display: none;
    }

    /* Add scroll indicator container */
    nav::after {
        content: '';
        position: absolute;
        right: 0;
        top: 0;
        height: 100%;
        width: 50px;
        background: linear-gradient(to right, transparent, var(--white) 70%);
        pointer-events: none;
    }

    /* Add arrow icon */
    nav::before {
        content: '→';
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--primary);
        font-size: 1.5rem;
        z-index: 2;
        animation: pulseRight 1.5s infinite;
        pointer-events: none;
        text-shadow: 0 0 5px var(--white);
    }

    @keyframes pulseRight {
        0%, 100% { 
            opacity: 0.5;
            transform: translateY(-50%) translateX(0);
        }
        50% { 
            opacity: 1;
            transform: translateY(-50%) translateX(5px);
        }
    }

    nav ul li {
        display: inline-block;
    }

    nav ul li a {
        padding: 8px 12px;
        font-size: 0.9rem;
        white-space: nowrap;
    }

    main {
        padding-top: 60px;
    }

    /* Center align section headings on mobile */
    section h2 {
        text-align: center !important;
        width: 100%;
    }

    .donate h2 {
        text-align: center !important;
        margin-bottom: 1.5rem;
    }
}

/* Hero section needs special handling */
main section.hero {
    margin-top: -100px; /* Cancel out the main padding for hero section */
    height: calc(100vh - 100px); /* Set height to viewport minus header height */
    display: flex;
    align-items: center;
}

main {
    padding-top: 100px; /* Adjusted to account for the fixed header height */
}

/* Hero Section */
.hero {
    min-height: 90vh;
    background: linear-gradient(135deg, var(--white) 0%, var(--primary-light) 100%);
    display: flex;
    align-items: center; /* Changed back to center for vertical centering */
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 0; /* Removed padding-top for true centering */
}

.hero::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 9c-1.4-3.3-4.7-5.5-8.5-5.5-5.2 0-9.5 4.3-9.5 9.5s4.3 9.5 9.5 9.5c3.8 0 7.1-2.2 8.5-5.5 1.4 3.3 4.7 5.5 8.5 5.5 5.2 0 9.5-4.3 9.5-9.5s-4.3-9.5-9.5-9.5c-3.8 0-7.1 2.2-8.5 5.5z' fill='rgba(241, 131, 52, 0.1)' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    padding: 1rem;
    margin-top: 0; /* Reset margin-top for true centering */
    z-index: 2;
}

.hero h1 {
    font-size: 4.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    margin-top: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.hero .tagline {
    font-size: 1.8rem;
    color: var(--dark);
    margin-bottom: 1rem;
    font-weight: 500;
}

.hero .cta {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 2rem;
    font-weight: 600;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(241, 131, 52, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(241, 131, 52, 0.4);
}

/* Success Stories */
.success-stories {
    padding: 5rem 0;
    background: var(--white);
}

.success-stories h2 {
    text-align: center;
    color: var(--primary);
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.story-card {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
}

.before-after {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.before, .after {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    background: var(--white);
    aspect-ratio: 1/1;
}

.before img, .after img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.before:hover img, .after:hover img {
    transform: scale(1.05);
}

.before .overlay, .after .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.7) 50%, transparent 100%);
    padding: 1.5rem;
    color: var(--white);
}

.before .overlay h3, .after .overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: var(--primary);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.before .overlay p, .after .overlay p {
    font-size: 1rem;
    line-height: 1.4;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Donate Section */
.donate {
    background: linear-gradient(135deg, var(--white) 0%, var(--background) 100%);
    padding: 5rem 0;
    position: relative;
}

.donate h2 {
    text-align: center;
    color: var(--primary);
    font-size: 2.5rem;
    margin-bottom: 3rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    width: 100%;
}

.donate::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M25 10c-1.4-3.3-4.7-5.5-8.5-5.5-5.2 0-9.5 4.3-9.5 9.5s4.3 9.5 9.5 9.5c3.8 0 7.1-2.2 8.5-5.5M35 10c1.4-3.3 4.7-5.5 8.5-5.5 5.2 0 9.5 4.3 9.5 9.5s-4.3 9.5-9.5 9.5c-3.8 0-7.1-2.2-8.5-5.5M30 25c-5.2 0-9.5 4.3-9.5 9.5s4.3 9.5 9.5 9.5 9.5-4.3 9.5-9.5-4.3-9.5-9.5-9.5' fill='rgba(241, 131, 52, 0.05)' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.5;
    z-index: 0;
}

.donate .container {
    position: relative;
    z-index: 1;
}

.donation-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
    align-items: stretch;
}

.donation-column {
    display: flex;
    flex-direction: column;
}

.duitnow-donation, .crypto-donation {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.duitnow-donation .qr-code {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-top: 1.5rem;
}

.crypto-addresses {
    background: var(--background);
    padding: 2rem;
    border-radius: 10px;
    margin-top: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.crypto-option {
    margin-bottom: 1.5rem;
    position: relative;
}

.crypto-option code {
    display: block;
    background: var(--dark);
    color: var(--white);
    padding: 1rem;
    border-radius: 5px;
    font-size: 0.9rem;
    word-break: break-all;
    margin-top: 0.5rem;
    transition: background-color 0.3s;
    cursor: pointer;
}

.crypto-option code:hover {
    background: var(--primary);
}

.crypto-option {
    margin-bottom: 1.5rem;
}

.crypto-option code {
    display: block;
    background: var(--dark);
    color: var(--white);
    padding: 0.5rem;
    border-radius: 5px;
    font-size: 0.9rem;
    word-break: break-all;
}

/* QR Code Styles */
.qr-code {
    margin-top: 1.5rem;
}

.duitnow-qr {
    max-width: 300px;
    width: 100%;
    height: auto;
    margin: 0 auto 1rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.qr-code p {
    color: var(--gray);
    font-size: 1.1rem;
    margin-top: 1rem;
}

/* Footer */
footer {
    background-color: var(--dark);
    color: var(--white);
    padding: 3rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--white);
    font-size: 1.5rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--primary);
}

.contact-info a {
    color: var(--white);
    text-decoration: none;
}

.contact-info a:hover {
    color: var(--primary);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Social Section */
.social-section {
    padding: 5rem 0;
    text-align: center;
    background: var(--background);
}

.social-section h2 {
    color: var(--primary);
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.social-button {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(241, 131, 52, 0.3);
}

.social-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(241, 131, 52, 0.4);
}

.social-button i {
    font-size: 1.5rem;
}

/* Instagram Feed */
.instagram-feed {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* Gallery Section */
.gallery-section {
    padding: 5rem 0;
    background: var(--background);
}

.gallery-section h2 {
    text-align: center;
    color: var(--primary);
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.gallery-wrapper {
    position: relative;
    padding: 0 40px;
    margin: 2rem 0;
    overflow: hidden;
}

.gallery {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 1rem 0;
    white-space: nowrap;
    align-items: center;
}

.gallery::-webkit-scrollbar {
    display: none;
}

.gallery-item {
    scroll-snap-align: center;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    aspect-ratio: 1/1;
    min-width: 300px;
    width: 300px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: var(--primary);
    border: none;
    border-radius: 50%;
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s;
    z-index: 2;
    opacity: 0.9;
}

.gallery-nav:hover {
    background: var(--dark);
    transform: translateY(-50%) scale(1.1);
    opacity: 1;
}

.gallery-nav.prev {
    left: 0;
}

.gallery-nav.next {
    right: 0;
}

/* Memorial Section */
.memorial {
    padding: 5rem 0;
    background: var(--background);
    position: relative;
}

.memorial::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M25 10c-1.4-3.3-4.7-5.5-8.5-5.5-5.2 0-9.5 4.3-9.5 9.5s4.3 9.5 9.5 9.5c3.8 0 7.1-2.2 8.5-5.5M35 10c1.4-3.3 4.7-5.5 8.5-5.5 5.2 0 9.5 4.3 9.5 9.5s-4.3 9.5-9.5 9.5c-3.8 0-7.1-2.2-8.5-5.5' fill='rgba(241, 131, 52, 0.05)' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.3;
    z-index: 0;
}

.memorial .container {
    position: relative;
    z-index: 1;
}

.memorial h2 {
    text-align: center;
    color: var(--primary);
    font-size: 2.5rem;
    margin-bottom: 3rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    width: 100%;
}

.memorial-content {
    max-width: 1000px;
    margin: 0 auto;
}

.video-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto 3rem;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    object-fit: contain; /* Changed from cover to contain */
}

/* Consistent section heading styles */
.donate h2,
.memorial h2 {
    text-align: center;
    color: var(--primary);
    font-size: 2.5rem;
    margin-bottom: 3rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    width: 100%;
    padding: 0 1rem;
}

@media (max-width: 768px) {
    .donate h2,
    .memorial h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
        margin-top: 0;
    }
    
    .hero {
        padding-top: 0;
        min-height: auto;
        height: auto;
    }
    
    .hero-content {
        padding: 20px;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }

    .hero-content p {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .cta-button {
        width: 80%;
        text-align: center;
    }

    .container {
        padding: 0 15px;
        width: 100%;
    }

    .donation-options {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .social-links {
        justify-content: center;
    }

    .mission-vision {
        grid-template-columns: 1fr;
    }

    .before-after {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .gallery-wrapper {
        padding: 0 20px;
    }
    
    .gallery {
        grid-auto-columns: 250px;
    }
    
    .gallery-nav {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }
    
    .social-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .social-button {
        width: 100%;
        margin: 5px 0;
    }
}

@media screen and (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
}
