/* Main CSS file for Franchise Pro Landing */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&display=swap');

/* CSS Variables - Фирменная цветовая палитра */
:root {
    /* Основные цвета */
    --primary-color: #10b77d;
    --primary-hover: #0ea86f;
    --primary-light: #e8f9f1;
    --secondary-color: #202a34;
    --text-color: #8c90a9;
    --white: #fff;
    --light-gray: #f8f9fa;
    --border-color: #eaeaea;

    /* Тени */
    --shadow-light: rgba(0, 0, 0, 0.05);
    --shadow-primary: rgba(16, 183, 125, 0.15);
    --shadow-primary-hover: rgba(16, 183, 125, 0.25);

    /* Градиенты */
    --gradient-primary: linear-gradient(135deg, #10b77d, #0ea86f);
    --gradient-secondary: linear-gradient(135deg, #202a34, #2a3441);

    /* Переходы */
    --transition-fast: 0.2s ease-in-out;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

/* Income Chart Animation */
@keyframes chartGrow {
    0% {
        stroke-dasharray: 0 1000;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    100% {
        stroke-dasharray: 1000 0;
        opacity: 1;
    }
}

@keyframes pointAppear {
    0% {
        opacity: 0;
        transform: scale(0);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.income-chart-path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: chartGrow 3s ease-in-out forwards;
}

.income-chart-point {
    animation: pointAppear 0.6s ease-out forwards;
    opacity: 0;
}

.income-chart-point:nth-child(1) {
    animation-delay: 0.5s;
}

.income-chart-point:nth-child(2) {
    animation-delay: 1s;
}

.income-chart-point:nth-child(3) {
    animation-delay: 1.5s;
}

.income-chart-point:nth-child(4) {
    animation-delay: 2s;
}

.income-chart-point:nth-child(5) {
    animation-delay: 2.5s;
}

.income-chart-point:nth-child(6) {
    animation-delay: 3s;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--gradient-secondary);
    color: var(--white);
    overflow-x: hidden;
}

.font-display {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

/* Gradient text effect */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Enhanced button styles */
.btn-enhanced {
    position: relative;
    overflow: hidden;
    transform: translateY(0);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    outline: none;
}

.btn-enhanced:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px var(--shadow-primary-hover);
}

.btn-enhanced:active {
    transform: translateY(-1px);
}

.btn-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease-in-out;
}

.btn-enhanced:hover::before {
    left: 100%;
}

/* Card hover effects */
.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

/* Background patterns */
.parallax-bg {
    background: var(--gradient-secondary);
}

.hero-bg {
    background: var(--gradient-secondary);
    position: relative;
    overflow: hidden;
}

/* Glass morphism effect */
.glass-effect {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Animations */
.animate-float {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

.animate-pulse-slow {
    animation: pulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Scroll reveal animation */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Navigation styles */
.nav-glass {
    background: rgba(15, 27, 36, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease-in-out;
}

/* Mobile header hide on scroll */
@media (max-width: 768px) {
    .nav-glass.hidden-mobile {
        transform: translateY(-100%);
    }

    /* Force mobile header alignment */
    .nav-glass .flex.items-center.justify-between {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        flex-wrap: nowrap !important;
    }

    .nav-glass .md\\:hidden {
        display: flex !important;
        align-items: center !important;
        flex-shrink: 0 !important;
    }

    .nav-glass .flex.items-center.space-x-3 {
        flex-shrink: 0 !important;
    }

    /* Force hide desktop nav on mobile */
    .nav-glass .hidden.md\\:flex {
        display: none !important;
    }
}

/* Hero section styles */
.hero-bg {
    background: linear-gradient(135deg, #0f1b24 0%, #1a2a3a 50%, #0f1b24 100%);
    position: relative;
    overflow: hidden;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 20%, rgba(16, 183, 125, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(16, 183, 125, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* Section backgrounds */
.section-bg-light {
    background: rgba(32, 42, 52, 0.5);
}

.section-bg-dark {
    background: rgba(16, 183, 125, 0.05);
}

/* Button variants */
.btn-primary {
    background: var(--gradient-primary);
    color: var(--white) !important;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    border: none;
    transition: all var(--transition-normal);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-hover), var(--primary-color)) !important;
    color: var(--white) !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px var(--shadow-primary-hover);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color) !important;
    border: 2px solid var(--primary-color);
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    transition: all var(--transition-normal);
}

.btn-secondary:hover {
    background: var(--primary-color) !important;
    color: var(--white) !important;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--white) !important;
    border: 2px solid var(--white);
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    transition: all var(--transition-normal);
}

.btn-outline:hover {
    background: var(--white) !important;
    color: var(--dark) !important;
    transform: translateY(-2px);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white) !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    transition: all var(--transition-normal);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    color: var(--white) !important;
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

/* Fade in up animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

/* Card styles */
.card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
}

.card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(212, 175, 55, 0.3);
    transform: translateY(-4px);
}

/* Mobile Menu Styles */
.mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 50;
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out;
}

.mobile-menu.show {
    transform: translateY(0);
}

/* Background Elements Z-Index */
.particle-container {
    z-index: 1;
}

.absolute.inset-0.pointer-events-none {
    z-index: 1;
}

/* Responsive design */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    .hero-title .gradient-text {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {

    /* Navigation */
    .nav-glass {
        padding: 1rem 0;
    }

    /* Hero Section */
    .hero-bg {
        padding: 4rem 0 2rem 0;
        min-height: 100vh;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.3;
        margin-bottom: 1.5rem;
    }

    .hero-title .gradient-text {
        font-size: 2.5rem;
    }

    /* Grid adjustments */
    .grid.lg\\:grid-cols-2 {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .grid.md\\:grid-cols-2 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .grid.md\\:grid-cols-3 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .grid.lg\\:grid-cols-3 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Cards */
    .card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }

    /* Buttons */
    .btn-enhanced {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
        width: 100%;
    }

    /* Text sizes */
    .text-4xl {
        font-size: 2rem;
    }

    .text-5xl {
        font-size: 2.5rem;
    }

    .text-6xl {
        font-size: 3rem;
    }

    /* Spacing */
    .py-20 {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }

    .mb-16 {
        margin-bottom: 1.5rem;
    }

    /* Income chart responsive */
    .flex.justify-between {
        flex-direction: column;
        gap: 1rem;
    }

    .flex.justify-between .text-center {
        flex: none;
    }

    /* Accordion mobile */
    .accordion-button {
        padding: 1rem;
        font-size: 1rem;
    }

    .accordion-content {
        padding: 1rem;
    }

    /* Footer mobile */
    .flex.flex-col.md\\:flex-row {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    /* Popup mobile */
    .popup-content {
        width: 95%;
        margin: 1rem;
    }

    /* Video mobile adjustments */
    .video-container {
        margin: 0 auto;
        max-width: 100%;
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
        transform: scale(1);
        transform-origin: center center;
    }

    .video-container video {
        max-height: 250px;
        object-fit: cover;
    }

    /* Questions section mobile */
    .questions-section .text-4xl {
        font-size: 1.75rem;
    }

    .questions-section .text-5xl {
        font-size: 2rem;
    }

    .questions-section .text-7xl {
        font-size: 2.5rem;
    }

    /* Hero section description text - make brighter and bolder on mobile */
    .hero-bg p.text-xl {
        color: #e5e7eb !important;
        /* Brighter gray */
        font-weight: 500 !important;
        /* Bolder */
    }

    /* Make "миллиона в месяц" larger on mobile in hero */
    .hero-title .gradient-text {
        font-size: 2.5rem !important;
        /* Larger than other text */
        line-height: 1.1 !important;
        /* Tighter line height */
    }

    /* Hero section benefits text - improve readability on mobile */
    .hero-bg .space-y-4 span {
        text-wrap: balance !important;
        /* Better text wrapping */
        line-height: 1.4 !important;
        /* Tighter line height */
        letter-spacing: -0.01em !important;
        /* Slightly tighter letter spacing */
        hyphens: auto !important;
        /* Enable hyphenation */
        -webkit-hyphens: auto !important;
        /* Safari support */
        -ms-hyphens: auto !important;
        /* IE support */
        word-break: break-word !important;
        /* Break long words */
        overflow-wrap: break-word !important;
        /* Modern word breaking */
    }

    /* Hero section description text - improve readability on mobile */
    .hero-bg .hero-description {
        text-wrap: balance !important;
        /* Better text wrapping */
        line-height: 1.4 !important;
        /* Tighter line height */
        letter-spacing: -0.01em !important;
        /* Slightly tighter letter spacing */
        hyphens: auto !important;
        /* Enable hyphenation */
        -webkit-hyphens: auto !important;
        /* Safari support */
        -ms-hyphens: auto !important;
        /* IE support */
        word-break: break-word !important;
        /* Break long words */
        overflow-wrap: break-word !important;
        /* Modern word breaking */
    }

    /* Hero section benefits card text - restructure for mobile */
    .hero-bg .text-center div.text-xl {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    .hero-bg .text-center div br {
        display: none !important;
        /* Hide all line breaks */
    }

    .hero-bg .text-center div>span:first-of-type {
        display: block !important;
        /* First line: "от 1 000 000 ₽ в месяц" */
    }

    .hero-bg .text-center div>span:last-of-type {
        display: block !important;
        /* Second line: "уже через 3 месяца" */
    }

    /* Income scale section text - restructure for mobile */
    .bg-gradient-to-r .text-xl {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        text-wrap: balance !important;
        /* Better text wrapping */
        line-height: 1.4 !important;
        /* Tighter line height */
        letter-spacing: -0.01em !important;
        /* Slightly tighter letter spacing */
        hyphens: auto !important;
        /* Enable hyphenation */
        -webkit-hyphens: auto !important;
        /* Safari support */
        -ms-hyphens: auto !important;
        /* IE support */
        word-break: break-word !important;
        /* Break long words */
        overflow-wrap: break-word !important;
        /* Modern word breaking */
    }

    .bg-gradient-to-r .text-xl span {
        display: block !important;
        margin-top: 0.5rem !important;
    }

    /* Service cards titles - split into 2 lines on mobile */
    .card-hover h3.text-xl {
        text-wrap: balance !important;
        /* Better text wrapping */
        line-height: 1.3 !important;
        /* Tighter line height */
        hyphens: auto !important;
        /* Enable hyphenation */
        -webkit-hyphens: auto !important;
        /* Safari support */
        -ms-hyphens: auto !important;
        /* IE support */
        word-break: break-word !important;
        /* Break long words */
        overflow-wrap: break-word !important;
        /* Modern word breaking */
    }

    /* Hide top particles in Income Scale Section on mobile */
    #income-scale-section .absolute.top-20.left-10 {
        display: none !important;
        /* Hide green particle at top-20 left-10 */
    }

    #income-scale-section .absolute.top-40.right-20 {
        display: none !important;
        /* Hide blue particle at top-40 right-20 */
    }

    /* Income chart mobile labels - align text vertically centered */
    #income-scale-section .md\\:hidden .flex.space-x-8 {
        align-items: center !important;
        /* Center align all items */
    }

    #income-scale-section .md\\:hidden .text-center {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        min-height: 3rem !important;
        /* Fixed height for alignment */
    }

    /* Ensure both rows are perfectly centered */
    #income-scale-section .md\\:hidden .text-center>div {
        text-align: center !important;
        width: 100% !important;
    }

    /* Subtitle size reduction on mobile */
    .text-xl.text-gray-300.max-w-3xl {
        font-size: 1rem !important;
        /* Reduce from text-xl to text-base */
        line-height: 1.5 !important;
    }

    /* Reduce "10 лет опыта..." subtitle size on mobile */
    .scroll-reveal .text-xl.text-gray-300.max-w-3xl {
        font-size: 1rem !important;
        /* Reduce from text-xl to text-base */
        line-height: 1.5 !important;
    }

    /* Center specific section headings on mobile */
    .space-y-12 h3.text-2xl {
        text-align: center !important;
    }

    /* Center "Франшиза, с которой зарабатываешь" heading on mobile */
    .scroll-reveal h3.text-2xl:not(.hero-bg h3) {
        text-align: center !important;
    }

    /* Reduce heading size on mobile for better line breaks */
    .scroll-reveal h2.text-4xl {
        font-size: 1.75rem !important;
        /* text-3xl */
        line-height: 1.2 !important;
    }

    /* Reduce "Научим франчайзи..." heading size on mobile */
    .scroll-reveal h2.text-4xl.lg\\:text-5xl {
        font-size: 1.75rem !important;
        /* text-3xl */
        line-height: 1.2 !important;
    }

    /* Keep hero section headings left-aligned on mobile */
    .hero-bg .scroll-reveal h3.text-2xl {
        text-align: left !important;
    }

    /* Process section text - improve readability on mobile */
    .space-y-6 p,
    .space-y-6 h4 {
        text-wrap: balance !important;
        /* Better text wrapping */
        line-height: 1.4 !important;
        /* Tighter line height */
        letter-spacing: -0.01em !important;
        /* Slightly tighter letter spacing */
        hyphens: auto !important;
        /* Enable hyphenation */
        -webkit-hyphens: auto !important;
        /* Safari support */
        -ms-hyphens: auto !important;
        /* IE support */
        word-break: break-word !important;
        /* Break long words */
        overflow-wrap: break-word !important;
        /* Modern word breaking */
    }

    /* "Нет в природе одинаковых алмазов..." text - improve readability on mobile */
    .text-gray-300.mb-8.text-lg {
        text-wrap: balance !important;
        /* Better text wrapping */
        line-height: 1.4 !important;
        /* Tighter line height */
        letter-spacing: -0.01em !important;
        /* Slightly tighter letter spacing */
        hyphens: auto !important;
        /* Enable hyphenation */
        -webkit-hyphens: auto !important;
        /* Safari support */
        -ms-hyphens: auto !important;
        /* IE support */
        word-break: break-word !important;
        /* Break long words */
        overflow-wrap: break-word !important;
        /* Modern word breaking */
    }

    /* Training section cards - improve readability on mobile */
    .card-hover p,
    .card-hover h3 {
        text-wrap: balance !important;
        /* Better text wrapping */
        line-height: 1.4 !important;
        /* Tighter line height */
        letter-spacing: -0.01em !important;
        /* Slightly tighter letter spacing */
        hyphens: auto !important;
        /* Enable hyphenation */
        -webkit-hyphens: auto !important;
        /* Safari support */
        -ms-hyphens: auto !important;
        /* IE support */
        word-break: break-word !important;
        /* Break long words */
        overflow-wrap: break-word !important;
        /* Modern word breaking */
    }

    /* Training section cards - mobile layout improvements (ONLY for Training Section) */
    #training .card-hover .flex {
        flex-direction: column !important;
        /* Stack vertically on mobile */
        align-items: center !important;
        /* Center align items */
        text-align: center !important;
        /* Center text */
        gap: 1rem !important;
        /* Add vertical spacing between items */
    }

    /* Remove left margins from Training section cards on mobile (ONLY for Training Section) */
    #training .card-hover .flex>div:first-child {
        margin-left: 0 !important;
        /* Remove left margin from icon */
    }

    #training .card-hover .flex>div:last-child {
        margin-left: 0 !important;
        /* Remove left margin from text */
    }

    /* Training section specific rules for flex-1 */
    #training .card-hover .flex .flex-1 {
        width: 100% !important;
        /* Full width for text content */
        text-align: center !important;
        /* Center text content */
    }

    /* Reduce icon size on mobile for all cards */
    .card-hover .w-16.h-16 {
        width: 3rem !important;
        /* 48px instead of 64px */
        height: 3rem !important;
    }

    .card-hover .text-2xl {
        font-size: 1.25rem !important;
        /* Smaller icon */
    }

    /* Reduce icon size for Services section cards on mobile */
    .card-hover .w-20.h-20 {
        width: 3rem !important;
        /* 48px - smaller for mobile */
        height: 3rem !important;
    }

    .card-hover .text-3xl {
        font-size: 1.25rem !important;
        /* Smaller icon for mobile */
    }

    /* Reduce padding on mobile and fix alignment */
    .card-hover {
        padding: 1.5rem !important;
        /* Reduce from p-8 to p-6 */
        margin-left: 0 !important;
        /* Remove any left margin */
        margin-right: 0 !important;
        /* Remove any right margin */
    }

    /* Ensure cards are properly centered */
    .grid.md\\:grid-cols-2 {
        justify-items: center !important;
        /* Center grid items */
    }
}

@media (max-width: 480px) {

    /* Extra small screens */
    .hero-title {
        font-size: 1.75rem;
    }

    .hero-title .gradient-text {
        font-size: 2rem;
    }

    .text-4xl {
        font-size: 1.75rem;
    }

    .text-5xl {
        font-size: 2rem;
    }

    .px-6 {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .py-20 {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }

    .card {
        padding: 1rem;
    }

    .btn-enhanced {
        padding: 0.625rem 1.25rem;
        font-size: 0.8rem;
    }

    /* Hero section extra small screens */
    .hero-bg {
        padding: 3rem 0 1.5rem 0;
    }

    /* Video responsive adjustments */
    .video-container {
        margin: 0 auto;
        max-width: 100%;
    }

    .video-container video {
        max-height: 300px;
        object-fit: cover;
    }

    /* Income chart extra small */
    .text-2xl {
        font-size: 1.25rem;
    }

    .text-3xl {
        font-size: 1.5rem;
    }
}

/* Utility classes */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: var(--gradient-primary);
}

.border-gradient-primary {
    border: 2px solid transparent;
    background: var(--gradient-secondary) padding-box,
        var(--gradient-primary) border-box;
}

/* Soon label for social icons */
.social-icon {
    position: relative;
}

.soon-label {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10;
}

.social-icon:hover .soon-label {
    opacity: 1;
    visibility: visible;
}

/* Hero title improvements */
.hero-title {
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    line-height: 1.1;
}

.hero-title .gradient-text {
    text-shadow: 0 4px 8px rgba(16, 183, 125, 0.3);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Popup styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.popup-overlay.show {
    display: flex;
}

.popup-content {
    background: white;
    padding: 0;
    max-width: 800px;
    width: 90%;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

@media (min-width: 768px) {
    .popup-content {
        max-width: 600px;
        max-height: 90vh;
        overflow-y: auto;
    }
}

.popup-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: transparent;
    border: none;
    font-size: 32px;
    font-weight: bold;
    color: #10b77d;
    cursor: pointer;
    transition: transform 0.2s ease, text-shadow 0.3s ease;
    z-index: 10000;
}

.popup-close:hover {
    transform: scale(1.1);
    text-shadow: 0 0 8px rgba(16, 183, 125, 0.5);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 24px;
    left: 24px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    border: none;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    font-weight: 700;
    font-size: 22px;
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(16, 183, 125, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top svg {
    width: 24px;
    height: 24px;
    filter: drop-shadow(0 0 4px rgba(16, 183, 125, 0.5));
}

.back-to-top.show {
    opacity: 1;
    pointer-events: auto;
}

.back-to-top:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 183, 125, 0.4);
    background: linear-gradient(135deg, var(--primary-hover), var(--primary-color));
}

.back-to-top:active {
    transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        left: 20px;
        width: 48px;
        height: 48px;
    }

    .back-to-top svg {
        width: 20px;
        height: 20px;
    }
}

/* Enhanced Interactive Animations */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(16, 183, 125, 0.3);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 0 40px rgba(16, 183, 125, 0.6);
        transform: scale(1.05);
    }
}

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

    100% {
        transform: translateX(100%);
    }
}

@keyframes rotate-slow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

/* Interactive Elements */
.floating-element {
    animation: float 6s ease-in-out infinite;
}

.glow-element {
    animation: glow 3s ease-in-out infinite;
}

.animate-pulse-glow {
    animation: pulse-glow 4s ease-in-out infinite;
}

@keyframes button-shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.animate-button-shimmer {
    background: linear-gradient(90deg, #10b77d, #0ea86f, #10b77d);
    background-size: 200% 100%;
    animation: button-shimmer 3s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.animate-button-shimmer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer-sweep 2s ease-in-out infinite;
}

@keyframes shimmer-sweep {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

.animate-button-shimmer-pulse {
    background: linear-gradient(90deg, #10b77d, #0ea86f, #10b77d);
    background-size: 200% 100%;
    animation: button-shimmer 3s ease-in-out infinite, pulse-glow 4s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.animate-button-shimmer-pulse::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer-sweep 2s ease-in-out infinite;
}

/* Scrollbar hide for mobile charts */
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.shimmer-effect {
    position: relative;
    overflow: hidden;
}

.shimmer-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
}

.rotate-slow {
    animation: rotate-slow 20s linear infinite;
}

.pulse-glow {
    animation: pulse-glow 4s ease-in-out infinite;
}

/* Enhanced Card Hover Effects */
.enhanced-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.enhanced-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(16, 183, 125, 0.1), transparent);
    transition: left 0.6s;
}

.enhanced-card:hover::before {
    left: 100%;
}

.enhanced-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(16, 183, 125, 0.2);
}

/* Interactive Background Particles */
.particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    animation: float 8s ease-in-out infinite;
    z-index: 1;
}

.particle:nth-child(odd) {
    animation-direction: reverse;
    animation-duration: 10s;
}

.particle:nth-child(3n) {
    animation-duration: 12s;
    animation-delay: -2s;
}

/* Video styling - диагональный поворот */
.video-container {
    position: relative;
    overflow: hidden;
    transform: rotate(-5deg) scale(1.1);
    transform-origin: center center;
}



/* Video styling - no controls */
.video-container video {
    cursor: pointer;
}

.video-container video::-webkit-media-controls {
    display: none !important;
}

.video-container video::-webkit-media-controls-panel {
    display: none !important;
}

.video-container video::-webkit-media-controls-play-button {
    display: none !important;
}

.video-container video::-webkit-media-controls-timeline {
    display: none !important;
}

.video-container video::-webkit-media-controls-current-time-display,
.video-container video::-webkit-media-controls-time-remaining-display {
    display: none !important;
}

/* Hero Image Styling */
.image-container {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.image-container:hover {
    transform: translateY(-8px) scale(1.02);
    animation-play-state: paused;
}

.image-container img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 1rem;
    transition: all 0.3s ease;
    animation: pulse-glow 4s ease-in-out infinite;
}

/* Mobile responsive - hide br tags on small screens */
@media (max-width: 768px) {
    .hero-title br {
        display: none;
    }

    .hero-description br {
        display: none;
    }

    .hero-description {
        text-align: left;
        line-height: 1.6;
    }

    /* Hero backup section mobile centering */
    #hero-backup .hero-title {
        text-align: center;
        margin-top: 2rem;
    }

    #hero-backup .hero-description {
        text-align: center;
    }

    #hero-backup p.text-xl {
        text-align: center;
    }

    /* Hide button text breaks on mobile */
    #hero-backup .btn-secondary span {
        display: inline;
    }

    /* Background image for mobile */
    #hero-backup {
        background-image: url('../images/2.png');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        position: relative;
    }

    /* Add blur and dark overlay for better text readability */
    #hero-backup::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.85);
        backdrop-filter: blur(6px);
        z-index: 1;
    }

    /* Ensure content is above the overlay */
    #hero-backup .max-w-7xl {
        position: relative;
        z-index: 2;
    }

    /* Hide the image on mobile since it's now background */
    #hero-backup .image-container {
        display: none;
    }

    /* Lower z-index for particles on mobile */
    #hero-backup .particle-container {
        z-index: 0;
    }
}