:root {
    --primary-color: #6a11cb;
    --secondary-color: #2575fc;
    --dark-color: #121212;
    --light-color: #ffffff;
    --gray-color: #222222;
    --text-color: #e0e0e0;
    --text-muted: #aaaaaa;
    --font-family: 'Montserrat', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--dark-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-color);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 50px;
    filter: invert(1);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--light-color);
    position: relative;
    transition: background-color 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 3px;
    background-color: var(--light-color);
    left: 0;
    transition: transform 0.3s ease;
}

.hamburger::before { top: -8px; }
.hamburger::after { bottom: -8px; }

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 5px;
    margin-left: 20px;
}

.lang-button {
    background: var(--gray-color);
    color: var(--text-color);
    border: 1px solid var(--gray-color);
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.lang-button:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--light-color);
}

.lang-button.active {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-color: var(--secondary-color);
    color: var(--light-color);
    pointer-events: none; /* Disable click on active button */
}

/* Hero Section */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(18, 18, 18, 0.7), rgba(18, 18, 18, 0.9)), url('hero-background.png') no-repeat center center/cover;
    padding-top: 90px; /* Header height */
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    color: var(--text-muted);
}

.cta-button {
    display: inline-block;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: var(--light-color);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(37, 117, 252, 0.3);
}

/* General Section Styling */
.section {
    padding: 6rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    font-weight: 700;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--gray-color);
    padding: 2.5rem;
    border-radius: 10px;
    text-align: center;
    border: 1px solid transparent;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--secondary-color);
}

.service-card img {
    height: 60px;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-muted);
}

/* About Section */
#about {
    background-color: var(--gray-color);
}
.about-container {
    display: flex;
    align-items: center;
    gap: 3rem;
}
.about-image { flex: 1; }
.about-image img {
    width: 100%;
    border-radius: 10px;
}
.about-content { flex: 1; }
.about-content .section-title { text-align: left; }

/* Process Section */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}
.process-step {
    border-left: 3px solid var(--secondary-color);
    padding: 1.5rem 2rem;
    position: relative;
}
.process-number {
    position: absolute;
    top: -1.5rem;
    left: -1.5rem;
    font-size: 3rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.05);
    z-index: -1;
}
.process-step h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

/* Portfolio Section */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}
.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
}
.portfolio-item img {
    width: 100%;
    display: block;
    transition: transform 0.4s ease;
}
.portfolio-item:hover img {
    transform: scale(1.1);
}
.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: white;
    padding: 2rem 1.5rem 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: transform 0.4s ease, opacity 0.4s ease;
}
.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
    transform: translateY(0);
}
.portfolio-overlay h3 { margin-bottom: 0.5rem; }

/* Testimonials Section */
#testimonials {
    background-color: var(--gray-color);
}
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}
.testimonial-card {
    background-color: var(--dark-color);
    padding: 2.5rem;
    border-radius: 10px;
    border: 1px solid #2a2a2a;
    position: relative;
}
.quote-icon {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    height: 40px;
    opacity: 0.1;
}
.testimonial-text {
    font-style: italic;
    margin-bottom: 2rem;
    color: var(--text-muted);
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}
.author-name {
    margin: 0;
    font-weight: 700;
}
.author-title {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    border-bottom: 1px solid var(--gray-color);
}
.faq-question {
    width: 100%;
    background: none;
    border: none;
    color: var(--text-color);
    padding: 1.5rem 0;
    text-align: left;
    font-size: 1.2rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-family);
}
.faq-icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}
.faq-answer p {
    color: var(--text-muted);
    padding-bottom: 1.5rem;
}
.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

/* Contact Section */
#contact {
    background: linear-gradient(rgba(18, 18, 18, 0.9), rgba(18, 18, 18, 1)), url('hero-background.png') no-repeat center center/cover;
    text-align: center;
}
.contact-container p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--text-muted);
}
.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.contact-button {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    color: var(--light-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.contact-button:hover {
    transform: translateY(-3px);
}
.contact-button img {
    height: 24px;
}
.telegram {
    background-color: #0088cc;
}
.telegram:hover {
    box-shadow: 0 5px 15px rgba(0, 136, 204, 0.4);
}
.phone {
    background-color: #333333;
}
.phone:hover {
    box-shadow: 0 5px 15px rgba(85, 85, 85, 0.4);
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    padding: 50px 0;
    color: #777;
    font-size: 0.9rem;
    border-top: 1px solid #333;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-info p {
    margin-bottom: 5px;
    font-size: 1rem;
    color: var(--text-color);
}

.footer-info a {
    color: var(--text-color);
    transition: color 0.3s;
}

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

.footer-copy p {
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 500;
    text-shadow: 0 0 5px rgba(255,255,255,0.2);
}

/* Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}
/* Staggered animation */
.animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.animate-on-scroll:nth-child(4) { transition-delay: 0.3s; }

/* Responsive Design */
@media (max-width: 900px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--dark-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        gap: 3rem;
    }
    .nav-links.active {
        transform: translateX(0);
    }
    .nav-links a { font-size: 1.5rem; }
    .menu-toggle {
        display: block;
        z-index: 1001;
    }
    .menu-toggle.active .hamburger {
        background-color: transparent;
    }
    .menu-toggle.active .hamburger::before {
        transform: rotate(45deg);
        top: 0;
    }
    .menu-toggle.active .hamburger::after {
        transform: rotate(-45deg);
        bottom: 0;
    }
    .language-switcher {
        position: absolute; /* Position relative to .header nav */
        top: 1rem;
        right: 80px; /* Adjust as needed, to not overlap with menu toggle */
        z-index: 1001;
    }

    .hero-content h1 { font-size: 2.5rem; }
    .hero-content p { font-size: 1rem; }
    .section { padding: 4rem 0; }
    .section-title { font-size: 2rem; }

    .about-container { flex-direction: column; }
}
