/* Reset and Base Styles */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-bg-dark: #0a0a0f;
    --color-bg-section: #0d0d14;
    --color-primary: #d4a853;
    --color-primary-light: #f0c97a;
    --color-primary-dark: #a67c3d;
    --color-text: #e8e8e8;
    --color-text-muted: #9a9a9a;
    --color-accent: #ff6b35;
    --color-glow: rgba(212, 168, 83, 0.3);
    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Raleway', 'Segoe UI', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-dark);
    color: var(--color-text);
    line-height: 1.7;
    overflow-x: hidden;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 600;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: url('background.png') center center / cover no-repeat fixed;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(10, 10, 15, 0.4) 0%,
        rgba(10, 10, 15, 0.6) 50%,
        rgba(10, 10, 15, 0.95) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    animation: fadeInUp 1.2s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.title {
    font-size: clamp(3rem, 10vw, 6rem);
    color: var(--color-primary);
    text-shadow: 0 0 60px var(--color-glow), 0 0 120px rgba(212, 168, 83, 0.2);
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    font-weight: 400;
    font-style: italic;
}

.subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--color-primary-light);
    font-family: var(--font-heading);
    font-style: italic;
    margin-bottom: 1.5rem;
    letter-spacing: 0.15em;
}

.tagline {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    font-weight: 300;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-bg-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px var(--color-glow);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px var(--color-glow), 0 0 50px rgba(212, 168, 83, 0.3);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-indicator span {
    display: block;
    width: 24px;
    height: 40px;
    border: 2px solid var(--color-primary);
    border-radius: 12px;
    position: relative;
}

.scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--color-primary);
    border-radius: 2px;
    animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
    0%, 100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    50% {
        opacity: 0.3;
        transform: translateX(-50%) translateY(12px);
    }
}

/* About Section */
.about {
    padding: 8rem 0;
    background: var(--color-bg-section);
}

.about h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 4rem;
    letter-spacing: 0.05em;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.about-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.about-text .lead {
    font-size: 1.3rem;
    color: var(--color-primary-light);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.about-text p {
    margin-bottom: 1rem;
    color: var(--color-text-muted);
}

.about-text ul {
    list-style: none;
    margin: 1.5rem 0;
}

.about-text ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--color-text);
}

.about-text ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 8px;
    height: 8px;
    background: var(--color-primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--color-glow);
}

.cosmos-card {
    background: linear-gradient(145deg, rgba(20, 20, 30, 0.9), rgba(10, 10, 15, 0.95));
    border: 1px solid rgba(212, 168, 83, 0.2);
    border-radius: 16px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 168, 83, 0.1) 0%, transparent 50%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.cosmos-card h3 {
    color: var(--color-primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    font-style: italic;
}

.cosmos-card p {
    color: var(--color-text-muted);
    position: relative;
    z-index: 1;
}

/* Donate Section */
.donate {
    padding: 8rem 0;
    background: linear-gradient(180deg, var(--color-bg-dark) 0%, #0f0f18 100%);
}

.donate h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
}

.donate-intro {
    text-align: center;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto 4rem;
    font-size: 1.1rem;
}

.donation-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.donation-card {
    background: linear-gradient(145deg, rgba(20, 20, 30, 0.95), rgba(15, 15, 22, 0.98));
    border: 1px solid rgba(212, 168, 83, 0.15);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.donation-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.donation-card:hover {
    border-color: rgba(212, 168, 83, 0.4);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px var(--color-glow);
}

.donation-card.premium {
    border-color: rgba(212, 168, 83, 0.3);
}

.ribbon {
    position: absolute;
    top: 20px;
    right: -35px;
    background: linear-gradient(135deg, var(--color-accent), #e55a2b);
    color: white;
    padding: 0.5rem 3rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transform: rotate(45deg);
    box-shadow: 0 2px 10px rgba(255, 107, 53, 0.4);
}

.card-header {
    margin-bottom: 1.5rem;
}

.card-header .amount {
    display: block;
    font-size: 3rem;
    font-family: var(--font-heading);
    color: var(--color-primary);
    font-weight: 700;
}

.card-header .label {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.card-body {
    margin-bottom: 2rem;
}

.card-body p {
    color: var(--color-text-muted);
    margin-bottom: 0.75rem;
}

.card-body .anonymous {
    color: var(--color-primary-light);
    font-style: italic;
}

.card-body .book-title {
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-style: italic;
    margin: 1rem 0;
}

.card-body .note {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.donate-btn {
    display: inline-block;
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-bg-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.donate-btn:hover {
    box-shadow: 0 4px 20px var(--color-glow);
    transform: scale(1.02);
}

.paypal-info {
    text-align: center;
    margin-top: 3rem;
    padding: 1.5rem;
    background: rgba(212, 168, 83, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(212, 168, 83, 0.1);
}

.paypal-info p {
    color: var(--color-text-muted);
}

.paypal-info strong {
    color: var(--color-primary-light);
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: var(--color-bg-section);
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.contact.visible {
    opacity: 1;
    transform: translateY(0);
}

.contact h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.contact p {
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

.email-link {
    display: inline-block;
    color: var(--color-primary-light);
    font-size: 1.2rem;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(212, 168, 83, 0.3);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.email-link:hover {
    background: rgba(212, 168, 83, 0.1);
    border-color: var(--color-primary);
    box-shadow: 0 0 20px var(--color-glow);
}

/* Footer */
footer {
    padding: 4rem 0;
    background: linear-gradient(180deg, var(--color-bg-dark) 0%, #050508 100%);
    text-align: center;
    border-top: 1px solid rgba(212, 168, 83, 0.1);
}

.footer-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--color-primary);
    font-style: italic;
    margin-bottom: 0.25rem;
}

.footer-subtitle {
    font-family: var(--font-heading);
    color: var(--color-primary-light);
    font-style: italic;
    margin-bottom: 1rem;
}

.copyright {
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .donation-options {
        grid-template-columns: 1fr;
    }

    .hero-content {
        padding: 1rem;
    }

    .container {
        padding: 0 1.5rem;
    }

    .about, .donate {
        padding: 5rem 0;
    }
}

/* Language Switcher */
.lang-switcher {
    position: fixed;
    top: 1.5rem;
    right: 2rem;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(212, 168, 83, 0.2);
}

.lang-switcher a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

.lang-switcher a:hover,
.lang-switcher a.active {
    color: var(--color-primary);
}

.lang-switcher .separator {
    color: rgba(212, 168, 83, 0.3);
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(212, 168, 83, 0.1);
    border: 1px solid rgba(212, 168, 83, 0.2);
    border-radius: 50%;
    color: var(--color-primary);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(212, 168, 83, 0.2);
    border-color: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px var(--color-glow);
}

.social-link svg {
    width: 22px;
    height: 22px;
}

/* Single Donation Card */
.donation-single {
    display: flex;
    justify-content: center;
    max-width: 400px;
    margin: 0 auto;
}

.donation-single .donation-card {
    width: 100%;
}

/* Selection color */
::selection {
    background: var(--color-primary);
    color: var(--color-bg-dark);
}
