/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    padding-top: 80px;
    overflow-x: hidden;
}

:root {
    --primary-color: #2563eb;
    --secondary-color: #7c3aed;
    --accent-color: #f97316;
    --dark-bg: #1e1e2f;
    --darker-bg: #121223;
    --text-light: #ffffff;
    --gray-500: #64748b;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Navbar Container */
.navbar-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: linear-gradient(135deg, var(--darker-bg) 0%, var(--dark-bg) 100%);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    height: 80px;
}

.logo {
    font-size: 1.75rem;
    font-weight: bold;
    background: linear-gradient(135deg, #4cc9f0, var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    letter-spacing: -0.5px;
    z-index: 1001;
}

/* Desktop Navigation */
#desktop-nav {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: flex-end;
}

#desktop-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

#desktop-nav ul li {
    margin: 0;
}

#desktop-nav ul li a {
    text-decoration: none;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s;
    opacity: 0.9;
}

#desktop-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
    transition: var(--transition);
}

#desktop-nav ul li a:hover {
    color: var(--accent-color);
    opacity: 1;
}

#desktop-nav ul li a:hover::after {
    width: 100%;
}

/* Align Auth Buttons */
.desktop-auth {
    display: flex;
    align-items: center;
    margin-left: 2rem;
    gap: 1rem;
}

/* Auth Buttons */
.auth-buttons .btn {
    padding: 0.75rem 1.5rem;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}

.login-btn {
    background-color: transparent;
    border-color: var(--gray-500);
}

.login-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
}

.signup-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.signup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(37, 99, 235, 0.2);
}

/* Hamburger Menu (Moved to Top Right) */
.hamburger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(124, 58, 237, 0.2));
    border: 1px solid rgba(76, 201, 240, 0.3);
    border-radius: 10px;
    transition: var(--transition);
    z-index: 1001;
}

.hamburger-menu:hover {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.4), rgba(124, 58, 237, 0.4));
    border-color: rgba(76, 201, 240, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(76, 201, 240, 0.3);
}

.hamburger-menu span {
    background: linear-gradient(90deg, #4cc9f0, var(--primary-color));
    height: 3px;
    width: 28px;
    border-radius: 3px;
    transition: var(--transition);
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Navigation (Slides from Right) */
#mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100%;
    background: linear-gradient(180deg, var(--darker-bg) 0%, #0a0a15 100%);
    padding: 2rem;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1002;
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
    border-left: 1px solid rgba(76, 201, 240, 0.2);
}

#mobile-nav.active {
    right: 0;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(76, 201, 240, 0.2);
}

#mobile-nav .logo {
    font-size: 1.5rem;
}

#mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

#mobile-nav ul li {
    margin-bottom: 1rem;
}

#mobile-nav ul li a {
    display: block;
    text-decoration: none;
    color: #ffffff;
    font-size: 1.1rem;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    transition: var(--transition);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(124, 58, 237, 0.1));
    border-left: 3px solid transparent;
}

#mobile-nav ul li a:hover,
#mobile-nav ul li a.active {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(124, 58, 237, 0.2));
    border-left-color: #4cc9f0;
    padding-left: 2rem;
    color: #4cc9f0;
    box-shadow: 0 4px 15px rgba(76, 201, 240, 0.2);
}

/* Auth Buttons in Mobile Menu */
#mobile-nav .auth-buttons {
    margin-top: 20px;
    flex-direction: column;
    display: flex;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(76, 201, 240, 0.2);
}

#mobile-nav .auth-buttons .btn {
    margin: 0;
    text-align: center;
    width: 100%;
    padding: 1rem;
}

/* Close Button (Redesigned) */
.close-btn {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(124, 58, 237, 0.2));
    border: 1px solid rgba(76, 201, 240, 0.3);
    color: #4cc9f0;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.close-btn:hover {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.4), rgba(124, 58, 237, 0.4));
    border-color: rgba(76, 201, 240, 0.6);
    transform: rotate(90deg);
    box-shadow: 0 4px 15px rgba(76, 201, 240, 0.3);
}

.close-btn svg {
    width: 24px;
    height: 24px;
}

/* Overlay */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(3px);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.overlay.active {
    display: block;
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
    
    .navbar-container {
        padding: 15px 20px;
        height: 70px;
    }
    
    #desktop-nav {
        display: none;
    }

    .hamburger-menu {
        display: flex;
    }

    .desktop-auth {
        display: none;
    }
    
    .hero-section {
        height: calc(100vh - 70px);
    }
}

@media (max-width: 480px) {
    #mobile-nav {
        width: 100%;
    }
}

/* Hero Section */
.hero-section {
    background-image: url('images/pexels-anntarazevich-14751274.jpg');  
    background-size: cover;
    background-position: center;
    color: #fff;
    height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}

.hero-content h1 {
    font-size: 3em;
    margin-bottom: 10px;
}

.hero-content p {
    font-size: 1.2em;
    margin-bottom: 20px;
}

.cta-btn {
    padding: 15px 30px;
    font-size: 1em;
    color: #ffffff;
    background-color: #ff6347;
    border: none;
    border-radius: 5px;
    text-decoration: none;
}

.cta-btn:hover {
    background-color: #ff4500;
}


/* Investment Categories Section */
#investment-categories {
    padding: 60px 20px;
    text-align: center;
    background-color: #f9f9f9;
}

#investment-categories h2 {
    font-size: 2.5em;
    color: #333;
    margin-bottom: 40px;
}

.categories-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.category-card {
    width: 300px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
    background-color: #fff;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.category-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.3s;
}

.category-card:hover img {
    transform: scale(1.1);
}

.category-info {
    padding: 20px;
}

.category-info h3 {
    font-size: 1.8em;
    color: #444;
    margin-bottom: 10px;
}

.category-info p {
    font-size: 1em;
    color: #777;
    margin-bottom: 15px;
}

.category-info .btn {
    padding: 8px 16px;
    border: none;
    background-color: #4CAF50;
    color: white;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s;
}

.category-info .btn:hover {
    background-color: #45a049;
}

/* mobile layout for Navbar Hero section and Categories section */

/* Responsive Design for Mobile Screens */
@media (max-width: 768px) {
    /* Navbar */
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .navbar nav ul {
        flex-direction: column;
        align-items: flex-start;
    }

    .navbar nav ul li {
        margin: 5px 0;
    }

    .auth-buttons {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
        align-items: center;
    }

    /* Hero Section */
    .hero-content h1 {
        font-size: 2em;
    }

    .hero-content p {
        font-size: 1em;
        padding: 0 20px;
    }

    .cta-btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }

    /* Investment Categories Section */
    .categories-container {
        flex-direction: column;
        align-items: center;
    }

    .category-card {
        width: 90%;
        margin-bottom: 20px;
    }
}



/* Why Choose Us Section */
#why-choose-us {
    padding: 60px 20px;
    text-align: center;
    background-color: #fff;
}

#why-choose-us h2 {
    font-size: 2.5em;
    color: #333;
    margin-bottom: 10px;
}

#why-choose-us p {
    font-size: 1.2em;
    color: #777;
    margin-bottom: 40px;
}

.benefits-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.benefit-card {
    width: 280px;
    padding: 20px;
    background-color: #f5f5f5;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.benefit-card .icon {
    font-size: 2em;
    color: #4CAF50;
    margin-bottom: 10px;
}

.benefit-card h3 {
    font-size: 1.5em;
    color: #333;
    margin-bottom: 10px;
}

.benefit-card p {
    font-size: 1em;
    color: #666;
}

/* Investment Options Section Styling */
.investment-options-section {
    background: #f0f4f8; /* Light background color */
    padding: 60px 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 40px auto;
    border-radius: 15px;
    position: relative;
}

/* Container for Centered Content */
.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Title and Subtext */
.investment-options-section .section-title {
    font-size: 2.6rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: fadeInUp 1s ease-out;
}

.investment-options-section .section-subtext {
    font-size: 1.2rem;
    color: #777;
    margin-bottom: 40px;
    line-height: 1.6;
    animation: fadeInUp 1.2s ease-out;
}

/* Options Container */
.options-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

/* Option Styling */
.option {
    background: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    text-align: center;
    opacity: 0;
    animation: fadeIn 1.5s forwards;
}

.option:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.option h3 {
    font-size: 1.7rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    text-transform: capitalize;
}

.option p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
}

/* Icon Styling */
.icon-box {
    margin-bottom: 20px;
    display: inline-block;
    padding: 15px;
    background: #007bff;
    border-radius: 50%;
    width: 80px;
    height: 80px;
}

.icon-box img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: invert(100%);
}

/* Fade In Animation */
@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .investment-options-section {
        padding: 40px 20px;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .section-subtext {
        font-size: 1rem;
    }

    .options-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .option {
        width: 100%;
    }
}


/* Mobile Responsive Styles */
@media (max-width: 768px) {

    /* Why Choose Us Section */
    #why-choose-us {
        padding: 40px 15px;
    }

    #why-choose-us h2 {
        font-size: 1.8em;
    }

    #why-choose-us p {
        font-size: 1em;
    }

    .benefits-container {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .benefit-card {
        width: 100%;
        padding: 15px;
    }
}


/* Footer Styling */
.footer {
    background: linear-gradient(180deg, var(--darker-bg) 0%, #0a0a15 100%);
    color: #ffffff;
    padding: 0;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(76, 201, 240, 0.5), transparent);
}

.footer-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 40px 30px;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 50px;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.company-info {
    padding-right: 20px;
}

.footer-logo {
    font-size: 1.75rem;
    font-weight: bold;
    background: linear-gradient(135deg, #4cc9f0, var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    font-size: 0.95rem;
    margin-bottom: 30px;
}

.footer-column h3 {
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: 600;
    position: relative;
    padding-bottom: 12px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #4cc9f0, var(--primary-color));
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    position: relative;
}

.footer-column ul li a::before {
    content: '';
    position: absolute;
    left: -15px;
    width: 0;
    height: 2px;
    background: #4cc9f0;
    transition: var(--transition);
}

.footer-column ul li a:hover {
    color: #4cc9f0;
    padding-left: 15px;
}

.footer-column ul li a:hover::before {
    width: 8px;
}

/* Social Media Icons */
.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.social-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(124, 58, 237, 0.2));
    border: 1px solid rgba(76, 201, 240, 0.3);
    border-radius: 10px;
    color: #4cc9f0;
    transition: var(--transition);
    text-decoration: none;
}

.social-link:hover {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.4), rgba(124, 58, 237, 0.4));
    border-color: rgba(76, 201, 240, 0.6);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(76, 201, 240, 0.3);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

/* Footer Bottom */
.footer-bottom {
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid rgba(76, 201, 240, 0.2);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin: 8px 0;
}

.footer-disclaimer {
    font-size: 0.85rem !important;
    color: rgba(255, 255, 255, 0.4) !important;
    font-style: italic;
}

/* Mobile Responsive Footer */
@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .company-info {
        grid-column: 1 / -1;
        padding-right: 0;
    }
}

@media (max-width: 768px) {
    .footer-wrapper {
        padding: 40px 20px 20px;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 35px;
        text-align: center;
    }
    
    .footer-column h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-column ul li a {
        justify-content: center;
    }
    
    .footer-column ul li a::before {
        display: none;
    }
    
    .footer-column ul li a:hover {
        padding-left: 0;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .footer-bottom p {
        font-size: 0.85rem;
    }
    
    .footer-disclaimer {
        font-size: 0.8rem !important;
    }
}


/* copy trade section styles */

.copy-trading-section {
    background: linear-gradient(to bottom, #0f2027, #203a43, #2c5364); /* Eye-catching gradient */
    color: #fff;
    padding: 50px 20px;
    text-align: center;
    border-radius: 10px;
    margin: 20px;
    margin-bottom: 70px;
    padding-bottom: 50px;
}

.copy-trading-section .section-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.copy-trading-section .section-description {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.video-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.video-item {
    width: 30%; /* Adjust width as needed */
    min-width: 250px;
    background: #1a1a1a;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.video-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.video-wrapper {
    position: relative;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    pointer-events: none; /* Prevent interaction */
}

.video-wrapper video {
    width: 100%;
    pointer-events: none; /* Prevent clicks and controls */
}

.video-item .video-text {
    margin-top: 10px;
    font-size: 1rem;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .copy-trading-section .section-title {
        font-size: 1.5rem;
    }

    .copy-trading-section .section-description {
        font-size: 1rem;
    }

    .video-item {
        width: 100%;
    }

}



/* Section Styling */
.start-trading-section {
    background: linear-gradient(to bottom, #f0f4f8, #e9eef5);
    color: #333;
    padding: 50px 20px;
    text-align: center;
    border-radius: 12px;
    margin: 30px 0;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.start-trading-section .section-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 30px;
    color: #2a2a2a;
}

/* Steps Container */
.steps-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
}

/* Step Styling */
.step {
    background: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.step h3 {
    font-size: 1.2rem;
    font-weight: bold;
    margin-top: 15px;
    color: #444;
}

.step p {
    font-size: 1rem;
    color: #666;
    margin-top: 10px;
}

/* Video Styling */
.video-box {
    width: 100%;
    height: 150px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 15px;
    pointer-events: none; /* Disable interactions */
}

.video-box video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none; /* Ensure non-controllable */
}

/* Responsive Design */
@media (max-width: 1200px) {
    .steps-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .start-trading-section .section-title {
        font-size: 2rem;
    }

    .steps-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .steps-container {
        grid-template-columns: 1fr;
    }
}

/* Trusted by Section */
.trusted-by-section {
    background: linear-gradient(to bottom, #f9fbfd, #e9eef5);
    padding: 60px 20px;
    text-align: center;
    border-radius: 12px;
    margin: 30px auto; /* Centers the section and adds vertical margin */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    width: 95%; /* Set to 95% to leave small margins on left and right */
    max-width: 1200px; /* Ensures it doesn't stretch too wide */
    animation: fadeInUp 1s ease-in-out;
}

/* Section Title and Subtext */
.trusted-by-section .section-title {
    font-size: 2.8rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: #2a2a2a;
}

.trusted-by-section .section-subtext {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 40px;
}

/* Metrics Container */
.metrics-container {
    display: flex;
    justify-content: space-around;
    gap: 30px;
    margin-bottom: 50px;
    animation: zoomIn 0.5s ease-in-out;
}

.metric {
    text-align: center;
}

.metric h3 {
    font-size: 2.5rem;
    color: #2a2a2a;
    font-weight: bold;
    margin-bottom: 10px;
    animation: countFade 1s ease-in;
}

.metric p {
    font-size: 1.1rem;
    color: #555;
}

/* Logo Grid */
.logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    justify-content: center;
    align-items: center;
}

.logo-grid img {
    width: 100px;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.3s ease, transform 0.3s ease;
    animation: slideIn 0.7s ease-in-out;
}

.logo-grid img:hover {
    filter: grayscale(0%);
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .metrics-container {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .trusted-by-section .section-title {
        font-size: 2.2rem;
    }

    .trusted-by-section .section-subtext {
        font-size: 1rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes countFade {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateX(-20px);
    }
    to {
        transform: translateX(0);
    }
}

 /* Testimonial Section */
.testimonial-section {
    background-image: url('images/pexels-frans-van-heerden-201846-1624695.jpg'); /* Replace with your background image */
    background-size: cover;
    background-position: center;
    padding: 60px 20px;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 40px auto;
    max-width: 1200px;
    color: #fff;
}

/* Section Title */
.testimonial-section .section-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #fff;
    background: rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
}

.testimonial-section .section-subtext {
    font-size: 1.5rem;
    color: #eee;
    margin-bottom: 40px;
    background: rgba(0, 0, 0, 0.1);
}

/* Testimonials Container */
.testimonials-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

/* Individual Testimonial */
.testimonial {
    background: rgba(0, 0, 0, 0.6);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    width: 30%;
    text-align: left;
    transition: transform 0.3s ease;
}

.testimonial:hover {
    transform: translateY(-10px);
}

/* Testimonial Text */
.testimonial .testimonial-text p {
    font-size: 1rem;
    color: #fff;
    margin-bottom: 15px;
    line-height: 1.5;
}

/* Client Info */
.client-info {
    margin-bottom: 15px;
}

.client-info .client-name {
    font-weight: bold;
    font-size: 1.1rem;
}

.client-info .client-location {
    font-size: 0.9rem;
    color: #ccc;
}

/* Progress Bar */
.progress-bar-container {
    margin-top: 10px;
}

.progress-label {
    font-size: 0.9rem;
    color: #fff;
    margin-bottom: 5px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #ddd;
    border-radius: 5px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background-color: #4CAF50;
    width: 0%;
    border-radius: 5px;
    transition: width 2s ease-in-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .testimonials-container {
        flex-direction: column;
        align-items: center;
    }

    .testimonial {
        width: 90%;
        margin-bottom: 30px;
    }

    .testimonial-section .section-title {
        font-size: 2rem;
    }

    .testimonial-section .section-subtext {
        font-size: 1rem;
    }
}



/* Market Dashboard Styles */
:root {
    --primary-color: #4361ee;
    --primary-hover: #3a56d4;
    --positive-color: #4cc9f0;
    --negative-color: #f72585;
    --text-primary: #2b2d42;
    --text-secondary: #8d99ae;
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --border-color: #e9ecef;
    --skeleton-color: #f1f3f5;
    --tab-active: rgba(67, 97, 238, 0.1);
}

.market-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 30px;
    background: var(--bg-color);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    background: linear-gradient(90deg, #4361ee, #3a0ca3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.market-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.refresh-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.refresh-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
}

.refresh-btn:hover {
    color: var(--primary-color);
    background: rgba(67, 97, 238, 0.1);
    transform: rotate(180deg);
}

.timeframe-selector select {
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-primary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.timeframe-selector select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(67, 97, 238, 0.2);
}

.market-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 5px;
    overflow-x: auto;
    scrollbar-width: none;
}

.market-tabs::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.tab-btn .tab-icon {
    width: 18px;
    height: 18px;
    opacity: 0.7;
}

.tab-btn:hover {
    color: var(--primary-color);
    background: var(--tab-active);
}

.tab-btn:hover .tab-icon {
    opacity: 1;
}

.tab-btn.active {
    color: var(--primary-color);
    background: var(--tab-active);
    font-weight: 600;
}

.tab-btn.active .tab-icon {
    opacity: 1;
}

.market-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.search-box {
    position: relative;
    width: 300px;
}

.search-box input {
    width: 100%;
    padding: 10px 15px 10px 35px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(67, 97, 238, 0.2);
}

.search-box svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    width: 16px;
    height: 16px;
}

.view-toggle {
    display: flex;
    gap: 5px;
    background: var(--card-bg);
    border-radius: 8px;
    padding: 4px;
    border: 1px solid var(--border-color);
}

.view-option {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.view-option svg {
    width: 16px;
    height: 16px;
}

.view-option:hover {
    color: var(--primary-color);
}

.view-option.active {
    background: var(--primary-color);
    color: white;
}

.market-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.market-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.market-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: rgba(67, 97, 238, 0.3);
}

.asset-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.asset-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    overflow: hidden;
}

.asset-icon img {
    width: 24px;
    height: 24px;
}

.asset-names {
    display: flex;
    flex-direction: column;
}

.asset-symbol {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1rem;
}

.asset-name {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

.price-data {
    margin-bottom: 15px;
}

.current-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.price-change {
    display: inline-flex;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
}

.price-change.positive {
    color: var(--positive-color);
    background: rgba(76, 201, 240, 0.1);
}

.price-change.negative {
    color: var(--negative-color);
    background: rgba(247, 37, 133, 0.1);
}

.price-chart {
    height: 60px;
    margin-bottom: 15px;
    position: relative;
}

.market-actions {
    display: flex;
    gap: 10px;
}

.trade-btn, .watchlist-btn {
    flex: 1;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.trade-btn {
    background: var(--primary-color);
    color: white;
    border: none;
}

.trade-btn:hover {
    background: var(--primary-hover);
}

.watchlist-btn {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.watchlist-btn:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.market-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.view-all-btn {
    padding: 10px 20px;
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.view-all-btn:hover {
    background: var(--primary-color);
    color: white;
}

.disclaimer {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    max-width: 600px;
    text-align: center;
}

.disclaimer svg {
    flex-shrink: 0;
}

/* Skeleton Loading States */
.skeleton {
    background: var(--card-bg);
    position: relative;
    overflow: hidden;
}

.skeleton::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        rgba(255,255,255,0) 0%, 
        rgba(255,255,255,0.3) 50%, 
        rgba(255,255,255,0) 100%);
    animation: shimmer 1.5s infinite;
}

 
.api-error-notice {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #f72585;
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateY(100px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}



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

.skeleton-icon {
    background: var(--skeleton-color);
}

.skeleton-text {
    height: 16px;
    background: var(--skeleton-color);
    border-radius: 4px;
}

.skeleton-chart {
    background: var(--skeleton-color);
    border-radius: 4px;
}

.skeleton-btn {
    height: 34px;
    background: var(--skeleton-color);
    border-radius: 6px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .market-section {
        padding: 20px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .market-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .search-box {
        width: 100%;
    }
    
    .market-controls {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .view-toggle {
        align-self: flex-end;
    }
    
    .market-grid {
        grid-template-columns: 1fr;
    }
}

/* education section styling */

/* Education Section Styles */
:root {
    --primary-color: #4361ee;
    --primary-hover: #3a56d4;
    --secondary-color: #7209b7;
    --accent-color: #f72585;
    --text-primary: #2b2d42;
    --text-secondary: #6c757d;
    --bg-color: #ffffff;
    --card-bg: #f8f9fa;
    --border-color: #e9ecef;
    --success-color: #4cc9f0;
    --warning-color: #f8961e;
    --danger-color: #ef233c;
    --beginner-color: #38b000;
    --intermediate-color: #ff9e00;
    --advanced-color: #d00000;
}

.education-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    background: linear-gradient(90deg, #4361ee, #7209b7);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

.section-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.filter-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    background: var(--bg-color);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.view-all-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 20px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.view-all-btn:hover {
    background: var(--primary-color);
    color: white;
}

.view-all-btn svg {
    width: 14px;
    height: 14px;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.resource-card {
    background: var(--bg-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border-color: rgba(67, 97, 238, 0.3);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.resource-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.resource-badge.guide {
    background: rgba(67, 97, 238, 0.1);
    color: var(--primary-color);
}

.resource-badge.video {
    background: rgba(247, 37, 133, 0.1);
    color: var(--accent-color);
}

.resource-badge.webinar {
    background: rgba(114, 9, 183, 0.1);
    color: var(--secondary-color);
}

.resource-badge.course {
    background: rgba(76, 201, 240, 0.1);
    color: var(--success-color);
}

.level-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    position: absolute;
    right: 16px;
    top: -12px;
}

.level-badge.beginner {
    background: var(--beginner-color);
    color: white;
}

.level-badge.intermediate {
    background: var(--intermediate-color);
    color: white;
}

.level-badge.advanced {
    background: var(--advanced-color);
    color: white;
}

.duration {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-left: auto;
    padding-left: 10px;
}

.card-content {
    padding: 16px;
    flex: 1;
}

.video-thumbnail {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
}

.video-thumbnail img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.play-button svg {
    width: 20px;
    height: 20px;
    color: var(--primary-color);
    margin-left: 3px;
}

.video-thumbnail:hover .play-button {
    background: var(--primary-color);
}

.video-thumbnail:hover .play-button svg {
    color: white;
}

.resource-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.4;
}

.resource-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.5;
}

.webinar-details, .course-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.detail, .stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.detail svg, .stat svg {
    flex-shrink: 0;
    color: var(--text-secondary);
    opacity: 0.7;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
}

.author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-details {
    flex: 1;
}

.author-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

.author-title {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.course-progress {
    margin-bottom: 16px;
}

.progress-bar {
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    margin-bottom: 6px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: var(--primary-color);
    border-radius: 3px;
    transition: width 0.5s ease;
}

.course-progress span {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.card-footer {
    padding: 12px 16px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stats {
    display: flex;
    gap: 12px;
}

.stat {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.stat svg {
    width: 12px;
    height: 12px;
    color: var(--text-secondary);
    opacity: 0.7;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-btn svg {
    width: 12px;
    height: 12px;
}

.action-btn:hover {
    background: var(--primary-color);
    color: white;
}

.action-btn.primary {
    background: var(--primary-color);
    color: white;
}

.action-btn.primary:hover {
    background: var(--primary-hover);
}

.section-footer {
    text-align: center;
    margin-top: 40px;
}

.learning-path {
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.05), rgba(114, 9, 183, 0.05));
    border-radius: 12px;
    padding: 30px;
    max-width: 800px;
    margin: 0 auto;
    border: 1px dashed var(--primary-color);
}

.learning-path h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.learning-path p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.path-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.path-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.path-btn svg {
    width: 14px;
    height: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .section-actions {
        flex-direction: column;
    }
    
    .filter-tabs {
        width: 100%;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 10px;
    }
    
    .resources-grid {
        grid-template-columns: 1fr;
    }
    
    .learning-path {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.8rem;
    }
    
    .resource-card {
        width: 100%;
    }
    
    .card-footer {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
}

/* Trading Tools Section Styles */
:root {
    --primary-color: #4361ee;
    --primary-hover: #3a56d4;
    --secondary-color: #7209b7;
    --accent-color: #f72585;
    --success-color: #4cc9f0;
    --warning-color: #f8961e;
    --danger-color: #ef233c;
    --text-primary: #2b2d42;
    --text-secondary: #6c757d;
    --bg-color: #ffffff;
    --card-bg: #f8f9fa;
    --border-color: #e9ecef;
    --pro-color: #ff9f1c;
}

.trading-tools-section {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.section-intro {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title .highlight {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

.tooltip-container {
    position: relative;
    display: inline-block;
    margin-left: 15px;
}

.tooltip-icon {
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    cursor: help;
    transition: all 0.2s ease;
}

.tooltip-icon:hover {
    background: var(--primary-hover);
}

.tooltip-text {
    visibility: hidden;
    width: 200px;
    background-color: var(--text-primary);
    color: white;
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.9rem;
    font-weight: normal;
}

.tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--text-primary) transparent transparent transparent;
}

.tooltip-container:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.tools-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.tool-card {
    background: var(--bg-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
}

.tool-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    border-color: rgba(67, 97, 238, 0.3);
}

.tool-preview {
    padding: 20px;
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.03), rgba(114, 9, 183, 0.03));
    border-bottom: 1px solid var(--border-color);
}

.chart-container, .calculator-container, .portfolio-container {
    background: var(--bg-color);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

/* Charting Tool Styles */
.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
}

.symbol-selector {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
}

.symbol-selector:hover {
    color: var(--primary-color);
}

.dropdown-arrow {
    transition: transform 0.2s ease;
}

.symbol-selector:hover .dropdown-arrow {
    transform: translateY(2px);
}

.timeframe-selector {
    display: flex;
    gap: 6px;
}

.timeframe {
    padding: 4px 8px;
    font-size: 0.75rem;
    font-weight: 500;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.timeframe:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.timeframe.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.chart-area {
    height: 180px;
    position: relative;
    padding: 15px;
}

.mock-chart {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.price-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--price-level);
    background: linear-gradient(to top, rgba(67, 97, 238, 0.2), rgba(67, 97, 238, 0.6));
    border-radius: 2px;
}

.volume-bars {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: repeating-linear-gradient(
        to right,
        transparent,
        transparent 10px,
        rgba(114, 9, 183, 0.1) 10px,
        rgba(114, 9, 183, 0.1) 20px
    );
}

.indicator-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--indicator-level);
    background: rgba(247, 37, 133, 0.2);
    border-top: 2px solid var(--accent-color);
}

.chart-indicators {
    display: flex;
    gap: 8px;
    padding: 8px 15px;
    border-top: 1px solid var(--border-color);
}

.indicator {
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 10px;
    background: var(--card-bg);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.indicator:hover {
    background: rgba(67, 97, 238, 0.1);
    color: var(--primary-color);
}

.indicator.active {
    background: var(--primary-color);
    color: white;
}

/* Risk Calculator Styles */
.calculator-container {
    padding: 15px;
}

.calc-display {
    padding: 12px;
    background: var(--card-bg);
    border-radius: 8px;
    margin-bottom: 15px;
    text-align: center;
}

.calc-result {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
}

.calc-equity {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

.calc-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 15px;
}

.calc-slider {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.calc-slider label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.calc-slider input[type="range"] {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    outline: none;
}

.calc-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.calc-slider input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 0 5px rgba(67, 97, 238, 0.5);
}

.slider-value {
    font-size: 0.8rem;
    color: var(--text-primary);
    text-align: right;
}

.calc-input {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.calc-input label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.calc-input input {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.calc-input input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(67, 97, 238, 0.2);
}

.calc-output {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    background: var(--card-bg);
    border-radius: 8px;
}

.output-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.output-row span:first-child {
    color: var(--text-secondary);
}

.output-value {
    font-weight: 500;
    color: var(--text-primary);
}

/* Portfolio Analyzer Styles */
.portfolio-container {
    padding: 15px;
}

.portfolio-summary {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 20px;
}

.summary-item {
    flex: 1;
    padding: 12px;
    background: var(--card-bg);
    border-radius: 8px;
    text-align: center;
}

.summary-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.summary-value {
    font-size: 1.1rem;
    font-weight: 600;
}

.summary-value.positive {
    color: var(--success-color);
}

.summary-value.medium {
    color: var(--warning-color);
}

.summary-value.negative {
    color: var(--danger-color);
}

.portfolio-chart {
    display: flex;
    align-items: center;
    gap: 20px;
}

.pie-chart {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: conic-gradient(
        var(--segment-color) 0% calc(var(--segment-size) * 100%),
        transparent calc(var(--segment-size) * 100%) 100%
    );
    position: relative;
}

.pie-segment {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    clip-path: polygon(50% 50%, 50% 0%, 100% 0%, 100% 50%);
    transform: rotate(calc(var(--segment-start, 0) * 1turn));
    background: var(--segment-color);
}

.portfolio-legend {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

.legend-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Tool Info Styles */
.tool-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tool-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.tool-icon {
    width: 36px;
    height: 36px;
    background: rgba(67, 97, 238, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.tool-icon svg {
    width: 20px;
    height: 20px;
}

.tool-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-right: auto;
}

.pro-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 8px;
    background: var(--pro-color);
    color: white;
    border-radius: 4px;
    text-transform: uppercase;
}

.tool-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 15px;
}

.tool-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.feature {
    font-size: 0.8rem;
    padding: 4px 10px;
    background: rgba(67, 97, 238, 0.1);
    color: var(--primary-color);
    border-radius: 12px;
}

.tool-cta {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tool-cta svg {
    width: 14px;
    height: 14px;
}

.tool-cta:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

/* Section Footer */
.section-footer {
    margin-top: 40px;
}

.benefits-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.benefit-card {
    text-align: center;
    padding: 25px 20px;
    background: var(--bg-color);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border-color: rgba(67, 97, 238, 0.3);
}

.benefit-icon {
    width: 50px;
    height: 50px;
    background: rgba(67, 97, 238, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: var(--primary-color);
}

.benefit-icon svg {
    width: 24px;
    height: 24px;
}

.benefit-card h4 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.benefit-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 992px) {
    .tools-container {
        grid-template-columns: 1fr;
    }
    
    .tool-card {
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2.2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .portfolio-chart {
        flex-direction: column;
    }
    
    .benefits-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.8rem;
    }
    
    .tool-preview {
        padding: 15px;
    }
    
    .tool-info {
        padding: 15px;
    }
    
    .chart-area {
        height: 150px;
    }
}