/* Base: */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #1a202c;
    color: #fff;
    line-height: 1.6;
}

h1 {
    padding-bottom: 10px;
}

header {
    background-color: #1a202c;
    padding: 1rem 2rem;
}

img, ion-icon, a, button, time, span { display: block; }

a, h3 {
    text-decoration: none;
    color: rgba(0, 255, 166, 0.747);
}

li {
    list-style: none;
}

p {
    text-indent: 20px;
}

/* Content */
.content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
}

.about-content, .resume-content, .projects-content, .contact-content {
    /* border: 1px solid #ffcc00; */
    padding: 0.6rem;
    border-radius: 8px;
    background-color: #222937cf;
    flex: 1;
}

i.fa-brands, i.fa-solid {
    color: #ffcc00;
    font-size: 1.5rem;
}


/* Navbar: */
.navbar {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: flex-end;
}

.navbar-list {
    list-style: none;
    display: flex;
    gap: 1rem;
}

.navbar-link {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    transition: all 0.3s ease;
}

.navbar-link.active {
    color: #ffcc00;
}

.navbar-item {
    border: 1px solid #ffcc00;
    padding: 0.6rem;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
}

.navbar-item:hover {
    border: 0.1px solid hsl(0, 0%, 22%);
    transform: translateY(-1px); 
}

/*? Profile: */
.profile-section {
    display: flex;
    gap: 2rem;
}

.profile-card {
    position: -webkit-sticky; /* Поддержка Safari */
    position: sticky;
    top: 2rem;
    align-self: flex-start;

    background-color: #2d3748;
    padding: 1rem;
    border-radius: 8px;
    width: 300px;
}

.avatar {
    width: 150px;
    height: 150px;
    border-radius: 30px;
    object-fit: cover;
    margin-bottom: 1rem;
}

.avatar img { width: 120px; }

.job-title {
    color: #ffcc00;
    margin-bottom: 1rem;
}

.contact-info {
    margin-top: 1rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.info-item i {
    color: #ffcc00;
    font-size: 1.2rem;
}

.social-links {
    margin-top: 1rem;
}

.social-links a {
    margin-right: 0.5rem;
    color: #ffcc00;
    font-size: 1.2rem;
}

/*? About and Projects: */
.services-grid, .projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.service-card, .projects-item {
    background-color: #2d3748;
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.service-card:hover, .projects-item:hover {
    transform: translateY(-2px);
    border: 1px solid hsl(0, 0%, 22%);
}

/*? Contacts */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input, .contact-form textarea {
    padding: 0.5rem;
    border: 1px solid #ffcc00;
    border-radius: 4px;
    background-color: #2d3748;
    color: #fff;
}

.contact-form button {
    padding: 0.5rem;
    background-color: #ffcc00;
    color: #1a202c;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.5s ease;
}

.contact-form button:hover {
    background-color: hsl(0, 0%, 22%);
    border: 1px solid #ffcc00;
    color: white;
    transform: translateY(-1px); 
}

/*? Resume */
.edu-item li{
    list-style: disc;
    margin-left: 3.5rem;
}

div.vertical-line{
    margin-right: 10px;
    width: 0px;
    float: left; 
    border: 1px inset;
    }

/* Стили для секции навыков */
.skills-section {
    margin-top: 2rem;
}

.skill-bar {
    margin-bottom: 1rem;
    background-color: #2d3748;
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.5s ease;
}

.skill-bar:hover {
    transform: translateY(-1px);
    border: 1px solid hsl(0, 0%, 22%);
}

.skill-name {
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.skill-percentage {
    color: #ffcc00;
}

.progress-bar {
    height: 10px;
    background-color: #444;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.progress-fill {
    height: 100%;
    background-color: #ffcc00;
    border-radius: 4px;
}