:root {
    --bg-dark: #070709;
    --accent: #00e5ff;
    --text-primary: #ffffff;
    --text-secondary: #8a8f98;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Google Sans Flex', -apple-system, sans-serif;
    overflow-x: hidden;
}

section {
    height: 100vh;
    width: 100vw;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 20px;
}

/* Background Mist Effect */
.bg-mist {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 229, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 229, 255, 0.08) 0%, transparent 50%);
    background-size: 200% 200%;
    animation: moveMist 15s ease-infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes moveMist {
    0% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
    100% { background-position: 0% 0%; }
}

/* Particle Essence */
.particles {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    overflow: hidden;
    z-index: 2;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0;
    filter: blur(2px);
    animation: drift 8s linear infinite;
}

@keyframes drift {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    20% { opacity: 0.4; }
    80% { opacity: 0.4; }
    100% { transform: translateY(-10vh) scale(1.5); opacity: 0; }
}

/* Hero Section */
.hero-content {
    z-index: 10;
    text-align: center;
}

.wordmark {
    display: flex;
    align-items: center;
    gap: 15px; /* Slightly increased gap for more presence */
    font-size: clamp(3rem, 12vw, 8rem);
    font-weight: 800;
    letter-spacing: -0.05em;
    text-transform: uppercase;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 30px;
    z-index: 10;
}

.wordmark span {
    display: inline-block;
    animation: floatText 4s ease-in-out infinite, shimmerText 6s ease-in-out infinite;
}

.wordmark span:nth-child(1) {
    animation-delay: 0s, 0s;
}

.wordmark span:nth-child(3) {
    animation-delay: -2s, -3s; /* Offset for organic feel */
}

@keyframes floatText {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes shimmerText {
    0%, 100% { opacity: 1; filter: blur(0px); }
    50% { opacity: 0.7; filter: blur(2px); }
}

.hero-logo {
    width: clamp(60px, 15vw, 150px);
    height: clamp(60px, 15vw, 150px);
    filter: drop-shadow(0 0 30px rgba(0, 229, 255, 0.3));
}

.tagline {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    color: var(--text-secondary);
    font-weight: 400;
    opacity: 0.8;
    margin-bottom: 50px; /* Increased spacing before button */
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    background: var(--accent);
    color: #000;
    border: none;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 10px 30px rgba(0, 229, 255, 0.2);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0, 229, 255, 0.4);
}

/* Info Section */
.info-section {
    background: #0c0d10;
    justify-content: flex-start;
    padding: 100px 20px 60px 20px; /* Reduced bottom padding */
    height: auto;
    min-height: 100vh;
}

.info-content {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    z-index: 10;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.info-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 20px;
    transition: border-color 0.3s;
}

.info-card:hover {
    border-color: var(--accent);
}

.info-card h3 {
    color: var(--accent);
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.info-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

.privacy-highlight {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 30px;
    background: linear-gradient(90deg, #fff, #8a8f98);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Footer styles integration */
footer {
    position: relative; /* Changed from absolute for auto height */
    margin-top: 80px;
    width: 100%;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.encryption-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    opacity: 0.6;
}

/* Scroll indicator */
.scroll-hint {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.8rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateX(-50%) translateY(0);}
    40% {transform: translateX(-50%) translateY(-10px);}
    60% {transform: translateX(-50%) translateY(-5px);}
}

/* Donation Page Styles */
.donate-body {
    overflow-y: auto !important;
    height: auto !important;
    min-height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.donate-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 500px;
    padding: 80px 20px; /* Increased padding */
    animation: fadeIn 1s ease-out;
}

.donate-btn-link {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 10px 20px;
    border: 1px solid rgba(0, 229, 255, 0.4);
    border-radius: 20px;
    transition: all 0.3s;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.donate-btn-link:hover {
    background: rgba(0, 229, 255, 0.1);
    box-shadow: 0 0 20px var(--accent-glow);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.donate-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.donate-content p {
    font-size: 1.1rem;
    opacity: 0.8;
    line-height: 1.6;
    margin-bottom: 30px;
}

.qr-container {
    background: #fff;
    padding: 15px;
    border-radius: 20px;
    display: inline-block;
    box-shadow: 0 0 30px var(--accent-glow);
    margin-bottom: 25px;
    transition: transform 0.3s;
}

.qr-container:hover {
    transform: scale(1.05);
}

.qr-container img {
    width: 250px;
    height: 250px;
    display: block;
}

.recipient-name {
    font-size: 0.9rem;
    opacity: 0.5;
    margin-bottom: 40px;
}

.back-link {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    opacity: 0.5;
    transition: opacity 0.3s;
    font-size: 0.9rem;
}

.back-link:hover {
    opacity: 1;
    color: var(--accent);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 600px) {
    .wordmark { 
        gap: 20px; /* Increased gap to prevent shadow bleeding */
    }
    .wordmark span {
        animation: floatText 4s ease-in-out infinite, shimmerTextMobile 6s ease-in-out infinite;
    }
    .hero-logo { width: 70px; height: 70px; }
    .info-section { padding-top: 40px; }
    .scroll-hint { display: none; }
}

@keyframes shimmerTextMobile {
    0%, 100% { opacity: 1; filter: none; }
    50% { opacity: 0.8; filter: none; } /* Blur removed for mobile clarity */
}

/* Fix for donation page background scroll */
.donate-body .bg-mist, .donate-body .particles,
.about-body .bg-mist, .about-body .particles {
    position: fixed !important;
}

/* About Page Styles */
.about-body {
    overflow-y: auto !important;
    height: auto !important;
    min-height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-text-container {
    position: relative;
    z-index: 10;
    max-width: 700px;
    padding: 100px 30px;
    animation: fadeIn 1.5s ease-out;
}

.about-text-container h2 {
    font-size: clamp(2.5rem, 8vw, 3.5rem);
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 40px;
    letter-spacing: -2px;
    line-height: 1.1;
}

.about-text-container h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    opacity: 0.4;
    margin: 50px 0 15px 0;
    color: var(--accent);
}

.about-text-container p {
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    line-height: 1.8;
    color: #cbd5e1;
    margin-bottom: 30px;
    font-weight: 400;
}

.about-text-container .quote {
    font-size: 1.5rem;
    font-style: italic;
    color: #f8fafc;
    border-left: 2px solid var(--accent);
    padding-left: 25px;
    margin: 40px 0;
    opacity: 0.9;
}

.about-text-container .signature {
    margin-top: 80px;
    font-size: 1rem;
    opacity: 0.5;
}

.about-text-container .back-link {
    display: inline-block;
    margin-top: 40px;
    opacity: 0.3;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.about-text-container .back-link:hover {
    opacity: 1;
    color: var(--accent);
    transform: translateX(-5px);
}
