:root {
    --primary-color: #00aaff;
    --primary-color-darker: #0088cc;
    --secondary-color: #0a192f;
    --light-color: #ccd6f6;
    --dark-color: #8892b0;
    --white-color: #ffffff;
    --bg-light: #112240;
    --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(--secondary-color);
    color: var(--light-color);
    line-height: 1.6;
}

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

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: var(--light-color);
}

/* Header & Navbar */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.header.scrolled {
    background-color: rgba(10, 25, 47, 0.85);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.navbar {
    height: 80px;
    display: flex;
    align-items: center;
}

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

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white-color);
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-menu a {
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.lang-switcher {
    display: flex;
    align-items: center;
    margin-left: 1rem;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--dark-color);
    cursor: pointer;
    font-size: 1rem;
    font-family: var(--font-family);
    padding: 5px;
    transition: color 0.3s ease;
}

.lang-btn:hover {
    color: var(--white-color);
}

.lang-btn.active {
    color: var(--primary-color);
    font-weight: 700;
}

.lang-separator {
    color: var(--dark-color);
    margin: 0 5px;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--white-color);
    transition: all 0.3s ease-in-out;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-image: linear-gradient(rgba(10, 25, 47, 0.8), rgba(10, 25, 47, 0.8)), url('hero-bg.png');
    background-size: cover;
    background-position: center;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: var(--white-color);
    margin-bottom: 1rem;
}

.hero-content h1 #typed {
    color: var(--primary-color);
}

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

.btn {
    padding: 1rem 2.5rem;
    border: 1px solid var(--primary-color);
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: transparent;
    color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

/* Content Sections */
.content-section {
    padding: 100px 0;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.content-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    color: var(--white-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h3 {
    font-size: 1.8rem;
    color: var(--white-color);
    margin-bottom: 1rem;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 30px;
    text-align: center;
}

.stat-item .stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}

.stat-item .stat-label {
    font-size: 1rem;
    color: var(--dark-color);
}

/* Services Section */
.services-section {
    background-color: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--secondary-color);
    padding: 40px 30px;
    border-radius: 5px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #1d2d50;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
}

.service-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 900;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--white-color);
}

/* Tech Stack Section */
.tech-stack-section {
    background-color: var(--secondary-color);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 30px;
    justify-content: center;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    color: var(--light-color);
    transition: color 0.3s ease, transform 0.3s ease;
}

.tech-item:hover {
    color: var(--primary-color);
    transform: translateY(-5px);
}

.tech-item i {
    font-size: 3.5rem;
}

.tech-item span {
    font-size: 1rem;
    font-weight: 500;
}

/* Portfolio Section */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    cursor: pointer;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(10, 25, 47, 0.95), transparent);
    color: var(--white-color);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

.portfolio-overlay h3 {
    font-size: 1.5rem;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.portfolio-overlay p {
    transform: translateY(20px);
    transition: transform 0.4s ease 0.1s;
    font-size: 0.9rem;
    color: var(--dark-color);
}

.portfolio-item:hover .portfolio-overlay h3,
.portfolio-item:hover .portfolio-overlay p {
    transform: translateY(0);
}

/* CTA Section */
.cta-section {
    background-color: var(--bg-light);
    text-align: center;
}

.cta-section h2 {
    font-size: 2.2rem;
    color: var(--white-color);
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.1rem;
    color: var(--dark-color);
    max-width: 700px;
    margin: 0 auto 2rem;
}

/* Contact Section */
.contact-section {
    background-color: var(--secondary-color);
}
.contact-subtitle {
    text-align: center;
    max-width: 600px;
    margin: -40px auto 40px;
    color: var(--dark-color);
}
.contact-form {
    max-width: 700px;
    margin: 0 auto;
}
.form-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 15px;
    background-color: var(--secondary-color);
    border: 1px solid #1d2d50;
    border-radius: 5px;
    color: var(--light-color);
    font-family: var(--font-family);
    font-size: 1rem;
}
.contact-form input::placeholder, .contact-form textarea::placeholder {
    color: var(--dark-color);
}
.contact-form textarea {
    margin-bottom: 20px;
    resize: vertical;
}
.contact-form button {
    width: 100%;
    font-size: 1.1rem;
    background-color: var(--primary-color);
    color: var(--white-color);
    border: none;
}
.contact-form button:hover {
    background-color: var(--primary-color-darker);
}

.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
}
.contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px;
    font-size: 1.1rem;
    min-width: 280px;
}
.contact-btn i {
    font-size: 1.5rem;
}

.telegram-btn {
    background-color: #24A1DE;
    border-color: #24A1DE;
    color: var(--white-color);
}
.telegram-btn:hover {
    background-color: #1e87b9;
    border-color: #1e87b9;
    color: var(--white-color);
}

.phone-btn {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}
.phone-btn:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.whatsapp-btn {
    background-color: #25D366;
    border-color: #25D366;
    color: var(--white-color);
}
.whatsapp-btn:hover {
    background-color: #1ebe58;
    border-color: #1ebe58;
    color: var(--white-color);
}

/* Footer */
.footer {
    padding: 30px 0;
    background-color: var(--primary-color);
    color: var(--text-color);
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.footer-info {
    text-align: center;
}

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

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

.footer-copy {
    font-size: 0.85rem;
    color: var(--muted-color);
}

/* Responsive */
@media(max-width: 768px) {
    .hamburger {
        display: block;
    }
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: var(--bg-light);
        width: 100%;
        height: calc(100vh - 80px);
        text-align: center;
        transition: 0.3s;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        display: block;
        padding: 1.5rem 0;
        font-size: 1.2rem;
    }

    .nav-menu a:hover {
        background-color: var(--secondary-color);
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .lang-switcher {
        margin: 0;
        justify-content: center;
        padding: 1rem 0;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-text {
        text-align: center;
    }

    .about-stats {
        flex-direction: row;
        justify-content: space-around;
        margin-top: 30px;
    }

    .form-group {
        grid-template-columns: 1fr;
    }

    .contact-btn {
        width: 100%;
        min-width: initial;
    }
}