/* ============================================
   TORZON MARKET - UNIQUE CYBER NEON DESIGN
   Blue/Cyan Theme with Advanced Effects
   ============================================ */

/* CSS Variables - Torzon Color Palette */
:root {
    /* Torzon Blue/Cyan Neon Colors */
    --torzon-cyan: #00d9ff;
    --torzon-blue: #0066ff;
    --torzon-electric: #00f0ff;
    --torzon-deep-blue: #001f3f;
    --torzon-navy: #0a1929;
    --torzon-ice: #a3e0ff;
    --torzon-aqua: #00ccff;
    --torzon-sky: #33ddff;

    /* Accent Colors */
    --accent-purple: #6b5aff;
    --accent-violet: #8b5cf6;
    --accent-pink: #ff00ff;
    --accent-white: #ffffff;

    /* Backgrounds */
    --bg-black: #000000;
    --bg-dark: #050811;
    --bg-darker: #0a0f1a;
    --bg-darkest: #030408;

    /* Text Colors */
    --text-white: #ffffff;
    --text-light: #e0f2ff;
    --text-gray: #b0c4de;
    --text-dim: #7a8ca0;

    /* Gradients */
    --gradient-torzon: linear-gradient(135deg, #00d9ff 0%, #0066ff 50%, #6b5aff 100%);
    --gradient-cyber: linear-gradient(90deg, #00d9ff 0%, #00f0ff 25%, #0066ff 50%, #6b5aff 75%, #00d9ff 100%);
    --gradient-matrix: linear-gradient(180deg, #000000 0%, #0a1929 50%, #000000 100%);
    --gradient-ice: linear-gradient(135deg, #00f0ff 0%, #a3e0ff 100%);

    /* Neon Glows */
    --glow-cyan: 0 0 5px #00d9ff, 0 0 10px #00d9ff, 0 0 20px #00d9ff, 0 0 40px #00d9ff;
    --glow-blue: 0 0 5px #0066ff, 0 0 10px #0066ff, 0 0 20px #0066ff, 0 0 40px #0066ff;
    --glow-electric: 0 0 5px #00f0ff, 0 0 10px #00f0ff, 0 0 20px #00f0ff, 0 0 40px #00f0ff;
    --glow-multi: 0 0 5px #00d9ff, 0 0 10px #0066ff, 0 0 20px #6b5aff, 0 0 40px #00f0ff;

    /* Typography */
    --font-display: 'Orbitron', sans-serif;
    --font-heading: 'Rajdhani', sans-serif;
    --font-body: 'Electrolize', sans-serif;
    --font-mono: 'Share Tech Mono', monospace;

    /* Spacing */
    --container-width: 1300px;
    --section-padding: 100px 0;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg-black);
    color: var(--text-light);
    line-height: 1.7;
    overflow-x: hidden;
    font-size: clamp(15px, 2vw, 18px);
    position: relative;
}

/* Animated Scanline Effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        transparent 50%,
        rgba(0, 217, 255, 0.02) 50%
    );
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 9999;
    animation: scanline 10s linear infinite;
}

@keyframes scanline {
    0% { transform: translateY(0); }
    100% { transform: translateY(100%); }
}

/* Grid Pattern Background */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 217, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 217, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: -1;
}

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 50px);
}

/* ============================================
   NAVIGATION
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(5, 8, 17, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 2px solid transparent;
    border-image: var(--gradient-cyber) 1;
    box-shadow: 0 0 30px rgba(0, 217, 255, 0.3);
    z-index: 1000;
    transition: all 0.4s ease;
    animation: nav-pulse 4s ease-in-out infinite;
}

@keyframes nav-pulse {
    0%, 100% {
        box-shadow: 0 0 30px rgba(0, 217, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 50px rgba(0, 217, 255, 0.5), 0 5px 80px rgba(0, 102, 255, 0.4);
    }
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 75px;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 900;
    letter-spacing: 3px;
}

.logo-text {
    color: var(--text-white);
    text-shadow: var(--glow-cyan);
    animation: logo-glow 3s ease-in-out infinite;
}

@keyframes logo-glow {
    0%, 100% {
        text-shadow: var(--glow-cyan);
        filter: brightness(1);
    }
    50% {
        text-shadow: var(--glow-electric);
        filter: brightness(1.3);
    }
}

.logo-accent {
    color: var(--torzon-electric);
    text-shadow: var(--glow-electric);
    animation: logo-accent-pulse 2s ease-in-out infinite alternate;
}

@keyframes logo-accent-pulse {
    from {
        text-shadow: var(--glow-electric);
        color: var(--torzon-electric);
    }
    to {
        text-shadow: var(--glow-multi);
        color: var(--accent-violet);
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 35px;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: clamp(1rem, 2vw, 1.15rem);
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-cyber);
    box-shadow: var(--glow-cyan);
    transition: width 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    animation: neon-flow 3s linear infinite;
    background-size: 200% 100%;
}

@keyframes neon-flow {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.nav-link:hover {
    color: var(--torzon-cyan);
    text-shadow: var(--glow-cyan);
    transform: translateY(-3px);
}

.nav-link:hover::after {
    width: 100%;
}

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

.bar {
    width: 28px;
    height: 3px;
    background: var(--torzon-cyan);
    box-shadow: var(--glow-cyan);
    transition: 0.3s;
    border-radius: 2px;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-matrix);
    position: relative;
    overflow: hidden;
    padding: 120px 20px 80px;
}

/* Animated Background Particles */
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 20% 50%, rgba(0, 217, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(0, 102, 255, 0.15) 0%, transparent 50%);
    animation: rotate-gradient 25s linear infinite;
}

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

/* Matrix Rain Effect */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.4;
}

#matrix-canvas {
    width: 100%;
    height: 100%;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 8vw, 5.5rem);
    font-weight: 900;
    margin-bottom: 30px;
    animation: slide-up 1.2s ease-out, title-glitch 5s ease-in-out infinite;
    letter-spacing: clamp(3px, 1vw, 8px);
    line-height: 1.2;
}

@keyframes title-glitch {
    0%, 90%, 100% {
        transform: translate(0);
        filter: brightness(1);
    }
    92% {
        transform: translate(-3px, 3px);
        filter: hue-rotate(90deg) brightness(1.2);
    }
    94% {
        transform: translate(3px, -3px);
        filter: hue-rotate(-90deg) brightness(0.8);
    }
    96% {
        transform: translate(-3px, -3px);
        filter: brightness(1.5);
    }
}

.title-main {
    color: var(--text-white);
    display: block;
    text-shadow: var(--glow-cyan);
    animation: text-pulse 3s ease-in-out infinite;
}

@keyframes text-pulse {
    0%, 100% {
        text-shadow: var(--glow-cyan);
        transform: scale(1);
    }
    50% {
        text-shadow: var(--glow-electric);
        transform: scale(1.02);
    }
}

.title-accent {
    color: var(--torzon-cyan);
    text-shadow: var(--glow-electric);
    display: block;
    background: var(--gradient-torzon);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: neon-pulse 2.5s ease-in-out infinite, gradient-shift 4s ease infinite;
    position: relative;
}

@keyframes neon-pulse {
    0%, 100% {
        filter: brightness(1) drop-shadow(0 0 25px rgba(0, 217, 255, 0.8));
    }
    50% {
        filter: brightness(1.5) drop-shadow(0 0 70px rgba(0, 217, 255, 1)) drop-shadow(0 0 100px rgba(0, 102, 255, 0.7));
    }
}

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

.title-sub {
    color: var(--torzon-ice);
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 4vw, 2.5rem);
    display: block;
    margin-top: 20px;
    text-shadow: var(--glow-cyan);
    letter-spacing: clamp(4px, 2vw, 10px);
    animation: sub-float 3s ease-in-out infinite;
}

@keyframes sub-float {
    0%, 100% {
        text-shadow: var(--glow-cyan);
        transform: translateY(0);
    }
    50% {
        text-shadow: var(--glow-blue);
        transform: translateY(-10px);
    }
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: clamp(1.1rem, 3vw, 1.7rem);
    color: var(--torzon-sky);
    margin-bottom: 40px;
    animation: slide-up 1.2s ease-out 0.3s both;
    text-shadow: 0 0 15px rgba(0, 217, 255, 0.6);
    letter-spacing: clamp(1px, 0.5vw, 2px);
    line-height: 1.6;
}

.hero-description {
    font-size: clamp(1.05rem, 2.5vw, 1.3rem);
    line-height: 1.9;
    margin-bottom: 50px;
    animation: slide-up 1.2s ease-out 0.6s both;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-gray);
}

.hero-buttons {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
    animation: slide-up 1.2s ease-out 0.9s both;
}

@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateY(60px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    padding: clamp(14px, 3vw, 20px) clamp(30px, 5vw, 45px);
    text-decoration: none;
    border-radius: 10px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    text-transform: uppercase;
    letter-spacing: clamp(1px, 0.5vw, 2.5px);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: inline-block;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: -1;
}

.btn:hover::before {
    width: 400%;
    height: 400%;
}

.btn-primary {
    background: var(--gradient-torzon);
    background-size: 200% auto;
    color: var(--text-white);
    border: 3px solid var(--torzon-cyan);
    box-shadow: var(--glow-cyan);
    animation: gradient-pulse 3s ease infinite;
}

@keyframes gradient-pulse {
    0%, 100% {
        background-position: 0% 50%;
        box-shadow: var(--glow-cyan);
    }
    50% {
        background-position: 100% 50%;
        box-shadow: var(--glow-electric);
    }
}

.btn-primary:hover {
    transform: translateY(-6px) scale(1.05);
    box-shadow: var(--glow-multi), 0 20px 50px rgba(0, 217, 255, 0.5);
    filter: brightness(1.3);
    border-color: var(--torzon-electric);
}

.btn-secondary {
    background: transparent;
    color: var(--torzon-cyan);
    border: 3px solid var(--torzon-cyan);
    box-shadow: 0 0 25px rgba(0, 217, 255, 0.3);
    position: relative;
}

.btn-secondary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-torzon);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
    border-radius: 10px;
}

.btn-secondary:hover {
    color: var(--text-white);
    border-color: transparent;
    transform: translateY(-6px) scale(1.05);
    box-shadow: var(--glow-electric), 0 20px 50px rgba(0, 240, 255, 0.5);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.9);
}

.btn-secondary:hover::after {
    opacity: 1;
}

/* ============================================
   SECTIONS
   ============================================ */

section {
    padding: var(--section-padding);
    position: relative;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: clamp(40px, 8vw, 80px);
    color: var(--text-white);
    text-shadow: var(--glow-cyan);
    position: relative;
    letter-spacing: clamp(2px, 0.5vw, 4px);
    text-transform: uppercase;
    animation: title-entrance 1s ease-out, title-float 4s ease-in-out infinite;
}

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

@keyframes title-float {
    0%, 100% {
        transform: translateY(0);
        text-shadow: var(--glow-cyan);
    }
    50% {
        transform: translateY(-12px);
        text-shadow: var(--glow-electric);
    }
}

.section-title::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 130%;
    height: 130%;
    background: radial-gradient(circle, rgba(0, 217, 255, 0.15), transparent);
    z-index: -1;
    animation: title-pulse-bg 3s ease-in-out infinite;
}

@keyframes title-pulse-bg {
    0%, 100% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1.3);
    }
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 250px;
    height: 4px;
    background: var(--gradient-cyber);
    background-size: 200% auto;
    box-shadow: var(--glow-cyan);
    animation: neon-flow 3s linear infinite;
    border-radius: 2px;
}

/* ============================================
   CRYPTOCURRENCY WIDGET
   ============================================ */

.crypto-prices {
    background: var(--bg-dark);
    border-top: 2px solid var(--torzon-cyan);
    border-bottom: 2px solid var(--torzon-blue);
    box-shadow:
        inset 0 0 80px rgba(0, 217, 255, 0.05),
        0 0 50px rgba(0, 217, 255, 0.1);
}

.crypto-widget {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
    margin: 50px 0;
}

.crypto-card {
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.08), rgba(0, 102, 255, 0.08));
    border: 2px solid var(--torzon-cyan);
    border-radius: 20px;
    padding: 35px;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(15px);
    box-shadow: 0 10px 40px rgba(0, 217, 255, 0.2);
}

.crypto-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        transparent,
        var(--torzon-cyan),
        transparent 30%
    );
    animation: rotate-border 5s linear infinite;
    opacity: 0;
    transition: opacity 0.5s ease;
}

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

.crypto-card:hover::before {
    opacity: 0.4;
}

.crypto-card::after {
    content: '';
    position: absolute;
    inset: 3px;
    background: var(--bg-darker);
    border-radius: 18px;
    z-index: 0;
}

.crypto-card > * {
    position: relative;
    z-index: 1;
}

.crypto-card:hover {
    transform: translateY(-12px) scale(1.03);
    border-color: var(--torzon-electric);
    box-shadow: var(--glow-multi), 0 25px 60px rgba(0, 217, 255, 0.4);
}

.crypto-card h3 {
    font-family: var(--font-heading);
    color: var(--torzon-cyan);
    font-size: clamp(1.3rem, 3vw, 1.7rem);
    margin-bottom: 20px;
    text-shadow: 0 0 15px rgba(0, 217, 255, 0.6);
}

.crypto-card .price {
    font-family: var(--font-mono);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: var(--text-white);
    margin: 20px 0;
    text-shadow: var(--glow-cyan);
    animation: price-glow 2s ease-in-out infinite;
}

@keyframes price-glow {
    0%, 100% {
        text-shadow: var(--glow-cyan);
    }
    50% {
        text-shadow: var(--glow-electric);
    }
}

.crypto-card .change {
    font-family: var(--font-mono);
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    font-weight: 600;
    margin: 12px 0;
    padding: 8px 20px;
    border-radius: 25px;
    display: inline-block;
    transition: all 0.3s ease;
}

.crypto-card .change.positive {
    color: #00ff88;
    background: rgba(0, 255, 136, 0.15);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.crypto-card .change.negative {
    color: #ff5555;
    background: rgba(255, 85, 85, 0.15);
    box-shadow: 0 0 20px rgba(255, 85, 85, 0.4);
    border: 1px solid rgba(255, 85, 85, 0.3);
}

.crypto-card .volume,
.crypto-card .timestamp {
    font-family: var(--font-body);
    font-size: clamp(0.9rem, 2vw, 1rem);
    color: var(--text-dim);
    margin: 10px 0;
}

.api-note {
    text-align: center;
    margin-top: 40px;
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    color: var(--text-gray);
}

.api-note a {
    color: var(--torzon-cyan);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.api-note a:hover {
    color: var(--torzon-electric);
    text-shadow: 0 0 10px var(--torzon-electric);
}

/* ============================================
   CONTENT CARDS
   ============================================ */

.about,
.security,
.resources {
    background: var(--bg-dark);
}

.about-content {
    max-width: 1000px;
    margin: 0 auto;
}

.about-description {
    font-size: clamp(1.05rem, 2.5vw, 1.25rem);
    margin-bottom: clamp(25px, 5vw, 45px);
    line-height: 1.9;
    text-align: center;
    color: var(--text-gray);
}

.about-description strong,
.card-content strong {
    color: var(--torzon-cyan);
    font-weight: 700;
}

.about-description a,
.card-content a {
    color: var(--torzon-cyan);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.about-description a:hover,
.card-content a:hover {
    color: var(--torzon-electric);
    text-shadow: 0 0 10px var(--torzon-electric);
}

.about-description a::after,
.card-content a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--torzon-cyan);
    box-shadow: 0 0 5px var(--torzon-cyan);
    transition: width 0.3s ease;
}

.about-description a:hover::after,
.card-content a:hover::after {
    width: 100%;
}

.security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.security-card {
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.05), rgba(0, 102, 255, 0.05));
    border: 2px solid rgba(0, 217, 255, 0.3);
    border-radius: 25px;
    padding: 45px;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(15px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.security-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(0, 217, 255, 0.2),
        transparent
    );
    transition: left 0.8s ease;
}

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

.security-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 25px;
    padding: 2px;
    background: var(--gradient-torzon);
    background-size: 400% 400%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: gradient-rotate 5s ease infinite;
    opacity: 0;
    transition: opacity 0.5s ease;
}

@keyframes gradient-rotate {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.security-card:hover::after {
    opacity: 1;
}

.security-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: var(--glow-multi), 0 30px 60px rgba(0, 217, 255, 0.3);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.card-icon {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    animation: icon-float 4s ease-in-out infinite, icon-glow 3s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(0, 217, 255, 0.8));
}

@keyframes icon-float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(5deg); }
    75% { transform: translateY(-10px) rotate(-5deg); }
}

@keyframes icon-glow {
    0%, 100% {
        filter: drop-shadow(0 0 20px rgba(0, 217, 255, 0.8));
    }
    50% {
        filter: drop-shadow(0 0 40px rgba(0, 240, 255, 1));
    }
}

.card-header h3 {
    color: var(--text-white);
    font-family: var(--font-heading);
    font-size: clamp(1.3rem, 3vw, 1.7rem);
    letter-spacing: clamp(1px, 0.3vw, 2px);
    text-shadow: 0 0 15px rgba(0, 217, 255, 0.5);
}

.card-content {
    text-align: center;
}

.card-content p {
    font-size: clamp(1rem, 2vw, 1.15rem);
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 20px;
}

.card-content h3 {
    color: var(--torzon-cyan);
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    margin: 30px 0 15px;
}

.card-content ul {
    list-style: none;
    margin-top: 20px;
    text-align: left;
}

.card-content li {
    padding: 10px 0 10px 25px;
    color: var(--text-gray);
    position: relative;
    font-size: clamp(0.95rem, 2vw, 1.05rem);
}

.card-content li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--torzon-cyan);
    font-weight: bold;
    font-size: 1.3rem;
    animation: pulse-arrow 2s ease-in-out infinite;
}

@keyframes pulse-arrow {
    0%, 100% {
        transform: translateX(0);
        text-shadow: 0 0 5px var(--torzon-cyan);
    }
    50% {
        transform: translateX(5px);
        text-shadow: 0 0 15px var(--torzon-cyan);
    }
}

/* ============================================
   REGISTRATION / PLATFORM NAVIGATION
   ============================================ */

.registration {
    background: var(--bg-darker);
}

.registration-steps {
    display: grid;
    gap: 45px;
    max-width: 900px;
    margin: 0 auto;
}

.step-item {
    display: flex;
    gap: 35px;
    align-items: flex-start;
    padding: 35px;
    background: rgba(0, 217, 255, 0.05);
    border-radius: 20px;
    border: 2px solid rgba(0, 217, 255, 0.2);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.step-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(0, 217, 255, 0.1),
        transparent
    );
    transition: left 0.6s ease;
}

.step-item:hover::before {
    left: 100%;
}

.step-item:hover {
    border-color: var(--torzon-cyan);
    transform: translateX(15px);
    box-shadow: 0 15px 40px rgba(0, 217, 255, 0.2);
    background: rgba(0, 217, 255, 0.08);
}

.step-number {
    font-family: var(--font-mono);
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 900;
    color: var(--torzon-cyan);
    text-shadow: var(--glow-cyan);
    min-width: 80px;
    text-align: center;
    animation: number-pulse 2s ease-in-out infinite;
}

@keyframes number-pulse {
    0%, 100% {
        text-shadow: var(--glow-cyan);
        transform: scale(1);
    }
    50% {
        text-shadow: var(--glow-electric);
        transform: scale(1.1);
    }
}

.step-content h3 {
    color: var(--text-white);
    font-family: var(--font-heading);
    margin-bottom: 15px;
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    text-shadow: 0 0 10px rgba(0, 217, 255, 0.4);
}

.step-content p {
    line-height: 1.8;
    color: var(--text-gray);
    font-size: clamp(1rem, 2vw, 1.1rem);
}

/* ============================================
   RESOURCES SECTION
   ============================================ */

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 45px;
    margin: 50px 0;
}

.resource-category {
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.06), rgba(0, 102, 255, 0.06));
    border: 2px solid var(--torzon-cyan);
    border-radius: 20px;
    padding: 35px;
    transition: all 0.4s ease;
}

.resource-category:hover {
    transform: translateY(-8px);
    border-color: var(--torzon-electric);
    box-shadow: var(--glow-cyan);
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.1), rgba(0, 102, 255, 0.1));
}

.resource-category h3 {
    font-family: var(--font-heading);
    color: var(--torzon-cyan);
    font-size: clamp(1.3rem, 3vw, 1.6rem);
    margin-bottom: 30px;
    text-shadow: 0 0 15px rgba(0, 217, 255, 0.5);
    border-bottom: 2px solid var(--torzon-cyan);
    padding-bottom: 15px;
}

.resource-links {
    list-style: none;
}

.resource-links li {
    margin-bottom: 25px;
    padding-left: 0;
    transition: all 0.3s ease;
}

.resource-links li:hover {
    transform: translateX(12px);
}

.resource-links a {
    font-family: var(--font-body);
    color: var(--text-white);
    text-decoration: none;
    font-size: clamp(1rem, 2vw, 1.15rem);
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.resource-links a:hover {
    color: var(--torzon-cyan);
    text-shadow: 0 0 10px var(--torzon-cyan);
}

.resource-links span {
    font-family: var(--font-body);
    color: var(--text-dim);
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    display: block;
    padding-left: 15px;
}

.resources-disclaimer {
    text-align: center;
    margin-top: 60px;
    padding: 30px;
    background: rgba(0, 217, 255, 0.08);
    border: 2px solid var(--torzon-cyan);
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(0, 217, 255, 0.2);
}

.resources-disclaimer strong {
    color: var(--torzon-cyan);
    font-size: clamp(1rem, 2vw, 1.15rem);
}

/* ============================================
   GALLERY
   ============================================ */

.gallery {
    background: var(--bg-darkest);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
}

.gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 2px solid rgba(0, 217, 255, 0.2);
    background: rgba(0, 217, 255, 0.03);
}

.gallery-item:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: var(--glow-cyan), 0 20px 50px rgba(0, 217, 255, 0.3);
    border-color: var(--torzon-cyan);
}

.gallery-image {
    height: 280px;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--bg-darker);
}

.gallery-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: all 0.4s ease;
}

.gallery-item:hover .gallery-image img {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.95));
    padding: 40px 25px 25px;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    color: var(--torzon-cyan);
    font-family: var(--font-heading);
    margin-bottom: 12px;
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    text-shadow: 0 0 10px var(--torzon-cyan);
}

.gallery-overlay p {
    color: var(--text-gray);
    font-size: clamp(0.9rem, 2vw, 1rem);
    line-height: 1.6;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-black) 100%);
    border-top: 2px solid var(--torzon-cyan);
    box-shadow: 0 -5px 50px rgba(0, 217, 255, 0.2);
    padding: 80px 0 30px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-cyber);
    animation: border-flow 3s linear infinite;
    box-shadow: 0 0 20px var(--torzon-cyan);
}

@keyframes border-flow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer-section h3 {
    color: var(--torzon-cyan);
    font-family: var(--font-heading);
    margin-bottom: 25px;
    font-size: clamp(1.2rem, 2.5vw, 1.4rem);
    text-shadow: 0 0 10px var(--torzon-cyan);
}

.footer-section p,
.footer-section ul {
    line-height: 1.8;
    color: var(--text-gray);
}

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

.footer-section li {
    padding: 8px 0;
    transition: all 0.3s ease;
}

.footer-section li:hover {
    color: var(--torzon-cyan);
    transform: translateX(8px);
}

.footer-section a {
    color: var(--text-gray);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-section a:hover {
    color: var(--torzon-cyan);
    text-shadow: 0 0 10px var(--torzon-cyan);
}

.footer-bottom {
    border-top: 1px solid rgba(0, 217, 255, 0.2);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    color: var(--text-gray);
    font-size: clamp(0.9rem, 2vw, 1rem);
}

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

.footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.footer-links a:hover {
    color: var(--torzon-cyan);
    text-shadow: 0 0 10px var(--torzon-cyan);
}

/* Page Freshness Timestamp */
.page-freshness {
    text-align: center;
    padding: 35px;
    background: rgba(0, 217, 255, 0.05);
    border-top: 1px solid rgba(0, 217, 255, 0.2);
    margin-top: 50px;
}

.page-freshness p {
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    color: var(--text-gray);
}

.page-freshness strong {
    color: var(--torzon-cyan);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 992px) {
    .security-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 75px;
        flex-direction: column;
        background-color: rgba(5, 8, 17, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.4s;
        padding: 30px 0;
        border-top: 2px solid var(--torzon-cyan);
        box-shadow: 0 10px 50px rgba(0, 217, 255, 0.3);
    }

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

    .hamburger {
        display: flex;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }

    .step-item {
        flex-direction: column;
        text-align: center;
    }

    .step-number {
        margin: 0 auto;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }

    .crypto-widget {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

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

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

/* ============================================
   UTILITY ANIMATIONS
   ============================================ */

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(0.95);
    }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Smooth scroll for anchor links */
html {
    scroll-padding-top: 100px;
}

/* Selection styling */
::selection {
    background: var(--torzon-cyan);
    color: var(--bg-black);
}

::-moz-selection {
    background: var(--torzon-cyan);
    color: var(--bg-black);
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--torzon-cyan);
    border-radius: 6px;
    box-shadow: var(--glow-cyan);
}

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