@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;600;700&display=swap');

:root {
    --bg-dark: #05050A;
    --neon-cyan: #00F0FF;
    --neon-purple: #B026FF;
    --neon-green: #00FF66;
    --text-main: #FFFFFF;
    --text-muted: #8892B0;
    --glass-bg: rgba(10, 15, 30, 0.4);
    --glass-border: rgba(0, 240, 255, 0.15);
}

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

body {
    font-family: 'Space Grotesk', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background Particle Container */
#particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

/* Cybernetic Grid Background */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background-image: 
        linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -2;
    pointer-events: none;
}

/* Radial Glows */
.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(150px);
    z-index: -2;
    opacity: 0.4;
}
.glow-orb.cyan {
    width: 400px; height: 400px;
    background: var(--neon-cyan);
    top: -100px; right: -100px;
}
.glow-orb.purple {
    width: 500px; height: 500px;
    background: var(--neon-purple);
    bottom: -200px; left: -100px;
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background: rgba(5, 5, 10, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    text-shadow: 0 0 10px var(--neon-cyan);
}

.logo span {
    color: var(--neon-cyan);
}

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

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--neon-cyan);
    text-shadow: 0 0 8px var(--neon-cyan);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--neon-cyan);
    transition: width 0.3s;
    box-shadow: 0 0 10px var(--neon-cyan);
}

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

/* Glassmorphism Panels */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
    transform: skewX(-25deg);
    transition: left 0.7s;
}
.glass-panel:hover::before {
    left: 200%;
}

/* Neon Buttons */
.btn-neon {
    display: inline-block;
    padding: 15px 35px;
    color: var(--neon-cyan);
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
    border: 1px solid var(--neon-cyan);
    border-radius: 5px;
    position: relative;
    overflow: hidden;
    transition: 0.2s;
    background: rgba(0, 240, 255, 0.05);
    box-shadow: 0 0 10px inset rgba(0, 240, 255, 0.2), 0 0 10px rgba(0, 240, 255, 0.2);
    cursor: pointer;
}

.btn-neon:hover {
    background: var(--neon-cyan);
    color: var(--bg-dark);
    box-shadow: 0 0 10px var(--neon-cyan), 0 0 40px var(--neon-cyan), 0 0 80px var(--neon-cyan);
}

.btn-neon.green {
    color: var(--neon-green);
    border-color: var(--neon-green);
    background: rgba(0, 255, 102, 0.05);
    box-shadow: 0 0 10px inset rgba(0, 255, 102, 0.2), 0 0 10px rgba(0, 255, 102, 0.2);
}

.btn-neon.green:hover {
    background: var(--neon-green);
    color: var(--bg-dark);
    box-shadow: 0 0 10px var(--neon-green), 0 0 40px var(--neon-green), 0 0 80px var(--neon-green);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography Specifics */
h1, h2, h3 {
    text-transform: uppercase;
    letter-spacing: 2px;
}

.gradient-text {
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Layout Blocks */
.hero {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 50px 0;
}

.hero-text {
    flex: 1;
    padding-right: 50px;
}

.hero-text h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

/* Quick Exchange Widget Mockup */
.exchange-widget {
    width: 100%;
    max-width: 400px;
    text-align: left;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
}

.currency-input {
    display: flex;
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    overflow: hidden;
}

.currency-input input {
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    padding: 15px;
    width: 100%;
    outline: none;
    font-family: 'Space Grotesk', sans-serif;
}

.currency-input .currency-select {
    background: rgba(0, 240, 255, 0.1);
    color: var(--neon-cyan);
    padding: 0 20px;
    display: flex;
    align-items: center;
    font-weight: 700;
    border-left: 1px solid var(--glass-border);
}

.exchange-icon {
    display: flex;
    justify-content: center;
    margin: 10px 0;
    color: var(--neon-purple);
    font-size: 1.5rem;
    text-shadow: 0 0 10px var(--neon-purple);
}

/* Footer */
footer {
    text-align: center;
    padding: 30px;
    border-top: 1px solid var(--glass-border);
    margin-top: 50px;
    color: var(--text-muted);
}

/* Animations added dynamically via JS for particles */

/* Responsive */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }
    .hero-text {
        padding-right: 0;
        margin-bottom: 50px;
    }
    nav {
        flex-direction: column;
        gap: 20px;
    }
    h1 {
        font-size: 2.5rem;
    }
}

/* Select Element Styling */
select {
    background: transparent;
    color: inherit;
    border: none;
    font-size: 1.1rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    outline: none;
    cursor: pointer;
    appearance: none;
    padding-right: 15px;
    background-image: url('data:image/svg+xml;utf8,<svg fill="currentColor" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position-x: 100%;
    background-position-y: 5px;
}
select option {
    background: var(--bg-dark);
    color: var(--text-main);
}

/* Countries Grid Futuristic */
.section-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 50px;
    text-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

.countries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 100px;
}

.country-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.country-card:hover {
    transform: translateY(-5px);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
}

.country-flag {
    font-size: 3.5rem;
    margin-bottom: 15px;
    display: block;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.2));
}

.country-card h3 {
    font-size: 1.2rem;
    color: var(--text-main);
    margin-bottom: 5px;
}

.country-card p {
    color: var(--neon-cyan);
    font-size: 0.9rem;
    font-weight: 600;
}

/* Reviews Section */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 100px;
}
.review-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 30px;
    transition: transform 0.3s, box-shadow 0.3s;
}
.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 25px rgba(176, 38, 255, 0.2);
    border-color: rgba(176, 38, 255, 0.5);
}
.review-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}
.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}
.review-name {
    color: var(--text-main);
    font-weight: 700;
    font-size: 1.1rem;
}
.stars {
    color: #FFD700;
    font-size: 0.9rem;
    letter-spacing: 2px;
}
.review-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-style: italic;
    line-height: 1.6;
}

/* Live Feed Section */
.live-feed-container {
    max-width: 800px;
    margin: 0 auto 100px;
}
.live-title-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}
.live-dot {
    width: 12px;
    height: 12px;
    background: var(--neon-green);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--neon-green);
    animation: blink 1.5s infinite;
}
@keyframes blink {
    0%, 100% { opacity: 1; box-shadow: 0 0 15px var(--neon-green); }
    50% { opacity: 0.4; box-shadow: 0 0 2px var(--neon-green); }
}
.live-feed {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 20px;
    backdrop-filter: blur(10px);
}
.feed-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-family: 'Space Grotesk', monospace;
}
.feed-item:last-child {
    border-bottom: none;
}
.feed-pair {
    color: var(--neon-cyan);
    font-weight: bold;
    width: 100px;
}
.feed-amount {
    color: var(--text-main);
    flex: 1;
    text-align: center;
}
.feed-status {
    color: var(--neon-green);
    text-shadow: 0 0 5px var(--neon-green);
    font-weight: 600;
    width: 100px;
    text-align: right;
}
.feed-time {
    color: var(--text-muted);
    font-size: 0.8rem;
    width: 60px;
    text-align: right;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .feed-item { flex-direction: column; gap: 5px; text-align: center; }
    .feed-pair, .feed-amount, .feed-status, .feed-time { width: auto; text-align: center; }
}
