#hero-section {
    position: relative;
    overflow: hidden;
    min-height: 80vh; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(135deg, #0f0f1f, #1a1a2f); 
    color: #e0e0e0;
    padding: 4rem 2rem;
    margin-bottom: 3rem; 
    border-radius: 20px; 
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.1s ease-out; 
    will-change: transform; 
}

.hero-3d-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    perspective: 800px; 
    pointer-events: none; 
    z-index: 1; 
}

.hero-coins,
.hero-ribbons {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    transform-style: preserve-3d; 
}

.coin {
    position: absolute;
    width: 40px; 
    height: 40px;
    background: linear-gradient(45deg, #ffcc00, #e0a800, #ffcc00); 
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 204, 0, 0.5);
    opacity: 0.8;
    animation: rotateCoin 15s infinite linear; 
    transform-style: preserve-3d;
}

.coin-1 { top: 10%; left: 15%; animation-delay: 0s; }
.coin-2 { top: 20%; left: 80%; width: 30px; height: 30px; opacity: 0.7; animation-duration: 12s; animation-delay: 2s; }
.coin-3 { top: 50%; left: 5%; width: 50px; height: 50px; opacity: 0.9; animation-duration: 18s; animation-delay: 4s; }
.coin-4 { top: 70%; left: 70%; width: 35px; height: 35px; opacity: 0.6; animation-duration: 14s; animation-delay: 1s; }
.coin-5 { top: 85%; left: 30%; width: 45px; height: 45px; opacity: 0.85; animation-duration: 16s; animation-delay: 3s; }

@keyframes rotateCoin {
    0% { transform: translateZ(-100px) rotateY(0deg) rotateX(0deg); }
    25% { transform: translateZ(-50px) rotateY(90deg) rotateX(30deg); }
    50% { transform: translateZ(-100px) rotateY(180deg) rotateX(0deg); }
    75% { transform: translateZ(-50px) rotateY(270deg) rotateX(-30deg); }
    100% { transform: translateZ(-100px) rotateY(360deg) rotateX(0deg); }
}

.ribbon {
    position: absolute;
    width: 150px; 
    height: 10px; 
    background: linear-gradient(90deg, #00ffaa, #00aaff); 
    opacity: 0.6;
    animation: moveRibbon 20s infinite ease-in-out; 
    transform-style: preserve-3d;
}

.ribbon-1 { top: 30%; left: 5%; transform: rotate(20deg); animation-delay: 1s; animation-duration: 18s;}
.ribbon-2 { top: 60%; left: 80%; transform: rotate(-30deg); width: 120px; animation-delay: 5s; animation-duration: 22s;}
.ribbon-3 { top: 15%; left: 50%; transform: rotate(45deg); width: 180px; animation-delay: 3s; animation-duration: 20s;}

@keyframes moveRibbon {
    0% { transform: translateZ(-50px) translateX(0) translateY(0) rotateY(0deg) rotateX(0deg) rotate(var(--ribbon-rotate, 0deg)); }
    25% { transform: translateZ(50px) translateX(50px) translateY(-20px) rotateY(90deg) rotateX(30deg) rotate(var(--ribbon-rotate, 0deg)); }
    50% { transform: translateZ(-50px) translateX(0) translateY(0) rotateY(180deg) rotateX(0deg) rotate(var(--ribbon-rotate, 0deg)); }
    75% { transform: translateZ(50px) translateX(-50px) translateY(20px) rotateY(270deg) rotateX(-30deg) rotate(var(--ribbon-rotate, 0deg)); }
    100% { transform: translateZ(-50px) translateX(0) translateY(0) rotateY(360deg) rotateX(0deg) rotate(var(--ribbon-rotate, 0deg)); }
}

.ribbon-1 { --ribbon-rotate: 20deg; }
.ribbon-2 { --ribbon-rotate: -30deg; }
.ribbon-3 { --ribbon-rotate: 45deg; }

.hero-content {
    position: relative;
    z-index: 10; 
    max-width: 800px;
    width: 100%;
    padding: 0 1rem;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem; 
    background: linear-gradient(45deg, #00ffaa, #00aaff, #00ffaa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 30px rgba(0, 255, 170, 0.4);
    font-weight: 700;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #aab;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.hero-ctas {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(45deg, #00ffaa, #00aaff);
    border: none;
    border-radius: 12px;
    color: #1a1a1a;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 255, 170, 0.3);
}

.cta-button:hover {
    background: linear-gradient(45deg, #00ffcc, #00ccff);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 255, 170, 0.5);
}

.cta-button.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: none;
}

.cta-button.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(0, 170, 255, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 170, 255, 0.3);
    color: #ffffff;
}

#stock-animation-section {
    background: linear-gradient(135deg, #0a0a0f, #1a1a2f, #0f1419);
    padding: 3rem 2rem;
    margin-bottom: 3rem;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(0, 255, 170, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.stock-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.ticker-bar {
    background: rgba(0, 0, 0, 0.7);
    padding: 1rem 0;
    margin-bottom: 2rem;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(0, 255, 170, 0.3);
    position: relative;
}

.ticker-content {
    display: flex;
    animation: ticker 20s linear infinite;
    white-space: nowrap;
}

.ticker-content span {
    font-size: 1.2rem;
    font-weight: 700;
    color: #00ffaa;
    margin-right: 3rem;
    text-shadow: 0 0 10px rgba(0, 255, 170, 0.5);
    letter-spacing: 2px;
}

@keyframes ticker {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.charts-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    align-items: end;
}

.chart-title {
    color: #00aaff;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.candlestick-chart {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid rgba(0, 255, 170, 0.2);
}

.candles-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: end;
    height: 120px;
    margin-bottom: 1rem;
}

.candle {
    width: 12px;
    background: linear-gradient(to top, #ff4444, #ff6666);
    border-radius: 2px;
    position: relative;
    animation: candleGrow 2s ease-in-out infinite alternate;
    box-shadow: 0 0 10px rgba(255, 68, 68, 0.5);
}

.candle.bullish {
    background: linear-gradient(to top, #00ff44, #00ff88);
    box-shadow: 0 0 10px rgba(0, 255, 68, 0.5);
}

.candle::before {
    content: '';
    position: absolute;
    width: 2px;
    height: 20px;
    background: inherit;
    left: 50%;
    transform: translateX(-50%);
    top: -10px;
}

.candle::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 20px;
    background: inherit;
    left: 50%;
    transform: translateX(-50%);
    bottom: -10px;
}

@keyframes candleGrow {
    0% { transform: scaleY(0.8); }
    100% { transform: scaleY(1.2); }
}

.trend-arrows {
    display: flex;
    justify-content: space-around;
    margin-top: 0.5rem;
}

.arrow {
    font-size: 1.5rem;
    font-weight: bold;
    animation: bounce 1.5s ease-in-out infinite;
}

.arrow.up {
    color: #00ff44;
    text-shadow: 0 0 10px rgba(0, 255, 68, 0.7);
}

.arrow.down {
    color: #ff4444;
    text-shadow: 0 0 10px rgba(255, 68, 68, 0.7);
    animation-delay: 0.5s;
}

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

.bar-chart {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid rgba(0, 170, 255, 0.2);
}

.bars-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: end;
    height: 120px;
}

.bar {
    width: 18px;
    background: linear-gradient(to top, #00aaff, #00ddff);
    border-radius: 4px 4px 0 0;
    animation: barGrow 3s ease-out infinite;
    box-shadow: 0 0 15px rgba(0, 170, 255, 0.4);
    position: relative;
}

.bar::before {
    content: '';
    position: absolute;
    top: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: #00ffff;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
}

@keyframes barGrow {
    0% { transform: scaleY(0); }
    50% { transform: scaleY(1); }
    100% { transform: scaleY(1); }
}

.coin-animation {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 204, 0, 0.2);
    text-align: center;
}

.coins-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 120px;
    justify-content: end;
    position: relative;
}

.coin {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: -5px 0;
    animation: coinStack 2s ease-in-out infinite;
    box-shadow: 0 0 15px rgba(255, 204, 0, 0.5);
}

.coin.rupee {
    background: linear-gradient(45deg, #ffcc00, #ff9900);
    color: #1a1a1a;
}

.coin.dollar {
    background: linear-gradient(45deg, #00ff88, #00dd66);
    color: #1a1a1a;
}

.coin:nth-child(1) { animation-delay: 0s; }
.coin:nth-child(2) { animation-delay: 0.3s; }
.coin:nth-child(3) { animation-delay: 0.6s; }
.coin:nth-child(4) { animation-delay: 0.9s; }

@keyframes coinStack {
    0% { transform: translateY(20px) scale(0.8); opacity: 0; }
    50% { transform: translateY(-5px) scale(1.1); opacity: 1; }
    100% { transform: translateY(0) scale(1); opacity: 1; }
}

.multiplier {
    font-size: 1.2rem;
    font-weight: bold;
    color: #ffcc00;
    margin-top: 1rem;
    text-shadow: 0 0 10px rgba(255, 204, 0, 0.7);
    animation: pulse 2s ease-in-out infinite;
}

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

@media (max-width: 768px) {
    #hero-section {
        min-height: 60vh;
        padding: 3rem 1rem;
        margin-bottom: 2rem;
    }

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

    .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 2rem;
    }

    .hero-ctas {
        gap: 1rem;
    }

    .cta-button {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }

    .coin {
        width: 30px;
        height: 30px;
    }
    .coin-3 { width: 40px; height: 40px; } 

    .ribbon {
        width: 100px;
    }
    .ribbon-3 { width: 150px; } 

    #stock-animation-section {
        padding: 2rem 1rem;
        margin-bottom: 2rem;
    }

    .charts-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .ticker-content span {
        font-size: 1rem;
        margin-right: 2rem;
    }

    .candles-wrapper,
    .bars-wrapper,
    .coins-stack {
        height: 80px;
    }

    .coin {
        width: 30px;
        height: 30px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-ctas {
        flex-direction: column;
        align-items: center;
    }

    .cta-button {
        width: 80%; 
        max-width: 250px;
    }

    .coin {
        width: 25px;
        height: 25px;
    }
    .coin-3 { width: 35px; height: 35px; } 
    .ribbon {
        width: 80px;
    }
    .ribbon-3 { width: 120px; } 

    .ticker-content span {
        font-size: 0.9rem;
        letter-spacing: 1px;
    }

    .chart-title {
        font-size: 0.8rem;
    }

    .candles-wrapper,
    .bars-wrapper,
    .coins-stack {
        height: 60px;
    }
}