/* style.css */

/* Общие стили */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #000000;
    color: #fff;
    line-height: 1.6;
    overflow-x: hidden; /* Предотвращает горизонтальную прокрутку */
}

.container {
    width: 80%;
    margin: auto;
    overflow: hidden;
    padding: 60px 0;
}

h1, h2 {
    color: #ffffff;
    margin-bottom: 20px;
    text-align: center;
}

h1 {
    font-size: 3em;
    font-weight: 700;
}

h2 {
    font-size: 2.2em;
    font-weight: 600;
}

p {
    margin-bottom: 20px;
    color: #ffffff;
    text-align: center;
}

a {
    color: #64b5f6;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #bbdefb;
}

/* Шапка */
header {
    display: flex;
    background-color: #000000;
    color: #fff;
    padding: 20px 0;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

header .logo {
    float: left;
    font-size: 1.5em;
    font-weight: bold;
    margin-left: 5%; /* Отступ для логотипа */
}

header .logo a {
    color: #fff;
}

header nav {
    margin-left: auto;
    float: right;
    margin-right: 5%; /* Отступ для навигации */
}

header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

header nav ul li {
    display: inline;
    margin: 0 15px;
}

header nav ul li a {
    color: #fff;
    font-weight: 500;
}

/* Hero секция */
#hero {
    background-color: #000000;
    background: linear-gradient(0deg, rgb(0, 0, 0), rgb(0, 80, 114));
    color: #fff;
    text-align: center;
    padding: 100px 0;
    display: flex;
    align-items: center;
    justify-content: space-around;
    min-height: 80vh;
    font-size: 25px;
}

.hero-content {
    width: 50%;
    padding: 20px;
}

.hero-image {
    width: 50%;
}

.hero-image img {
    width: 50%;
    border-radius: 50%; /* Круглая аватарка */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    border: 2px solid white;
}

.cta-button {
    display: inline-block;
    padding: 12px 24px;
    background-color: rgb(0, 136, 195);
    color: #fff;
    border-radius: 20px;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: rgb(0, 180, 255);
    color: #fff;
}

/* Секция "Обо мне" */
#about {
    /* border-radius: 50px; */
    background-color: rgb(0, 18, 25);
    padding: 80px 0;
    border-top: 1px solid rgb(100, 100, 100);
    border-bottom: 1px solid rgb(100, 100, 100);
    scroll-margin-top: 78.4px;
}

#about p {
   padding-left: 50px;
   padding-right: 50px;
}

/* Секция "Навыки" */
#skills {
    background-color: #000000;
    padding: 80px 0;
    border-bottom: 1px solid rgb(100, 100, 100);
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.skill {
    margin: 20px;
    text-align: center;
    color: #fff;
}

.skill i {
    font-size: 3em;
    margin-bottom: 10px;
    color: rgb(0, 180, 255);
}

/* Секция "Проекты" */
#projects {
    /* background: linear-gradient(180deg, rgb(0, 0, 0), rgb(0, 18, 25)); */
    background-color: black;
    padding: 80px 0;
    border-bottom: 1px solid rgb(100, 100, 100);
}

.projects-container {
    display: flex;
    /* flex-wrap: wrap; */
    justify-content: center;
}

.project {
    width: 300px;
    margin: 20px;
    background-color: #000000;
    border-radius: 30px;
    overflow: hidden; /* Обрезает контент, выходящий за рамки */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    border: 2px solid white;
    position:relative;
    padding-bottom:50px;
}

.project:hover {
    transform: translateY(-5px); /* Небольшой подъем при наведении */
}

.project img {
    width: 100%;
    height: 200px;
    object-fit: cover; /* Заполняет контейнер с сохранением пропорций */
}

.project h3 {
    padding: 15px;
    margin: 0;
    text-align: left;
    color: #fff;
}

.project p {
    padding: 0 15px 15px 15px;
    text-align: left;
    color: #ccc;
}

.project a {
    position: absolute;
    width: 100%;
    bottom: 0px;
    display: block;
    padding: 12px 0;
    background-color: rgb(0, 136, 195);
    color: #fff;
    text-align: center;
    transition: background-color 0.3s ease;
}

.project a:hover {
    background-color: rgb(0, 180, 255);
    color: white;
}

/* Секция "Контакты" */
#contact {
    background: linear-gradient(180deg, rgb(0, 0, 0), rgb(0, 55, 79));
    padding: 80px 0;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.contact-list li {
    margin-bottom: 15px;
}

.contact-list li i {
    margin-right: 10px;
    font-size: 1.2em;
    color: #64b5f6;
}

/* Подвал */
footer {
    background-color: #000000;
    color: #fff;
    text-align: center;
    padding: 20px 0;
}

/* Адаптивность */
@media(max-width: 768px) {
    header {
        display: none;
    }

    #hero {
        flex-direction: column;
        padding: 50px 0;
    }

    .hero-content,
    .hero-image {
        width: 90%;
        margin: 0 auto;
    }

    .skills-container,
    .projects-container {
        flex-direction: column;
        align-items: center;
    }

    .skill,
    .project {
        width: 80%;
    }
}

/* Анимации (дополнительно) */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#hero h1,
#hero p,
.skill,
.project {
    animation: fadeIn 1s ease forwards;
}
