@font-face {
    font-family: 'Capture it';
    src: url('Captureit/Capture it.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Capture it', sans-serif;
}

:root {
    --neon-green: #43F20C;
    --dark-bg: #000000;
    --blue-gradient-start: #0a0e27;
    --blue-gradient-end: #1a237e;
    --text-white: #ffffff;
}

body {
    font-family: 'Capture it', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-white);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--neon-green);
    transition: all 0.3s ease;
    display: block;
}

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

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

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

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--neon-green);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--neon-green);
    transition: width 0.3s ease;
}

.nav-link:hover {
    opacity: 0.8;
    text-shadow: 0 0 8px rgba(67, 242, 12, 0.6);
}

.nav-link:hover::after {
    width: 100%;
}

.login-btn {
    font-family: 'Capture it', sans-serif;
    background-color: var(--neon-green);
    color: var(--dark-bg);
    border: none;
    padding: 0.6rem 1.5rem;
    font-weight: normal;
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: 4px;
    transition: opacity 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.login-btn:hover {
    opacity: 0.8;
}

.lang-toggle {
    font-family: 'Capture it', sans-serif;
    background: transparent;
    color: var(--neon-green);
    border: 2px solid var(--neon-green);
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    font-weight: normal;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 0.75rem;
}

.lang-toggle:hover {
    background-color: rgba(67, 242, 12, 0.15);
    box-shadow: 0 0 8px rgba(67, 242, 12, 0.4);
}

/* Main Content */
.main {
    position: relative;
    min-height: 100vh;
    padding-top: 80px;
    overflow: hidden;
}

/* Animated Background - ограничен до секции secondary-content */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, #0a0e27 0%, #1a237e 50%, #0d1b2a 100%);
    overflow: hidden;
    z-index: -1;
}

/* Видео фон - ограничено высотой hero и secondary-content */
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    pointer-events: none;
    display: block;
}

/* Затемнение поверх видео - уменьшено для лучшей видимости видео */
.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    z-index: -1;
    pointer-events: none;
}

/* Убраны анимации поверх видео для лучшей видимости - видео теперь полностью видно */

@keyframes swirl {
    0%, 100% {
        transform: rotate(0deg) scale(1) translate(0, 0);
    }
    33% {
        transform: rotate(120deg) scale(1.15) translate(20px, -30px);
    }
    66% {
        transform: rotate(240deg) scale(1.05) translate(-15px, 20px);
    }
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(-30px, -40px) scale(1.1);
    }
    50% {
        transform: translate(20px, 30px) scale(0.95);
    }
    75% {
        transform: translate(-20px, 20px) scale(1.05);
    }
}

/* Hero Section */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    padding: 3rem 2rem 0.3rem 2rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .hero {
        min-height: 0;
        padding: 2rem 1rem 0.5rem 1rem;
        justify-content: flex-start;
    }
    .hero-title {
        margin-bottom: 0.4rem;
    }
    .cta-button {
        margin-top: 1rem;
        margin-bottom: 1.25rem;
    }
    .secondary-content {
        padding: 0.25rem 1rem 1.5rem 1rem;
    }
    .content-text {
        margin-top: 0;
    }
    .text-line {
        margin-bottom: 0.2rem;
        font-size: clamp(1.1rem, 3.5vw, 1.5rem);
    }
}

/* Hero и Secondary Content должны быть поверх видео */
.hero,
.secondary-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-family: 'Capture it', sans-serif;
    font-size: clamp(2.8rem, 7.5vw, 5.5rem);
    font-weight: normal;
    margin-bottom: 0.8rem;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

.title-line {
    display: block;
}

.cta-button {
    font-family: 'Capture it', sans-serif;
    background-color: transparent;
    border: 2px solid var(--neon-green);
    color: var(--text-white);
    padding: 0.9rem 2.8rem;
    font-size: 1.1rem;
    font-weight: normal;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--neon-green);
    transition: left 0.3s ease;
    z-index: -1;
}

.cta-button:hover {
    color: var(--dark-bg);
    box-shadow: 0 0 25px rgba(67, 242, 12, 0.6);
}

.cta-button:hover::before {
    left: 0;
}

/* Secondary Content */
.secondary-content {
    padding: 0 2rem 4rem 2rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.content-text {
    max-width: 900px;
    margin: 0.2rem auto 0 auto;
}

.text-line {
    font-family: 'Capture it', sans-serif;
    font-size: clamp(1.4rem, 4vw, 2.2rem);
    font-weight: normal;
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.25;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

/* Features Section */
.features {
    background-color: var(--dark-bg);
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.features-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.ru-flag {
    max-width: 1200px;
    width: 100%;
    height: auto;
    display: block;
}

/* Десктоп: одно изображение; мобильная: лента картинок */
.features-desktop-img {
    display: block;
}

.features-mobile-feed {
    display: none;
}

@media (max-width: 768px) {
    .features-desktop-img {
        display: none;
    }
    .features-mobile-feed {
        display: block;
        margin-left: -2rem;
        margin-right: -2rem;
        padding: 0 5px;
        width: 100%;
    }
    .features-feed-img {
        display: block;
        width: 100%;
        height: auto;
    }
    .features-feed-img:not(:last-child) {
        margin-bottom: 0.5rem;
    }
}

.features-title {
    font-family: 'Capture it', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Example Section */
.example-section {
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    z-index: 1;
    background-color: rgba(0, 0, 0, 0.5);
}

.example-title {
    font-family: 'Capture it', sans-serif;
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: normal;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-white);
}

.example-bot, .example-domain {
    margin: 1rem 0;
}

.bot-title, .domain-title {
    font-family: 'Capture it', sans-serif;
    font-size: clamp(1.3rem, 3.5vw, 2rem);
    font-weight: normal;
    color: var(--neon-green);
    text-shadow: 0 0 10px rgba(67, 242, 12, 0.5);
}

.bot-title a, .domain-title a {
    color: var(--neon-green);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.bot-title a:hover, .domain-title a:hover {
    opacity: 0.8;
    text-shadow: 0 0 15px rgba(67, 242, 12, 0.8);
}

/* Gallery Section */
.gallery-section {
    padding: 4rem 2rem;
    background-color: var(--dark-bg);
    position: relative;
    z-index: 1;
}

.gallery-carousel {
    max-width: 512px;
    margin: 0 auto;
    position: relative;
}

.carousel-container {
    position: relative;
    width: 100%;
    aspect-ratio: 9/16;
    overflow: hidden;
    border-radius: 12px;
    background-color: rgba(0, 0, 0, 0.5);
    border: 2px solid #43F20C;
    box-shadow: 0 0 10px rgba(67, 242, 12, 0.3);
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.carousel-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    border: 2px solid var(--neon-green);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicator.active {
    background-color: var(--neon-green);
    box-shadow: 0 0 10px rgba(67, 242, 12, 0.6);
}

/* Footer Section */
.footer-section {
    background-color: var(--dark-bg);
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

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

.footer-title {
    font-family: 'Capture it', sans-serif;
    font-size: clamp(1.8rem, 4.5vw, 3rem);
    font-weight: normal;
    margin-bottom: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.2;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.footer-link {
    color: var(--neon-green);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--neon-green);
    border-radius: 4px;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-link:hover {
    background-color: rgba(67, 242, 12, 0.1);
    box-shadow: 0 0 8px rgba(67, 242, 12, 0.4);
}

.footer-apps {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.footer-app-item {
    text-align: center;
}

.footer-app-item p {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.footer-app-item h3 {
    font-size: 1.5rem;
    margin: 0;
}

.footer-app-item a {
    color: var(--text-white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-app-item a:hover {
    color: var(--neon-green);
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.footer-logo-images {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-logo-images a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-logo-images img {
    height: 50px;
    width: auto;
}

.footer-logo-text {
    color: var(--text-white);
    font-size: 2rem;
    margin-left: 0.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-top: 1rem;
}

.footer-social-icon {
    color: var(--text-white);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-social-icon:hover {
    color: var(--neon-green);
}

.footer-social-icon:hover img {
    filter: brightness(0) saturate(100%) invert(67%) sepia(100%) saturate(5000%) hue-rotate(90deg);
}

.footer-social-icon:hover svg {
    fill: var(--neon-green);
    filter: drop-shadow(0 0 4px rgba(67, 242, 12, 0.6));
}

.footer-heart {
    text-align: center;
    font-size: 1.5rem;
    margin-top: 0.5rem;
}

.footer-social-icon svg {
    width: 48px;
    height: 48px;
    display: block;
    fill: currentColor;
    transition: all 0.3s ease;
}

.footer-social-icon img {
    width: 48px;
    height: 48px;
    display: block;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
}

.footer-copyright {
    margin-top: 1rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--neon-green);
    background-color: transparent;
    color: var(--neon-green);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background-color: var(--neon-green);
    color: var(--dark-bg);
    box-shadow: 0 0 15px rgba(67, 242, 12, 0.5);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        padding: 1rem;
    }

    .nav {
        flex-wrap: wrap;
        gap: 1rem;
        position: relative;
    }

    .menu-toggle {
        display: flex;
        order: 2;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: rgba(0, 0, 0, 0.95);
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        margin-top: 1rem;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
        border-top: 2px solid var(--neon-green);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-link {
        font-size: 0.9rem;
        padding: 1rem 2rem;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(67, 242, 12, 0.2);
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    .lang-toggle {
        order: 3;
        margin-right: 0.5rem;
    }

    .login-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
        order: 4;
    }

    .scroll-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }
}
