/* Base Styles */
:root {
    --primary: #6c5ce7;
    --secondary: #00cec9;
    --dark: #2d3436;
    --darker: #1e272e;
    --light: #f5f6fa;
    --accent: #fd79a8;
    --success: #00b894;
    --warning: #fdcb6e;
    --danger: #d63031;
}

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

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Background Animation */
.stars, .twinkling {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: -2;
}

.stars {
    background: #000 url('data:image/svg+xml;base64,PHK+...') repeat top center;
    z-index: -2;
}

.twinkling {
    background: transparent url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI1IiBoZWlnaHQ9IjUiPgo8cmVjdCB3aWR0aD0iNSIgaGVpZ2h0PSI1IiBmaWxsPSIjMDAwMDAwIj48L3JlY3Q+CjxyZWN0IHdpZHRoPSIxIiBoZWlnaHQ9IjEiIGZpbGw9IiNmZmZmZmYiIG9wYWNpdHk9IjAuMSIgeD0iMCIgeT0iMCI+PC9yZWN0Pgo8L3N2Zz4=') repeat top center;
    z-index: -1;
    animation: move-twinkle-back 200s linear infinite;
}

@keyframes move-twinkle-back {
    from { background-position: 0 0; }
    to { background-position: -10000px 5000px; }
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--light);
    background: linear-gradient(-45deg, #1a1a2e, #16213e, #0f3460, #1a1a2e);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; text-align: center; margin-bottom: 2rem; }
h3 { font-size: 1.8rem; }
p { margin-bottom: 1rem; }

a {
    color: var(--secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

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

/* Buttons */
.btn {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 50px;
    font-family: 'Orbitron', sans-serif;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(108, 92, 231, 0.4);
    background: var(--secondary);
    color: var(--dark);
}

.btn-login {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    margin-left: 1rem;
}

.btn-login:hover {
    background: var(--primary);
    color: white;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(30, 39, 46, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary);
    text-shadow: 0 0 10px rgba(0, 206, 201, 0.5);
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links a {
    color: var(--light);
    margin: 0 1rem;
    font-weight: 500;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: width 0.3s ease;
}

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

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 1rem;
    position: relative;
    overflow: hidden;
}

.countdown-container {
    z-index: 1;
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.glow-text {
    text-shadow: 0 0 15px var(--primary), 0 0 30px var(--primary);
    color: white;
    font-size: 4rem;
    margin-bottom: 1rem;
}

.countdown {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
    gap: 2rem;
}

.countdown div {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 10px;
    min-width: 120px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.countdown span {
    display: block;
    font-family: 'Orbitron', sans-serif;
}

.countdown span:first-child {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

/* Scroll Down Animation */
.scroll-down {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.scroll-down:hover {
    opacity: 1;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--light);
    border-radius: 15px;
    margin: 0 auto 10px;
    position: relative;
}

.mouse::before {
    content: '';
    width: 4px;
    height: 10px;
    background: var(--light);
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { transform: translate(-50%, 0); opacity: 0; }
    50% { transform: translate(-50%, 10px); opacity: 1; }
    100% { transform: translate(-50%, 20px); opacity: 0; }
}

/* Sections */
.section {
    padding: 6rem 5%;
    position: relative;
}

.dark {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
}

/* About Section */
.about-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.feature {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.feature i {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 1rem;
}

/* Forum Section */
.forum-container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.forum-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.threads {
    display: grid;
    gap: 1rem;
}

.thread {
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 3px solid var(--primary);
    transition: all 0.3s ease;
}

.thread:hover {
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.07);
}

.thread h4 {
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.thread-meta {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    gap: 1rem;
}

/* Brain Section */
.brain-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

#brainCanvas {
    width: 100%;
    height: 400px;
    border-radius: 15px;
    background: rgba(0, 0, 0, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.ideas-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.idea {
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.idea:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-color: var(--primary);
}

.idea h4 {
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

/* Donation Section */
.donation-options {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    gap: 2rem;
}

.crypto-option {
    background: rgba(255, 255, 255, 0.03);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.crypto-address {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.8rem 1rem;
    border-radius: 5px;
    margin-top: 1rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    word-break: break-all;
}

.btn-copy {
    background: none;
    border: none;
    color: var(--secondary);
    cursor: pointer;
    margin-left: 1rem;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.btn-copy:hover {
    color: var(--accent);
    transform: scale(1.1);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--darker);
    padding: 2.5rem;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.8rem;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
}

.close:hover {
    color: var(--danger);
    transform: rotate(90deg);
}

.tabs {
    display: flex;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tab-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    padding: 0.8rem 1.5rem;
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.tab-btn.active {
    color: var(--secondary);
}

.tab-btn.active::after {
    width: 100%;
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.form-group input {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(108, 92, 231, 0.2);
}

.generated-id,
.generated-password {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.8rem 1rem;
    border-radius: 5px;
    margin-top: 0.5rem;
}

.generated-id input,
.generated-password input {
    flex: 1;
    background: none;
    border: none;
    color: var(--secondary);
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    padding: 0;
}

.warning {
    display: flex;
    align-items: flex-start;
    background: rgba(253, 121, 168, 0.1);
    border-left: 3px solid var(--accent);
    padding: 1rem;
    margin: 1.5rem 0;
    border-radius: 0 5px 5px 0;
}

.warning i {
    color: var(--accent);
    margin-right: 1rem;
    font-size: 1.2rem;
    margin-top: 0.2rem;
}

.warning p {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Footer */
footer {
    background: rgba(15, 23, 42, 0.8);
    padding: 4rem 5% 2rem;
    position: relative;
    backdrop-filter: blur(10px);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--secondary);
}

.email-contact {
    text-align: right;
}

.email-contact a {
    color: var(--secondary);
    font-size: 1.1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.email-contact a:hover {
    color: var(--accent);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.email-contact i {
    font-size: 1.2rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .about-content,
    .brain-container {
        grid-template-columns: 1fr;
    }
    
    .ideas-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 80%;
        height: calc(100vh - 80px);
        background: rgba(30, 39, 46, 0.95);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        transition: all 0.5s ease;
        backdrop-filter: blur(10px);
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links a {
        margin: 1rem 0;
        font-size: 1.2rem;
    }
    
    .hamburger {
        display: block;
        cursor: pointer;
        z-index: 1001;
    }
    
    .hamburger .line {
        width: 25px;
        height: 3px;
        background: white;
        margin: 5px 0;
        transition: all 0.3s ease;
    }
    
    .hamburger.active .line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active .line:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .line:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .countdown {
        flex-wrap: wrap;
    }
    
    .countdown div {
        min-width: 100px;
        padding: 1rem;
    }
    
    .countdown span:first-child {
        font-size: 2rem;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .section {
        padding: 4rem 5%;
    }
}
