/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --background: rgb(15, 23, 42);
    --foreground: rgb(229, 231, 235);
    --primary: rgb(34, 211, 238);
    --secondary: rgb(255, 215, 0);
    --muted: rgb(156, 163, 175);
    --border: rgb(51, 65, 85);
    --input: rgb(30, 41, 59);
    --card-bg: rgba(30, 41, 59, 0.5);
    --card-border: rgb(51, 65, 85);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--foreground);
    background: var(--background);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: url('Trading_chart.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(1px);
    z-index: -1;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: white;
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 3rem;
    font-weight: 800;
}

h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
}

h3 {
    font-size: 1.25rem;
    font-weight: 700;
}

/* Header */
#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(51, 65, 85, 0.8);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5rem 1.5rem;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    height: 5rem;
    width: auto;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.language-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgb(30, 41, 59);
    border: 1px solid var(--card-border);
    color: white;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.language-btn:hover {
    background: rgb(51, 65, 85);
    transform: scale(1.05);
}

.icon {
    width: 1rem;
    height: 1rem;
}

.icon-large {
    width: 3rem;
    height: 3rem;
}

.icon-header {
    width: 2rem;
    height: 2rem;
}

.icon-cta {
    width: 1.5rem;
    height: 1.5rem;
    flex-shrink: 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--primary);
    color: rgb(15, 23, 42);
    box-shadow: rgba(6, 182, 212, 0.1) 0px 10px 15px -3px;
}

.btn-primary:hover {
    background: rgb(103, 232, 249);
    transform: translateY(-2px);
    box-shadow: rgba(6, 182, 212, 0.3) 0px 10px 20px -3px;
}

.btn-secondary {
    background: var(--secondary);
    color: rgb(15, 23, 42);
    box-shadow: rgba(255, 215, 0, 0.1) 0px 10px 15px -3px;
}

.btn-secondary:hover {
    background: rgb(255, 223, 51);
    transform: translateY(-2px);
    box-shadow: rgba(255, 215, 0, 0.3) 0px 10px 20px -3px;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.telegram-btn {
    background: rgb(6, 182, 212);
    color: white;
}

.telegram-btn:hover {
    background: rgb(8, 145, 178);
    box-shadow: rgba(6, 182, 212, 0.5) 0px 0px 20px;
}

.facebook-btn {
    background: rgb(24, 119, 242);
    color: white;
}

.facebook-btn:hover {
    background: rgb(22, 111, 229);
    box-shadow: rgba(24, 119, 242, 0.5) 0px 0px 20px;
}

.btn-text {
    display: none;
}

@media (min-width: 640px) {
    .btn-text {
        display: inline;
    }
}

/* Hero Section */
.hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 8rem 0 4rem;
}

.hero-background {
    display: none;
}

.hero-bg-image {
    display: none;
}

.hero-overlay {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding: 0 1.5rem;
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    line-height: 1.1;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 4rem;
    }
}

.text-gradient {
    background: linear-gradient(to right, rgb(34, 211, 238), rgb(59, 130, 246));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: rgb(209, 213, 219);
    max-width: 60rem;
    margin: 0 auto;
    line-height: 1.75;
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 1.25rem;
    }
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    margin-top: 2rem;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--primary);
    animation: fadeIn 1s ease-in-out 2s forwards;
    opacity: 0;
}

.scroll-indicator-border {
    width: 1.5rem;
    height: 2.5rem;
    border: 2px solid var(--primary);
    border-radius: 1.25rem;
    display: flex;
    justify-content: center;
    padding-top: 0.5rem;
}

.scroll-indicator-dot {
    width: 0.25rem;
    height: 0.75rem;
    background: var(--primary);
    border-radius: 0.125rem;
    animation: bounce 2s infinite;
}

/* Sections */
.section {
    padding: 2.5rem 1.5rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.section-title-center {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    color: white;
}

@media (min-width: 768px) {
    .section-title-center {
        font-size: 2.5rem;
    }
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2.5rem;
    }
}

.intro-section {
    background: rgb(30, 41, 59);
}

.features-section {
    background: rgb(15, 23, 42);
}

.benefits-section {
    background: rgb(30, 41, 59);
}

.performance-section {
    background: rgb(15, 23, 42);
}

.cta-section {
    background: linear-gradient(to bottom right, rgb(30, 41, 59), rgb(15, 23, 42), rgb(30, 41, 59));
}

/* Cards */
.card {
    background: var(--card-bg);
    backdrop-filter: blur(8px);
    border: 1px solid var(--card-border);
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: rgba(6, 182, 212, 0.05) 0px 10px 15px -3px;
}

.card-center {
    max-width: 60rem;
    margin: 0 auto;
}

.icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.icon-bg {
    background: rgba(34, 211, 238, 0.1);
    padding: 1rem;
    border-radius: 50%;
    border: 1px solid rgba(34, 211, 238, 0.2);
}

.card-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

@media (min-width: 768px) {
    .card-title {
        font-size: 2.25rem;
    }
}

.card-description {
    font-size: 1.125rem;
    color: rgb(209, 213, 219);
    line-height: 1.75;
    text-align: center;
}

.badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgb(74, 222, 128);
    font-weight: 600;
    justify-content: center;
    margin-top: 1.5rem;
}

.badge-large {
    font-size: 1.125rem;
}

/* Features Grid */
.features-grid {
    display: grid;
    gap: 1.5rem;
    max-width: 80rem;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.feature-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: var(--card-bg);
    backdrop-filter: blur(8px);
    border: 1px solid var(--card-border);
    border-radius: 0.5rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: rgba(51, 65, 85, 0.5);
}

.feature-icon {
    background: rgba(74, 222, 128, 0.1);
    padding: 0.5rem;
    border-radius: 50%;
    border: 1px solid rgba(74, 222, 128, 0.2);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    background: rgba(74, 222, 128, 0.2);
}

.feature-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    color: rgb(74, 222, 128);
}

.feature-text {
    color: rgb(209, 213, 219);
    line-height: 1.75;
    flex: 1;
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .benefits-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.benefit-card {
    background: var(--card-bg);
    backdrop-filter: blur(8px);
    border: 1px solid var(--card-border);
    border-radius: 0.5rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: scale(1.05);
}

.benefit-icon-container {
    margin: 0 auto 1rem;
    width: fit-content;
}

.benefit-icon-bg {
    padding: 1rem;
    border-radius: 50%;
    border: 1px solid;
    transition: all 0.3s ease;
}

.benefit-card:hover .benefit-icon-bg {
    transform: scale(1.1);
}

.benefit-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.75rem;
}

.benefit-description {
    color: rgb(209, 213, 219);
    font-size: 0.875rem;
    line-height: 1.75;
}

/* Color variants for benefits */
.benefit-card:nth-child(1) .benefit-icon-bg {
    background: rgba(74, 222, 128, 0.1);
    border-color: rgba(74, 222, 128, 0.2);
}

.benefit-card:nth-child(1) .benefit-icon-bg svg {
    color: rgb(74, 222, 128);
}

.benefit-card:nth-child(2) .benefit-icon-bg {
    background: rgba(96, 165, 250, 0.1);
    border-color: rgba(96, 165, 250, 0.2);
}

.benefit-card:nth-child(2) .benefit-icon-bg svg {
    color: rgb(96, 165, 250);
}

.benefit-card:nth-child(3) .benefit-icon-bg {
    background: rgba(192, 132, 252, 0.1);
    border-color: rgba(192, 132, 252, 0.2);
}

.benefit-card:nth-child(3) .benefit-icon-bg svg {
    color: rgb(192, 132, 252);
}

.benefit-card:nth-child(4) .benefit-icon-bg {
    background: rgba(34, 211, 238, 0.1);
    border-color: rgba(34, 211, 238, 0.2);
}

.benefit-card:nth-child(4) .benefit-icon-bg svg {
    color: rgb(34, 211, 238);
}

/* Performance Grid */
.performance-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .performance-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .performance-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.performance-card {
    background: var(--card-bg);
    backdrop-filter: blur(8px);
    border: 1px solid var(--card-border);
    border-radius: 0.5rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
    overflow: hidden;
}

.performance-card:hover {
    transform: scale(1.05);
}

.performance-image {
    position: relative;
    aspect-ratio: 4/3;
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    overflow: hidden;
    background: rgb(30, 41, 59);
}

.performance-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

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

.performance-caption-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.performance-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--primary);
    flex-shrink: 0;
}

.performance-caption {
    font-size: 0.875rem;
    color: rgb(209, 213, 219);
    font-weight: 500;
}

.performance-badge {
    background: linear-gradient(to right, rgba(74, 222, 128, 0.1), rgba(34, 211, 238, 0.1));
    padding: 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(34, 211, 238, 0.2);
    max-width: 40rem;
    margin: 3rem auto 0;
    text-align: center;
}

.performance-description {
    color: rgb(209, 213, 219);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.performance-caption-link {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.performance-caption-link:hover {
    color: var(--primary);
}

.performance-caption-link:hover .performance-caption {
    color: var(--primary);
}

/* MyFxBook Section */
.myfxbook-link {
    text-decoration: none;
    color: inherit;
    display: inline-block;
    margin-top: 1.5rem;
}

.myfxbook-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(34, 211, 238, 0.05);
    border: 1px solid rgba(34, 211, 238, 0.2);
    border-radius: 0.5rem;
    padding: 1rem;
    transition: all 0.3s ease;
}

.myfxbook-link:hover .myfxbook-container {
    background: rgba(34, 211, 238, 0.1);
    border-color: rgba(34, 211, 238, 0.4);
    transform: translateY(-2px);
}

.myfxbook-image {
    flex-shrink: 0;
}

.myfxbook-image img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 0.375rem;
}

.myfxbook-text {
    flex: 1;
}

.myfxbook-text p {
    font-size: 1rem;
    font-weight: 600;
    color: rgb(209, 213, 219);
    margin: 0;
    transition: color 0.3s ease;
}

.myfxbook-link:hover .myfxbook-text p {
    color: var(--primary);
}

/* CTA Section */
.cta-content {
    max-width: 60rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cta-card {
    background: var(--card-bg);
    backdrop-filter: blur(8px);
    border: 1px solid var(--card-border);
    border-radius: 0.5rem;
    padding: 1.5rem;
}

.cta-card-cyan {
    background: linear-gradient(to right, rgba(34, 211, 238, 0.05), rgba(59, 130, 246, 0.05));
    border-color: rgba(34, 211, 238, 0.2);
}

.cta-card-green {
    background: linear-gradient(to right, rgba(74, 222, 128, 0.05), rgba(34, 211, 238, 0.05));
    border-color: rgba(74, 222, 128, 0.2);
}

.cta-card-glow {
    border-color: rgba(34, 211, 238, 0.3);
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.3);
}

.cta-card-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.cta-text {
    color: rgb(209, 213, 219);
    line-height: 1.75;
}

.text-cyan {
    color: var(--primary);
    font-weight: 600;
}

.text-green {
    color: rgb(74, 222, 128);
}

.text-yellow {
    color: rgb(250, 204, 21);
}

.cta-final-message {
    font-size: 1.125rem;
    color: rgb(209, 213, 219);
    line-height: 1.75;
    margin-bottom: 1.5rem;
    text-align: center;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}

@media (min-width: 640px) {
    .cta-buttons {
        flex-direction: row;
    }
}

/* Footer */
.footer {
    background: rgb(15, 23, 42);
    border-top: 1px solid var(--card-border);
}

.footer-content {
    padding: 2.5rem 1.5rem;
}

.footer-section {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.footer-logo {
    width: 16rem;
    height: 4rem;
    position: relative;
    margin: 0 auto;
}

.footer-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: rgb(103, 232, 249);
}

.footer-link:hover svg {
    transform: rotate(12deg);
}

.footer-link-blue {
    color: rgb(96, 165, 250);
}

.footer-link-blue:hover {
    color: rgb(147, 197, 253);
}

.footer-link-pink {
    color: rgb(244, 114, 182);
}

.footer-link-pink:hover {
    color: rgb(249, 168, 212);
}

.footer-disclaimer {
    max-width: 60rem;
    margin: 0 auto;
    background: rgba(250, 204, 21, 0.05);
    border: 1px solid rgba(250, 204, 21, 0.2);
    border-radius: 0.5rem;
    padding: 1.5rem;
}

.disclaimer-header {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    justify-content: center;
}

.disclaimer-header svg {
    color: rgb(250, 204, 21);
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.disclaimer-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: rgb(250, 204, 21);
}

.footer-disclaimer p {
    font-size: 0.875rem;
    color: rgb(156, 163, 175);
    line-height: 1.75;
}

.footer-copyright {
    padding-top: 2rem;
    border-top: 1px solid var(--card-border);
}

.footer-copyright p {
    font-size: 0.875rem;
    color: rgb(107, 114, 128);
}

.footer-built {
    font-size: 0.75rem;
    color: rgb(75, 85, 99);
    margin-top: 0.5rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(0.5rem);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
}

/* Intersection Observer Animation */
.fade-in.visible {
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section {
        padding: 3rem 1rem;
    }
    
    .section-title-center,
    .section-title {
        font-size: 1.5rem;
    }
    
    .card-title {
        font-size: 1.5rem;
    }
}

/* Smooth scrolling offset for fixed header */
section {
    scroll-margin-top: 5rem;
}


/* Clickable Image Styles */
.clickable-image {
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.clickable-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(34, 211, 238, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.clickable-image:hover::after {
    opacity: 1;
}

.image-zoom-hint {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(34, 211, 238, 0.9);
    border-radius: 50%;
    padding: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.clickable-image:hover .image-zoom-hint {
    opacity: 1;
}

.zoom-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: white;
}

/* Image Modal Styles */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.image-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    animation: zoomIn 0.3s ease;
    border-radius: 0.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-close {
    position: absolute;
    top: 2rem;
    right: 3rem;
    color: #fff;
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    transition: color 0.3s ease, transform 0.3s ease;
    line-height: 1;
}

.modal-close:hover,
.modal-close:focus {
    color: rgb(34, 211, 238);
    transform: scale(1.1) rotate(90deg);
}

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

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

@media (max-width: 768px) {
    .modal-close {
        top: 1rem;
        right: 1.5rem;
        font-size: 2.5rem;
    }
    
    .modal-content {
        max-width: 95%;
        max-height: 95%;
    }
    
    .myfxbook-container {
        flex-direction: row;
        text-align: left;
    }
    
    .myfxbook-image img {
        width: 60px;
        height: 60px;
    }
    
    .myfxbook-text p {
        font-size: 0.875rem;
    }
}