/* Base Styles */
:root {
    --primary-color: #0077cc;
    --primary-dark: #005fa3;
    --secondary-color: #53d2dc;
    --accent-color: #f39237;
    --light-color: #f7f9fc;
    --dark-color: #2c3e50;
    --text-color: #333;
    --gray-color: #767676;
    --light-gray: #f5f5f5;
    --border-radius: 8px;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

p {
    margin-bottom: 1.2rem;
}

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

ul {
    list-style: none;
}

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

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

.btn-large {
    padding: 14px 28px;
    font-size: 1.1rem;
}

.section {
    padding: 5rem 0;
}

.section-alt {
    background-color: var(--light-color);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--secondary-color);
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.section-description {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
    color: var(--gray-color);
}

.journey-dates {
    text-align: center;
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--primary-color);
    margin: -2rem auto 3rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent-color);
    color: white;
    padding: 8px 20px;
    border-radius: var(--border-radius);
}

/* Header & Navigation */
header {
    min-height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.5)), url('images/andre-filipe-4ThcC1DtspE-unsplash.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    display: flex;
    align-items: center;
    position: relative;
    padding: 0 0 30px;
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    margin: 20px 30px;
    width: calc(100% - 60px);
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: var(--border-radius);
    backdrop-filter: blur(5px);
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

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

.nav-links a {
    color: white;
    font-weight: 600;
    position: relative;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.nav-links a.btn-primary {
    padding: 10px 20px;
    border-radius: var(--border-radius);
    background-color: var(--accent-color);
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.nav-links a.btn-primary:hover {
    background-color: #e07d1b;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.nav-links a.btn-primary::after {
    display: none;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    bottom: -5px;
    left: 0;
    transition: var(--transition);
}

.nav-links a:not(.btn-primary):hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .line {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px;
    border-radius: 3px;
}

/* Countdown Timer */
.countdown {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    padding: 15px;
    border-radius: var(--border-radius);
    min-width: 80px;
}

.countdown-number {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 5px;
}

.countdown-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Hero Content */
.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    z-index: 5;
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

/* Ensure the button is clickable */
.hero-content .btn-primary {
    position: relative;
    z-index: 10;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.5rem;
}

.fundraising-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    text-align: center;
}

.stat h3 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.rounded-image {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    width: 100%;
}

.image-caption {
    text-align: center;
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--gray-color);
    font-style: italic;
}

/* Journey Section */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--secondary-color);
    top: 0;
    bottom: 0;
    left: 20px;
}

.timeline-item {
    padding: 20px 0 20px 50px;
    position: relative;
}

.timeline-icon {
    position: absolute;
    left: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.timeline-content {
    background-color: white;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.timeline-content h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
    border-bottom: 2px solid var(--light-color);
    padding-bottom: 8px;
}

.itinerary-list {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.itinerary-list li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 10px;
    line-height: 1.5;
}

.itinerary-list li::before {
    content: '•';
    color: var(--accent-color);
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.2em;
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-item {
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: translateY(-10px);
}

.gallery-item img {
    transition: var(--transition);
    object-fit: cover;
    height: 250px;
    width: 100%;
}

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

/* Donation Section */
.donation-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 3rem;
}

.donation-card {
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    position: relative;
    transition: var(--transition);
}

.donation-card:hover {
    transform: translateY(-10px);
}

.donation-card.popular {
    border: 2px solid var(--accent-color);
    transform: scale(1.05);
}

.popular-tag {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 15px 0;
}

.donation-card ul {
    margin: 20px 0;
    text-align: left;
    min-height: 120px;
}

.donation-card li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.donation-card li::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--secondary-color);
    position: absolute;
    left: 0;
}

.btn-donate {
    width: 100%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-donate:hover {
    background-color: var(--primary-dark);
}

.custom-donation {
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.custom-donation h3 {
    margin-bottom: 20px;
}

.custom-donation-form {
    display: flex;
    gap: 15px;
}

.custom-donation-form input {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.5)), url('images/andre-filipe-4ThcC1DtspE-unsplash.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    text-align: center;
    color: white;
    padding: 5rem 0;
}

.cta-section h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
footer {
    background-color: #000;
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 3rem;
}

.footer-info h3 {
    color: white;
    margin-bottom: 1rem;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 1.5rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
}

.footer-links h4, .footer-contact h4 {
    color: white;
    margin-bottom: 1.5rem;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-links a:hover {
    color: var(--secondary-color);
    margin-left: 5px;
}

.footer-contact p {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.8);
}

.footer-contact i {
    margin-right: 10px;
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Venmo Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    overflow-y: auto;
    padding: 20px;
}

.modal-content {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 30px;
    max-width: 450px;
    width: 100%;
    text-align: center;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.8rem;
    font-weight: bold;
    cursor: pointer;
    color: var(--gray-color);
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--primary-color);
}

.venmo-qr {
    width: 250px;
    height: 250px;
    margin: 20px auto;
    position: relative;
    border: 1px solid var(--gray-color);
    border-radius: 6px;
    overflow: hidden;
    background-color: var(--light-gray);
}

.venmo-qr img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.venmo-qr::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: 0;
    right: 0;
}

.venmo-username {
    margin-top: 10px;
    font-weight: bold;
    font-size: 1.5rem;
    color: var(--primary-color);
    display: block;
    text-align: center;
}

.modal-text {
    margin-top: 15px;
    color: var(--dark-color);
    font-size: 1.1rem;
    line-height: 1.5;
}

/* Responsive Styles */
@media (max-width: 992px) {
    header {
        /* Improve performance on mobile devices by disabling fixed background */
        background-attachment: scroll;
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    header {
        /* Ensure proper scaling on mobile devices */
        background-position: center center;
        background-size: cover;
        min-height: 100vh;
        padding-top: 70px; /* Make room for the navigation */
    }
    
    .hero-content {
        padding-top: 60px; /* Add space between nav and content */
    }
    
    nav {
        padding: 15px;
        margin: 15px;
        width: calc(100% - 30px);
    }
    
    .nav-links {
        position: fixed;
        top: 90px;
        left: -100%;
        width: calc(100% - 30px);
        max-width: 300px;
        margin: 0 15px;
        height: auto;
        background-color: rgba(0, 0, 0, 0.9);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        border-radius: var(--border-radius);
        gap: 20px;
        transition: var(--transition);
        box-shadow: var(--box-shadow);
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        width: 100%;
    }
    
    .nav-links a, .nav-links a.btn-primary {
        width: 100%;
        padding: 10px 0;
        display: block;
    }
    
    .hamburger {
        display: block;
        z-index: 11;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .fundraising-stats {
        flex-direction: column;
        gap: 30px;
    }
    
    .custom-donation-form {
        flex-direction: column;
    }
    
    .modal-content {
        padding: 20px;
        max-width: 360px;
    }
    
    .venmo-qr {
        width: 225px;
        height: 225px;
    }
}

@media (max-width: 576px) {
    header {
        /* Additional adjustments for very small screens */
        min-height: 100vh;
        background-position: center top;
        padding: 60px 0 20px; /* Adjusted padding */
    }
    
    .hero-content {
        padding-top: 40px;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline::before {
        left: 15px;
    }
    
    .timeline-item {
        padding-left: 40px;
    }
    
    .timeline-icon {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
    
    .modal-content {
        padding: 15px;
        max-width: 320px;
    }
    
    .venmo-qr {
        width: 200px;
        height: 200px;
    }
}

/* iOS Safari specific fixes */
@supports (-webkit-touch-callout: none) {
    /* CSS specific to iOS devices */
    
    /* Fix for iOS scrolling and interaction issues */
    body {
        -webkit-overflow-scrolling: touch;
        overflow-x: hidden;
    }
    
    /* Fix header for iOS */
    header {
        background-attachment: scroll;
        min-height: 100vh;
    }
    
    /* Ensure the hero content is above other elements */
    .hero-content {
        position: relative;
        z-index: 5;
    }
    
    /* Ensure buttons are clickable */
    .btn-primary {
        position: relative;
        z-index: 10;
        -webkit-tap-highlight-color: rgba(0,0,0,0);
        touch-action: manipulation;
    }
    
    /* Specific fix for the header overlay to not block interactions */
    .header-overlay {
        z-index: 1;
    }
    
    /* Make the support button highly interactive */
    #support-journey-btn {
        position: relative;
        z-index: 100; /* Very high z-index to ensure it's always clickable */
        -webkit-transform: translateZ(0); /* Force hardware acceleration */
        transform: translateZ(0);
        cursor: pointer;
        -webkit-tap-highlight-color: rgba(0,0,0,0); /* Remove tap highlight */
        touch-action: manipulation; /* Better touch response */
        padding: 14px 28px; /* Slightly larger padding for better touch target */
    }
    
    /* Add scroll margin to sections for proper scrolling with fixed header */
    section[id] {
        scroll-margin-top: 90px;
    }
    
    /* Special treatment for the donate section */
    #donate {
        scroll-margin-top: 100px;
        position: relative;
        z-index: 1;
    }
}

/* Remove the iOS-specific back button */
#ios-back-button {
    display: none;
} 