/* Custom Styles for Global Dreams */

:root {
    /* Dark Mode Variables (Permanent) */
    --color-primary: #050816;
    --color-secondary: #0B1023;
    --color-textwhite: #FFFFFF;
    --color-textsec: #A0AEC0;
}

/* Glassmorphism Utilities */
.glass-card {
    background: rgba(11, 16, 35, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.glass-feature-card {
    background: rgba(11, 16, 35, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 1rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.glass-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.03), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.glass-feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(37, 99, 235, 0.3); /* Neon blue border on hover */
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.1);
}

.glass-feature-card:hover::before {
    transform: translateX(100%);
}

.glass-feature-card .icon-wrapper {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

/* Animations */
@keyframes float {
    0% { transform: translate(-50%, -50%) translateY(0px); }
    50% { transform: translate(-50%, -50%) translateY(-20px); }
    100% { transform: translate(-50%, -50%) translateY(0px); }
}
.animate-float {
    animation: float 6s ease-in-out infinite;
}

@keyframes pulse-slow {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
}
.animate-pulse-slow {
    animation: pulse-slow 8s infinite alternate;
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.animate-spin-slow {
    animation: spin-slow 20s linear infinite;
}

/* Candlestick Animations */
@keyframes candleScale {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(0.7); }
}
.animate-candle-1 { animation: candleScale 3s ease-in-out infinite; transform-origin: bottom; }
.animate-candle-2 { animation: candleScale 2.5s ease-in-out infinite 0.5s; transform-origin: bottom; }
.animate-candle-3 { animation: candleScale 4s ease-in-out infinite 1s; transform-origin: bottom; }
.animate-candle-4 { animation: candleScale 3.5s ease-in-out infinite 0.2s; transform-origin: bottom; }
.animate-candle-5 { animation: candleScale 2.8s ease-in-out infinite 0.8s; transform-origin: bottom; }
.animate-candle-6 { animation: candleScale 3.2s ease-in-out infinite 0.4s; transform-origin: bottom; }

/* 3D Transform Utilities */
.perspective-1000 {
    perspective: 1000px;
}
.transform-style-3d {
    transform-style: preserve-3d;
}

/* Navbar Scrolled State */
.nav-scrolled {
    background: rgba(11, 16, 35, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #050816;
}
::-webkit-scrollbar-thumb {
    background: #2563EB;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #F5B642;
}

/* SVG Dash Animation */
@keyframes dash {
    to {
        stroke-dashoffset: -20;
    }
}
.animate-dash {
    animation: dash 1s linear infinite;
}

/* Custom Trading Chart Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes drawLine {
    to { stroke-dashoffset: 0; }
}

.animate-draw-line {
    animation: drawLine 2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Metallic Golden Button Styles */
.btn-metallic-gold {
    background: linear-gradient(135deg, #BF953F 0%, #FCF6BA 25%, #B38728 50%, #FBF5B7 75%, #AA771C 100%);
    background-size: 200% auto;
    color: #050816 !important;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(191, 149, 63, 0.3);
}

.btn-metallic-gold:hover {
    background-position: right center;
    box-shadow: 0 4px 20px rgba(252, 246, 186, 0.5);
    transform: translateY(-2px) scale(1.02);
}

.btn-metallic-gold-outline {
    background: transparent;
    border: 2px solid #BF953F;
    color: #FCF6BA !important;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-metallic-gold-outline:hover {
    background: linear-gradient(135deg, #BF953F 0%, #FCF6BA 25%, #B38728 50%, #FBF5B7 75%, #AA771C 100%);
    background-size: 200% auto;
    color: #050816 !important;
    border-color: transparent;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 15px rgba(191, 149, 63, 0.3);
}

