/* About Hero Section */
.about-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
    padding: 100px 0 150px;
}

.about-hero .badge {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.about-hero h1 {
    line-height: 1.2;
    margin-bottom: 25px;
}

.about-hero .lead {
    font-size: 1.25rem;
    max-width: 90%;
}

.hero-image-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: visible;
}

.hero-image-wrapper img {
    border: 8px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.hero-image-wrapper:hover img {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.floating-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    max-width: 200px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
}

.avatar-group {
    display: flex;
    margin-right: -12px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: -12px;
    transition: transform 0.3s ease;
}

.avatar:hover {
    transform: translateY(-5px);
    z-index: 1;
}

/* About Content Section */
.about-content {
    background: var(--secondary-color);
    position: relative;
    z-index: 1;
}

.about-main-image {
    transition: transform 0.5s ease;
}

.about-main-image:hover {
    transform: translateY(-5px);
}

.about-badge {
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.about-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2) !important;
}

.section-header .title-divider {
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    margin: 15px 0;
    position: relative;
    overflow: hidden;
}

.section-header .title-divider::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 30px;
    background: #fff;
    animation: divider-animation 2s infinite ease-in-out;
}

.icon-box {
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.icon-box:hover {
    transform: rotate(10deg);
}

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

@keyframes divider-animation {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(300%); }
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .about-hero {
        padding: 80px 0 120px;
    }
    
    .about-hero h1 {
        font-size: 2.5rem;
    }
    
    .floating-badge {
        right: 10px;
        bottom: 10px;
    }
}

@media (max-width: 767.98px) {
    .about-hero {
        padding: 60px 0 100px;
        text-align: center;
    }
    
    .about-hero .lead {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-image-wrapper {
        margin-top: 40px;
    }
    
    .about-badge {
        margin-bottom: 20px;
    }
}

/* Features Section */
.features-section {
    position: relative;
    overflow: hidden;
    padding: 100px 0;
    background: var(--secondary-color);
    color: var(--white-color);
}

.feature-card {
    background: var(--secondary-color);
    border-radius: 12px;
    padding: 40px 30px;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    border-color: var(--accent-color);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: var(--accent-color);
    font-size: 28px;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    background: var(--accent-color);
    color: #fff;
    transform: rotateY(180deg);
}

.feature-card h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #fff;
}

.feature-card p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.7;
}

.feature-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
    line-height: 1.7;
}

.feature-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.feature-link i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.feature-link:hover {
    color: #fff;
}

.feature-link:hover i {
    transform: translateX(5px);
}

.feature-card .btn {
    display: inline-flex;
    align-items: center;
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.feature-card .btn i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.feature-card:hover .btn i {
    transform: translateX(5px);
}

.feature-cta {
    position: relative;
    overflow: hidden;
    z-index: 1;
    background: linear-gradient(135deg, #3a36e0 0%, #4a6cf7 100%);
    box-shadow: 0 10px 30px rgba(74, 108, 247, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-cta-shape {
    position: absolute;
    right: 0;
    top: 0;
    width: 300px;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200" preserveAspectRatio="none"><path d="M0,0 L200,0 L200,200 C100,200 0,100 0,0 Z" fill="rgba(255,255,255,0.05)"/></svg>') no-repeat;
    background-size: cover;
    z-index: -1;
    opacity: 0.5;
}

.feature-cta h3 {
    color: #fff;
    font-weight: 600;
}

.feature-cta p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
}

/* Our Values Section */
.our-values {
    padding: 80px 0;
    position: relative;
}

.value-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(99, 102, 241, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-color: var(--accent-color);
}

.value-card:hover::before {
    opacity: 1;
}

.value-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

.value-card:hover .value-icon {
    background: var(--primary-color);
    color: #fff;
    transform: rotateY(180deg);
}

/* Trading Tools Section */
.trading-tools {
    position: relative;
    overflow: hidden;
}

.trading-tools::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200" preserveAspectRatio="none"><path d="M0,0 L200,0 L200,200 C100,200 0,100 0,0 Z" fill="rgba(255,255,255,0.02)"/></svg>') no-repeat;
    background-size: cover;
    opacity: 0.5;
    z-index: -1;
}

.tool-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.tool-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-color: var(--accent-color);
}

.tool-card:hover::after {
    transform: scaleX(1);
}

.tool-card .icon-box {
    transition: all 0.3s ease;
}

.tool-card:hover .icon-box {
    transform: scale(1.1) rotate(5deg);
}

/* Stats Section */
.stats-section {
    padding: 100px 0;
    position: relative;
    background: transparent;
    color: var(--white-color);
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    opacity: 0.05;
    z-index: 1;
}

.stats-section .container {
    position: relative;
    z-index: 2;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 36px;
    margin-bottom: 15px;
    color: var(--white-color);
    font-weight: 700;
}

.section-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.stat-item {
    background: var(--secondary-color);
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 30px;
}

.stat-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    border-color: var(--accent-color);
}

.stat-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: var(--white-color);
    font-size: 32px;
    transition: all 0.3s ease;
}

.stat-item:hover .stat-icon {
    background: var(--accent-color);
    color: #fff;
    transform: scale(1.1);
}

.stat-number {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--accent-color);
    line-height: 1;
}

.stat-label {
    font-size: 18px;
    color: var(--white-color);
    margin: 0;
}

/* Trust Badges */
.trust-badges {
    margin-top: 80px;
    text-align: center;
}

.trust-badges p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.badges-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-top: 30px;
}

.badge-item {
    opacity: 0.7;
    transition: all 0.3s ease;
}

.badge-item:hover {
    opacity: 1;
    transform: translateY(-5px);
}

.badge-item img {
    max-height: 50px;
    width: auto;
    filter: grayscale(100%) brightness(2);
    transition: all 0.3s ease;
}

.badge-item:hover img {
    filter: grayscale(0) brightness(1);
}

/* Responsive */
@media (max-width: 991px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .section-header h2 {
        font-size: 30px;
    }
    
    .stat-item {
        padding: 30px 20px;
    }
    
    .stat-number {
        font-size: 36px;
    }
    
    .badges-grid {
        gap: 25px;
    }
    
    .badge-item img {
        max-height: 40px;
    }
}

@media (max-width: 575px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .section-header p {
        font-size: 16px;
    }
    
    .badges-grid {
        gap: 20px;
    }
    
    .badge-item img {
        max-height: 35px;
    }
}

/* Dark theme overrides */
.section-title h2,
.section-title h3 {
    color: #fff;
}

.section-title h3:before {
    background: var(--accent-color);
}

.btn-light {
    background: #fff;
    color: var(--bg-dark);
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-light:hover {
    background: var(--accent-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(74, 108, 247, 0.3);
}

/* Responsive Styles */
@media (max-width: 1199px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-card {
        padding: 30px 20px;
    }
    
    .feature-cta {
        text-align: center;
    }
    
    .feature-cta .btn {
        margin-top: 20px;
    }
    
    .trust-badges img {
        margin: 10px !important;
    }
}

/* Animation for counters */
@keyframes counterUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.counter {
    display: inline-block;
    animation: counterUp 1s ease forwards;
}
