/* ==================== CSS VARIABLES ==================== */
:root {
    /* Colors */
    --bg-deep: #0a0a0a;
    --bg-section: #0f0f0f;
    --bg-card: rgba(20, 20, 20, 0.8);
    --bg-glass: rgba(255, 107, 0, 0.05);
    
    --accent-primary: #ff6b00;
    --accent-secondary: #ff8c33;
    --accent-glow: rgba(255, 107, 0, 0.6);
    --accent-dim: rgba(255, 107, 0, 0.3);
    
    --text-primary: #e0e0e0;
    --text-secondary: #999999;
    --text-dim: #666666;
    
    --border-color: rgba(255, 107, 0, 0.2);
    --border-highlight: rgba(255, 107, 0, 0.5);
    
    /* Typography */
    --font-heading: 'Rajdhani', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing */
    --section-padding: 100px 0;
    --container-max: 1200px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ==================== RESET & BASE ==================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-deep);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a:hover {
    color: var(--accent-secondary);
}

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

/* ==================== CANVAS BACKGROUND ==================== */
#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2; /* Поверх фону та overlay, під контентом */
    pointer-events: none;
}

/* ==================== CONTAINER ==================== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* ==================== TYPOGRAPHY ==================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.highlight {
    color: var(--accent-primary);
    text-shadow: 0 0 30px var(--accent-glow);
}

.text-highlight {
    color: var(--accent-primary);
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--accent-primary);
    color: #000;
    box-shadow: 0 0 20px var(--accent-dim);
}

.btn-primary:hover {
    background: var(--accent-secondary);
    box-shadow: 0 0 40px var(--accent-glow);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
    background: var(--bg-glass);
}

.btn-large {
    padding: 20px 48px;
    font-size: 1.1rem;
}

.btn-full {
    width: 100%;
}

/* Pulse animation for CTA */
.btn-pulse {
    animation: pulse 2.5s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 var(--accent-glow);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(255, 107, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 107, 0, 0);
    }
}

/* ==================== SECTION STYLES ==================== */
.section {
    padding: var(--section-padding);
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-label {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-primary);
    padding: 8px 24px;
    border: 1px solid var(--border-color);
    background: var(--bg-glass);
}

.section-title {
    font-size: 1.5rem;
    color: var(--text-primary);
    letter-spacing: 0.15em;
}

.divider {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    margin: 30px auto;
}

/* ==================== HERO SECTION ==================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 80px 24px;
    overflow: hidden;
}

/* Hero Background Container */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg-image,
.hero-bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 80%; /* Силует ще нижче */
}

.hero-bg-placeholder {
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at center bottom, rgba(255, 107, 0, 0.15) 0%, transparent 60%),
        linear-gradient(180deg, var(--bg-deep) 0%, #1a1a1a 50%, var(--bg-deep) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    font-size: 0.9rem;
    text-align: center;
    line-height: 1.8;
}

/* Dark overlay for text readability */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at center top, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 1;
}

/* Bottom gradient fade */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, var(--bg-deep), transparent);
    pointer-events: none;
    z-index: 2;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 3;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    line-height: 1.1;
    margin-bottom: 30px;
    color: var(--text-primary);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #ffffff;
    line-height: 1.8;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.9), 0 0 40px rgba(0, 0, 0, 0.7);
}

/* ==================== PAIN SECTION ==================== */
.pain-section {
    background: var(--bg-section);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.pain-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.pain-text {
    font-size: 1.2rem;
    line-height: 2;
    color: var(--text-secondary);
}

/* ==================== AUTHORS SECTION ==================== */
.authors-section {
    background: var(--bg-deep);
}

.authors-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.video-block {
    width: 100%;
}

.video-placeholder {
    aspect-ratio: 16/9;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.video-placeholder.video-main {
    aspect-ratio: 16/9;
}

.video-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.video-placeholder:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 0 30px var(--accent-dim);
}

.video-placeholder:hover::before {
    opacity: 1;
}

.play-btn {
    width: 80px;
    height: 80px;
    border: 2px solid var(--text-dim);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
}

.play-btn svg {
    width: 32px;
    height: 32px;
    fill: var(--text-dim);
    margin-left: 4px;
    transition: fill var(--transition-normal);
}

.video-placeholder:hover .play-btn {
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px var(--accent-dim);
}

.video-placeholder:hover .play-btn svg {
    fill: var(--accent-primary);
}

.video-label {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    color: var(--text-dim);
    text-transform: uppercase;
}

/* Authors Info */
.authors-info {
    padding: 20px 0;
}

.authors-list {
    margin-bottom: 40px;
}

.author-item {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}

.author-item:first-child {
    padding-top: 0;
}

.author-name {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.02em;
}

.author-role {
    font-size: 0.9rem;
    color: var(--accent-primary);
}

.authors-quote {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.8;
    padding: 24px;
    border-left: 3px solid var(--accent-primary);
    background: var(--bg-glass);
    margin: 0;
}

/* ==================== PROTOCOL SECTION ==================== */
.protocol-section {
    background: var(--bg-section);
}

.protocol-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.protocol-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 40px 30px;
    text-align: center;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.protocol-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.protocol-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px var(--accent-dim);
}

.protocol-card:hover::before {
    opacity: 1;
}

.card-title {
    font-size: 1.2rem;
    color: var(--accent-primary);
    margin-bottom: 16px;
    text-shadow: 0 0 20px var(--accent-dim);
}

.card-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.card-note {
    display: block;
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--text-dim);
    font-style: italic;
}

/* ==================== CENTER SECTION ==================== */
.center-section {
    background: var(--bg-deep);
    padding: 120px 24px;
}

.center-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.center-placeholder {
    aspect-ratio: 4/3;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    font-size: 0.9rem;
}

.center-content {
    padding: 20px 0;
}

.center-title {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.center-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 2;
    margin-bottom: 24px;
}

.center-cta {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--accent-primary);
    text-shadow: 0 0 20px var(--accent-dim);
    letter-spacing: 0.05em;
}

/* ==================== TESTIMONIALS SECTION ==================== */
.testimonials-section {
    background: var(--bg-section);
    border-top: 1px solid var(--border-color);
}

.testimonials-grid {
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-placeholder {
    padding: 60px 40px;
    background: var(--bg-card);
    border: 1px dashed var(--border-color);
    text-align: center;
}

.placeholder-text {
    font-size: 1rem;
    color: var(--text-dim);
    font-style: italic;
}

/* Future testimonial cards */
.testimonial-card {
    padding: 30px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.testimonial-text {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
    font-style: italic;
}

.testimonial-author {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--accent-primary);
}

/* ==================== CTA SECTION ==================== */
.cta-section {
    background: linear-gradient(180deg, var(--bg-section) 0%, var(--bg-deep) 100%);
    padding: 80px 24px;
    text-align: center;
}

.cta-title {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 40px;
    letter-spacing: 0.15em;
}

/* ==================== FOOTER ==================== */
.footer {
    background: var(--bg-deep);
    padding: 60px 24px 40px;
    border-top: 1px solid var(--border-color);
}

.footer-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.footer-btn {
    flex-direction: column;
    padding: 20px 32px;
    min-width: 220px;
}

.btn-title {
    display: block;
    font-size: 1rem;
    margin-bottom: 4px;
}

.btn-subtitle {
    display: block;
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-dim);
    text-transform: none;
    letter-spacing: 0.02em;
}

.footer-btn:hover .btn-subtitle {
    color: var(--accent-secondary);
}

.footer-copy {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-dim);
    letter-spacing: 0.1em;
}

/* ==================== MODAL ==================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--bg-section);
    border: 1px solid var(--border-color);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid var(--border-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.modal-close svg {
    width: 20px;
    height: 20px;
    fill: var(--text-dim);
    transition: fill var(--transition-fast);
}

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

.modal-close:hover svg {
    fill: var(--accent-primary);
}

.modal-content {
    padding: 50px 40px;
}

.modal-title {
    font-size: 1.5rem;
    color: var(--accent-primary);
    text-align: center;
    margin-bottom: 24px;
    letter-spacing: 0.1em;
}

.modal-intro {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: 1rem;
}

.modal-reasons {
    margin-bottom: 30px;
}

.reason {
    margin-bottom: 24px;
    padding: 20px;
    background: var(--bg-glass);
    border-left: 2px solid var(--accent-primary);
}

.reason-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--accent-primary);
    margin-bottom: 10px;
    text-transform: none;
    letter-spacing: 0.02em;
}

.reason-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.modal-cta-text {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--accent-primary);
    margin-bottom: 30px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Payment tabs */
.payment-tabs {
    display: flex;
    margin-bottom: 24px;
    border: 1px solid var(--border-color);
}

.payment-tab {
    flex: 1;
    padding: 14px;
    background: transparent;
    border: none;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-dim);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.payment-tab:not(:last-child) {
    border-right: 1px solid var(--border-color);
}

.payment-tab:hover {
    color: var(--text-primary);
}

.payment-tab.active {
    background: var(--bg-glass);
    color: var(--accent-primary);
}

.payment-content {
    display: none;
}

.payment-content.active {
    display: block;
}

/* Donation options */
.donation-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.donate-btn {
    padding: 16px 20px;
    background: transparent;
    border: 1px solid var(--border-color);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: left;
}

.donate-btn:hover {
    border-color: var(--accent-primary);
    color: var(--text-primary);
}

.donate-btn.selected {
    border-color: var(--accent-primary);
    background: var(--bg-glass);
    color: var(--accent-primary);
}

/* Crypto options */
.crypto-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 24px;
}

.crypto-item {
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

.crypto-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.crypto-name {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--accent-primary);
    letter-spacing: 0.05em;
}

.copy-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: transparent;
    border: 1px solid var(--border-color);
    font-size: 0.8rem;
    color: var(--text-dim);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.copy-btn svg {
    fill: currentColor;
}

.copy-btn:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.copy-btn.copied {
    border-color: #4CAF50;
    color: #4CAF50;
}

.crypto-address {
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--text-secondary);
    word-break: break-all;
    margin-bottom: 16px;
}

.qr-placeholder {
    width: 120px;
    height: 120px;
    background: #fff;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    margin: 0 auto;
}

.crypto-note {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-dim);
}

.modal-disclaimer {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-dim);
    text-align: center;
}

.modal-disclaimer .link {
    color: var(--accent-primary);
    text-decoration: underline;
}

/* ==================== FADE IN ANIMATION ==================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    filter: blur(8px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out, filter 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .authors-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .authors-info {
        text-align: center;
    }
    
    .author-item {
        justify-content: center;
    }
    
    .authors-quote {
        text-align: center;
    }
    
    .center-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .center-content {
        text-align: center;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
    }
    
    .hero {
        padding: 60px 20px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .authors-layout {
        gap: 30px;
    }
    
    .author-item {
        flex-direction: column;
        gap: 4px;
        text-align: center;
    }
    
    .authors-quote {
        padding: 20px;
        font-size: 1rem;
    }
    
    .protocol-grid {
        grid-template-columns: 1fr;
    }
    
    .protocol-card {
        padding: 30px 24px;
    }
    
    .footer-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .testimonial-placeholder {
        padding: 40px 24px;
    }
    
    .modal-content {
        padding: 40px 24px;
    }
    
    .modal-title {
        font-size: 1.2rem;
    }
    
    .reason {
        padding: 16px;
    }
    
    .reason-text {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.2rem;
    }
    
    .btn-large {
        padding: 16px 32px;
        font-size: 1rem;
    }
    
    .center-title {
        font-size: 1.4rem;
    }
    
    .center-cta {
        font-size: 1.1rem;
    }
    
    .cta-title {
        font-size: 1.2rem;
    }
    
    .play-btn {
        width: 60px;
        height: 60px;
    }
    
    .play-btn svg {
        width: 24px;
        height: 24px;
    }
}

/* ==================== SCROLLBAR ==================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

/* ==================== SELECTION ==================== */
::selection {
    background: var(--accent-primary);
    color: #000;
}
