html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --secondary-700: #178067;
    --secondary-600: #1FAB8A;
    --base: #FFFFFF;
    --primary-800: #022a62;
    --primary-700: #033F94;
    --primary-600: #0455C6;
    --primary-400: #3588FB;
    --primary-50: #E4EFFE;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

header {
    background-color: var(--primary-800);
    color: white;
    padding: 20px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.main-image {
    display: flex;
    justify-content: space-around;
    background-color: var(--primary-700);
    height: 800px;
}

.header_container {
    display: flex;
}

img {
    max-width: 100%;
}

.header_logo {
    margin-right: 20px;
    padding-right: 20px;
    font-size: 20px;
    border-right: solid 1px white;
    align-self: center;
}

.section-links {
    margin-left: auto;
}

.section-links a {
    padding: 20px 10px;
    font-size: 16px;
    font-family: inherit;
    font-weight: inherit;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.section-links a:hover {
    color: var(--secondary-600);
    transform: translateY(-3px);
}

.contact-button {
    background-color: var(--secondary-700);
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    color: white;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

header .contact-button {
    margin-left: 10px;
}

.contact-button:hover {
    background-color: var(--secondary-600);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

body {
    background-color: var(--base);
    color: var(--text-color);
    line-height: 1.6;
}

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

.profile-img {
    width: 180px;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.tagline {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    position: relative;
    z-index: 1;
}

.social-links a {
    font-size: 20px;
    color: white;
    background-color: var(--secondary-700);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a svg {
    width: 25px;
}

.social-links a:hover {
    background-color: var(--secondary-600);
    transform: translateY(-3px);
}

section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 180px;
    height: 4px;
    background-color: var(--secondary-700);
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: center;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

/* Стили для секции навыков */
  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
  }
  
  .section-title {
    text-align: center;
    font-size: 30px;
    margin-bottom: 30px;
  }
  
  /* Сетка карточек */
  .skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
  }
  
  /* Карточка навыка */
  .skill-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
  }
  
  .skill-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
  }
  
  .skill-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
  }
  
  .skill-icon svg {
    width: 28px;
    height: 28px;
  }
  
  .skill-title {
    font-size: 1.4rem;
    margin: 0;
  }
  
  /* Кнопка сертификата */
  .certificate-btn {
    width: 145px;
    background: rgb(50, 135, 255);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none;
  }
  
  .certificate-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow);
  }
  
  .skill-description {
    line-height: 1.6;
    margin-bottom: 20px;
    margin-top: 20px;
  }
  
  /* Теги навыков */
  .skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .skill-tag {
    background: var(--secondary-700);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
  }
  
  .skill-tag:hover {
    background: var(--secondary-600);
    color: white;
  }
  
  /* Адаптивность */
  @media (max-width: 768px) {
    .skills {
      padding: 50px 0;
    }
    
    .skills-grid {
      grid-template-columns: 1fr;
    }
    
    .skill-header {
      flex-wrap: wrap;
    }
    
    .certificate-btn {
      margin-top: 10px;
      margin-left: 0;
      width: 100%;
      justify-content: center;
    }
  }

#experience,
#contact {
    background-color: rgba(0, 49, 130, 0.1);
    ;

}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-img {
    height: 200px;
    background-color: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-img i {
    font-size: 60px;
    color: #777;
}

.project-info {
    padding: 20px;
}

.project-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.project-description {
    color: #666;
    margin-bottom: 15px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.tech-tag {
    background-color: var(--base);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 6px;
    background-color: var(--secondary-700);
    top: 0;
    bottom: 0;
    left: 0;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    box-sizing: border-box;
}

.timeline-content {
    gap: 50px;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
    display: flex;
}

.timeline-logo {
    align-self: center;
    width: 170px;
    text-align: center;
}

.timeline-text {
    flex: 1;
}

.timeline-date {
    font-weight: bold;
    color: var(--primary-700);
    margin-bottom: 5px;
}

.timeline-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.btn {
    display: inline-block;
    background-color: var(--primary-700);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: var(--primary-800-color);
}

footer {
    background-color: var(--primary-800);
    color: white;
    text-align: center;
    padding: 30px 0;
}

.footer-copyright {
    margin-top: 20px;
    font-size: 14px;
    opacity: 0.8;
    text-align: center;
}

/* Мобильная адаптивность - только для мобильных устройств */
@media (max-width: 768px) {
    .main-image {
        height: 400px;
    }

    .header_container {
        flex-direction: column;
        gap: 15px;
    }

    .header_logo {
        margin-right: 0;
        padding-right: 0;
        padding-bottom: 15px;
        border-right: none;
        border-bottom: solid 1px white;
        width: 100%;
    }

    .social-links {
        order: 2;
        margin-left: 0;
        margin-right: 0;
        justify-content: center;
    }

    .section-links {

        order: 3;
        margin-left: 0;
        margin-top: 10px;
        justify-content: center;
        width: 100%;
    }

    header .contact-button {
        margin-left: 0;
        margin-top: 10px;
    }

    .timeline::before {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-content {
        flex-direction: column;
        gap: 20px;
    }

    .timeline-logo {
        width: 120px;
        margin: 0 auto;
    }

    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .profile-img {
        margin: 0 auto 20px;
    }

    .contact-button {
        padding: 10px 20px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .main-image {
        height: 300px;
    }

    .social-links {
        gap: 10px;
    }


    .section-links {
        display: none;
    }

    .section-links a {
        padding: 8px;
    }

    .timeline-content {
        padding: 15px;
    }

    .timeline-logo {
        width: 100px;
    }
}