/* создатель сайта + бота @exonique */
:root {
    --primary-color: #00aaff;
    --glow-color: rgba(0, 170, 255, 0.75);
    --background-color: #010409;
    --text-color: #c9d1d9;
    --card-background: rgba(22, 27, 34, 0.6);
    --border-color: rgba(56, 139, 253, 0.3);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background-color: var(--background-color); font-family: 'Monospace', 'Courier New', Courier, monospace; color: var(--text-color); overflow: hidden; }
body.lightbox-active { overflow: hidden; }
.main-container { height: 100vh; transition: transform 1s cubic-bezier(0.86, 0, 0.07, 1); }
#particles-js { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; }

body::-webkit-scrollbar { width: 8px; }
body::-webkit-scrollbar-track { background: var(--background-color); }
body::-webkit-scrollbar-thumb { background-color: var(--primary-color); border-radius: 10px; border: 2px solid var(--background-color); transition: background-color 0.5s ease; }

.header { position: fixed; top: 0; left: 0; width: 100%; padding: 15px 5%; background: rgba(1, 4, 9, 0.8); backdrop-filter: blur(10px); display: flex; justify-content: center; align-items: center; z-index: 100; border-bottom: 1px solid var(--border-color); }
.nav { display: flex; align-items: center; }
.nav-link { color: var(--text-color); text-decoration: none; margin: 0 20px; font-size: 1.1em; transition: color 0.5s ease, text-shadow 0.5s ease; position: relative; }
.nav-link:hover, .nav-link.active { color: var(--primary-color); text-shadow: 0 0 10px var(--glow-color); }
.external-link span { display: inline-block; transition: transform 0.3s; }
.external-link:hover span { transform: translate(3px, -3px); }
.hamburger-menu { display: none; background: transparent; border: none; cursor: pointer; z-index: 101; padding: 10px; }
.hamburger-menu span { display: block; width: 25px; height: 3px; background-color: var(--text-color); margin: 5px 0; transition: all 0.4s ease-in-out; }

.section { height: 100vh; padding: 100px 5% 80px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; position: relative; overflow: hidden; }
.section-title { font-size: 2.5em; margin-bottom: 40px; color: #fff; text-shadow: 0 0 15px var(--glow-color); transition: text-shadow 0.5s ease; }

.hero-logo { width: 100px; height: 100px; margin-bottom: 20px; filter: drop-shadow(0 0 15px var(--glow-color)); transition: filter 0.5s ease; }
.hero-title { font-size: 3.5em; color: #fff; text-shadow: 0 0 20px var(--glow-color); margin-bottom: 15px; transition: text-shadow 0.5s ease; }
.hero-button { display: inline-block; padding: 15px 30px; background-color: transparent; border: 2px solid var(--primary-color); border-radius: 5px; color: var(--primary-color); font-size: 1.2em; text-decoration: none; transition: background-color 0.3s, box-shadow 0.3s, color 0.5s, border-color 0.5s; }
.hero-button:hover { background-color: var(--primary-color); color: var(--background-color); box-shadow: 0 0 20px var(--glow-color); }
.features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; width: 100%; max-width: 900px; margin: 0 auto; }
.feature-card { background: var(--card-background); border: 1px solid var(--border-color); border-radius: 10px; padding: 30px; }
.screenshots-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; width: 100%; max-width: 900px; }
.screenshot-item { width: 100%; border-radius: 10px; border: 1px solid var(--border-color); object-fit: cover; aspect-ratio: 16 / 10; cursor: pointer; }
.faq-container { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 1000px; width: 100%; text-align: left; }
.faq-item, .feature-card, .screenshot-item { transition: border-color 0.5s, box-shadow 0.5s, transform 0.3s; }
.feature-card:hover, .screenshot-item:hover { transform: translateY(-10px); box-shadow: 0 0 25px var(--glow-color); }
.screenshot-item:hover { transform: scale(1.03); }

#home .hero-content { max-width: 800px; }
.feature-icon { font-size: 3em; }
.feature-title { font-size: 1.5em; color: #fff; margin: 15px 0; }
.feature-description { font-size: 1em; line-height: 1.6; }
.faq-item { background: var(--card-background); border: 1px solid var(--border-color); border-radius: 5px; }
.faq-question { padding: 20px; font-size: 1.2em; color: #fff; cursor: pointer; position: relative; }
.faq-question::after { content: '+'; position: absolute; right: 20px; font-size: 1.5em; transition: transform 0.3s; }
.faq-item.active .faq-question::after { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.5s ease-out, padding 0.5s ease-out; }
.faq-answer p { padding: 0 20px 20px; line-height: 1.7; }
.faq-item.active .faq-answer { max-height: 200px; }

.footer { position: fixed; bottom: 0; left: 0; width: 100%; padding: 10px 5%; display: flex; justify-content: space-between; align-items: center; background: rgba(1, 4, 9, 0.8); backdrop-filter: blur(10px); border-top: 1px solid var(--border-color); z-index: 100; transition: border-color 0.5s ease; }
.footer-status { display: flex; align-items: center; }
.cursor { color: var(--primary-color); animation: blink 1s step-end infinite; transition: color 0.5s ease; }
@keyframes blink { 50% { opacity: 0; } }

.section .section-title, .section .hero-content > *, .section .features-grid, .section .screenshots-grid, .section .faq-container { opacity: 0; transform: scale(0.9); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.section.is-visible .section-title, .section.is-visible .hero-content > *, .section.is-visible .features-grid, .section.is-visible .screenshots-grid, .section.is-visible .faq-container { opacity: 1; transform: scale(1); }
.section.is-visible .hero-logo { transition-delay: 0.1s; }
.section.is-visible .hero-title { transition-delay: 0.2s; }
.section.is-visible .hero-subtitle { transition-delay: 0.3s; }
.section.is-visible .hero-button { transition-delay: 0.4s; }

.lightbox { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.85); z-index: 1000; display: flex; justify-content: center; align-items: center; opacity: 0; pointer-events: none; transition: opacity 0.4s ease; }
.lightbox.active { opacity: 1; pointer-events: all; }
.lightbox-content { max-width: 90%; max-height: 85%; object-fit: contain; transform: scale(0.8); transition: transform 0.4s ease; }
.lightbox.active .lightbox-content { transform: scale(1); }
.lightbox-close { position: absolute; top: 20px; right: 30px; color: #fff; font-size: 45px; font-weight: bold; cursor: pointer; transition: color 0.3s; }
.lightbox-close:hover { color: var(--primary-color); }

@media (max-width: 768px) {
    body, html { overflow: auto; }
    .main-container { height: auto; transition: none; }
    .header { justify-content: flex-end; }
    .hamburger-menu { display: flex; flex-direction: column; }
    .nav { position: fixed; top: 0; right: 0; height: 100vh; width: 70%; max-width: 300px; background: rgba(1, 4, 9, 0.9); backdrop-filter: blur(15px); flex-direction: column; justify-content: center; align-items: center; transform: translateX(100%); transition: transform 0.4s ease-in-out; }
    .nav.open { transform: translateX(0); }
    .nav-link { font-size: 1.5em; margin: 20px 0; }
    .hamburger-menu.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .hamburger-menu.open span:nth-child(2) { opacity: 0; }
    .hamburger-menu.open span:nth-child(3) { transform: rotate(-45deg) translate(7px, -6px); }
    .section { height: auto; min-height: 100vh; padding: 80px 5% 80px; }
    .section-title, .hero-title, .hero-logo, .hero-button, .feature-card, .screenshot-item, .footer, .cursor, .nav-link { transition: none !important; }
    .hero-title { font-size: 2.2em; line-height: 1.2; } .hero-subtitle { font-size: 1.1em; } .faq-question { font-size: 1.1em; }
    .features-grid, .screenshots-grid, .faq-container { grid-template-columns: 1fr; }
    .faq-item { margin-bottom: 15px; }
    .footer { position: relative; flex-direction: column; justify-content: center; padding: 20px 5%; gap: 15px; backdrop-filter: none; background: transparent; border-top: 1px solid var(--border-color); margin-top: -1px; }
}