/* CSS Custom Properties */
:root {
    --primary-color: #00ff88;
    --secondary-color: #ff0066;
    --accent-color: #00ccff;
    --dark-bg: #0a0a0a;
    --darker-bg: #050505;
    --card-bg: #1a1a1a;
    --border-color: #333;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-muted: #888888;
    --gradient-primary: linear-gradient(135deg, #00ff88 0%, #00ccff 100%);
    --gradient-secondary: linear-gradient(45deg, #ff0066 0%, #ff3366 100%);
    --gradient-dark: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    --shadow-glow: 0 0 20px rgba(0, 255, 136, 0.3);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.5);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--dark-bg);
    overflow-x: hidden;
    min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    line-height: 1.2;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    text-align: center;
    margin-bottom: 3rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: var(--gradient-primary);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.98);
    box-shadow: var(--shadow-card);
}

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

.nav-logo a {
    font-family: 'Orbitron', monospace;
    font-size: 1.8rem;
    font-weight: 900;
    text-decoration: none;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
}

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

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    position: relative;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid transparent;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

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

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: var(--transition);
    border-radius: 2px;
}

/* Main Container Layout */
.main-container {
    display: grid;
    grid-template-columns: 300px 1fr 250px;
    gap: 2rem;
    max-width: 1400px;
    margin: 80px auto 0;
    padding: 2rem;
    min-height: calc(100vh - 80px);
}

/* Sidebar Styles */
.sidebar, .right-sidebar {
    background: var(--gradient-dark);
    border-radius: var(--border-radius);
    padding: 2rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.sidebar-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.security-badge {
    text-align: center;
    padding: 1.5rem;
    background: rgba(0, 255, 136, 0.1);
    border-radius: var(--border-radius);
    border: 1px solid var(--primary-color);
}

.badge-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.security-badge h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.security-badge p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.stats-mini {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stat-mini {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.stat-number {
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    color: var(--accent-color);
    font-size: 1.2rem;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.features-mini {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-mini {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.feature-mini:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.2);
}

.feature-icon {
    font-size: 1.5rem;
}

/* Right Sidebar */
.crypto-ticker h4,
.security-info h4,
.quick-access h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.crypto-list,
.security-features,
.quick-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.crypto-item,
.security-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.crypto-symbol,
.security-icon {
    font-size: 1.2rem;
    color: var(--accent-color);
}

.quick-link {
    display: block;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-secondary);
    transition: var(--transition);
}

.quick-link:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.2);
}

/* Main Content */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

/* Hero Section */
.hero {
    position: relative;
    background: var(--gradient-dark);
    border-radius: var(--border-radius);
    padding: 3rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    min-height: 500px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    opacity: 0.3;
}

.matrix-rain {
    position: absolute;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 98px,
        rgba(0, 255, 136, 0.1) 100px
    );
    animation: matrix-scroll 20s linear infinite;
}

.cyber-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 136, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 136, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: grid-move 30s linear infinite;
}

.hero-content,
.hero-visual {
    position: relative;
    z-index: 2;
}

.hero-title {
    margin-bottom: 2rem;
}

.title-main {
    display: block;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(0, 255, 136, 0.5);
    animation: glow-pulse 3s ease-in-out infinite alternate;
}

.title-sub {
    display: block;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 400;
    margin-top: 1rem;
    color: var(--text-secondary);
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
    max-width: 500px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Terminal Window */
.terminal-window {
    background: #000;
    border-radius: var(--border-radius);
    border: 1px solid var(--primary-color);
    box-shadow: var(--shadow-glow);
    overflow: hidden;
    font-family: 'Courier New', monospace;
}

.terminal-header {
    background: var(--gradient-dark);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.terminal-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn-close,
.btn-minimize,
.btn-maximize {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--secondary-color);
}

.btn-minimize {
    background: #ffaa00;
}

.btn-maximize {
    background: var(--primary-color);
}

.terminal-title {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.terminal-body {
    padding: 1.5rem;
    background: #000;
    min-height: 200px;
}

.terminal-line {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.prompt {
    color: var(--primary-color);
}

.command {
    color: var(--accent-color);
}

.output {
    color: var(--text-secondary);
}

.cursor {
    color: var(--primary-color);
    animation: blink 1s infinite;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid transparent;
    cursor: pointer;
    background: none;
    width: 100%;
    text-align: left;
    word-wrap: break-word;
    word-break: break-all;
    overflow-wrap: break-word;
}

.btn-primary {
    background: var(--gradient-dark);
    color: var(--text-primary);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.5);
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    box-shadow: 0 0 15px rgba(0, 204, 255, 0.3);
}

.btn-text {
    flex: 1;
    margin-right: 1rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.btn-copy-icon,
.copy-icon {
    font-size: 1.2rem;
    opacity: 0.7;
    transition: var(--transition);
}

.btn:hover .btn-copy-icon,
.btn:hover .copy-icon {
    opacity: 1;
    transform: scale(1.1);
}

/* Links Section */
.links-section {
    background: var(--gradient-dark);
    border-radius: var(--border-radius);
    padding: 3rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
}

.link-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    transition: var(--transition);
}

.link-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.2);
    transform: translateY(-2px);
}

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

.link-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
    animation: pulse-dot 2s infinite;
}

.status-text {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.link-type {
    background: var(--gradient-secondary);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.link-button {
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    justify-content: space-between;
    align-items: center;
    word-wrap: break-word;
    word-break: break-all;
    overflow-wrap: break-word;
}

.link-button:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
}

.link-text {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    flex: 1;
    text-align: left;
    margin-right: 1rem;
    word-wrap: break-word;
    word-break: break-all;
    overflow-wrap: break-word;
}

.link-footer {
    margin-top: 1rem;
    text-align: center;
}

.link-info {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Features Section */
.features-section {
    background: var(--gradient-dark);
    border-radius: var(--border-radius);
    padding: 3rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--border-color);
    position: relative;
    transition: var(--transition);
    overflow: hidden;
}

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

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.2);
    transform: translateY(-5px);
}

.feature-icon-large {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.feature-highlight {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.feature-card:hover .feature-highlight {
    transform: scaleX(1);
}

/* Footer */
.footer {
    background: var(--darker-bg);
    border-top: 1px solid var(--border-color);
    padding: 3rem 2rem 1rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.footer-section p {
    color: var(--text-muted);
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    max-width: 1400px;
    margin: 2rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-muted);
}

/* Animations */
@keyframes glow-pulse {
    0% { text-shadow: 0 0 20px rgba(0, 255, 136, 0.5); }
    100% { text-shadow: 0 0 40px rgba(0, 255, 136, 0.8); }
}

@keyframes matrix-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100px); }
}

@keyframes grid-move {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

@keyframes pulse-dot {
    0% { box-shadow: 0 0 10px var(--primary-color); }
    50% { box-shadow: 0 0 20px var(--primary-color); }
    100% { box-shadow: 0 0 10px var(--primary-color); }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .main-container {
        grid-template-columns: 250px 1fr 200px;
    }
}

@media (max-width: 992px) {
    .main-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .sidebar,
    .right-sidebar {
        position: static;
        order: 2;
    }
    
    .main-content {
        order: 1;
    }
    
    .hero {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .links-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--dark-bg);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-card);
        border-top: 1px solid var(--border-color);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 1rem 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .main-container {
        padding: 1rem;
        margin-top: 70px;
    }
    
    .hero {
        padding: 2rem;
    }
    
    .sidebar,
    .right-sidebar {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .title-main {
        font-size: 2rem;
    }
    
    .title-sub {
        font-size: 1.2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .links-grid {
        grid-template-columns: 1fr;
    }
    
    .link-card {
        padding: 1rem;
    }
}

