/* Torzon Market Portal - Global Styles */
/* Version: 2026.01.15 */

:root {
    --primary-bg: #0f172a;
    --secondary-bg: #1e293b;
    --card-bg: #293548;
    --accent-color: #2563eb;
    --accent-secondary: #8b5cf6;
    --text-primary: #ffffff;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    --glass-bg: rgba(37, 99, 235, 0.05);
    --glass-border: rgba(37, 99, 235, 0.2);
    --border-subtle: rgba(255, 255, 255, 0.1);
    --shadow-glow: 0 0 30px rgba(37, 99, 235, 0.4);
    --shadow-purple: 0 0 30px rgba(139, 92, 246, 0.4);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b3a 25%, #1e293b 50%, #1a2332 75%, #0f172a 100%);
    background-size: 400% 400%;
    animation: gradientShift 20s ease infinite;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

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

/* Particles Background */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 50%;
    opacity: 0.6;
    animation: float 15s infinite linear;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 12s; }
.particle:nth-child(2) { left: 20%; animation-delay: 2s; animation-duration: 18s; }
.particle:nth-child(3) { left: 30%; animation-delay: 4s; animation-duration: 15s; }
.particle:nth-child(4) { left: 40%; animation-delay: 6s; animation-duration: 20s; }
.particle:nth-child(5) { left: 50%; animation-delay: 8s; animation-duration: 14s; }
.particle:nth-child(6) { left: 60%; animation-delay: 10s; animation-duration: 16s; }
.particle:nth-child(7) { left: 70%; animation-delay: 12s; animation-duration: 22s; }
.particle:nth-child(8) { left: 80%; animation-delay: 14s; animation-duration: 13s; }
.particle:nth-child(9) { left: 90%; animation-delay: 16s; animation-duration: 19s; }
.particle:nth-child(10) { left: 95%; animation-delay: 18s; animation-duration: 17s; }

@keyframes float {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% { transform: translateY(-100px) rotate(360deg); opacity: 0; }
}

/* Floating Navigation */
.floating-nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    backdrop-filter: blur(20px);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 10px 30px;
    box-shadow: var(--shadow-glow);
    animation: navFloat 3s ease-in-out infinite;
}

@keyframes navFloat {
    0%, 100% { transform: translateX(-50%) translateY(0px); }
    50% { transform: translateX(-50%) translateY(-5px); }
}

.nav-container {
    display: flex;
    align-items: center;
    gap: 30px;
}

.logo-container .logo {
    height: 40px;
    width: auto;
    filter: brightness(1.2);
}

.logo-text {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 800;
    font-size: 24px;
    background: linear-gradient(45deg, #2563eb, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    transition: left 0.5s ease;
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover {
    color: var(--accent-color);
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.4);
    transform: translateY(-2px);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 140px 20px 60px;
    position: relative;
    z-index: 10;
}

/* Section Styles */
.section {
    padding: 100px 20px;
    position: relative;
    z-index: 10;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    font-family: 'Nunito Sans', sans-serif;
    background: linear-gradient(45deg, var(--accent-color), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Page Hero */
.page-hero {
    text-align: center;
    margin-bottom: 80px;
    animation: fadeInUp 1s ease-out;
}

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

/* Headings */
h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    font-family: 'Nunito Sans', sans-serif;
    background: linear-gradient(45deg, var(--accent-color), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    line-height: 1.2;
}

h2 {
    font-size: 2.2rem;
    font-weight: 700;
    font-family: 'Nunito Sans', sans-serif;
    color: var(--accent-color);
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-secondary));
    border-radius: 2px;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 30px 0 15px;
    font-family: 'Nunito Sans', sans-serif;
}

p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* Glass Cards */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-glow);
}

/* Security Grid */
.security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.security-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.security-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-glow);
}

.security-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.security-card h3 {
    text-align: center;
    color: var(--accent-color);
    margin: 0 0 15px 0;
}

.security-card p {
    text-align: center;
    font-size: 0.95rem;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background: linear-gradient(45deg, var(--accent-color), var(--accent-secondary));
    color: white;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.5);
}

.copy-btn {
    background: linear-gradient(45deg, var(--accent-color), var(--accent-secondary));
    border: none;
    border-radius: 10px;
    padding: 12px 30px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

.copy-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(37, 99, 235, 0.5);
}

/* Footer */
.footer {
    background: var(--secondary-bg);
    padding: 40px 20px;
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

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

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

.img-rounded {
    border-radius: 20px;
    box-shadow: var(--shadow-glow);
}

/* External Links */
a[target="_blank"] {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a[target="_blank"]:hover {
    color: var(--accent-secondary);
}

/* Responsive */
@media (max-width: 768px) {
    .floating-nav {
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        margin: 20px;
        border-radius: 20px;
    }

    .nav-container {
        flex-direction: column;
        gap: 20px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .container {
        padding: 100px 15px 40px;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.8rem;
    }

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

    .security-grid {
        grid-template-columns: 1fr;
    }
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(45deg, var(--accent-color), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

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

/* Status Indicator */
.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    animation: pulse 2s infinite;
    background: #10b981;
    box-shadow: 0 0 10px #10b981;
}

.status-text {
    color: #10b981;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}
