/* Reset и базовые стили */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    min-height: 100vh;
    font-family: 'Roboto', 'Liberation Sans', sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(0deg, #0D1117, #0D1117), #FFFFFF;
    color: #F0F6FC;
    padding: 0;
    position: relative;
}

a {
    color: inherit;
    text-decoration: none;
    background-color: transparent;
    border: none;
    outline: none;
    cursor: pointer;
}

.container {
    width: 100%;
    max-width: 1200px;
    flex-direction: column;
    padding: 0 20px;
}

header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px; 
    width: 100%;
    padding: 50px 40px 40px; 
    background: #161B22;
    border-bottom: 1px solid #30363D;
    flex-shrink: 0;
}

.logo {
    display: flex;
    justify-content: center;
}

.logo svg {
    width: 150px; 
    height: 150px; 
}

.alt-name {
    display: flex;
    justify-content: center;
    width: 100%;
}

.alt-name h1 {
    font-family: 'Jaini';
    font-weight: 400;
    font-size: 48px; 
    line-height: 40px; 
    background: linear-gradient(90deg, #58A6FF 0%, #BC8CFF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
}

.stack-container {
    display: flex;
    justify-content: center;
    width: 100%;
}

.stack-container h1 {
    font-family: 'Roboto';
    font-weight: 400;
    font-size: 24px; 
    line-height: 24px; 
    color: white;
    text-align: center;
}

.social-container {
    display: flex;
    justify-content: center;
    width: 100%;
}

.social-links {
    display: flex;
    gap: 15px; 
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    max-width: 600px; 
}

.badge {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 12px 20px; 
    gap: 8px; 
    min-width: 130px; 
    height: 48px; 
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #30363D;
    border-radius: 8px; 
    color: #FFFFFF;
    font-family: 'Roboto', sans-serif;
    font-size: 16px; 
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.badge:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #58a6ff;
    transform: translateY(-2px);
}

.badge i {
    width: 16px; 
    text-align: center;
    flex-shrink: 0;
}

main {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 60px 20px; 
    gap: 40px; 
    width: 100%;
    flex: 1;
}

.section-1 {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 50px; 
    gap: 40px; 
    width: 100%;
    min-height: 600px; 
    background: #161B22;
    border: 1px solid #30363D;
    border-radius: 12px; 
}

.my-stack {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px; 
    width: 100%;
}

.my-stack p {
    display: flex;
    align-items: flex-start;
    padding: 0px 0px 0.8px;
    width: 32px; 
    height: 26px; 
}

.my-stack h1 {
    font-family: 'Liberation Sans';
    font-weight: 700;
    font-size: 28px; 
    line-height: 42px; 
    color: #5296E4;
}

.section-1 .container {
    display: flex;
    flex-direction: row;
    gap: 30px; 
    width: 100%;
    height: 100%;
}

.section-1 .overlay {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 40px; 
    gap: 25px; 
    width: 100%;
    min-height: 400px; 
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #30363D;
    border-radius: 10px; 
    flex: 1;
}

.section-1 .overlay .header {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px; 
    width: 100%;
}

.section-1 .overlay .header p {
    display: flex;
    align-items: flex-start;
    width: 24px; 
    height: 24px; 
}

.section-1 .overlay .header h1 {
    font-family: 'Liberation Sans';
    font-weight: 700;
    font-size: 22px; 
    line-height: 34px; 
    color: #5296E4;
}

.section-1 .overlay .list .boo {
    border-bottom: 2px solid #30363D;
}

.section-1 .overlay .list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    flex: 1;
    justify-content: space-around;
}

.section-1 .overlay .list .item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px; 
    width: 100%;
    padding: 12px 0; 
    min-height: 35px; 
}

.section-1 .overlay .list .item h1 {
    font-family: 'Liberation Sans';
    font-weight: 700;
    font-size: 18px; 
    line-height: 28px; 
    color: #F0F6FC;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 180px; 
}

.section-1 .overlay .list .item h2 {
    font-family: 'Liberation Sans';
    font-weight: 400;
    font-size: 18px; 
    line-height: 28px; 
    color: #F0F6FC;
    white-space: nowrap;
    flex-shrink: 0;
}

.section-2 {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 50px; 
    gap: 40px; 
    width: 100%;
    min-height: 600px; 
    background: #161B22;
    border: 1px solid #30363D;
    border-radius: 12px; 
}

.section-2 .my-project {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px; 
    width: 100%;
}

.section-2 .my-project h1 {
    font-family: 'Liberation Sans';
    font-weight: 700;
    font-size: 28px; 
    color: #5296E4;
}

.section-2 .container {
    display: flex;
    flex-direction: column;
    gap: 30px; 
    width: 100%;
    height: 100%;
}

.section-2 .container .overlay {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 40px; 
    gap: 25px; 
    width: 100%;
    min-height: 250px; 
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #30363D;
    border-radius: 10px; 
}

.section-2 .container .overlay .name-project {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
}

.section-2 .container .overlay .name-project p {
    font-family: 'Liberation Sans';
    font-weight: 700;
    font-size: 22px; 
    color: #5296E4;
}

.section-2 .container .overlay .name-project a {
    color: inherit;
}

.section-2 .container .overlay .name-project a:hover {
    text-decoration: underline;
}

.section-2 .container .overlay .social-btn {
    display: flex;
    gap: 15px; 
}

.section-2 .container .overlay .social-btn a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px; 
    border-radius: 6px; 
    transition: background-color 0.2s;
}

.section-2 .container .overlay .social-btn a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.section-2 .container .overlay .about-project {
    width: 100%;
    flex: 1;
    display: flex;
    align-items: center;
}

.section-2 .container .overlay .about-project p {
    width: 100%;
    font-family: 'Liberation Sans';
    font-weight: 400;
    font-size: 18px; 
    line-height: 1.6;
    color: #F0F6FC;
}

.section-2 .container .overlay .container-label {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px; 
    width: 100%;
}

.section-2 .container .overlay .container-label .item {
    box-sizing: border-box;
    padding: 6px 14px; 
    background: rgba(88, 166, 255, 0.1);
    border: 1px solid rgba(88, 166, 255, 0.3);
    border-radius: 14px; 
    font-family: 'Liberation Sans';
    font-size: 14px; 
    color: #5296E4;
}

.section-3 {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 50px; 
    gap: 40px; 
    width: 100%;
    min-height: 450px; 
    background: #161B22;
    border: 1px solid #30363D;
    border-radius: 12px; 
}

.section-3 .header {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px; 
    width: 100%;
}

.section-3 .header p {
    font-family: 'Liberation Sans';
    font-weight: 700;
    font-size: 28px; 
    line-height: 42px; 
    color: #5296E4;
}

.section-3 .container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: stretch;
    gap: 25px; 
    width: 100%;
    height: 100%;
}

.section-3 .container .link {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px; 
    gap: 25px; 
    flex: 1;
    min-height: 220px; 
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #30363D;
    border-radius: 10px; 
}

.section-3 .container .link .soc-icon {
    width: 40px; 
    height: 40px; 
}

.section-3 .container .link .text {
    font-family: 'Liberation Sans';
    font-weight: 400;
    font-size: 18px; 
    line-height: 28px; 
    text-align: center;
    color: #F0F6FC;
}

footer {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 40px 20px; 
    width: 100%;
    background: #161B22;
    border-top: 1px solid #30363D;
    flex-shrink: 0;
    margin-top: auto;
}

footer .container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

footer .container .top,
footer .container .bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    opacity: 0.7;
}

footer .container span {
    font-family: 'Liberation Sans';
    font-weight: 400;
    font-size: 16px; 
    line-height: 26px; 
    color: #F0F6FC;
    text-align: center;
}

@media (max-width: 1024px) {
    .container {
        max-width: 95%;
        padding: 0 15px;
    }
    
    .section-3 .container {
        flex-wrap: wrap;
    }
    
    .section-3 .container .link {
        min-width: calc(50% - 12px);
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 100%;
        padding: 0 10px;
    }
    
    header {
        padding: 30px 20px;
        gap: 20px;
    }
    
    .logo svg {
        width: 100px;
        height: 100px;
    }
    
    .alt-name h1 {
        font-size: 36px;
    }
    
    .stack-container h1 {
        font-size: 20px;
    }
    
    .social-links {
        gap: 10px;
    }
    
    .badge {
        min-width: 120px;
        padding: 10px 16px;
        font-size: 14px;
    }
    
    main {
        padding: 40px 10px;
        gap: 30px;
    }
    
    .section-1,
    .section-2,
    .section-3 {
        padding: 35px;
        gap: 30px;
        min-height: auto;
    }
    
    .section-1 {
        min-height: 700px;
    }
    
    .section-2 {
        min-height: 550px;
    }
    
    .section-3 {
        min-height: 500px;
    }
    
    .my-stack h1,
    .section-2 .my-project h1,
    .section-3 .header p {
        font-size: 24px;
    }
    
    .section-1 .overlay {
        padding: 30px;
        min-height: 320px;
    }
    
    .section-1 .overlay .header h1 {
        font-size: 20px;
    }
    
    .section-1 .overlay .list .item h1,
    .section-1 .overlay .list .item h2 {
        font-size: 16px;
    }
    
    .section-1 .overlay .list .item h1 {
        min-width: 150px;
    }
    
    .section-3 .container {
        flex-direction: column;
    }
    
    .section-3 .container .link {
        width: 100%;
        min-height: 140px;
    }
    
    footer {
        padding: 30px 15px;
    }
    
    footer .container span {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .container {
        max-width: 100%;
        padding: 0 8px;
    }
    
    header {
        padding: 20px 15px;
        gap: 15px;
    }
    
    .logo svg {
        width: 80px;
        height: 80px;
    }
    
    .alt-name h1 {
        font-size: 30px;
    }
    
    .stack-container h1 {
        font-size: 18px;
        line-height: 1.3;
    }
    
    .social-links {
        flex-direction: column;
        width: 100%;
    }
    
    .badge {
        width: 100%;
        max-width: 220px;
        justify-content: center;
    }
    
    main {
        padding: 30px 8px;
    }
    
    .section-1,
    .section-2,
    .section-3 {
        padding: 25px;
    }
    
    .section-1 .overlay,
    .section-2 .container .overlay {
        padding: 25px;
        min-height: 280px;
    }
    
    .my-stack h1,
    .section-2 .my-project h1,
    .section-3 .header p {
        font-size: 22px;
    }
    
    .section-1 .overlay .header h1 {
        font-size: 18px;
    }
    
    .section-1 .container {
        flex-direction: column;
    }
    
    .section-1 .overlay .list .item {
        flex-wrap: wrap;
        gap: 8px;
        white-space: normal;
        min-height: auto;
    }
    
    .section-1 .overlay .list .item h1 {
        white-space: normal;
        flex-shrink: 1;
        min-width: 120px;
        font-size: 16px;
    }
    
    .section-1 .overlay .list .item h2 {
        white-space: normal;
        flex-shrink: 1;
        font-size: 15px;
    }
    
    .section-2 .container .overlay .name-project {
        flex-direction: column;
        gap: 12px;
    }
    
    .section-3 .container .link {
        min-height: 120px;
        padding: 25px;
    }
}

@media (min-width: 1025px) {
    .section-1 .container {
        flex-direction: row;
    }
    
    .section-1 .overlay {
        flex: 1;
        min-width: 0;
    }
}