@import './fonts.css';
@import './media.css';

:root {
    --color-black: black;
    --color-white: white;
    --color-gray: gray;
    --color-orange: #ff8a56;
    --color-purple: #5c47d9;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
}

.container {
    max-width: 1380px;
    width: 100%;
    margin: 0 auto;
    padding: 0 15px;
}

/* Animation */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
}

.visible {
    animation: fadeIn 1s ease-in-out forwards;
}

/* Navigation */

.nav {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.nav_content-block {
    background-color: rgb(39, 40, 41);
    padding: 10px;
    border-radius: 20px;
}

.nav_content-list {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav_content {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.nav_content svg {
    width: 24px;
    height: 24px;
    background: none;
    transition: transform 0.3s ease, stroke 0.3s ease;
}

.nav_content:hover {
    background-color: var(--color-purple);
}

.nav_content:hover svg {
    transform: scale(1.2);
}

.nav_content.active {
    background-color: var(--color-purple);
}

.nav_content::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgb(39, 40, 41);
    color: var(--color-white);
    font-family: var(--font-Roboto);
    font-weight: 400;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    opacity: 0;
    pointer-events: none;
    white-space: nowrap;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.nav_content:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

/* Home section */

.home_section {
    animation: fadeIn 1s ease-in-out forwards;
    margin-top: 40px;
}

.home_info {
    gap: 15px;
    width: 990px;
}

.home_info-intro {
    color: var(--color-gray);
    font-family: var(--font-Roboto);
    font-weight: 400;
    font-size: 64px;
    line-height: 1.4;
    letter-spacing: 0.04em;
    text-shadow: 2px 2px 5px var(--color-gray);
}

.home_info-intro-name {
    color: var(--color-black);
    font-family: var(--font-Italic);
    font-weight: 300;
    font-style: 64px;
}

.home_info-intro-purple {
    color: var(--color-purple);
    font-weight: bold;
}

/* About section */

.about_section {
    display: flex;
    justify-content: space-between;
    margin-top: 140px;
    margin-bottom: 50px;
}

.subsection_left {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 50%;
}

.subsection_left-title {
    font-family: var(--font-Roboto);
    font-weight: 400;
    font-size: 30px;
    color: var(--color-orange);
}

.subsection_right {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 600px;
}

.subsection_right-text {
    font-family: var(--font-Inter);
    font-weight: 400;
    font-size: 22px;
    color: var(--color-black);
    line-height: 150%;
}

/* Code Block */
.code_terminal {
    max-width: 600px;
    width: 100%;
    min-width: 280px;
    background: linear-gradient(135deg, #2c2c2c, #2c2c2c);
    padding: 30px;
    border: 3px solid var(--color-orange);
    border-radius: 30px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
    font-family: var(--font-Roboto);
    overflow: auto;
}

code {
    color: var(--color-orange);
    font-size: 16px;
    white-space: pre-wrap;
}

/* skills section */

.skills_section {
    margin-top: 100px;
    margin-bottom: 100px;
}

.skills_title {
    font-family: var(--font-Roboto);
    font-weight: 500;
    font-size: 42px;
    color: var(--color-black);
    margin-bottom: 15px;
}

.skills {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.skill p {
    margin-bottom: 5px;
    font-family: var(--font-Poppins);
    font-weight: 400;
    font-size: 20px;
    color: var(--color-gray);
}

.progress-bar {
    width: 600px;
    height: 15px;
    background-color: var(--color-gray);
    border-radius: 10px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background-color: var(--color-purple);
}

/* works section */

.works_section {
    margin-bottom: 50px;
}

.works_section-title {
    margin-bottom: 20px;
    font-family: var(--font-Roboto);
    font-weight: 500;
    font-size: 42px;
    color: var(--color-orange);
    margin-bottom: 15px;
}

.works_cards-box {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.works_card {
    width: 400px;
    padding: 15px;
    background-color: var(--color-black);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    border-radius: 20px;
    transition: .3s;
}

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

.works_card-img {
    width: 100%;
    height: 200px;
    border-radius: 15px;
}

.works_card-title {
    font-family: var(--font-Poppins);
    font-weight: 400;
    font-size: 16px;
    color: var(--color-orange);
}

.works_card-title:hover {
    color: var(--color-gray);
}

/* contacts (footer) section */

.footer {
    margin-top: 50px;
    margin-bottom: 10px;
}

.contacts_title {
    font-family: var(--font-Inter);
    font-weight: 700;
    font-size: 64px;
    letter-spacing: 0.02em;
    color: var(--color-black);
    margin-bottom: 10px;
}

.contacts_title span {
    color: var(--color-purple);
}

.contacts_subtitle {
    font-family: var(--font-Inter);
    font-weight: 700;
    font-size: 28px;
    color: var(--color-gray);
    margin-bottom: 30px;
}

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

.contacts_nav {
    display: flex;
    align-items: center;
    gap: 35px;
}

.contacts_nav a {
    font-family: var(--font-Roboto);
    font-weight: 400;
    font-size: 20px;
    color: var(--color-black);
    transition: .3s;
}

.contacts_nav a:hover {
    color: var(--color-purple);
}

.contacts_nav a:active {
    transform: scale(0.9);
}

.contacts_links {
    display: flex;
    align-items: center;
    gap: 35px;
}

.contacts_links-icon {
    width: 30px;
    transition: .3s;
}

.contacts_links-icon:hover {
    transform: scale(1.2);
}

.footer_end {
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer_end p {
    font-family: var(--font-Roboto);
    font-weight: 400;
    font-size: 14px;
    color: var(--color-gray);
}