body {
    background-color: #111;
    color: #a9a9a9;
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 0;
}

.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

#bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(80%) brightness(0.4);
}

.header_div {
    background-color: rgba(28, 28, 28, 0.8);
    padding: 10px 20px;
    border-bottom: 2px solid #942424;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1001;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header_div a.logo_link {
    height: 40px;
    display: flex;
    align-items: center;
}

.header_div a.logo_link img {
    height: 100%;
    width: auto;
    background-color: #ddd;
    border-radius: 50%;
}

.header_div ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

.header_div li {
    display: inline-block;
    margin: 0 15px;
}

.header_div a {
    color: #a9a9a9;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: bold;
    padding: 5px 10px;
    transition: color 0.3s;
}

.header_div a:hover, .header_div a.current {
    color: #ffffff;
}

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

.burger div {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 5px 0;
}

.red_button {
    display: inline-block;
    box-sizing: border-box;
    padding: 12px 25px;
    font-size: 1.1em;
    text-align: center;
    color: #fff;
    background-color: #942424;
    border: none;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.red_button:hover {
    background-color: #b32a2a;
}

.home-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: calc(100vh - 122px);
    text-align: center;
    color: #fff;
    padding: 20px;
}

.home-content h1 {
    font-size: 4em;
    line-height: 1.2;
    text-shadow: 2px 2px 10px #000;
}

.home-content p {
    font-size: 1.2em;
    max-width: 600px;
    margin: 20px 0 30px 0;
}

#main_content {
    display: flex;
    max-width: 1100px;
    margin: 50px auto;
    background-color: rgba(26, 26, 26, 0.8);
    padding: 30px;
    box-sizing: border-box;
}

.side_info {
    flex: 0 0 280px;
    padding-right: 20px;
}

.side_info .poster-image {
    max-height: 400px;
    width: 100%;
    object-fit: cover;
}

.main_info {
    flex: 1;
    padding-left: 30px;
    border-left: 1px solid #444;
}

.title h1 {
    font-size: 3.5em;
    color: #fff;
}

.text h2 {
    font-size: 1.8em;
    margin-top: 40px;
    margin-bottom: 15px;
    color: #fff;
}

.text p {
    line-height: 1.8;
    font-size: 1.1em;
}

.special_box {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    margin: 30px 0;
    border-top: 1px solid #444;
    border-bottom: 1px solid #444;
}

.image1 {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.special_box p {
    font-size: 1.2em;
    font-style: italic;
    margin: 0;
}

.author {
    text-align: right;
    font-style: normal;
    font-size: 1em;
    color: #888;
    margin-top: 10px;
}

.tech-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.tech-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background-color: #000;
}

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

.tech-item:hover img {
    transform: scale(1.1);
}

.tech-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
    color: #fff;
    padding: 40px 20px 20px 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
    text-align: left;
}

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

.tech-overlay h3 {
    margin: 0;
    font-size: 1.5em;
}

.tech-overlay p {
    margin: 10px 0 0 0;
}

.footer {
    background-color: #1c1c1c;
    border-top: 2px solid #942424;
    text-align: center;
    padding: 20px;
}

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

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: inline-block;
    width: 30px;
    height: 30px;
}

.social-icons img {
    width: 100%;
    height: 100%;
    transition: transform 0.3s;
}

.social-icons a:hover img {
    transform: scale(1.2);
}

.footer .copyright {
    color: #888;
    font-size: 0.9em;
    width: 100%;
    margin-top: 10px;
}

.window {
    display: none; 
    position: fixed;
    z-index: 1002;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 10, 10, 0.9);
    justify-content: center;
    align-items: center;
}

.window_content {
    background-color: #222;
    color: #ccc;
    margin: 0; 
    padding: 30px;
    border: 1px solid #444;
    width: 450px;
    position: relative;
}

.close {
    color: #888;
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #fff;
}

.window_content h2 {
    text-align: center;
    margin: 0 0 20px 0;
    color: #fff;
}

.window_content form { display: block; }
.window_content label { display: block; margin-top: 15px; margin-bottom: 5px; }
.window_content input {
    width: 95%; 
    padding: 10px;
    font-size: 1em;
    background-color: #111;
    border: 1px solid #444;
    color: #ccc;
}
.window_content button {
    margin-top: 25px;
    padding: 10px 15px;
    width: 100%;
    background-color: #942424;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
}
.window_content button:hover { background-color: #b32a2a; }

.team_block {
    display: flex;
    width: 100%;
    min-height: calc(100vh - 60px - 82px);
}

.photo_area { flex: 1 1 65%; }
.photo_area img { width: 100%; height: 100%; object-fit: cover; }

.text_area {
    flex: 1 1 35%;
    background-color: #111;
    color: #f4f4f4;
    padding: 40px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.text_area h2 {
    color: #fff;
    font-size: 2.5em;
    margin-top: 0;
    border-bottom: 2px solid #942424;
    padding-bottom: 10px;
    margin-bottom: 20px;
}
.text_area p { font-size: 1.1em; line-height: 1.7; }

@media (max-width: 768px) {
    .header_div ul {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: #1c1c1c;
        flex-direction: column;
    }
    .header_div ul.show { display: flex; }
    .header_div li { display: block; padding: 15px 0; border-bottom: 1px solid #333; }
    .burger { display: block; }
    #main_content { flex-direction: column; margin: 0; padding: 20px; }
    .side_info, .main_info { border: none; padding: 0; }
    .side_info .poster-image { object-fit: contain; max-height: none; }
    .title h1 { font-size: 2.5em; }
    .window_content, .team_block { width: 90%; margin: 0 5%; }
    .team_block { flex-direction: column; min-height: 0; }
}