/* styles.css */

:root {
    --bg: #f8fafc;
    --surface: #ffffff;
    --text: #0f172a;
    --text-muted: #475569;
    --primary: #dc2626;
    --primary-d: #b91c1c;
    --primary-light: #fee2e2;
    --accent: #f97316;
    --accent-light: #ffedd5;
    --radius: 24px;
    --radius-sm: 16px;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --header-bg: rgba(255, 255, 255, 0.8);
    --header-bg-scrolled: rgba(255, 255, 255, 0.95);
    --hero-gradient: linear-gradient(135deg, #fef2f2 0%, #ffffff 100%);
    --action-gradient: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    --donate-gradient: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    --qr-border: #ffffff;
    --card-border: rgba(0, 0, 0, 0.05);
    --glow: rgba(220, 38, 38, 0.1);
    --header-height: 80px;
}

[data-theme="dark"] {
    --bg: #0b1120;
    --surface: #1e293b;
    --text: #f1f5f9;
    --text-muted: #94a3b8;
    --primary: #ef4444;
    --primary-d: #dc2626;
    --primary-light: #2d1a1a;
    --accent: #f97316;
    --accent-light: #1e1a1a;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
    --shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    --header-bg: rgba(11, 17, 32, 0.8);
    --header-bg-scrolled: rgba(11, 17, 32, 0.95);
    --hero-gradient: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --action-gradient: linear-gradient(135deg, #1e1b1a 0%, #2d1f1a 100%);
    --donate-gradient: linear-gradient(135deg, #1a1f2f 0%, #1f2a3a 100%);
    --qr-border: #1e293b;
    --card-border: rgba(255, 255, 255, 0.05);
    --glow: rgba(239, 68, 68, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header - Perfectly Balanced */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--header-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    transition: all 0.3s ease;
    height: var(--header-height);
}

header.scrolled {
    background: var(--header-bg-scrolled);
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    padding: 0;
}

/* Logo - Perfectly Positioned */
.logo {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -1px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.02);
}

.hash {
    font-size: 2.2rem;
    -webkit-text-fill-color: var(--primary);
    background: none;
    color: var(--primary);
}

/* Navigation Center */
.nav-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

nav ul {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    list-style: none;
}

nav a {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s ease;
    padding: 0.5rem 0;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width 0.3s ease;
    border-radius: 2px;
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

nav a:hover,
nav a.active {
    color: var(--primary);
}

/* Right Section - Perfect Alignment */
.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Theme Button - Perfect Circle */
.theme-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid rgba(148, 163, 184, 0.2);
    color: var(--text);
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
}

.theme-btn:hover {
    transform: rotate(180deg) scale(1.1);
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: var(--shadow);
}

/* Mobile Menu Button - Hidden on Desktop */
.menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid rgba(148, 163, 184, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text);
    font-size: 1.5rem;
    box-shadow: var(--shadow-sm);
}

/* Hero Section - Beautiful Spacing */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--hero-gradient);
    padding: calc(var(--header-height) + 2rem) 1rem 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, var(--glow), transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 5.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
    color: var(--text);
    animation: fadeInUp 0.8s ease;
}

.hero .highlight {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    position: relative;
}

.hero p {
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    max-width: 800px;
    margin: 0 auto 2.5rem;
    color: var(--text-muted);
    font-weight: 400;
    animation: fadeInUp 0.8s ease 0.2s both;
}

/* Sections - Proper Spacing */
section {
    padding: 6rem 0;
}

.section-title {
    font-size: clamp(2.2rem, 6vw, 3.5rem);
    font-weight: 900;
    text-align: center;
    margin-bottom: 1.2rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 4px;
    opacity: 0.5;
}

.section-lead {
    text-align: center;
    font-size: clamp(1.1rem, 3vw, 1.3rem);
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto 3.5rem;
}

/* Issues Grid - Beautiful Cards */
.grid-issues {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.issue-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 2.5rem;
    border: 1px solid var(--card-border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.issue-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.issue-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

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

.issue-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--primary);
    font-weight: 800;
    line-height: 1.3;
}

.issue-card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
}

/* Button - Beautiful Design */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-d));
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 20px -5px rgba(220, 38, 38, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 30px -5px rgba(220, 38, 38, 0.5);
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

/* Action & Donate Sections */
.action-section,
.donate-section {
    text-align: center;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.action-section {
    background: var(--action-gradient);
}

.donate-section {
    background: var(--donate-gradient);
}

/* Bitcoin Donation - Beautiful Card */
.bitcoin-donate {
    max-width: 550px;
    margin: 2.5rem auto 0;
    background: var(--surface);
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--card-border);
    color: var(--text);
    position: relative;
}

.donate-label {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.donate-label span {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btc-address-container {
    background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
    padding: 1.2rem;
    border-radius: var(--radius-sm);
    margin: 1.5rem 0;
    text-align: center;
    border: 1px solid rgba(220, 38, 38, 0.2);
}

.btc-address {
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    line-height: 1.5;
    word-break: break-all;
    color: var(--primary);
    background: transparent;
    border: none;
    width: 100%;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.btc-address:hover {
    color: var(--primary-d);
}

.qr-code {
    display: block;
    margin: 2rem auto;
    width: 200px;
    height: 200px;
    border-radius: var(--radius-sm);
    border: 4px solid var(--surface);
    box-shadow: var(--shadow-lg);
    background: white;
    padding: 10px;
    transition: transform 0.3s ease;
}

.qr-code:hover {
    transform: scale(1.05) rotate(2deg);
}

/* Contact Section */
.contact-center {
    text-align: center;
    margin: 3rem 0;
}

.contact-email {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: clamp(1.3rem, 4vw, 2rem);
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 60px;
    background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
    border: 1px solid rgba(220, 38, 38, 0.2);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.contact-email:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.contact-email::before {
    content: '✉';
    font-size: 1.2em;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #94a3b8;
    text-align: center;
    padding: 4rem 2rem 3rem;
    position: relative;
}

footer p {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.6;
}

/* Mobile Styles - Perfect Layout */
@media screen and (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    /* Header Mobile */
    .header-inner {
        position: relative;
    }

    .logo {
        font-size: 1.8rem;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .hash {
        font-size: 2rem;
    }

    .nav-center {
        display: none;
    }

    .menu-btn {
        display: flex;
        position: relative;
        z-index: 1001;
    }

    .header-right {
        gap: 0.5rem;
    }

    /* Mobile Navigation */
    nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--surface);
        padding: 2rem;
        border-radius: 0 0 24px 24px;
        box-shadow: var(--shadow-lg);
        transform: translateY(-150%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border-bottom: 1px solid var(--card-border);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        z-index: 1000;
    }

    nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    nav ul {
        flex-direction: column;
        gap: 1rem;
    }

    nav a {
        display: block;
        padding: 1rem;
        text-align: center;
        font-size: 1.2rem;
        background: rgba(148, 163, 184, 0.05);
        border-radius: 12px;
        transition: all 0.3s ease;
    }

    nav a::after {
        display: none;
    }

    nav a:hover,
    nav a.active {
        background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
    }

    /* Grid Mobile */
    .grid-issues {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .issue-card {
        padding: 2rem;
    }

    .issue-card h3 {
        font-size: 1.4rem;
    }

    /* Sections Mobile */
    section {
        padding: 4rem 0;
    }

    .hero {
        padding-top: calc(var(--header-height) + 1rem);
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .btn-primary {
        padding: 0.9rem 2rem;
        font-size: 1rem;
        min-width: 200px;
    }

    /* Bitcoin Mobile */
    .bitcoin-donate {
        padding: 1.8rem;
        margin: 2rem 1rem;
    }

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

    .contact-email {
        padding: 0.8rem 1.5rem;
        font-size: 1.2rem;
    }
}

/* Tablet Styles */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .grid-issues {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .logo {
        font-size: 1.8rem;
    }

    nav ul {
        gap: 1.8rem;
    }

    .hero h1 {
        font-size: 3.5rem;
    }
}

/* Landscape Mode - Beautiful */
@media screen and (orientation: landscape) and (max-height: 700px) {
    .hero {
        min-height: auto;
        padding: calc(var(--header-height) + 2rem) 1rem 3rem;
    }

    .hero h1 {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 1.8rem;
    }

    section {
        padding: 3rem 0;
    }

    .grid-issues {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .issue-card {
        padding: 1.5rem;
    }

    .issue-card h3 {
        font-size: 1.2rem;
        margin-bottom: 0.6rem;
    }

    .issue-card p {
        font-size: 0.9rem;
    }

    .bitcoin-donate {
        padding: 1.5rem;
        max-width: 500px;
    }

    .qr-code {
        width: 140px;
        height: 140px;
        margin: 1.5rem auto;
    }

    .btn-primary {
        padding: 0.8rem 2rem;
    }

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

    .section-lead {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .contact-email {
        padding: 0.7rem 1.5rem;
        font-size: 1.2rem;
    }
}

/* Small Mobile Devices */
@media screen and (max-width: 380px) {
    .logo {
        font-size: 1.5rem;
    }

    .hash {
        font-size: 1.7rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .btn-primary {
        min-width: 180px;
        padding: 0.8rem 1.5rem;
    }

    .bitcoin-donate {
        padding: 1.5rem;
    }

    .btc-address {
        font-size: 0.85rem;
    }
}

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

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

/* Selection */
::selection {
    background: var(--primary);
    color: white;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 6px;
    border: 3px solid var(--bg);
}

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