/* CSS Variables for Color Palette */
:root {
    --accent-neon: #33e6ff;
    --glow-text: #9dfcff;
    --body-text: #d7f6fa;
    --mirror-links: #47aaff;
    --link-hover: #b1e6ff;
    --nav-background: #082033ee;
    --dark-bg: #101820;
    --darker-bg: #050a12;
    --section-bg: #183554;
    --warning-red: #ff4500;
    --success-green: #00ff88;
    --purple-accent: #8a2be2;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 18px;
    line-height: 1.6;
    color: var(--body-text);
    background: radial-gradient(ellipse at 40% 20%, var(--section-bg) 0%, var(--dark-bg) 70%, var(--darker-bg) 100%);
    animation: icyGradientMove 24s ease-in-out infinite;
    min-height: 100vh;
    overflow-x: hidden;
}

@keyframes icyGradientMove {
    0%, 100% { background-position: 0% 0%; }
    25% { background-position: 80% 20%; }
    50% { background-position: 100% 100%; }
    75% { background-position: 20% 80%; }
}

/* Advanced Background Effects */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(51, 230, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(138, 43, 226, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(0, 255, 136, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
    animation: backgroundPulse 8s ease-in-out infinite;
}

@keyframes backgroundPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

/* Typography */
.neon-text {
    color: var(--glow-text);
    text-shadow: 
        0 0 5px var(--glow-text), 
        0 0 10px var(--glow-text), 
        0 0 20px var(--accent-neon), 
        0 0 40px var(--accent-neon),
        0 0 80px var(--accent-neon);
    letter-spacing: 0.05em;
    animation: neonFlicker 3s ease-in-out infinite alternate;
}

@keyframes neonFlicker {
    0%, 18%, 22%, 25%, 53%, 57%, 100% {
        text-shadow: 
            0 0 5px var(--glow-text), 
            0 0 10px var(--glow-text), 
            0 0 20px var(--accent-neon), 
            0 0 40px var(--accent-neon),
            0 0 80px var(--accent-neon);
    }
    20%, 24%, 55% {
        text-shadow: none;
    }
}

h1 {
    font-size: 4rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    color: var(--glow-text);
    margin-bottom: 2rem;
    text-shadow: 0 0 8px var(--accent-neon);
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-neon), transparent);
    animation: underlineGlow 2s ease-in-out infinite;
}

@keyframes underlineGlow {
    0%, 100% { width: 100px; opacity: 1; }
    50% { width: 200px; opacity: 0.7; }
}

/* Navigation */
.navbar {
    background: var(--nav-background);
    box-shadow: 0 2px 12px 0 #33e6ff22;
    border-bottom: 1px solid #33e6ff55;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(15px);
    transition: all 0.3s ease;
}

.navbar:hover {
    background: rgba(8, 32, 51, 0.95);
    box-shadow: 0 4px 20px 0 #33e6ff44;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.nav-logo .logo-img {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 0 8px var(--accent-neon));
    transition: all 0.3s ease;
}

.nav-logo .logo-img:hover {
    filter: drop-shadow(0 0 15px var(--accent-neon));
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--mirror-links);
    text-decoration: none;
    text-shadow: 0 0 6px #47aaff99;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 6px;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(51, 230, 255, 0.2), transparent);
    transition: width 0.3s ease;
    border-radius: 6px;
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--link-hover);
    text-shadow: 0 0 14px #b1e6ffcc;
    transform: translateY(-2px);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--accent-neon);
    margin: 3px 0;
    transition: 0.3s;
    box-shadow: 0 0 5px var(--accent-neon);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 2rem;
    background: linear-gradient(135deg, rgba(24, 53, 84, 0.3) 0%, rgba(8, 32, 51, 0.5) 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        conic-gradient(from 0deg, transparent, rgba(51, 230, 255, 0.1), transparent),
        conic-gradient(from 120deg, transparent, rgba(138, 43, 226, 0.1), transparent);
    animation: heroRotate 20s linear infinite;
    z-index: -1;
}

@keyframes heroRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hero-content {
    max-width: 800px;
    z-index: 1;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--body-text);
    margin-bottom: 3rem;
    opacity: 0.9;
    animation: subtitlePulse 4s ease-in-out infinite;
}

@keyframes subtitlePulse {
    0%, 100% { opacity: 0.9; }
    50% { opacity: 1; }
}

.hero-cta {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    padding: 1rem 2rem;
    background: linear-gradient(45deg, var(--accent-neon), var(--glow-text));
    color: var(--dark-bg);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(51, 230, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(51, 230, 255, 0.6);
}

.cta-button.secondary {
    background: transparent;
    color: var(--accent-neon);
    border: 2px solid var(--accent-neon);
}

.cta-button.secondary:hover {
    background: var(--accent-neon);
    color: var(--dark-bg);
}

/* Content Sections */
.content-section {
    padding: 6rem 0;
    border-bottom: 1px solid rgba(51, 230, 255, 0.1);
    position: relative;
}

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

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

/* Links and Buttons */
a, .mirror-link {
    color: var(--mirror-links);
    text-shadow: 0 0 6px #47aaff99;
    transition: all 0.3s ease;
    text-decoration: none;
}

a:hover, .mirror-link:hover {
    color: var(--link-hover);
    text-shadow: 0 0 14px #b1e6ffcc;
}

button, .gallery-prev, .gallery-next {
    background: #101e2bdd;
    border: 1.5px solid #33e6ff99;
    color: var(--accent-neon);
    box-shadow: 0 0 8px #33e6ff55, 0 0 20px #08203388;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover, .gallery-prev:hover, .gallery-next:hover {
    background: var(--accent-neon);
    color: var(--dark-bg);
    box-shadow: 0 0 15px var(--accent-neon);
    transform: scale(1.05);
}

/* Onion Links Section */
.onion-links-container {
    background: rgba(8, 32, 51, 0.6);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(51, 230, 255, 0.3);
    margin-bottom: 2rem;
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
}

.onion-links-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(51, 230, 255, 0.1), transparent);
    animation: scanLine 3s ease-in-out infinite;
}

@keyframes scanLine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.mirror-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    margin: 0.5rem 0;
    background: rgba(16, 30, 45, 0.8);
    border-radius: 8px;
    border: 1px solid rgba(51, 230, 255, 0.2);
    transition: all 0.3s ease;
}

.mirror-item:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 15px rgba(51, 230, 255, 0.3);
}

.mirror-url {
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    color: var(--mirror-links);
}

.copy-btn {
    padding: 0.5rem 1rem;
    background: var(--accent-neon);
    color: var(--dark-bg);
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: var(--glow-text);
    transform: scale(1.1);
}

/* Content Layout */
.about-content, .security-content, .registration-content, .crypto-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text, .security-text, .registration-text, .crypto-text {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Images */
.feature-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 12px;
    border: 2px solid rgba(51, 230, 255, 0.3);
    box-shadow: 0 0 20px rgba(51, 230, 255, 0.2);
    transition: all 0.3s ease;
    filter: brightness(0.9) contrast(1.1);
}

.feature-image:hover {
    transform: scale(1.03) rotateY(5deg);
    box-shadow: 0 0 30px rgba(51, 230, 255, 0.4);
    filter: brightness(1) contrast(1.2);
}

.registration-images {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Gallery */
.gallery-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    border: 2px solid rgba(51, 230, 255, 0.3);
    background: rgba(8, 32, 51, 0.4);
}

.gallery-track {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 1rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.gallery-track::-webkit-scrollbar {
    display: none;
}

.gallery-image {
    flex-shrink: 0;
    width: 400px;
    height: auto;
    border-radius: 8px;
    border: 1px solid rgba(51, 230, 255, 0.2);
    transition: all 0.3s ease;
}

.gallery-image:hover {
    transform: scale(1.05);
    border-color: var(--accent-neon);
}

.gallery-prev, .gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--accent-neon);
    color: var(--accent-neon);
    font-size: 2rem;
    padding: 1rem;
    cursor: pointer;
    z-index: 2;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.gallery-prev {
    left: 1rem;
}

.gallery-next {
    right: 1rem;
}

/* Warning Section */
.warning-section {
    background: linear-gradient(135deg, rgba(255, 69, 0, 0.1) 0%, rgba(139, 0, 0, 0.1) 100%);
    border: 2px solid rgba(255, 69, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.warning-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 69, 0, 0.1) 50%, transparent 70%);
    animation: warningPulse 2s ease-in-out infinite;
}

@keyframes warningPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

.warning-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.warning-icon {
    font-size: 4rem;
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 10px #ff4500);
    animation: warningBounce 1s ease-in-out infinite;
}

@keyframes warningBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.warning-section h2 {
    color: #ff6b47;
    text-shadow: 0 0 8px #ff4500;
}

/* Footer */
.footer {
    background: var(--nav-background);
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid rgba(51, 230, 255, 0.3);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-neon), transparent);
    animation: footerGlow 3s ease-in-out infinite;
}

@keyframes footerGlow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.footer p {
    margin: 0.5rem 0;
    opacity: 0.8;
}

/* Advanced Animations */
@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

.glitch-effect {
    animation: glitch 0.3s ease-in-out;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: var(--nav-background);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 1rem 0;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .about-content, .security-content, .registration-content, .crypto-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .gallery-prev, .gallery-next {
        display: none;
    }
    
    .content-section {
        padding: 4rem 0;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .mirror-item {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media screen and (max-width: 480px) {
    body {
        font-size: 16px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    .gallery-image {
        width: 300px;
    }
}

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

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

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

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

/* Selection Styling */
::selection {
    background: rgba(51, 230, 255, 0.3);
    color: var(--glow-text);
}

::-moz-selection {
    background: rgba(51, 230, 255, 0.3);
    color: var(--glow-text);
}
