/* Web3 Developer Theme - "Neo-Glass" */
:root {
    /* Color Palette - Dark (Default) */
    --bg-color: #050508;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;

    --accent-cyan: #00f3ff;
    --accent-purple: #bd00ff;
    --accent-blue: #2d5cf6;

    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.15);

    --glow-cyan: 0 0 20px rgba(0, 243, 255, 0.3);
    --glow-purple: 0 0 20px rgba(189, 0, 255, 0.3);

    /* Typography */
    --font-display: 'Orbitron', sans-serif;
    --font-ui: 'Rajdhani', sans-serif;
    --font-body: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

/* Light Mode */
[data-theme="light"] {
    --bg-color: #f5f5f8;
    --text-primary: #1a1a2e;
    --text-secondary: #555570;

    --accent-cyan: #0097a7;
    --accent-purple: #7b1fa2;
    --accent-blue: #1565c0;

    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.08);
    --glass-highlight: rgba(0, 0, 0, 0.05);

    --glow-cyan: 0 0 15px rgba(0, 151, 167, 0.2);
    --glow-purple: 0 0 15px rgba(123, 31, 162, 0.2);
}

/* 초기 로드 시 transition 비활성화 (FOUC 방지) */
.no-transition,
.no-transition *,
.no-transition *::before,
.no-transition *::after {
    transition: none !important;
}

/* Theme Toggle Button */
.theme-toggle {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
}

.theme-toggle:hover {
    color: var(--accent-cyan);
    border-color: var(--accent-cyan);
    box-shadow: var(--glow-cyan);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
    position: absolute;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.theme-toggle .icon-sun {
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
}

.theme-toggle .icon-moon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

[data-theme="light"] .theme-toggle .icon-sun {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

[data-theme="light"] .theme-toggle .icon-moon {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    transition: background-color 0.4s ease, color 0.4s ease;
}

/* Smooth theme transitions for all elements */
*,
*::before,
*::after {
    transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

/* Typography Reset */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

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

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

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes glow-pulse {
    0% {
        box-shadow: 0 0 5px rgba(0, 243, 255, 0.2);
    }

    50% {
        box-shadow: 0 0 20px rgba(0, 243, 255, 0.5);
    }

    100% {
        box-shadow: 0 0 5px rgba(0, 243, 255, 0.2);
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    font-family: var(--font-ui);
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    border-radius: 4px;
    /* Techy sharp corners or slight round */
    cursor: pointer;
    position: relative;
    overflow: hidden;
    letter-spacing: 1px;
}

.btn-primary {
    background: transparent;
    color: var(--accent-cyan);
    border: 1px solid var(--accent-cyan);
    box-shadow: var(--glow-cyan);
}

.btn-primary:hover {
    background: rgba(0, 243, 255, 0.1);
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.4);
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
}

/* Navigation Styles */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    z-index: 1000;
    padding: 1rem 0;
    border-radius: 100px;
    /* Pill shape */
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-family: var(--font-ui);
    font-weight: 500;
    font-size: 1.1rem;
    color: var(--text-secondary);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-cyan);
    transition: width 0.3s ease;
}

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

.btn-connect {
    padding: 0.5rem 1.5rem;
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-connect:hover {
    background: var(--accent-purple);
    border-color: var(--accent-purple);
    color: #fff;
    box-shadow: var(--glow-purple);
}

/* Hero Styles */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    /* Space for fixed nav */
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

.hero-text h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(0, 243, 255, 0.1);
    color: var(--accent-cyan);
    border-radius: 2rem;
    font-family: var(--font-ui);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0, 243, 255, 0.2);
}

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

.hero-actions {
    display: flex;
    gap: 1.5rem;
}

/* Visual Elements */
.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.visual-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    z-index: -1;
}

.circle-1 {
    width: 300px;
    height: 300px;
    background: rgba(0, 243, 255, 0.15);
    top: 50px;
    right: 50px;
    animation: float 6s ease-in-out infinite;
}

.circle-2 {
    width: 250px;
    height: 250px;
    background: rgba(189, 0, 255, 0.15);
    bottom: 50px;
    left: 50px;
    animation: float 8s ease-in-out infinite reverse;
}

.float-card {
    width: 380px;
    padding: 1.5rem;
    background: rgba(10, 10, 15, 0.7);
    /* Slightly darker for code contrast */
    transform: rotate(-5deg);
    animation: float 5s ease-in-out infinite;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-header {
    display: flex;
    gap: 8px;
    margin-bottom: 1.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.red {
    background: #ff5f56;
}

.yellow {
    background: #ffbd2e;
}

.green {
    background: #27c93f;
}

.card-code {
    font-family: 'Fira Code', monospace;
    /* If available, else monospace */
    color: #e0e0e0;
    font-size: 0.95rem;
}

.keyword {
    color: var(--accent-purple);
}

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

.func {
    color: #f1fa8c;
}

.comment {
    color: #6272a4;
    display: block;
    margin-top: 0.5rem;
}

/* Responsive */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 3rem;
    }

    .hero-visual {
        height: 300px;
        margin-top: 2rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .navbar {
        width: 100%;
        border-radius: 0;
        top: 0;
        backdrop-filter: blur(20px);
        background: rgba(5, 5, 8, 0.9);
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.8;
}

.scroll-indicator span {
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--text-secondary);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 4px;
    background: var(--accent-cyan);
    border-radius: 50%;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        opacity: 1;
        top: 6px;
    }

    100% {
        opacity: 0;
        top: 26px;
    }
}

/* Service Section */
.service-section {
    min-height: 100vh;
    padding: 100px 0;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 10;
    /* Ensure it sits above if needed */
}

.service-header {
    text-align: center;
    margin-bottom: 4rem;
}

.service-header h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-header p {
    color: var(--text-secondary);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Service Interface Mockup */
.service-interface {
    max-width: 1000px;
    /* Wider for dashboard feel */
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    border: 1px solid var(--glass-highlight);
    background: rgba(10, 10, 15, 0.6);
    backdrop-filter: blur(20px);
    border-radius: 16px;
}

.interface-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 1.5rem;
}

.live-badge {
    background: #ff0055;
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 1px;
    box-shadow: 0 0 10px rgba(255, 0, 85, 0.4);
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

.market-select {
    display: flex;
    gap: 2rem;
}

.market-select span {
    cursor: pointer;
    font-weight: 600;
    color: var(--text-secondary);
    transition: color 0.3s;
}

.market-select span:hover,
.market-select span:first-child {
    /* Active state mockup */
    color: var(--accent-cyan);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.balance {
    font-family: var(--font-display);
    color: var(--accent-cyan);
    font-weight: 600;
}

.avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(45deg, var(--accent-blue), var(--accent-purple));
    border-radius: 50%;
}

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

.bet-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    transition: transform 0.3s, border-color 0.3s;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
}

.bet-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-cyan);
}

.match-time {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.match-teams {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    align-items: center;
    font-weight: 600;
    font-size: 1.1rem;
    text-align: center;
}

.match-teams span {
    white-space: nowrap;
}

.vs {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin: 0 5px;
}

.odds-group {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.odd-btn {
    flex: 1;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-display);
    font-size: 1rem;
    text-align: center;
}

.odd-btn:hover {
    background: var(--accent-cyan);
    color: #000;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.3);
}

.action-area {
    display: flex;
    justify-content: center;
    padding-top: 1rem;
    border-top: 1px solid var(--glass-border);
}

.full-width {
    width: 100%;
    max-width: 300px;
}

/* Mobile Responsive Tweaks for Service Section */
@media (max-width: 768px) {
    .service-header h2 {
        font-size: 2rem;
    }

    .interface-header {
        flex-direction: column;
        gap: 1rem;
    }

    .market-select {
        gap: 1rem;
        font-size: 0.9rem;
    }
}