
/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --crypto-bitcoin: #1dcc49;
    --crypto-ethereum: #2bc26a;
    --crypto-neon: #00ff88;
    --crypto-purple: #2cc760;
    --crypto-cyan: #06d433;
    --crypto-dark: #0a0a0f;
    --crypto-darker: #050508;
    --crypto-card: rgba(21, 21, 33, 0.5);
    --crypto-border: rgba(48, 48, 64, 0.5);
    --crypto-muted: #c8c8d2;
    --destructive: #ef4444;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #16213e 100%);
    color: white;
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Background animations */
.background-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.floating-element {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
}

.floating-element-1 {
    top: 5rem;
    left: 2.5rem;
    width: 8rem;
    height: 8rem;
    background: var(--crypto-neon);
    animation: float 3s ease-in-out infinite;
}

.floating-element-2 {
    top: 10rem;
    right: 5rem;
    width: 6rem;
    height: 6rem;
    background: var(--crypto-ethereum);
    animation: float 3s ease-in-out infinite 1s;
}

.floating-element-3 {
    bottom: 5rem;
    left: 25%;
    width: 7rem;
    height: 7rem;
    background: var(--crypto-bitcoin);
    animation: float 3s ease-in-out infinite 2s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

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

@keyframes pulse-slow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Header */
.header {
    position: relative;
    z-index: 10;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--crypto-border);
}

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

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

.bitcoin-icon {
    width: 2rem;
    height: 2rem;
    color: var(--crypto-bitcoin);
    animation: glow 2s ease-in-out infinite;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--crypto-neon) 0%, var(--crypto-cyan) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.portfolio-value {
    background: var(--crypto-card);
    backdrop-filter: blur(8px);
    border: 1px solid var(--crypto-border);
    border-radius: 0.75rem;
    padding: 1rem 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 255, 136, 0.1);
}

.portfolio-label {
    font-size: 0.875rem;
    color: var(--crypto-muted);
    display: block;
}

.portfolio-amount {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--crypto-neon);
}

/* Hero Section */
.hero {
    position: relative;
    z-index: 10;
    padding: 3rem 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffd700 0%, var(--crypto-neon) 50%, var(--crypto-cyan) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: pulse-slow 4s ease-in-out infinite;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--crypto-muted);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    background: linear-gradient(135deg, var(--crypto-neon) 0%, var(--crypto-cyan) 100%);
    color: black;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    border: none;
    font-size: 1.125rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.3);
}

.cta-button:hover {
    transform: scale(1.05);
}

/* Market Section */
.market-section {
    position: relative;
    z-index: 10;
    padding: 3rem 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
}

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

.crypto-card {
    background: var(--crypto-card);
    backdrop-filter: blur(8px);
    border: 1px solid var(--crypto-border);
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 255, 136, 0.1);
    transition: all 0.3s ease;
}

.crypto-card:hover {
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
}

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

.crypto-name {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.crypto-symbol {
    color: var(--crypto-muted);
    font-size: 0.875rem;
}

.trend-icon {
    width: 1.5rem;
    height: 1.5rem;
}

.trend-up {
    color: var(--crypto-neon);
}

.trend-down {
    color: var(--destructive);
}

.crypto-price {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.crypto-change {
    font-weight: 600;
}

.crypto-change.positive {
    color: var(--crypto-neon);
}

.crypto-change.negative {
    color: var(--destructive);
}

/* Portfolio Section */
.portfolio-section {
    position: relative;
    z-index: 10;
    padding: 3rem 0;
}

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

.portfolio-card, .chart-card {
    background: var(--crypto-card);
    backdrop-filter: blur(8px);
    border: 1px solid var(--crypto-border);
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 255, 136, 0.1);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dollar-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: #ffd700;
}

.holdings-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.holding-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: rgba(200, 200, 210, 0.1);
    border-radius: 0.5rem;
}

.holding-coin {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.holding-amount {
    font-size: 0.875rem;
    color: var(--crypto-muted);
}

.holding-value {
    text-align: right;
}

.holding-price {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.holding-allocation {
    font-size: 0.875rem;
    color: var(--crypto-neon);
}

.chart-placeholder {
    height: 16rem;
    background: linear-gradient(135deg, rgba(98, 126, 234, 0.2) 0%, rgba(247, 147, 26, 0.2) 100%);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.chart-icon {
    width: 4rem;
    height: 4rem;
    color: var(--crypto-neon);
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

.chart-text {
    color: var(--crypto-muted);
}

/* News Section */
.news-section {
    position: relative;
    z-index: 10;
    padding: 3rem 0;
}

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

.news-card {
    background: var(--crypto-card);
    backdrop-filter: blur(8px);
    border: 1px solid var(--crypto-border);
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 255, 136, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.news-card:hover {
    transform: scale(1.05);
}

.news-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.news-indicator {
    width: 0.75rem;
    height: 0.75rem;
    background: var(--crypto-neon);
    border-radius: 50%;
    margin-top: 0.5rem;
    animation: glow 2s ease-in-out infinite;
    flex-shrink: 0;
}

.news-text {
    font-size: 1.125rem;
    line-height: 1.6;
}

/* Footer */
.footer {
    position: relative;
    z-index: 10;
    border-top: 1px solid var(--crypto-border);
    padding: 1.5rem 0;
    text-align: center;
}

.footer-text {
    color: var(--crypto-muted);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .crypto-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .portfolio-value {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .crypto-card, .portfolio-card, .chart-card, .news-card {
        padding: 1rem;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
}
