/* General Styles */
:root {
    --background-color: #0a0a0a;
    --text-color: #ffffff;
    --accent-color: #ff8a00;
    --surface-color: #1a1a1a;
    --border-color: #333333;
    --container-width: 1200px;
    --header-height: 80px;
    --font-family-main: 'Inter', sans-serif;
    --font-family-headings: 'Montserrat', sans-serif;
    --transition-speed: 0.3s;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: var(--font-family-main);
    margin: 0;
    padding-top: var(--header-height);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    font-family: var(--font-family-headings);
    color: var(--text-color);
    font-weight: 700;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--text-color);
}

img {
    max-width: 100%;
    height: auto;
}

/* Background Canvas */
#background-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Preloader */
body.loading, body.mobile-nav-open, html.mobile-nav-open {
    overflow: hidden;
}

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 1s ease, visibility 1s ease;
}

.loader-content {
    text-align: center;
}

.loader-text {
    font-family: 'Exo 2', sans-serif;
    font-size: 3rem;
    color: var(--accent-color);
    animation: flicker 2s linear infinite;
}

.loading-bar-container {
    width: 200px;
    height: 4px;
    background-color: #333;
    margin: 20px auto 0;
    border-radius: 2px;
}

.loading-bar {
    width: 0;
    height: 100%;
    background-color: var(--accent-color);
    border-radius: 2px;
    animation: load 5s linear forwards;
}

@keyframes flicker {
    0%, 100% { opacity: 0.8; text-shadow: 0 0 4px var(--accent-color); }
    50% { opacity: 0.6; text-shadow: none; }
}

@keyframes load {
    from { width: 0; }
    to { width: 100%; }
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-family: 'Exo 2', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
}

.main-nav {
    display: none;
}

@media (min-width: 769px) {
    .main-nav {
        display: block;
    }
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.main-nav li {
    margin-left: 40px;
}

.main-nav a {
    color: var(--text-color);
    font-weight: 700;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width var(--transition-speed) ease;
}

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

.header-controls {
    display: flex;
    align-items: center;
}

/* Language Switcher */
.language-switcher {
    position: relative;
    margin-left: 20px;
}

.current-language {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 700;
}

.current-language .flag-icon {
    margin-right: 8px;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    list-style: none;
    padding: 10px 0;
    margin: 10px 0 0;
    display: none;
}

.language-switcher.open .language-dropdown {
    display: block;
}

.language-dropdown li {
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color var(--transition-speed) ease;
    display: flex;
    align-items: center;
}

.language-dropdown li .flag-icon {
    margin-right: 10px;
}

.language-dropdown li:hover {
    background-color: var(--accent-color);
}

/* Hamburger Menu */
.hamburger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
    right: 25px;
}

.hamburger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px 0;
    transition: all var(--transition-speed) ease;
}

/* Mobile Nav */
.mobile-nav {
    position: fixed;
    top: 0;
    left: -100vw;
    width: 100vw;
    height: 100vh; /* Use vh for full height */
    background-color: var(--background-color);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: left var(--transition-speed) ease;
    overflow-y: auto;
}

.mobile-nav.open {
    left: 0;
}

.close-mobile-nav {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 2.5rem;
    cursor: pointer;
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
    text-align: center;
}

.mobile-nav li {
    margin: 20px 0;
}

.mobile-nav a {
    color: var(--text-color);
    font-size: 2rem;
    font-weight: 700;
}

.language-switcher-mobile {
    margin-top: 40px;
    text-align: center;
    position: relative;
}

.current-language-mobile {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 1.5rem;
}

.language-dropdown-mobile {
    list-style: none;
    padding: 0;
    margin-top: 10px;
    display: none;
}

.language-switcher-mobile.open .language-dropdown-mobile {
    display: block;
}

.language-switcher-mobile li {
    margin: 10px 0;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.language-switcher-mobile li .flag-icon {
    margin-right: 10px;
}


/* Hero Section */
.hero-section {
    height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-section h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero-section p {
    font-size: 1.25rem;
    margin-bottom: 40px;
}

.cta-button {
    background-color: var(--accent-color);
    color: var(--background-color);
    padding: 15px 30px;
    border-radius: 5px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
}

.cta-button:hover {
    background-color: var(--text-color);
    color: var(--accent-color);
}

/* Content Sections */
.content-section {
    padding: 100px 0;
}

.content-section.bg-dark {
    background-color: var(--surface-color);
}

.content-section h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 60px;
}

/* Carousel */
.carousel-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    perspective: 1000px;
}

.carousel {
    position: relative;
    width: 100%;
    height: 400px;
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
}

.carousel-slide {
    position: absolute;
    width: 300px;
    height: 350px;
    top: 25px;
    left: calc(50% - 150px);
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.5s ease, opacity 0.5s ease, filter 0.5s ease;
    cursor: pointer;
}

.carousel-slide img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    transition: background-color var(--transition-speed) ease;
}

.carousel-button:hover {
    background-color: var(--accent-color);
}

.carousel-button.prev {
    left: -50px;
}

.carousel-button.next {
    right: -50px;
}

.card-content {
    padding: 20px;
}

.card-content h3 {
    margin: 0;
    font-size: 1.5rem;
}

/* Advantages */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    text-align: center;
}

.advantage-card .icon-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--accent-color);
    margin: 0 auto 20px;
}

.advantage-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* Footer */
.site-footer {
    background-color: var(--surface-color);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column li {
    margin-bottom: 10px;
}

.footer-column a {
    color: var(--text-color);
}

.footer-column a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    font-size: 0.9rem;
    color: #888;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--surface-color);
    margin: 5% auto;
    padding: 40px;
    border: 1px solid var(--border-color);
    width: 80%;
    max-width: 900px;
    border-radius: 10px;
    position: relative;
}

.close-button {
    color: #aaa;
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: var(--accent-color);
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    margin-bottom: 20px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.screenshots-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.screenshots-container img {
    width: 100%;
    border-radius: 5px;
}

.modal-description ul {
    list-style: none;
    padding: 0;
}

.modal-description li {
    margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .hamburger-menu {
        display: block;
        position: relative;
        right: 5px;
    }
    .main-nav, .header-controls {
        display: none;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .modal-body {
        grid-template-columns: 1fr;
    }

    .carousel-button.prev {
        left: 10px;
    }

    .carousel-button.next {
        right: 10px;
    }
}
fr;
    }
}
lumns: 1fr;
    }
}
fr;
    }
}
