:root {
    --dark: #292929;
    --red: #ff0000;
    --white: #ffffff;
    --gray: #f5f5f5;
    --dark-gray: #1a1a1a;
    --light-gray: #333333;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--white);
    background-color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

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

section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
    text-align: center;
    width: 100%;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--red);
}

.red-text {
    color: var(--red);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    margin: 5px;
}

.btn-red {
    background-color: var(--red);
    color: var(--white);
    border: 2px solid var(--red);
}

.btn-red:hover {
    background-color: transparent;
    color: var(--red);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
    background-color: rgba(41, 41, 41, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header.scrolled {
    padding: 10px 0;
    background-color: rgba(26, 26, 26, 0.98);
}

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

.logo-container {
    display: flex;
    align-items: center;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    position: relative;
    /* transition: color 0.3s ease; */
}

.logo-text:hover {
    color: var(--red);
}

.nav ul {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    margin-left: 25px;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--red);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--red);
}

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

.burger {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    margin: 5px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(rgba(41, 41, 41, 0.9), rgba(41, 41, 41, 0.9)),
        url('../images/bugwarning-hero.jpg') no-repeat center center/cover;
    text-align: center;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
    font-weight: 300;
    animation: fadeInUp 1s ease 0.2s forwards;
    opacity: 0;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.4s forwards;
    opacity: 0;
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    cursor: pointer;
    animation: fadeIn 1s ease 0.6s forwards;
    opacity: 0;
}

.mouse {
    width: 25px;
    height: 40px;
    border: 2px solid var(--white);
    border-radius: 15px;
    display: block;
    margin: 0 auto 10px;
    position: relative;
}

.mouse::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background-color: var(--white);
    border-radius: 2px;
    animation: mouseScroll 2s infinite;
}

.arrow {
    width: 15px;
    height: 15px;
    border-right: 2px solid var(--white);
    border-bottom: 2px solid var(--white);
    transform: rotate(45deg);
    margin: 0 auto;
    animation: arrowBounce 2s infinite;
}

/* About Section */
.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
    font-size: 1.1rem;
}

.about-text p {
    margin-bottom: 20px;
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.about-text p:nth-child(1) {
    animation-delay: 0.2s;
}

.about-text p:nth-child(2) {
    animation-delay: 0.4s;
}

.about-text p:nth-child(3) {
    animation-delay: 0.6s;
}

.about-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: fadeInRight 0.8s ease;
}

.team-photo {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.about-image:hover .team-photo {
    transform: scale(1.05);
}

/* Benefits Section */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.benefit-card {
    background-color: var(--dark-gray);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
}

.benefit-card:nth-child(1) {
    animation-delay: 0.1s;
}

.benefit-card:nth-child(2) {
    animation-delay: 0.2s;
}

.benefit-card:nth-child(3) {
    animation-delay: 0.3s;
}

.benefit-card:nth-child(4) {
    animation-delay: 0.4s;
}

.benefit-card:nth-child(5) {
    animation-delay: 0.5s;
}

.benefit-card:nth-child(6) {
    animation-delay: 0.6s;
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    background-color: var(--light-gray);
}

.benefit-icon {
    font-size: 2.5rem;
    color: var(--red);
    margin-bottom: 20px;
}

.benefit-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.benefit-card p {
    color: #ccc;
    font-size: 0.95rem;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.project-card {
    background-color: var(--dark-gray);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
}

.project-card:nth-child(1) {
    animation-delay: 0.2s;
}

.project-card:nth-child(2) {
    animation-delay: 0.4s;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.project-img-container {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-type {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.type-opensource {
    background-color: #28a745;
    color: white;
}

.type-closed {
    background-color: #6c757d;
    color: white;
}

.project-name {
    margin: 20px 20px 10px;
    font-size: 1.3rem;
}

.project-description {
    margin: 0 20px 15px;
    color: #ccc;
    font-size: 0.95rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    padding: 0 20px 20px;
}

.project-tech span {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    padding: 5px 10px;
    border-radius: 3px;
    margin-right: 10px;
    margin-bottom: 10px;
    font-size: 0.8rem;
}

.projects-more {
    text-align: center;
    margin-top: 30px;
    font-style: italic;
    color: #999;
}

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

.join-steps {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    opacity: 0;
    transform: translateX(-20px);
    animation: fadeInRight 0.5s ease forwards;
}

.step:nth-child(1) {
    animation-delay: 0.2s;
}

.step:nth-child(2) {
    animation-delay: 0.4s;
}

.step:nth-child(3) {
    animation-delay: 0.6s;
}

.step-number {
    width: 40px;
    height: 40px;
    background-color: var(--red);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.step-content h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.step-content p {
    color: #ccc;
    font-size: 0.95rem;
}

.join-contacts {
    background-color: var(--dark-gray);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    animation: fadeInLeft 0.5s ease 0.3s forwards;
}

.join-contacts h3 {
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    text-decoration: none;
    padding: 12px 15px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.contact-method i {
    font-size: 1.2rem;
    color: var(--red);
}

.contact-method:hover {
    background-color: rgba(255, 0, 0, 0.1);
    transform: translateX(5px);
}

.join-note {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-style: italic;
    color: #999;
}

/* Footer */
.footer {
    background-color: var(--dark-gray);
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
}

.footer-sublogo {
    color: #999;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 5px;
}

.footer-sublogo:hover {
    color: var(--red);
    text-decoration: underline;
}


.footer-logo .logo-text {
    font-size: 1.5rem;
    margin-bottom: 5px;
}


.footer-links {
    display: flex;
    flex-direction: column;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

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

.footer-social {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.footer-social a {
    color: var(--white);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

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

.footer-copy {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #999;
    font-size: 0.9rem;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--dark);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.red-bar {
    width: 100px;
    height: 4px;
    background-color: var(--red);
    position: relative;
    overflow: hidden;
}

.red-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--white);
    animation: preloader 1.5s infinite;
}

/* Animations */
@keyframes preloader {
    100% {
        left: 100%;
    }
}

@keyframes mouseScroll {
    0% {
        top: 5px;
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        top: 20px;
        opacity: 0;
    }
}

@keyframes arrowBounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) rotate(45deg);
    }

    40% {
        transform: translateY(-10px) rotate(45deg);
    }

    60% {
        transform: translateY(-5px) rotate(45deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
    }

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

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

@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--dark);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        clip-path: circle(0px at 90% -10%);
        -webkit-clip-path: circle(0px at 90% -10%);
        transition: all 0.7s ease-out;
        pointer-events: none;
    }

    .nav.active {
        clip-path: circle(1500px at 90% -10%);
        -webkit-clip-path: circle(1500px at 90% -10%);
        pointer-events: all;
    }

    .nav ul {
        flex-direction: column;
        text-align: center;
    }

    .nav-link {
        margin: 15px 0;
        font-size: 1.5rem;
    }

    .burger {
        display: block;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }

    .footer-logo,
    .footer-social {
        align-items: center;
    }

    /* Burger animation */
    .burger.active .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .burger.active .line2 {
        opacity: 0;
    }

    .burger.active .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 2rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .logo-text {
        font-size: 1.5rem;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }
}

/* Technologies Section */
.technologies {
    background-color: var(--dark-gray);
}

.technologies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.technology-card {
    background-color: var(--dark);
    border-radius: 10px;
    padding: 30px;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
}

.technology-card:nth-child(1) {
    animation-delay: 0.1s;
}

.technology-card:nth-child(2) {
    animation-delay: 0.2s;
}

.technology-card:nth-child(3) {
    animation-delay: 0.3s;
}

.technology-card:nth-child(4) {
    animation-delay: 0.4s;
}

.technology-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.tech-icon {
    font-size: 2.5rem;
    color: var(--red);
    margin-bottom: 15px;
}

.technology-card h3 {
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-tags span {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.tech-tags span:hover {
    background-color: var(--red);
    transform: translateY(-2px);
}

.technologies-note {
    text-align: center;
    margin-top: 50px;
    font-style: italic;
    color: #999;
    font-size: 1.1rem;
}