/* Global Styles */
:root {
    --primary-color: #ff0000;
    --secondary-color: #c0c0c0; /* Changed to silver */
    --text-color: #ffffff;
    --dark-bg: #000000; /* Changed to pure black */
    --darker-bg: #0a0a0a;
    --light-text: #f5f5f5;
    --gray-text: #a0a0a0;
    --card-bg: rgba(10, 10, 10, 0.85); /* Darker card background */
    --gradient-bg: linear-gradient(135deg, #000000 0%, #ff0000 100%); /* Enhanced gradient */
}

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

html {
    scroll-behavior: smooth;
}

/* RTL Support */
body.rtl {
    text-align: right;
}

body.rtl .nav-links {
    flex-direction: row-reverse;
}

body.rtl .translate-button {
    margin-right: 15px;
    margin-left: 0;
}

body.rtl .section-title::after {
    left: auto;
    right: 50%;
    transform: translateX(50%);
}

body.rtl .footer-links a:hover {
    padding-left: 0;
    padding-right: 5px;
}

body.rtl .form-group input,
body.rtl .form-group textarea {
    text-align: right;
    direction: rtl;
}

@media screen and (max-width: 768px) {
    body.rtl .nav-links a,
    body.rtl .translate-button {
        text-align: right;
    }
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--gradient-bg);
    color: var(--text-color);
    min-height: 100vh;
    overflow-x: hidden;
    border-color: var(--secondary-color);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--light-text);
    transition: all 0.3s ease;
}

.highlight {
    color: var(--secondary-color);
    text-shadow: 1px 1px 3px rgba(255, 0, 0, 0.3);
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
    color: var(--secondary-color);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color) 0%, #990000 100%);
    color: #fff;
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(255, 0, 0, 0.25);
    text-align: center;
}

.cta-button:hover {
    background: linear-gradient(135deg, #990000 0%, var(--primary-color) 100%);
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 15px 25px rgba(255, 0, 0, 0.4);
}

.cta-button:active {
    transform: translateY(-2px) scale(0.98);
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.3);
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 0, 0, 0.3);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 5%;
}

.logo h2 {
    font-size: 1.4rem;
    margin: 0;
    color: var(--primary-color);
    letter-spacing: 1px;
    text-shadow: 1px 1px 3px rgba(255, 0, 0, 0.5);
}

.nav-links a {
    margin-left: 1.5rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Make contact button look better */
.nav-links .cta-button {
    padding: 5px 12px;
    margin-left: 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0.5px;
    box-shadow: none;
    background: rgba(255, 0, 0, 0.1);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    display: inline-block;
    transition: all 0.3s ease;
}

.nav-links .cta-button:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 0, 0, 0.3);
}

/* Translation Button */
.translate-button {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 6px;
    padding: 8px 16px;
    margin-left: 15px;
    margin-right: 15px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 80px;
    position: relative;
    overflow: hidden;
}

/* Ensure consistent styling in both LTR and RTL modes */
.rtl .translate-button,
.translate-button {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.translate-button:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 199, 255, 0.3);
}

.translate-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 199, 255, 0.2);
}

.translate-button i {
    font-size: 16px;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.6)), url('background.svg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxkZWZzPjxwYXR0ZXJuIGlkPSJncmlkIiB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHBhdHRlcm5Vbml0cz0idXNlclNwYWNlT25Vc2UiPjxwYXRoIGQ9Ik0gNDAgMCBMIDAgMCAwIDQwIiBmaWxsPSJub25lIiBzdHJva2U9InJnYmEoMCwgMTk5LCAyNTUsIDAuMSkiIHN0cm9rZS13aWR0aD0iMSIvPjwvcGF0dGVybj48L2RlZnM+PHJlY3Qgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsbD0idXJsKCNncmlkKSIvPjwvc3ZnPg==');
    opacity: 0.2;
}

.hero-content {
    max-width: 800px;
    text-align: center;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.7);
    color: var(--primary-color);
    font-weight: 800;
    line-height: 1.2;
    font-family: 'Montserrat', sans-serif;
}

.hero h1 .highlight {
    color: #ff0000;
    position: relative;
    display: inline-block;
    text-shadow: 0 0 15px rgba(255, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.8rem;
    margin-bottom: 2.5rem;
    color: #c0c0c0;
    font-weight: 500;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    font-family: 'Raleway', sans-serif;
}

/* About Section */
.section-padding {
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
    background-color: var(--darker-bg);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 2rem;
    align-items: start;
}

.about-left {
    grid-column: 1;
}

.about-center {
    grid-column: 2;
    text-align: center;
}

.about-right {
    grid-column: 3;
}

.about-image {
    width: 100%;
    position: relative;
}

.about-image img {
    max-width: 100%;
    width: auto;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(255, 0, 0, 0.2);
    border: 2px solid var(--secondary-color);
    display: block;
    margin: 0 auto;
}

.about-details {
    flex: 1;
    min-width: 300px;
}

.about-text {
    margin-bottom: 2rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--gray-text);
    line-height: 1.7;
    font-size: 1.25rem;
    font-weight: 500;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.stat-box {
    background: var(--card-bg);
    padding: 8px;
    border-radius: 6px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.2);
    transition: all 0.3s ease;
    margin-bottom: 8px;
}

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255, 0, 0, 0.3);
    border-color: var(--primary-color);
}

.stat-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.stat-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

.stat-box h3 {
    font-size: 1.5rem;
    margin: 0.2rem 0;
    color: var(--primary-color);
}

.stat-box p {
    font-size: 0.8rem;
    color: var(--gray-text);
    margin: 0;
}

/* Services Section */
.services {
    padding: 5rem 0;
    background-color: var(--darker-bg);
    border-top: 2px solid var(--primary-color);
    border-bottom: 2px solid var(--secondary-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

/* Media query for smaller screens */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

.service-card {
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid var(--secondary-color);
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.2);
    height: 300px; /* Fixed height for all cards */
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    margin: 0;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--gray-text);
}

/* Testimonials Section */
.testimonials {
    background-color: var(--darker-bg);
    padding: 5rem 0;
}

/* Training Programs Section */
.training {
    padding: 5rem 0;
    background-color: var(--dark-bg);
    border-top: 2px solid var(--secondary-color);
    border-bottom: 2px solid var(--primary-color);
}

.training-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    color: var(--gray-text);
    font-size: 1.1rem;
}

.training-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.training-image {
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.training-image:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.training-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.training-image:hover img {
    transform: scale(1.05);
}

@media screen and (max-width: 768px) {
    .training-gallery {
        grid-template-columns: 1fr;
    }
}

/* Synthetic Indices Types Section */
.indices {
    background-color: var(--darker-bg);
    padding: 80px 0;
    border-top: 2px solid var(--primary-color);
    border-bottom: 2px solid var(--secondary-color);
}

/* Why Trade With ME section theme to match others */
.whyme {
    background-color: var(--darker-bg);
    padding: 80px 0;
    border-top: 2px solid var(--primary-color);
    border-bottom: 2px solid var(--secondary-color);
}

.section-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    color: var(--gray-text);
    font-size: 1.1rem;
    line-height: 1.6;
}

.indices-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 32px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 24px;
}

/* Markets grid under 'All your markets in one place' */
.markets-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 24px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Why Trade With ME? */
.whyme-list {
    max-width: 800px;
    margin: 12px auto 0;
    padding-left: 0;
    list-style: disc inside;
    text-align: center;
    line-height: 1.6;
    font-size: 1.1rem;
    color: var(--gray-text);
}
.whyme-list li {
    margin-bottom: 0.6rem;
    text-align: center;
}
.whyme-note {
    max-width: 800px;
    margin: 16px auto 0;
    text-align: center;
}

/* Override section-note color for Why ME note to improve readability */
.whyme-note.section-note {
    color: var(--text-color);
}

.index-type {
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    padding: 18px;
    text-align: center;
    transition: transform 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid var(--secondary-color);
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.2);
    height: 200px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    margin: 0;
}

.index-type:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.index-type h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.index-type p {
    color: var(--gray-text);
    line-height: 1.6;
}

.section-note {
    text-align: center;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.2rem;
    margin-top: 20px;
}

/* Reasons block removed per request */

@media (max-width: 992px) {
    .indices-content {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: minmax(240px, 1fr);
        gap: 12px;
        overflow-x: auto;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
    }
    .index-type {
        height: 180px;
        padding: 16px;
        scroll-snap-align: start;
        flex: 0 0 auto;
    }
    .markets-content {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: minmax(240px, 1fr);
        gap: 12px;
        overflow-x: auto;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
    }
    .whyme-list {
        font-size: 1rem;
        padding-left: 1rem;
    }
    .whyme-note {
        font-size: 1rem;
    }
}

.testimonial-slider {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.testimonial-card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    max-width: 500px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.testimonial-content {
    margin-bottom: 1.5rem;
    font-style: italic;
    color: var(--gray-text);
}

.testimonial-content p::before {
    content: '"';
    font-size: 2rem;
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.testimonial-content p::after {
    content: '"';
    font-size: 2rem;
    color: var(--primary-color);
    margin-left: 0.5rem;
}

.testimonial-author h4 {
    color: var(--primary-color);
    margin-bottom: 0.2rem;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background-color: var(--dark-bg);
    border-top: 2px solid var(--secondary-color);
    border-bottom: 2px solid var(--primary-color);
}

.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.contact-form {
    flex: 1;
    min-width: 280px;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.7rem;
    background-color: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    color: var(--light-text);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
}

/* Thank You Page */
.thank-you-section {
    background-color: var(--dark-bg);
    padding: 100px 0;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thank-you-container {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 50px;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    border-left: 4px solid var(--primary-color);
}

.thank-you-container h1 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 2.5rem;
}

.thank-you-container p {
    color: var(--text-color);
    margin-bottom: 30px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.social-media {
    flex: 1;
    min-width: 280px;
}

.social-media h3 {
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: var(--card-bg);
    border-radius: 50%;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    transform: translateY(100%);
    transition: all 0.3s ease;
    z-index: 0;
    border-radius: inherit;
}

.social-icon i {
    position: relative;
    z-index: 1;
}

.social-icon:hover {
    color: #000;
    transform: translateY(-5px);
}

.social-icon:hover::before {
    transform: translateY(0);
}

.social-icon.tiktok:hover::before {
    background: linear-gradient(45deg, #00f2ea, #ff0050);
}

.social-icon.instagram:hover::before {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-icon.telegram:hover::before {
    background: #0088cc;
}

.social-icon.youtube:hover::before {
    background: #ff0000;
}

.social-icon.whatsapp:hover::before {
    background: #25d366;
}

/* WhatsApp priority styling: bigger, square, and positioned above others */
.social-icons {
    justify-content: center;
}

.social-icon.whatsapp {
    width: 27px;
    height: 27px;
    font-size: 1.2rem;
    border-radius: 10px;
    order: -1;            /* Move to the top within wrapped flex */
    flex: 1 0 100%;       /* Occupy its own row above others */
    align-self: center;   /* Center on its dedicated row */
}

/* Footer */
footer {
    background-color: var(--darker-bg);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-bio {
    flex: 2;
    min-width: 300px;
}

.footer-bio p {
    color: var(--gray-text);
}

.footer-links {
    flex: 1;
    min-width: 200px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray-text);
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--darker-bg);
        flex-direction: column;
        padding: 1rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 999;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links a {
        margin: 0.5rem 2rem;
        padding: 0.5rem 0;
    }
    
    .translate-button {
        position: absolute;
        top: 50%;
        right: 60px;
        transform: translateY(-50%);
        margin: 0;
        padding: 6px 10px;
        font-size: 0.9rem;
        z-index: 1000;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .container {
        width: 94%;
        padding: 1.5rem 0;
    }
    
    .hero {
        padding-top: 80px; /* account for fixed header */
    }
    
    .hero h1 {
        font-size: 2.5rem;
        letter-spacing: 1px;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    /* Fix about grid stacking on mobile */
    .about-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .about-left, .about-center, .about-right {
        grid-column: auto;
    }
    .about-image img {
        max-height: 280px;
    }
    
    /* Services layout */
    .services-grid {
        grid-template-columns: 1fr;
    }
    .service-card {
        height: auto;
        min-height: 260px;
        padding: 24px;
    }
    
    /* Reduce section paddings */
    .section-padding,
    .services,
    .training,
    .testimonials,
    .contact {
        padding: 3rem 0;
    }
    
    .testimonial-slider {
        flex-direction: column;
    }
    
    .stat-box {
        min-width: 100%;
    }
    
    .social-icons {
        justify-content: center;
    }
}

@media screen and (max-width: 480px) {
    .hero {
        padding-top: 90px; /* extra space for header */
    }
    .hero h1 {
        font-size: 1.9rem;
        letter-spacing: 0.5px;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .cta-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .about-image img {
        max-height: 240px;
    }
    .nav-links a {
        margin: 0.4rem 1.5rem;
    }
.social-icon {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
}
}

/* Mobile stacking for indices and markets */
@media screen and (max-width: 768px) {
    .indices-content,
    .markets-content {
        grid-auto-flow: row;
        grid-template-columns: 1fr;
        overflow-x: visible;
        scroll-snap-type: none;
        gap: 14px;
    }
    .index-type {
        height: auto;
        min-height: 180px;
        padding: 14px;
    }
}

/* Small phones: tighten index cards */
@media screen and (max-width: 480px) {
    .index-type h3 {
        font-size: 1.25rem;
        margin-bottom: 0.6rem;
    }
    .index-type p {
        font-size: 0.95rem;
        line-height: 1.5;
    }
}

/* Thank You Page Styles */
.thank-you-section {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 100px 20px;
    background: var(--gradient-bg);
    position: relative;
}

.thank-you-container {
    max-width: 800px;
    padding: 50px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(255, 0, 0, 0.2);
    border: 1px solid var(--secondary-color);
    backdrop-filter: blur(10px);
    margin: 0 auto;
}

.thank-you-container h1 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 2.5rem;
    font-weight: 700;
}

.thank-you-container p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--gray-text);
    line-height: 1.6;
}