@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
    --neon-turquoise: #00f0ff;
    --dark-gray: #1a1a1a;
    --light-gray: #e5e7eb;
    --background-dark: #0a0a0a;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
}

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

body {
    font-family: 'Space Grotesk', sans-serif;
    background-color: #0a0a0a;
    color: white;
    overflow-x: hidden;
    line-height: 1.5;
}

/* Neon Elements */
.neon-text {
    text-shadow: 0 0 5px rgba(0, 240, 255, 0.5), 0 0 10px rgba(0, 240, 255, 0.3);
    position: relative;
    z-index: 2;
    padding: 0.5em;
}

/* Organic shape text container with subtle background */
.text-container {
    position: relative;
    display: block;
    padding: 2em;
    width: 100%;
    max-width: 100%;
    text-align: center;
}

.text-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3); /* More transparent background */
    border-radius: 40% 60% 60% 40% / 70% 30% 70% 30%; /* Organic, blob-like shape */
    z-index: -1;
    transform: scale(1.05);
}

/* Stylish subtitle container */
.subtitle-container {
    position: relative;
    max-width: 600px;
    margin-top: 1.5rem;
}

/* Logo animation and about section styling */
.logo-container {
    position: relative;
    display: inline-block;
    animation: logoPulse 4s infinite ease-in-out;
    filter: drop-shadow(0 0 10px rgba(0, 247, 255, 0.5));
}

@keyframes logoPulse {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 8px rgba(0, 247, 255, 0.4));
    }
    50% {
        transform: scale(1.08);
        filter: drop-shadow(0 0 15px rgba(255, 0, 200, 0.6));
    }
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 8px rgba(0, 247, 255, 0.4));
    }
}

.about-section {
    background-color: #0a0a0a; /* Dark background to match logo background */
    position: relative;
    margin-bottom: 0;
    padding-bottom: 80px; /* Extra padding to account for the torn edge */
    z-index: 1;
}

/* Общие стили для всех секций */
section {
    position: relative;
    z-index: 1;
    padding-bottom: 50px; /* Добавляем отступ снизу для всех секций */
}

/* Базовые стили для всех волнистых разделителей */
.wave-divider {
    position: relative;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 5;
    pointer-events: none;
    margin-top: 0;
    margin-bottom: 0;
}

.wave-divider svg {
    position: relative;
    display: block;
    width: 100%;
}

.wave-path {
    fill: #0a0a0a;
    filter: drop-shadow(0 0 15px rgba(225, 0, 255, 0.7));
    animation: glow-pulse 8s infinite;
}

/* Стили для шести разных волн */
.wave-1 {
    height: 110px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    transform: translateY(20px);
}

.wave-1 svg {
    height: 110px;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    transform: translateY(20px);
}

.wave-2 {
    height: 100px;
    position: absolute;
    bottom: -5;
    left: 0;
    right: 0;
    margin: 0;
}

.wave-2 svg {
    height: 100px;
    position: absolute;
    bottom: -5;
    left: 0;
    width: 100%;

}

.wave-3 {
    height: 120px;
    position: absolute;
    bottom: -10;
    left: 0;
    right: 0;
    margin: 0;
}

.wave-3 svg {
    height: 120px;
    position: absolute;
    bottom: -10;
    left: 0;
    width: 100%;
}

.wave-4 {
    height: 90px;
    position: absolute;
    bottom: -20;
    left: 0;
    right: 0;
    margin: 0;
}

.wave-4 svg {
    height: 90px;
    position: absolute;
    bottom: -20;
    left: 0;
    width: 100%;
}

.wave-5 {
    height: 110px;
    position: absolute;
    bottom: -30;
    left: 0;
    right: 0;
    margin: 0;
}

.wave-5 svg {
    height: 110px;
    position: absolute;
    bottom: -30;
    left: 0;
    width: 100%;
}

.wave-6 {
    height: 130px;
    position: absolute;
    bottom: -30;
    left: 0;
    right: 0;
    margin: 0;
}

.wave-6 svg {
    height: 130px;
    position: absolute;
    bottom: -30;
    left: 0;
    width: 100%;
}

/* Diagonal curved section divider */
.section-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    z-index: 10;
    pointer-events: none;
}

.divider-curve {
    position: absolute;
    width: 100%;
    height: 150px;
    bottom: 0;
    left: 0;
    filter: drop-shadow(0 0 15px rgba(225, 0, 255, 0.7));
    animation: glow-pulse 8s infinite;
}

@keyframes glow-pulse {
    0% { filter: drop-shadow(0 0 15px rgba(225, 0, 255, 0.6)); }
    50% { filter: drop-shadow(0 0 20px rgba(225, 0, 255, 0.8)); }
    100% { filter: drop-shadow(0 0 15px rgba(225, 0, 255, 0.6)); }
}

/* Add a subtle glow line along the curve */
.divider-curve::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 30%, rgba(0, 247, 255, 0.15) 50%, transparent 70%);
    pointer-events: none;
}

.divider-curve path {
    fill: #0a0a0a; /* Same as the top section background */
    transform: translateY(0); /* Убираем сдвиг вниз, так как он может вызывать проблемы */
}

/* Variations for different sections */
.divider-1 {
    transform: scaleX(-1); /* Flip horizontally for variety */
}

.divider-2 {
    height: 180px; /* Slightly taller */
}

.divider-3 {
    transform: scaleY(-1); /* Flip vertically */
}

.divider-4 {
    transform: scale(-1, 1); /* Flip horizontally */
}

/* Results section styling */
.results-section {
    background: #0a0a0a; /* Same dark background as the About section */
    position: relative;
    margin-top: 0;
    z-index: 1;
    padding-top: 100px; /* Extra padding to account for the diagonal curve */
}

.stat-box {
    padding: 1.5rem;
    background-color: rgba(10, 10, 10, 0.7);
    border: 1px solid rgba(0, 247, 255, 0.3);
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 247, 255, 0.1);
}

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 15px rgba(0, 247, 255, 0.2);
    border-color: rgba(0, 247, 255, 0.5);
}

.subtitle-text {
    position: relative;
    display: inline-block;
    font-weight: 500;
    letter-spacing: 1px;
    animation: pulseText 2s infinite alternate;
}

@keyframes pulseText {
    0% {
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    }
    100% {
        text-shadow: 0 0 15px rgba(255, 255, 255, 0.8), 0 0 20px rgba(0, 247, 255, 0.4);
    }
}

.highlight {
    position: relative;
    color: var(--neon-turquoise);
    font-weight: 700;
    padding: 0 0.2em;
}

.highlight::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-turquoise), transparent);
    animation: scanLine 3s infinite linear;
}

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

/* Header neon border effect */
:root {
    --neon-turquoise: #00f7ff;
    --neon-pink: #ff00ff;
}

@keyframes sparkMotion {
    0% {
        stroke-dashoffset: 1000;
    }
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes glowPulse {
    0%, 100% {
        filter: drop-shadow(0 0 6px var(--neon-turquoise));
    }
    50% {
        filter: drop-shadow(0 0 10px var(--neon-turquoise));
    }
}

.header-neon {
    position: relative;
    display: inline-block;
    padding: 1em 2.5em;
    margin: 0 auto;
    color: white;
    font-weight: bold;
    font-family: 'Space Grotesk', sans-serif;
    background-color: transparent;
    border: none;
    z-index: 1;
}

/* Removed the old background */

/* SVG container for the animated border */
.header-neon svg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: calc(100% + 10px);
    height: calc(100% + 10px);
    transform: translate(-50%, -50%);
    z-index: -1;
    overflow: visible;
}

/* Main turquoise border */
.header-neon svg .border-path {
    fill: none;
    stroke: var(--neon-turquoise);
    stroke-width: 2px;
    filter: drop-shadow(0 0 8px var(--neon-turquoise));
    animation: glowPulse 4s infinite ease-in-out;
}

/* Animated pink spark */
.header-neon svg .spark-path {
    fill: none;
    stroke: var(--neon-pink);
    stroke-width: 3px;
    stroke-linecap: round;
    stroke-dasharray: 4, 996; /* Creates a small dot */
    stroke-dashoffset: 1000;
    filter: drop-shadow(0 0 8px var(--neon-pink));
    animation: sparkMotion 6s linear infinite;
}

.neon-border {
    border: 1px solid var(--neon-turquoise);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.3), inset 0 0 10px rgba(0, 240, 255, 0.1);
}

/* Cyberpunk neon button */
.cyberpunk-button {
    position: relative;
    display: inline-block;
    padding: 22px 50px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: white;
    background-color: rgba(0, 0, 0, 0.4);
    border: 3px solid var(--neon-turquoise);
    border-radius: 36px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    min-width: 360px;
    box-shadow: 0 0 20px rgba(0, 247, 255, 0.4), inset 0 0 10px rgba(0, 247, 255, 0.2);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    margin: 20px auto;
}

.button-content {
    position: relative;
    z-index: 3;
}

.button-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 28px;
    box-shadow: 0 0 15px rgba(0, 247, 255, 0.5);
    opacity: 0.5;
    z-index: 1;
    transition: opacity 0.3s ease;
}

.button-spark {
    position: absolute;
    top: 0;
    left: -30%;
    width: 30%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 0, 255, 0.4), transparent);
    z-index: 2;
    transform: skewX(-45deg);
    animation: spark-off 0.5s ease forwards;
    opacity: 0;
}

@keyframes spark-on {
    0% {
        opacity: 0;
        left: -30%;
    }
    100% {
        opacity: 1;
        left: 130%;
    }
}

@keyframes button-pulse {
    0%, 100% {
        box-shadow: 0 0 15px rgba(0, 247, 255, 0.5), inset 0 0 8px rgba(0, 247, 255, 0.2);
    }
    50% {
        box-shadow: 0 0 25px rgba(0, 247, 255, 0.8), inset 0 0 12px rgba(0, 247, 255, 0.4);
    }
}

.cyberpunk-button:hover {
    background-color: rgba(0, 247, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 247, 255, 0.6), inset 0 0 12px rgba(0, 247, 255, 0.3);
    transform: translateY(-2px);
}

.cyberpunk-button:hover .button-glow {
    opacity: 0.8;
    animation: button-pulse 2s infinite;
}

.cyberpunk-button:hover .button-spark {
    animation: spark-on 1.2s ease-in-out infinite;
    opacity: 1;
}

.neon-button {
    background: linear-gradient(45deg, rgba(0, 240, 255, 0.2), rgba(0, 240, 255, 0.1));
    transition: all 0.3s ease;
}

.neon-button:hover {
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.5);
    transform: translateY(-2px);
}

/* Layout Elements */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.7;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.hero-gradient {
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.9) 0%, rgba(10, 10, 10, 0.7) 100%);
}

/* Cards and Hover Effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 240, 255, 0.2);
}

.package-card {
    transition: all 0.3s ease;
}

.package-card:hover {
    transform: scale(1.02);
}

/* Modal Styles */
.modal-overlay {
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    animation: fadeIn 0.3s ease-out;
}

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

.glow {
    animation: glow 2s infinite alternate;
}

@keyframes glow {
    from {
        box-shadow: 0 0 5px rgba(0, 240, 255, 0.5);
    }
    to {
        box-shadow: 0 0 20px rgba(0, 240, 255, 0.8);
    }
}

/* Buttons */
.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: transparent;
    border: 1px solid var(--neon-turquoise);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: rgba(0, 242, 255, 0.1);
    box-shadow: 0 0 10px rgba(0, 242, 255, 0.3);
}