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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fafafa;
}

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

/* Typography */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: clamp(1.125rem, 2.5vw, 1.5rem); }

p {
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.7;
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e5e5e5;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 0.75rem 0;
}

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

.nav-logo a {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #d97706;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-logo a:hover {
    color: #b45309;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #4b5563;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #d97706;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: #d97706;
    border-radius: 2px;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.bar {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    margin-top: 80px;
    padding: 3rem 0;
    background: linear-gradient(135deg, #fff7ed 0%, #fed7aa 100%);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-title {
    color: #d97706;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #6b7280;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.hero-deadline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #dc2626;
    font-weight: 600;
    padding: 0.75rem 1rem;
    background: rgba(220, 38, 38, 0.1);
    border-radius: 8px;
    border-left: 4px solid #dc2626;
}

.hero-image {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.hero-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

/* Progress Section */
.progress-section {
    padding: 3rem 0;
    background: white;
}

.progress-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    border: 1px solid #e5e7eb;
}

.progress-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #d97706;
    font-family: 'Inter', sans-serif;
}

.stat-label {
    font-size: 0.875rem;
    color: #6b7280;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.progress-bar-container {
    background: #f3f4f6;
    height: 12px;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 1rem;
    position: relative;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b, #d97706);
    border-radius: 6px;
    transition: width 0.8s ease;
    position: relative;
    overflow: hidden;
}

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

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

.progress-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #374151;
}

#progress-percentage {
    color: #d97706;
    font-size: 1.125rem;
}

.remaining {
    color: #6b7280;
    font-size: 0.875rem;
}

/* Donate Section */
.donate-section {
    padding: 4rem 0;
    background: #f9fafb;
}

.donate-section h2 {
    text-align: center;
    color: #111827;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    text-align: center;
    color: #6b7280;
    font-size: 1.125rem;
    margin-bottom: 3rem;
}

.donate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.donate-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    text-align: center;
}

.donate-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
}

.paypal-card:hover { border-color: #003087; }
.venmo-card:hover { border-color: #3d95ce; }
.cashapp-card:hover { border-color: #00d632; }

.card-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.card-header i {
    font-size: 2rem;
}

.paypal-card .card-header i { color: #003087; }
.venmo-card .card-header i { color: #3d95ce; }
.cashapp-card .card-header i { color: #00d632; }

.card-header h3 {
    color: #111827;
    margin-bottom: 0;
}

.qr-container {
    margin-bottom: 1.5rem;
}

.qr-code {
    width: 150px;
    height: 150px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    background: #f3f4f6;
}

.handle-display {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    background: #f3f4f6;
    border-radius: 8px;
    font-family: 'Inter', monospace;
}

.button-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.card-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.payment-info {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-family: inherit;
    min-height: 48px;
}

.btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.3);
}

.btn-primary {
    background: #d97706;
    color: white;
    border-color: #d97706;
}

.btn-primary:hover {
    background: #b45309;
    border-color: #b45309;
    transform: translateY(-2px);
    box-shadow: 0 8px 15px -3px rgba(217, 119, 6, 0.3);
}

.btn-secondary {
    background: #6b7280;
    color: white;
    border-color: #6b7280;
}

.btn-secondary:hover {
    background: #4b5563;
    border-color: #4b5563;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: #d97706;
    border-color: #d97706;
}

.btn-outline:hover {
    background: #d97706;
    color: white;
    transform: translateY(-2px);
}

/* Content Sections */
.story-section,
.updates-section,
.faq-section,
.transparency-section {
    padding: 3rem 0;
}

.story-section {
    background: white;
}

.updates-section {
    background: #f9fafb;
}

.faq-section {
    background: white;
}

.transparency-section {
    background: #f9fafb;
}

.story-content,
.transparency-content {
    max-width: 800px;
    margin: 0 auto;
}

.story-content p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #374151;
    margin-bottom: 1.5rem;
}

.cost-breakdown {
    background: #f8fafc;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    border-left: 4px solid #d97706;
}

.cost-breakdown h3 {
    color: #d97706;
    margin-bottom: 1.5rem;
    text-align: center;
}

.breakdown-grid {
    display: grid;
    gap: 1rem;
}

.breakdown-item,
.breakdown-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.breakdown-total {
    border: 2px solid #d97706;
    background: #fff7ed;
    margin-top: 0.5rem;
}

.breakdown-label {
    font-size: 1rem;
    color: #374151;
}

.breakdown-amount {
    font-size: 1.125rem;
    font-weight: 700;
    color: #d97706;
}

.breakdown-total .breakdown-amount {
    font-size: 1.25rem;
}

.support-letter {
    text-align: center;
    margin-top: 2rem;
}

.updates-list {
    max-width: 800px;
    margin: 0 auto;
}

.update-item {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid #d97706;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

.update-date {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.update-content {
    color: #374151;
    line-height: 1.6;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.faq-item h3 {
    color: #d97706;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.faq-item p {
    color: #374151;
    margin-bottom: 0;
}

.transparency-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.transparency-note {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.transparency-note i {
    color: #059669;
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.contact-info {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.contact-info a {
    color: #d97706;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background: #111827;
    color: #d1d5db;
    padding: 3rem 0 1.5rem;
}

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

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

.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #f59e0b;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 1.5rem;
    text-align: center;
    color: #9ca3af;
}

/* Sticky Elements */
.sticky-donate {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100;
}

.sticky-donate .btn {
    border-radius: 50px;
    padding: 1rem 1.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

.share-container {
    text-align: center;
    margin: 2rem 0;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #111827;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s ease;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        gap: 1rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-image {
        order: -1;
    }

    .progress-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-value {
        font-size: 1.75rem;
    }

    .donate-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .donate-card {
        padding: 1.5rem;
    }

    .button-group {
        gap: 0.5rem;
    }

    .btn {
        padding: 0.875rem 1.25rem;
        font-size: 0.9rem;
    }

    .transparency-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .hero {
        padding: 2rem 0;
    }

    .progress-section,
    .donate-section,
    .story-section,
    .updates-section,
    .faq-section,
    .transparency-section {
        padding: 2rem 0;
    }

    .progress-card,
    .donate-card,
    .update-item,
    .faq-item,
    .transparency-note,
    .contact-info {
        padding: 1.5rem;
    }

    .container {
        padding: 0 15px;
    }

    .sticky-donate {
        bottom: 15px;
        right: 15px;
    }

    .sticky-donate .btn {
        padding: 0.875rem 1.25rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

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

    .qr-code {
        width: 120px;
        height: 120px;
    }

    .handle-display {
        font-size: 1.125rem;
        padding: 0.625rem 0.875rem;
    }

    .btn {
        font-size: 0.875rem;
        padding: 0.75rem 1rem;
    }

    .progress-card {
        padding: 1.25rem;
    }

    .donate-card {
        padding: 1.25rem;
    }

    .story-content p {
        font-size: 1rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .progress-bar::after {
        animation: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .btn-outline {
        border-width: 3px;
    }
    
    .progress-bar-container {
        border: 2px solid #333;
    }
    
    .donate-card:hover {
        border-width: 3px;
    }
}

/* Focus indicators */
.btn:focus,
a:focus,
button:focus {
    outline: 3px solid #d97706;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .navbar,
    .sticky-donate,
    .share-container,
    .toast {
        display: none;
    }
    
    .hero {
        margin-top: 0;
    }
    
    body {
        background: white;
    }
    
    .donate-section,
    .progress-section,
    .story-section,
    .updates-section,
    .faq-section,
    .transparency-section {
        background: white;
        padding: 1rem 0;
    }
    
    .donate-card,
    .progress-card,
    .update-item,
    .faq-item {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* Mobile Hero Improvements */
@media (max-width: 768px) {
    .hero {
        padding: 1.5rem 0;
        background: white;
    }
    
    .hero-container {
        text-align: center;
        gap: 1.5rem;
    }
    
    .hero-image {
        max-width: 280px;
        margin: 0 auto;
    }
    
    .hero-image img {
        height: 280px;
        border-radius: 20px;
    }
    
    .hero-content {
        background: linear-gradient(135deg, #fff7ed 0%, #fed7aa 100%);
        padding: 2rem 1.5rem;
        border-radius: 16px;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.1;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-deadline {
        font-size: 0.9rem;
        padding: 0.625rem 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-image {
        max-width: 240px;
    }
    
    .hero-image img {
        height: 240px;
        border-radius: 16px;
    }
    
    .hero-content {
        padding: 1.5rem 1rem;
    }
}
