/* ============================================
   OWN SELF TRADE - 3D MODERN CRYPTO TRADING PLATFORM
   Premium 3D Design with Advanced Visual Effects
   ============================================ */

/* ===== CSS Variables ===== */
:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary-color: #10b981;
    --accent-color: #f59e0b;
    --text-dark: #0f172a;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    --gradient-dark: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    --shadow-3d: 0 20px 60px rgba(99, 102, 241, 0.3);
    --shadow-3d-hover: 0 30px 80px rgba(99, 102, 241, 0.4);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Global Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*,
*::before,
*::after {
    max-width: 100%;
}

img,
video,
iframe {
    max-width: 100%;
    height: auto;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: 'Poppins', 'Inter', sans-serif;
    color: var(--text-dark);
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    overflow-x: hidden;
    line-height: 1.6;
    perspective: 1000px;
    max-width: 100%;
    width: 100%;
    position: relative;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 3rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-text {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* ===== Crypto Prices Marquee ===== */
.crypto-marquee {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-bottom: 2px solid rgba(99, 102, 241, 0.3);
    padding: 0.75rem 0;
    z-index: 1050;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.marquee-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    animation: scroll 60s linear infinite;
    white-space: nowrap;
}

.marquee-content:hover {
    animation-play-state: paused;
}

.marquee-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    flex-shrink: 0;
}

.marquee-item:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.marquee-item i {
    font-size: 1.2rem;
    color: var(--accent-color);
}

.marquee-item .crypto-name {
    font-weight: 700;
    color: white;
    font-size: 0.9rem;
    min-width: 40px;
}

.marquee-item .crypto-price {
    font-weight: 800;
    color: white;
    font-size: 0.95rem;
    min-width: 90px;
    text-align: right;
}

.marquee-item .crypto-change {
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    min-width: 60px;
    text-align: center;
}

.marquee-item .crypto-change.positive {
    background: rgba(16, 185, 129, 0.2);
    color: var(--secondary-color);
}

.marquee-item .crypto-change.negative {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Adjust navbar position for marquee */
.navbar-custom {
    position: relative;
    z-index: 1000;
}

@media (max-width: 768px) {
    .crypto-marquee {
        padding: 0.5rem 0;
    }
    
    .marquee-content {
        gap: 1rem;
        animation-duration: 40s;
    }
    
    .marquee-item {
        padding: 0.4rem 1rem;
        gap: 0.5rem;
    }
    
    .marquee-item i {
        font-size: 1rem;
    }
    
    .marquee-item .crypto-name {
        font-size: 0.8rem;
        min-width: 35px;
    }
    
    .marquee-item .crypto-price {
        font-size: 0.85rem;
        min-width: 70px;
    }
    
    .marquee-item .crypto-change {
        font-size: 0.75rem;
        padding: 0.2rem 0.5rem;
        min-width: 50px;
    }
    
}

/* ===== Navbar Styles with 3D Effect ===== */

.navbar {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    transition: var(--transition);
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
    top: 50px;
    width: 100%;
    z-index: 1040;
}

.navbar .container {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
}

@media (min-width: 992px) {
    .navbar .container {
        flex-wrap: nowrap;
    }
    
    .navbar-brand {
        flex-shrink: 0;
    }
    
    .navbar-collapse {
        flex-grow: 1;
        display: flex !important;
    }
}

.navbar-collapse {
    flex-basis: auto;
    flex-grow: 1;
    align-items: center;
}

.navbar-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .navbar {
        top: 40px;
    }
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.15);
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 800;
    text-decoration: none;
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    padding: 0;
    margin-right: 2rem;
    height: auto;
}

.navbar-logo {
    height: 50px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    transition: var(--transition);
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative;
    z-index: 1;
}

.navbar-brand img.navbar-logo {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.navbar-logo:hover {
    transform: scale(1.08);
    filter: drop-shadow(0 4px 8px rgba(99, 102, 241, 0.3));
}

.logo-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

/* Desktop navbar styles */
@media (min-width: 992px) {
    .navbar-nav {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .navbar-nav .nav-item {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .navbar-nav .nav-link {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .navbar-collapse {
        display: flex !important;
        flex-basis: auto;
        visibility: visible !important;
    }
    
    .navbar-brand {
        display: flex !important;
        visibility: visible !important;
    }
    
    .navbar-brand .navbar-logo {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.75rem 0;
        min-height: 60px;
    }
    
    .navbar .container {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        flex-wrap: wrap;
        position: relative;
        min-height: 60px;
    }
    
    .navbar-brand {
        font-size: 1.5rem;
        margin-right: 0;
        flex-shrink: 0;
        order: 1;
        position: absolute !important;
        left: 15px !important;
        top: 0.75rem !important;
        transform: translateY(0) !important;
        z-index: 1051;
        width: auto;
        align-items: center;
    }
    
    .navbar-toggler {
        order: 2;
        margin-left: 0;
        border: none;
        padding: 0.25rem 0.5rem;
        flex-shrink: 0;
        position: absolute !important;
        right: 15px !important;
        top: 0.75rem !important;
        transform: translateY(0) !important;
        z-index: 1051;
        width: auto;
    }
    
    
    .navbar-toggler:focus {
        box-shadow: none;
        outline: none;
    }
    
    .navbar-toggler-icon {
        width: 1.5em;
        height: 1.5em;
    }
    
    .navbar-logo {
        height: 40px;
        max-width: 150px;
    }
    
    .navbar-collapse {
        order: 3;
        width: 100%;
        flex-basis: 100%;
        margin-top: 0;
        padding-top: 60px;
        position: relative;
        z-index: 1050;
    }
    
    .navbar-collapse.show {
        display: block !important;
    }
    
    .navbar-collapse:not(.show) {
        display: none !important;
    }
    
    /* Ensure logo and toggle stay fixed when menu opens/closes */
    .navbar-collapse.show ~ .navbar-brand,
    .navbar-collapse.show ~ .navbar-toggler,
    .navbar-brand,
    .navbar-toggler {
        position: absolute !important;
    }
}

.logo-text::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.navbar-brand:hover .logo-text::after {
    transform: scaleX(1);
}

.navbar-nav .nav-link {
    color: var(--text-dark);
    font-weight: 600;
    margin: 0 0.25rem;
    position: relative;
    transition: var(--transition);
    padding: 0.5rem 0.75rem !important;
    white-space: nowrap;
    display: block;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
    transition: transform 0.3s;
}

.navbar-nav .nav-link:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.navbar-buttons {
    display: flex;
    align-items: center;
}

.btn-login {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    transition: var(--transition);
    background: transparent;
    white-space: nowrap;
}

.btn-login:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
}

.btn-signup {
    background: var(--gradient-primary);
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.6rem 1.8rem;
    border-radius: 50px;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    white-space: nowrap;
}

.btn-signup:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.4);
}

/* ===== Hero Section with 3D Effects ===== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    overflow: hidden;
    padding-top: 150px;
}

@media (max-width: 768px) {
    .hero-section {
        padding-top: 140px;
    }
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.particles-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(5deg); }
}

.floating-crypto-icons {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    overflow: hidden;
}

@media (max-width: 768px) {
    .floating-crypto-icons {
        display: none;
    }
}

.crypto-icon {
    position: absolute;
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.2);
    animation: floatIcon 8s ease-in-out infinite;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
}

.crypto-icon.btc {
    top: 15%;
    left: 10%;
    animation-delay: 0s;
}

.crypto-icon.eth {
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.crypto-icon.usdt {
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
    50% { transform: translateY(-40px) rotate(15deg) scale(1.1); }
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: translateZ(0);
}

.gradient-text {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    transform: translateZ(20px);
}

.hero-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2.5rem;
    line-height: 1.8;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.typing-text {
    color: #fbbf24;
    font-weight: 700;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-buttons .btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
    flex: 0 1 auto;
}

.btn-hero.btn-primary {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.btn-hero.btn-primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.btn-hero.btn-outline-light {
    border: 2px solid white;
    color: white;
    background: transparent;
}

.btn-hero.btn-outline-light:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-5px) scale(1.05);
}

/* ===== 3D Hero Image Card ===== */
.hero-illustration {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1200px;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 25px;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-3d {
    transform: perspective(1200px) rotateY(-8deg) rotateX(5deg);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4),
                0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.hero-image-wrapper:hover {
    transform: perspective(1200px) rotateY(0deg) rotateX(0deg) scale(1.02);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
}

.hero-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-image-wrapper:hover .hero-main-image {
    transform: scale(1.1);
}

.image-overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 118, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
    pointer-events: none;
}

.floating-stats-card {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 1.2rem 1.8rem;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    animation: float 3s ease-in-out infinite;
    transform: translateZ(50px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.mini-stat {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mini-stat i {
    font-size: 2rem;
    color: #f59e0b;
}

.mini-stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 600;
}

.mini-stat-value {
    display: block;
    font-size: 1.1rem;
    color: var(--secondary-color);
    font-weight: 800;
}

.crypto-card-animation {
    position: absolute;
    top: -60px;
    right: -60px;
    width: 250px;
    height: 250px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: pulse 4s ease-in-out infinite;
    z-index: -1;
    transform: rotate(15deg);
}

@media (max-width: 768px) {
    .crypto-card-animation {
        display: none;
    }
}

@keyframes pulse {
    0%, 100% { transform: rotate(15deg) scale(1); opacity: 0.6; }
    50% { transform: rotate(15deg) scale(1.1); opacity: 0.8; }
}

/* ===== 3D Stats Cards ===== */
.stats-section {
    background: var(--bg-light);
    padding: 6rem 0;
    position: relative;
}

.stat-card {
    background: white;
    padding: 2.5rem;
    border-radius: 25px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(99, 102, 241, 0.1);
    transform-style: preserve-3d;
    transform: translateZ(0);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0.05;
    transition: var(--transition);
}

.stat-card:hover::before {
    left: 0;
}

.stat-card:hover {
    transform: translateY(-15px) rotateX(5deg) translateZ(20px);
    box-shadow: 0 25px 60px rgba(99, 102, 241, 0.25);
    border-color: var(--primary-color);
}

.stat-icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    transform: translateZ(20px);
    transition: var(--transition);
}

.stat-card:hover .stat-icon {
    transform: translateZ(30px) scale(1.1) rotateY(10deg);
}

.stat-label {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-change {
    font-size: 0.95rem;
    font-weight: 700;
    padding: 0.4rem 1rem;
    border-radius: 25px;
    display: inline-block;
}

.stat-change.positive {
    background: rgba(16, 185, 129, 0.15);
    color: var(--secondary-color);
}

.stat-change.negative {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

/* ===== 3D About Section ===== */
.about-section {
    padding: 6rem 0;
    background: white;
}

.about-image {
    position: relative;
    height: 550px;
    perspective: 1000px;
}

.image-container-modern {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    transform-style: preserve-3d;
    transform: perspective(1000px) rotateY(-5deg);
}

.image-container-modern:hover {
    transform: perspective(1000px) rotateY(0deg) translateY(-20px) scale(1.02);
    box-shadow: 0 35px 80px rgba(99, 102, 241, 0.3);
}

.about-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-container-modern:hover .about-main-image {
    transform: scale(1.15);
}

.image-badge {
    position: absolute;
    top: 25px;
    right: 25px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 1rem 2rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 2;
    transform: translateZ(30px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.image-badge i {
    animation: spin 3s linear infinite;
    font-size: 1.2rem;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.about-graphic {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.graphic-circle {
    position: absolute;
    border-radius: 50%;
    background: var(--gradient-primary);
    opacity: 0.15;
    animation: float 10s ease-in-out infinite;
    filter: blur(40px);
}

.graphic-circle:nth-child(1) {
    width: 250px;
    height: 250px;
    top: -50px;
    left: -50px;
    animation-delay: 0s;
}

.graphic-circle:nth-child(2) {
    width: 200px;
    height: 200px;
    top: 50%;
    right: -50px;
    animation-delay: 2s;
}

.graphic-circle:nth-child(3) {
    width: 150px;
    height: 150px;
    bottom: -30px;
    left: 30%;
    animation-delay: 4s;
}

.counter-box {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-radius: 20px;
    transition: var(--transition);
    border: 1px solid rgba(99, 102, 241, 0.1);
    transform-style: preserve-3d;
}

.counter-box:hover {
    transform: translateY(-10px) translateZ(10px);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.2);
    border-color: var(--primary-color);
}

.counter-value {
    font-size: 3rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    transform: translateZ(20px);
}

.counter-label {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0;
    font-weight: 600;
}

/* ===== 3D Feature Cards ===== */
.features-section {
    background: var(--bg-light);
    padding: 6rem 0;
}

.feature-card {
    background: white;
    padding: 0;
    border-radius: 25px;
    text-align: center;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    height: 100%;
    border: 1px solid rgba(99, 102, 241, 0.1);
    overflow: hidden;
    position: relative;
    transform-style: preserve-3d;
    transform: translateZ(0);
}

.feature-card:hover {
    transform: translateY(-20px) rotateX(5deg) translateZ(30px);
    box-shadow: 0 30px 70px rgba(99, 102, 241, 0.3);
    border-color: var(--primary-color);
}

.feature-image-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.feature-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover .feature-image {
    transform: scale(1.2) rotate(2deg);
}

.feature-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(99, 102, 241, 0.2) 100%);
    transition: var(--transition);
}

.feature-card:hover .feature-overlay {
    background: linear-gradient(to bottom, transparent 0%, rgba(99, 102, 241, 0.4) 100%);
}

.feature-icon {
    width: 90px;
    height: 90px;
    margin: -45px auto 2rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: white;
    transition: var(--transition);
    position: relative;
    z-index: 2;
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.4);
    transform: translateZ(30px);
}

.feature-card:hover .feature-icon {
    transform: translateZ(40px) scale(1.15) rotateY(15deg);
    box-shadow: 0 20px 50px rgba(99, 102, 241, 0.5);
}

.feature-card h3 {
    padding: 0 2rem;
    margin-top: 0;
    font-size: 1.6rem;
    color: var(--text-dark);
    font-weight: 700;
}

.feature-card p {
    padding: 0 2rem 2.5rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* ===== 3D Technology Section ===== */
.technology-section {
    padding: 6rem 0;
    background: white;
}

.technology-showcase {
    position: relative;
    width: 100%;
    height: 450px;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2);
    margin-bottom: 4rem;
    transform-style: preserve-3d;
    transform: perspective(1000px) rotateX(2deg);
    transition: var(--transition);
}

.technology-showcase:hover {
    transform: perspective(1000px) rotateX(0deg) translateY(-10px);
    box-shadow: 0 40px 100px rgba(99, 102, 241, 0.3);
}

.technology-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.technology-showcase:hover .technology-image {
    transform: scale(1.1);
}

.technology-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.5) 0%, rgba(118, 75, 162, 0.5) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tech-badge {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 1.5rem 3rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    transform: translateZ(50px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.tech-badge i {
    font-size: 1.8rem;
}

.process-timeline {
    position: relative;
    padding: 2rem 0;
}

.process-step {
    display: flex;
    align-items: center;
    margin-bottom: 4rem;
    position: relative;
    gap: 2.5rem;
    transform-style: preserve-3d;
}

.process-step:nth-child(even) {
    flex-direction: row-reverse;
}

.step-image-wrapper {
    width: 220px;
    height: 220px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
    transition: var(--transition);
    transform-style: preserve-3d;
    transform: perspective(800px) rotateY(-10deg);
}

.process-step:hover .step-image-wrapper {
    transform: perspective(800px) rotateY(0deg) translateZ(30px) scale(1.1);
    box-shadow: 0 25px 60px rgba(99, 102, 241, 0.3);
}

.step-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.process-step:hover .step-image {
    transform: scale(1.2);
}

.step-number {
    width: 90px;
    height: 90px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 900;
    color: white;
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.4);
    flex-shrink: 0;
    z-index: 2;
    position: relative;
    transform: translateZ(40px);
    transition: var(--transition);
}

.process-step:hover .step-number {
    transform: translateZ(50px) scale(1.15) rotateY(360deg);
}

.step-number::before {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--gradient-primary);
    opacity: 0.3;
    z-index: -1;
    animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 0.3;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.step-content {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    margin: 0 2rem;
    flex: 1;
    transition: var(--transition);
    transform-style: preserve-3d;
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.step-content:hover {
    transform: translateX(15px) translateZ(20px);
    box-shadow: 0 25px 60px rgba(99, 102, 241, 0.25);
    border-color: var(--primary-color);
}

.process-step:nth-child(even) .step-content:hover {
    transform: translateX(-15px) translateZ(20px);
}

.step-content h3 {
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    font-weight: 800;
}

.step-content p {
    color: var(--text-light);
    margin: 0;
    line-height: 1.8;
    font-size: 1.05rem;
}

.process-connector {
    position: absolute;
    left: 45px;
    width: 5px;
    height: 80px;
    background: var(--gradient-primary);
    opacity: 0.3;
    z-index: 1;
    border-radius: 5px;
}

.process-step:nth-child(even) .process-connector {
    left: auto;
    right: 45px;
}

/* ===== 3D Plan Cards ===== */
.plans-section {
    background: var(--bg-light);
    padding: 6rem 0;
}

.plan-card {
    background: white;
    border-radius: 30px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    height: 100%;
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(99, 102, 241, 0.1);
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    transform-style: preserve-3d;
    transform: translateZ(0);
}

.plan-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0.05;
    transition: var(--transition);
}

.plan-card:hover::before {
    left: 0;
}

.plan-card:hover {
    transform: translateY(-25px) rotateX(5deg) translateZ(40px);
    box-shadow: 0 35px 90px rgba(99, 102, 241, 0.3);
    border-color: var(--primary-color);
}

.plan-card.featured {
    border-color: var(--primary-color);
    transform: scale(1.05) translateZ(20px);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
}

.plan-card.featured:hover {
    transform: scale(1.08) translateY(-25px) rotateX(5deg) translateZ(50px);
}

.plan-card.vip {
    background: var(--gradient-primary);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.plan-card.vip::before {
    background: rgba(255, 255, 255, 0.1);
}

.plan-header {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
}

.plan-header h3 {
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 0.75rem;
    transform: translateZ(20px);
}

.plan-badge {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-top: 0.75rem;
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
    transform: translateZ(15px);
}

.plan-badge.vip-badge {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    backdrop-filter: blur(10px);
}

.plan-price {
    text-align: center;
    margin-bottom: 2.5rem;
}

.price-amount {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary-color);
    transform: translateZ(20px);
}

.plan-card.vip .price-amount {
    color: white;
}

.price-range {
    font-size: 1.1rem;
    color: var(--text-light);
    font-weight: 600;
}

.plan-features {
    list-style: none;
    margin-bottom: 2.5rem;
}

.plan-features li {
    padding: 1rem 0;
    color: var(--text-dark);
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
    font-weight: 500;
    transition: var(--transition);
}

.plan-features li:last-child {
    border-bottom: none;
}

.plan-features li:hover {
    padding-left: 10px;
    color: var(--primary-color);
}

.plan-features li i {
    color: var(--secondary-color);
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

.btn-plan {
    width: 100%;
    padding: 1rem;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 15px;
    background: var(--gradient-primary);
    border: none;
    transition: var(--transition);
    color: white;
    transform: translateZ(20px);
}

.btn-plan:hover {
    transform: translateY(-5px) translateZ(30px) scale(1.02);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.4);
}

/* ===== Live Trading Charts Section ===== */
.live-charts-section {
    padding: 6rem 0;
    background: var(--bg-light);
}

.trading-chart-card {
    background: white;
    border-radius: 25px;
    padding: 2rem;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    border: 1px solid rgba(99, 102, 241, 0.1);
    transform-style: preserve-3d;
    height: 100%;
}

.trading-chart-card:hover {
    transform: translateY(-10px) translateZ(20px);
    box-shadow: 0 25px 70px rgba(99, 102, 241, 0.2);
    border-color: var(--primary-color);
}

.trading-chart-card.large {
    padding: 2.5rem;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid rgba(99, 102, 241, 0.1);
}

.chart-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.chart-title i {
    font-size: 2.5rem;
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
    padding: 1rem;
    border-radius: 15px;
}

.chart-title h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
}

.chart-price {
    margin: 0.25rem 0 0 0;
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--text-dark);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.chart-subtitle {
    margin: 0.25rem 0 0 0;
    font-size: 0.95rem;
    color: var(--text-light);
    font-weight: 500;
}

.chart-change {
    font-size: 1.2rem;
    font-weight: 800;
    padding: 0.5rem 1.2rem;
    border-radius: 25px;
    display: inline-block;
}

.chart-change.positive {
    background: rgba(16, 185, 129, 0.15);
    color: var(--secondary-color);
}

.chart-change.negative {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.chart-controls {
    display: flex;
    gap: 0.5rem;
}

.chart-btn {
    padding: 0.5rem 1rem;
    border: 2px solid rgba(99, 102, 241, 0.2);
    background: transparent;
    color: var(--text-dark);
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.chart-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.chart-btn.active {
    background: var(--gradient-primary);
    color: white;
    border-color: var(--primary-color);
}

.chart-wrapper {
    height: 300px;
    position: relative;
    margin-bottom: 1.5rem;
}

.chart-wrapper.large {
    height: 400px;
}

.chart-footer {
    display: flex;
    justify-content: space-around;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(99, 102, 241, 0.1);
}

.chart-stat {
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.stat-value {
    display: block;
    font-size: 1.1rem;
    color: var(--text-dark);
    font-weight: 800;
}

/* ===== Chart Section ===== */
.chart-section {
    padding: 6rem 0;
    background: white;
}

.chart-container {
    background: white;
    padding: 3rem;
    border-radius: 25px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    height: 450px;
    border: 1px solid rgba(99, 102, 241, 0.1);
}

/* ===== Testimonials Section ===== */
.testimonials-section {
    background: var(--bg-light);
    padding: 6rem 0;
}

.testimonial-card {
    background: white;
    padding: 4rem;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    transform-style: preserve-3d;
    border: 1px solid rgba(99, 102, 241, 0.1);
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-10px) translateZ(20px);
    box-shadow: 0 30px 80px rgba(99, 102, 241, 0.2);
}

.testimonial-rating {
    color: #fbbf24;
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.testimonial-text {
    font-size: 1.3rem;
    color: var(--text-dark);
    line-height: 1.9;
    margin-bottom: 2.5rem;
    font-style: italic;
    font-weight: 500;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.author-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.4rem;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
    transform: translateZ(20px);
}

.author-info h4 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--text-dark);
    font-weight: 700;
}

.author-info p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.95rem;
}

.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
    transition: var(--transition);
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.4);
}

.carousel-control-prev {
    left: -30px;
}

.carousel-control-next {
    right: -30px;
}

@media (max-width: 992px) {
    .carousel-control-prev {
        left: 10px;
    }
    
    .carousel-control-next {
        right: 10px;
    }
}

@media (max-width: 768px) {
    .carousel-control-prev,
    .carousel-control-next {
        display: none !important;
    }
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-size: 60%;
}

/* ===== FAQ Section ===== */
.faq-section {
    padding: 6rem 0;
    background: white;
}

.accordion-item {
    border: none;
    margin-bottom: 1.5rem;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    transform-style: preserve-3d;
}

.accordion-item:hover {
    transform: translateY(-5px) translateZ(10px);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.15);
}

.accordion-button {
    background: white;
    color: var(--text-dark);
    font-weight: 700;
    padding: 1.8rem;
    border: none;
    box-shadow: none;
    font-size: 1.1rem;
    transition: var(--transition);
}

.accordion-button:not(.collapsed) {
    background: var(--gradient-primary);
    color: white;
    transform: translateZ(10px);
}

.accordion-button:not(.collapsed) i {
    transform: rotate(180deg);
}

.accordion-button i {
    transition: var(--transition);
    margin-right: 1rem;
    font-size: 1.2rem;
}

.accordion-body {
    padding: 2rem;
    color: var(--text-light);
    line-height: 1.9;
    font-size: 1.05rem;
}

/* ===== CTA Section ===== */
.cta-section {
    padding: 6rem 0;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.cta-banner {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    padding: 5rem 3rem;
    border-radius: 30px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transform-style: preserve-3d;
    transform: translateZ(20px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
}

.cta-title {
    font-size: 3rem;
    font-weight: 900;
    color: white;
    margin-bottom: 1.5rem;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.cta-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 3rem;
    line-height: 1.8;
}

.btn-cta {
    background: white;
    color: var(--primary-color);
    padding: 1.2rem 4rem;
    font-size: 1.3rem;
    font-weight: 800;
    border-radius: 50px;
    border: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    transform: translateZ(30px);
}

.btn-cta:hover {
    transform: translateY(-5px) translateZ(40px) scale(1.05);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.btn-cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-cta:hover::before {
    width: 400px;
    height: 400px;
}

/* ===== Footer ===== */
.footer-section {
    background: var(--gradient-dark);
    color: white;
    padding: 5rem 0 2rem;
}

.footer-logo-wrapper {
    margin-bottom: 1.5rem;
}

.footer-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: var(--transition);
}

.footer-logo:hover {
    transform: scale(1.05);
    filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(99, 102, 241, 0.5));
}

@media (max-width: 768px) {
    .footer-logo {
        height: 50px;
    }
}

.footer-title {
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-text {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
    line-height: 1.9;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transform-style: preserve-3d;
}

.social-link:hover {
    background: var(--primary-color);
    transform: translateY(-5px) translateZ(20px) rotateY(360deg);
    color: white;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

.footer-heading {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: white;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.footer-links a:hover {
    color: white;
    padding-left: 10px;
}

.footer-bottom {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

/* ===== Ripple Effect ===== */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.ripple:active::after {
    width: 400px;
    height: 400px;
}

/* ===== Image Optimization ===== */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.5s;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* ===== Responsive Design ===== */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .hero-image-wrapper {
        transform: perspective(1200px) rotateY(0deg) rotateX(0deg);
        margin-top: 3rem;
    }
    
    .hero-illustration {
        height: 450px;
    }
    
    .about-image {
        height: 400px;
        margin-bottom: 3rem;
    }
    
    .process-step {
        flex-direction: column !important;
        text-align: center;
        gap: 2rem;
    }
    
    .process-step .step-content {
        margin: 0;
    }
    
    .step-image-wrapper {
        margin: 0 auto;
        transform: perspective(800px) rotateY(0deg);
    }
    
    .process-connector {
        display: none;
    }
    
    .plan-card.featured {
        transform: scale(1);
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        display: none;
    }
    
    .technology-showcase {
        height: 350px;
        transform: perspective(1000px) rotateX(0deg);
    }
    
    .feature-image-wrapper {
        height: 200px;
    }
    
    .cta-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        max-width: 100vw;
        width: 100%;
    }
    
    * {
        max-width: 100%;
    }
    
    .container,
    .container-fluid {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .cta-subtitle {
        font-size: 1.1rem;
    }
    
    .navbar-nav {
        text-align: center;
        margin-top: 0;
        flex-direction: column !important;
        width: 100%;
        padding-top: 0;
    }
    
    .navbar-nav .nav-item {
        width: 100%;
        margin: 0;
    }
    
    .navbar-nav .nav-link {
        width: 100%;
        text-align: center;
        padding: 0.75rem 1rem !important;
        margin: 0;
    }
    
    .navbar-buttons {
        width: 100%;
        margin-top: 1rem;
        padding: 0;
        order: 4;
    }
    
    .navbar-buttons .btn {
        width: 100%;
        margin: 0.25rem 0;
    }
    
    /* Fix for navbar height when collapsed */
    .navbar {
        min-height: 60px;
    }
    
    .navbar .container {
        min-height: 60px;
    }
    
    .navbar-buttons {
        width: 100%;
        margin-top: 1rem;
        padding: 0 1rem;
    }
    
    .navbar-buttons .btn {
        width: 100%;
        margin: 0;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        display: flex;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
        margin: 0 !important;
    }
    
    .hero-illustration {
        height: 350px;
    }
    
    .about-image {
        height: 300px;
    }
    
    .feature-image-wrapper {
        height: 180px;
    }
    
    .step-image-wrapper {
        width: 180px;
        height: 180px;
    }
    
    .technology-showcase {
        height: 300px;
    }
    
    .floating-stats-card {
        bottom: 15px;
        right: 15px;
        padding: 1rem 1.5rem;
        max-width: calc(100% - 30px);
    }
    
    .image-badge {
        top: 15px;
        right: 15px;
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
        max-width: calc(100% - 30px);
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .stat-value {
        font-size: 2rem;
    }
    
    .hero-image-wrapper,
    .about-image,
    .technology-showcase,
    .trading-chart-card,
    .chart-container {
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .crypto-card-animation {
        display: none;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        display: none !important;
    }
}

@media (max-width: 576px) {
    html, body {
        overflow-x: hidden;
        max-width: 100vw;
        width: 100%;
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100%;
    }
    
    .hero-title {
        font-size: 2rem;
        word-wrap: break-word;
    }
    
    .hero-image-wrapper,
    .about-image,
    .technology-showcase {
        border-radius: 20px;
        max-width: 100%;
        overflow: hidden;
    }
    
    .row {
        margin-left: -15px;
        margin-right: -15px;
    }
    
    [class*="col-"] {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .step-image-wrapper {
        width: 150px;
        height: 150px;
    }
    
    .feature-image-wrapper {
        height: 150px;
    }
    
    .plan-card {
        padding: 2rem;
    }
    
    .testimonial-card {
        padding: 2.5rem;
    }
    
    .cta-banner {
        padding: 3rem 2rem;
    }
}

/* Scroll animations removed for better performance */

.hero-main-image,
.about-main-image,
.feature-image,
.technology-image,
.step-image {
    object-fit: cover;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Ensure trading images display properly */
.feature-image,
.step-image,
.hero-main-image,
.about-main-image,
.technology-image {
    filter: brightness(1.05) contrast(1.05);
    transition: filter 0.3s ease;
}

.feature-card:hover .feature-image,
.step-image-wrapper:hover .step-image,
.hero-image-wrapper:hover .hero-main-image,
.image-container-modern:hover .about-main-image,
.technology-showcase:hover .technology-image {
    filter: brightness(1.1) contrast(1.1);
}

/* ===== Modern Shine Effect ===== */
.feature-card::after,
.plan-card::after,
.stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: var(--transition);
}

.feature-card:hover::after,
.plan-card:hover::after,
.stat-card:hover::after {
    left: 100%;
}

/* ===== Loading Placeholder ===== */
img[loading="lazy"] {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

img[loading="lazy"].loaded {
    background: none;
    animation: none;
}

/* ===== Prevent Horizontal Scrolling ===== */
section {
    overflow-x: hidden;
    position: relative;
    max-width: 100%;
    width: 100%;
}

@media (max-width: 768px) {
    html, body {
        overflow-x: hidden !important;
        position: relative;
    }
    
    body {
        width: 100%;
        max-width: 100vw;
    }
    
    .container,
    .container-fluid {
        width: 100%;
        max-width: 100%;
        padding-left: 15px;
        padding-right: 15px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .row {
        margin-left: -15px;
        margin-right: -15px;
        max-width: calc(100% + 30px);
    }
    
    [class*="col-"] {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100%;
        width: 100%;
    }
    
    /* Hide elements that might cause overflow */
    .crypto-card-animation,
    .floating-crypto-icons {
        display: none !important;
    }
    
    /* Ensure all cards are contained */
    .card,
    .stat-card,
    .feature-card,
    .plan-card,
    .trading-chart-card {
        max-width: 100%;
        overflow: hidden;
    }
    
    /* Fix any transform that might push elements out */
    .hero-image-wrapper,
    .image-container-modern,
    .technology-showcase {
        max-width: 100%;
        transform: none !important;
    }
}
