
body {
    font-family: 'Poppins', sans-serif;
    background-color: #121212;
    color: #f0f0f0;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

.navbar {
    position: fixed;
    width: 100%;
    padding: 20px 10%;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    transition: background 0.3s;
}

.navbar.scrolled {
    background: #000;
}

.navbar h1 {
    font-size: 1.8em;
    color: #00FFA3;
    margin: 0;
    opacity: 0;
    animation: fadeIn 2s ease-out 0.5s forwards;
}

.navbar ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.navbar ul li {
    margin-left: 20px;
    opacity: 0;
    animation: fadeIn 2s ease-out 1s forwards;
}

.navbar ul li a {
    text-decoration: none;
    color: #f0f0f0;
    font-weight: 500;
    transition: color 0.3s;
}

.navbar ul li a:hover {
    color: #00FFA3;
}

.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: #000;
    color: #fff;
    position: relative;
    padding: 0 20px;

    
    
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    opacity: 0;
    animation: fadeIn 2s ease-out 1.5s forwards;
}

.hero h1 {
    font-size: 4em;
    margin-bottom: 20px;
    line-height: 1.2em;
    animation: slideIn 1s ease-out 1s forwards;
}

.hero p {
    font-size: 1.5em;
    margin-bottom: 40px;
    animation: fadeIn 2s ease-out 2s forwards;
}

.cta {
    padding: 15px 30px;
    background-color: #00FFA3;
    color: #121212;
    border-radius: 30px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease;
    animation: fadeIn 2s ease-out 2.5s forwards;
}

.cta:hover {
    background-color: #00cc85;
}

.content {
    padding: 100px 20px;
    background-color: #1c1c1c;
    text-align: center;
}

.content h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #00FFA3;
}

.content p {
    font-size: 1.2em;
    line-height: 1.6em;
    max-width: 800px;
    margin: 0 auto 40px;
    color: #f0f0f0;
}

.divider {
    height: 5px;
    background-color: #00FFA3; /* Зеленый цвет для черточки */
    margin: 40px 0; /* Отступы сверху и снизу */
}

.projects {
    padding: 100px 20px;
    background-color: #1c1c1c;
    text-align: center;
    display: none; /* Hidden by default */
}

.projects h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #00FFA3;
}

.projects .project-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.projects .project {
    background-color: #2c2c2c;
    border-radius: 10px;
    margin: 20px;
    padding: 20px;
    max-width: 300px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.projects .project:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.projects .project img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.projects .project h3 {
    font-size: 1.5em;
    margin: 10px 0;
    color: #00FFA3;
}

.projects .project p {
    font-size: 1em;
    color: #f0f0f0;
    margin: 10px 0;
}

.projects .project a {
    color: #00FFA3;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.projects .project a:hover {
    color: #00cc85;
}

.footer {
    background: #000;
    color: #f0f0f0;
    padding: 40px 20px;
    text-align: center;
}

.footer p {
    margin: 0;
    font-size: 0.9em;
}

.footer a {
    color: #00FFA3;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}