/* General Styles */
body {
    font-family: 'Arial', sans-serif;
    overflow-x: hidden;
    margin: 0;
    background: linear-gradient(135deg, #1a2a6c, #2e4a9e);
    scroll-behavior: smooth;
    color: #e0e7ff;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 250px;
    background-color: #1a202c;
    color: #e0e7ff;
    padding: 2rem 1rem;
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
    display: block;
    overflow-y: hidden;
}

.navbar.hidden {
    transform: translateX(-100%);
}

.nav-link {
    opacity: 1;
    transform: translateX(0);
    position: relative;
    display: block;
    padding: 0.5rem 0;
    color: #e0e7ff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #f472b6; /* Изменил цвет при наведении на #f472b6 */
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #f472b6; /* Цвет активной линии #f472b6 */
    transition: width 0.3s ease;
}

.nav-link.active {
    color: #f472b6; /* Активная ссылка всегда видна как #f472b6 */
}

/* Hamburger Menu */
.hamburger {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1100;
    color: #f9fafb;
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    .navbar {
        transform: translateX(-100%);
    }
    .navbar:not(.hidden) {
        transform: translateX(0);
    }
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('images/1.jpg') center/cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #f9fafb;
    padding: 0 1rem;
    margin-left: 250px;
    width: calc(100% - 250px);
}

.hero-text {
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* About Section */
.about-section {
    height: 100vh;
    background: linear-gradient(90deg, #2e4a9e, #1a2a6c);
    padding: 6rem 4rem;
    margin-left: 250px;
    width: calc(100% - 250px);
    color: #f9fafb;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.about-title {
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.about-subtitle {
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.about-text {
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.about-section .text-content {
    width: 60%;
    padding-right: 3rem;
}

.about-section .image-content {
    width: 40%;
    display: flex;
    justify-content: flex-end;
    position: relative;
}

.about-image {
    height: 90%;
    width: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.about-image:hover {
    transform: perspective(1000px) translateZ(20px);
}

/* What Makes Us Different Section */
.what-makes-us-different-section {
    padding: 6rem 4rem;
    margin-left: 250px;
    width: calc(100% - 250px);
    background: linear-gradient(90deg, #1a2a6c, #2e4a9e);
    color: #f9fafb;
    position: relative;
}

.what-makes-us-different-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #f9fafb;
}

.blocks-container {
    min-height: 500px;
}

.vertical-line-wrapper {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    top: 0;
}

.vertical-line {
    width: 2px;
    background-color: #f472b6;
    height: 100%;
}

.circle {
    width: 40px;
    height: 40px;
    border: none;
    background-color: #f472b6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffffff;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.circle:nth-child(2) { top: 25%; }
.circle:nth-child(3) { top: 50%; }
.circle:nth-child(4) { top: 75%; }

.block-row {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.block-column {
    width: 40%;
    padding: 1rem;
    border-radius: 8px;
}

.block-column.empty {
    border: none;
}

.text-block {
    margin-bottom: 0;
}

.block-column:not(.empty) {
    border: 2px solid #f472b6;
    margin-left: 100px;
    margin-right: 100px;
}

/* Services Section */
.services-section {
    padding: 6rem 4rem;
    margin-left: 250px;
    width: calc(100% - 250px);
    background: linear-gradient(90deg, #2e4a9e, #1a2a6c);
    color: #f9fafb;
}

.services-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #f9fafb;
}

.service-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(244, 114, 182, 0.3);
}

.service-item p {
    color: #e0e7ff;
}

/* Why Choose Us Section */
.why-choose-us-section {
    padding: 6rem 4rem;
    margin-left: 250px;
    width: calc(100% - 250px);
    background: linear-gradient(90deg, #1a2a6c, #2e4a9e);
    color: #f9fafb;
}

.why-choose-us-section h2 {
    margin-bottom: 1.5rem;
    color: #f9fafb;
}

.why-choose-us-section .text-content p {
    margin-bottom: 1rem;
    color: #e0e7ff;
}

.why-choose-us-section .image-content {
    width: 40%;
    display: flex;
    justify-content: flex-end;
    position: relative;
}

.why-choose-us-section .image-content img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.why-choose-us-section .image-content img:hover {
    transform: scale(1.05);
}

/* Contact Section */
.contact-section {
    padding: 4rem 1rem;
    background-color: #1a202c;
    color: #f9fafb;
    text-align: center;
    margin-left: 250px;
    width: calc(100% - 250px);
}

.contact-section h2 {
    margin-bottom: 2rem;
}

.contact-info p {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #e0e7ff;
}

.contact-info a {
    text-decoration: none;
    color: #e0e7ff;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #f472b6;
}

.contact-section .flex {
    margin-top: 1.5rem;
}

.copyright {
    margin-top: 2rem;
    color: #ccc;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        width: 200px;
    }

    .navbar.hidden {
        transform: translateX(-100%);
    }

    .hamburger {
        display: block;
    }

    .hero, .about-section, .what-makes-us-different-section, .services-section, .why-choose-us-section, .contact-section {
        margin-left: 0;
        width: 100%;
        padding: 0 0.5rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .about-section {
        height: auto;
        padding: 2rem 0.5rem;
        flex-direction: column;
        text-align: center;
    }

    .about-section .text-content, .about-section .image-content {
        width: 100%;
    }

    .about-image {
        height: 400px;
        width: 100%;
        margin-top: 1rem;
    }

    .what-makes-us-different-section .flex {
        flex-direction: column;
    }

    .block-row {
        flex-direction: column;
    }

    .block-column {
        width: 100%;
    }

    .vertical-line-wrapper {
        display: none;
    }

    .services-section .grid {
        grid-template-columns: 1fr;
    }

    .why-choose-us-section {
        flex-direction: column;
        text-align: center;
    }

    .why-choose-us-section .text-content, .why-choose-us-section .image-content {
        width: 100%;
    }

    .contact-section .contact-info p {
        font-size: 1rem;
    }
}