/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Warm, hiking-inspired color palette with city wholesome vibe */
    --primary-orange: #ec8e10;
    --warm-orange: #ec8e10;
    --forest-green: #415510;
    --deep-green: #415510;
    --accent-red: #c74311;
    --warm-beige: #F5E6D3;
    --light-cream: #fbf7f3;
    --dark-text: #424344;
    --medium-text: #5D6D7E;
    --light-text: #95A5A6;
    --white: #FFFFFF;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-hover: rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--dark-text);
    line-height: 1.6;
    background-color: var(--light-cream);
    overflow-x: hidden;
}

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

/* Inline Links */
.inline-link {
    color: var(--primary-orange);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.inline-link:hover {
    color: var(--warm-orange);
}

.hero-subtitle .inline-link {
    color: var(--white);
    text-decoration: underline;
}

.hero-subtitle .inline-link:hover {
    color: var(--primary-orange);
}

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--deep-green);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: var(--deep-green);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 40px;
    max-width: 1400px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.nav-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 0 0 auto;
    min-width: 0;
}

.nav-logo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--white);
    letter-spacing: 1px;
}

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

.nav-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-orange);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--white);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-donate-btn {
    padding: 8px 20px;
    background: var(--primary-orange);
    color: var(--white);
    text-decoration: none;
    border-radius: 20px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.nav-donate-btn:hover {
    background: var(--warm-orange);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(236, 142, 16, 0.3);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--white);
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.language-toggle {
    display: flex;
    gap: 2px;
}

.lang-btn {
    padding: 8px 16px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.0rem;
    transition: all 0.3s ease;
}

.lang-btn.active {
    color: var(--white);
    font-weight: 600;
}

.lang-btn:hover:not(.active) {
    color: rgba(255, 255, 255, 0.9);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    background: linear-gradient(135deg, var(--forest-green) 0%, var(--deep-green) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/static/images/landing_img.png');
    background-size: cover;
    background-position: center;
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    padding: 20px;
    margin-top: -50px;
}

.hero-title {
    font-size: 8rem;
    font-weight: 900;
    margin-bottom: 30px;
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: 4px;
    line-height: 1;
}

.hero-subtitle {
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 15px;
    opacity: 0.95;
    max-width: 900px;
    line-height: 1.4;
}

.hero-date {
    font-size: 1.3rem;
    font-weight: 400;
    opacity: 0.9;
}

/* Countdown Timer */
.countdown-container {
    margin-top: 50px;
    padding: 40px 20px;
}

.countdown-label {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--dark-text);
    text-align: center;
}

.countdown-timer {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 100px;
}

.countdown-value {
    font-size: 4rem;
    font-weight: 900;
    color: var(--primary-orange);
    line-height: 1;
    margin-bottom: 10px;
}

.countdown-unit {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--medium-text);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: var(--white);
    text-align: center;
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    display: block;
    margin-bottom: 10px;
    font-size: 1.8rem;
    font-weight: 700;
    opacity: 0.9;
}

.arrow-down {
    width: 30px;
    height: 30px;
    border-left: 3px solid var(--white);
    border-bottom: 3px solid var(--white);
    transform: rotate(-45deg);
    margin: 0 auto;
}

/* Sections */
.section {
    padding: 80px 20px;
}

.who-we-are {
    background-color: var(--white);
}

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

.help-section {
    background-color: var(--white);
}

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

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

.section-title {
    font-size: 2.2rem;
    color: var(--dark-text);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
    font-weight: 700;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-orange);
    border-radius: 2px;
}

.content-card {
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    transition: none;
}

.content-card:hover {
    transform: none;
    box-shadow: none;
}

.content-card p {
    font-size: 1.54rem;
    line-height: 1.8;
    color: var(--dark-text);
    text-align: center;
    max-width: 1090px;
    margin: 0 auto;
}

/* Trek Section - Two Column Layout */
.trek-intro {
    font-size: 1.54rem;
    line-height: 1.8;
    color: var(--dark-text);
    text-align: center;
    max-width: 1090px;
    margin: 0 auto 40px auto;
}

.trek-two-columns {
    display: grid;
    grid-template-columns: 1.2fr 1.6fr;
    gap: 0px;
    align-items: center;
}

.trek-left-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.trek-right-column {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
}

.map-container {
    display: flex;
    justify-content: flex-start;
    background: transparent;
    padding: 0;
    margin: 0;
    width: 100%;
}

.map-container svg {
    width: 100%;
    max-width: 1200px;
    height: auto;
    filter: drop-shadow(0 4px 8px var(--shadow));
}

.day-card {
    background: transparent;
    padding: 20px;
    border-radius: 0;
    border-left: 3px solid var(--primary-orange);
    transition: all 0.3s ease;
}

.day-card:hover {
    transform: none;
    border-left-width: 4px;
    border-left-color: var(--accent-red);
}

.day-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--primary-orange);
    margin-bottom: 10px;
}

.day-route {
    font-size: 1.35rem;
    color: var(--dark-text);
    margin-bottom: 12px;
    font-weight: 600;
}

.day-detail {
    font-size: 1.15rem;
    color: var(--medium-text);
    margin-bottom: 8px;
    line-height: 1.5;
}

.day-detail:last-child {
    margin-bottom: 0;
}

.location-link {
    color: var(--primary-orange);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.location-link:hover {
    color: var(--accent-red);
}

.day-distance {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--forest-green);
    margin-top: 12px;
}

.total-distance {
    text-align: center;
    font-size: 2rem;
    padding: 30px 20px;
    background: transparent;
    color: var(--dark-text);
    border-radius: 0;
    font-weight: 800;
    border-top: 2px solid var(--primary-orange);
    margin-top: 30px;
}

.total-distance strong {
    font-size: 2rem;
    font-weight: 800;
}

/* Our Purpose Section */
.purpose-section {
    background: var(--deep-green);
    color: var(--white);
}

.purpose-section .section-title {
    color: var(--white);
}

.purpose-section .section-title::after {
    background: var(--primary-orange);
}

.purpose-card {
    background: transparent;
    color: var(--white);
}

.purpose-card p {
    color: var(--white);
    font-size: 1.54rem;
    text-align: center;
}

/* Help Section */
.help-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.help-card {
    background: transparent;
    padding: 35px 20px;
    border-radius: 0;
    box-shadow: none;
    text-align: center;
    transition: all 0.3s ease;
    border-bottom: none;
    display: flex;
    flex-direction: column;
}

.help-card:hover {
    transform: none;
    box-shadow: none;
}

.help-card h3 {
    font-size: 1.8rem;
    color: var(--dark-text);
    margin-bottom: 20px;
    font-weight: 700;
}

.help-card p {
    font-size: 1.54rem;
    color: var(--medium-text);
    margin-bottom: 30px;
    line-height: 1.7;
    flex-grow: 1;
}

.cta-button {
    display: inline-block;
    padding: 12px 35px;
    background: var(--primary-orange);
    color: var(--white);
    text-decoration: none;
    border-radius: 25px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(236, 142, 16, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(236, 142, 16, 0.4);
    background: var(--warm-orange);
}

.social-links-container {
    display: flex;
    flex-direction: row;
    gap: 40px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.social-link-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--dark-text);
    transition: all 0.3s ease;
}

.social-link-item:hover {
    transform: translateY(-5px);
}

.social-icon {
    width: 80px;
    height: 80px;
    background: var(--deep-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(65, 85, 16, 0.2);
}

.social-icon svg {
    color: var(--white);
}

.social-link-item:hover .social-icon {
    background: var(--forest-green);
    box-shadow: 0 6px 16px rgba(65, 85, 16, 0.3);
}

.social-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
}

/* Contact Section */
.contact-intro {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--dark-text);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.contact-intro:last-of-type {
    margin-bottom: 60px;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: var(--dark-text);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--warm-beige);
    border-radius: 10px;
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    color: var(--dark-text);
    transition: all 0.3s ease;
    background-color: var(--white);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%232C3E50' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--forest-green);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.form-group textarea {
    resize: vertical;
}

.email-match-message {
    display: block;
    margin-top: 8px;
    font-size: 0.9rem;
    font-weight: 600;
}

.email-match-message.error {
    color: #dc3545;
}

.email-match-message.success {
    color: #28a745;
}

.submit-button {
    width: 100%;
    padding: 14px;
    background: var(--forest-green);
    color: var(--white);
    border: none;
    border-radius: 25px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
    background: var(--deep-green);
}

.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    display: none;
}

.form-message.success {
    background: #D4EDDA;
    color: #155724;
    border: 1px solid #C3E6CB;
    display: block;
}

.form-message.error {
    background: #F8D7DA;
    color: #721C24;
    border: 1px solid #F5C6CB;
    display: block;
}

/* Custom Modal Popup */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.modal-overlay.show {
    display: flex;
}

.modal-content {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 28px;
    color: var(--medium-text);
    cursor: pointer;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--light-cream);
    color: var(--dark-text);
}

.modal-icon {
    font-size: 50px;
    margin-bottom: 20px;
    text-align: center;
}

.modal-icon.success {
    color: #28a745;
}

.modal-icon.error {
    color: #dc3545;
}

.modal-message {
    font-size: 1.2rem;
    color: var(--dark-text);
    text-align: center;
    line-height: 1.6;
}

/* Footer */
.footer {
    background: var(--deep-green);
    color: var(--white);
    padding: 30px 20px;
    text-align: center;
}

.footer p {
    font-size: 1rem;
    opacity: 0.9;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .nav-top {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        background: var(--deep-green);
        padding: 20px 0;
        margin-top: 15px;
        order: 3;
    }
    
    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-right {
        order: 2;
        gap: 10px;
        margin-top: 15px;
        width: 100%;
        justify-content: center;
    }
    
    .lang-btn {
        padding: 8px 14px;
        font-size: 0.95rem;
    }

    .scroll-indicator span {
        font-size: 1.8rem;
    }

    .hero-title {
        font-size: 5rem;
        letter-spacing: 2px;
    }

    .hero-subtitle {
        font-size: 1.4rem;
    }
    
    .countdown-value {
        font-size: 3rem;
    }
    
    .countdown-unit {
        font-size: 0.9rem;
    }
    
    .countdown-timer {
        gap: 20px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .content-card {
        padding: 25px;
    }

    .content-card p {
        font-size: 1.3rem;
    }
    
    .trek-intro {
        font-size: 1.3rem;
    }
    
    .trek-two-columns {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .total-distance {
        margin-top: 15px;
    }
    
    .map-container svg text {
        font-size: 16px !important;
    }

    .help-grid {
        grid-template-columns: 1fr;
    }

    .map-container svg {
        max-width: 90%;
    }
}

@media (max-width: 480px) {
    .nav-logo {
        font-size: 1.2rem;
    }

    .hero-title {
        font-size: 3.5rem;
        letter-spacing: 2px;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
        line-height: 1.8;
    }
    
    .scroll-indicator {
        bottom: 90px;
    }
    
    .scroll-indicator span {
        font-size: 1.5rem;
    }
    
    .countdown-value {
        font-size: 2.5rem;
    }
    
    .countdown-unit {
        font-size: 0.8rem;
    }
    
    .countdown-timer {
        gap: 15px;
    }
    
    .countdown-item {
        min-width: 70px;
    }

    .section {
        padding: 30px 15px;
    }

    .lang-btn {
        padding: 10px 16px;
        font-size: 1.1rem;
    }
    
    .language-toggle {
        gap: 3px;
    }
    
    .trek-two-columns {
        gap: 0;
    }
    
    .total-distance {
        margin-top: -50px;
        margin-bottom: 0;
        padding: 20px 15px;
        font-size: 1.3rem;
    }
    
    .total-distance strong {
        font-size: 1.3rem;
    }
    
    .purpose-section {
        padding: 30px 15px;
    }
    
    .help-section {
        padding: 20px 15px;
    }
    
    .help-card {
        padding: 20px 20px;
    }
    
    .help-card p {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }
    
    .help-grid {
        gap: 10px;
    }
    
    .map-container svg {
        max-width: 100%;
    }
    
    .map-container svg text {
        font-size: 18px !important;
    }
}
