html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter';
}


body {
    background-color: #f7f9fa;
    color: #292f34;
}


.header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background-color: white;
    border-bottom: 2px solid #e9eaed;

    position:sticky;
    top:0;

    background:white;
    z-index:100;
}

.logo {
    font-weight: bold;
    font-size: 24px;
    transition: all 0.3s ease;
}

.logo:hover {
    cursor: pointer;
    transform: scale(1.1);
    color: #4142f5;
}

.link {
    position: relative;
    margin-left: 20px;
    padding: 5px 0;
    text-decoration: none;
    color: #292f34;
    font-weight: 500;
}

.link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: #4142f5;
    color: #4142f5;
    transition: width .3s ease;
}

.link:hover::after {
    width: 100%;
}

.hero-section {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 40px;
    min-height: calc(100vh - 80px);
    max-width: 1200px;
    margin: 0 auto;
}
.hero-section{
    animation: fadeUp 1s ease;
}

.home-menu {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1; 
}

.frontend {
    color: #4f46e5;
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.name {
    font-size: 48px;
    margin-bottom: 15px;
}

.description {
    font-size: 18px;
    color: #5e6c84;
    line-height: 1.6;
    margin-bottom: 25px;
}


.button-menu {
    display: flex;
    flex-direction: row;
    gap: 15px; 
}

.block {
    text-decoration: none;
    display: inline-block;
}

.git-btn {
    background-color: black;
    color: white;
    padding: 15px 30px;
    border-radius: 8px;
    border: 2px solid black;
    transition: all 0.3s ease;
}

.contact-btn {
    border: 2px solid #dfe1e6;
    border-radius: 8px;
    background-color: white;
    color: black;
    padding: 15px 30px;
    transition: all 0.3s ease;
}

.git-btn:hover, .contact-btn:hover {
    cursor: pointer;
    transform: translateY(-3px); 
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}


.img-block {
    flex: 1; 
    display: flex;
    justify-content: center;
    align-items: center;
}

.images {
    max-width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: contain;
}

.skills-img{
    width:70px;
    height:70px;
    object-fit:contain;
    margin-bottom:20px;
}

.project-img {
    max-width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: contain;
}

.projects-section {
    max-width: 1200px;
    margin: 140px auto;
    padding: 0 40px;
}

.featured-projects {
    font-size: 28px;
    margin-bottom: 20px;
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.projects-card {
    background-color: white;
    border: 2px solid #eeeff2;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 10px 25px rgba(0,0,0,.05);
    transition: all 0.3s ease;

}
.projects-card:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transform: translateY(-5px);
}
.project-name {
    margin-bottom: 10px;
    font-size: 22px;
}

.project-description {
    color: #5e6c84;
    margin-bottom: 20px;
    line-height: 1.5;
}

.usage-card {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
}

.usage {
    padding: 5px 12px;
    background-color: #f5f6f9;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    color: #4c658f;
}

.skills-section {
    max-width: 1200px;
    margin: 140px auto;
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    width: 100%;
    justify-content: center; 
    justify-items: center;  
}


.skills-card {
    text-align: center;
    padding:30px 20px;
    border:1px solid #e8e8e8;
    border-radius: 10px;
    transition: all 0.3s ease;
    background:#fff;
}

.skills-card:hover {
    cursor: pointer;
    transform:translateY(-8px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}


.skills-header {
    text-align: center;
    margin-bottom: 40px; 
}

.skills-text {
    color: hsl(243, 92%, 62%);
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.skills-description {
    color: #5e6c84;
    max-width: 600px;
    margin-top: 10px;
}

.title{
    margin-bottom:8px;
}

.description{
    color:#6b7280;
}

.about-section {
    margin-top: 250px;
    max-width: 1200px;
    margin: 100px auto;
    padding: 0 40px;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    justify-content: center; 
    align-items: center;   
    min-height: 100vh;
}

.about-section .frontend, 
.about-section .name, 
.about-section .description {
    text-align: center;
}
.about-block {    
    display:flex;    
    flex-direction: row;  
    gap: 40px;    
    padding: 20px;
    margin: 10px; 
}  

.about-me-card div {
    display: flex;
    flex-direction: row;
    align-items: center;
}
.about-img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}
.about-stack {     
    display: flex;
    flex-direction: column; 
    gap: 15px;              
    background-color: #111827;    
    color: white;    
    border-radius: 10px;
    padding: 20px;   
    margin: 5px; 
} 

.stack-item {
    display: flex;
    flex-direction: row;    
    align-items: center;  
    gap: 12px;         
    width: fit-content;
}

.stack-item p {
    margin: 0;
    font-size: 16px; 
}       

.stack-block {   
    display: flex;  
    flex-direction: row;  
    gap: 20px; 
    padding: 20px;
    margin: 10px;
} 
.about-des {
    color: #646e87;
    padding: 10px;
    margin: 5px;
}
.stack-card {    
    background-color: #2a3141; 
    color:#d6d9e0;   
    border-radius: 10px; 
    border: 2px solid #1c2434; 
    padding: 10px;  
    min-width: 70px; 
    text-align: center; 
    transition: all 0.3s ease ;
} 

.about-me {    
    display: flex;
    background-color: #fefefe;   
    border: 2px solid #f6f7f9;    
    border-radius: 10px;  
    padding: 20px;    
    margin: 5px;   
    flex-wrap: wrap;
    width: auto;
}  

.about-card {  
    display: flex;    
    flex-direction: row;   
    justify-content: center;   
    padding: 20px;   
    margin: 10px;   
    gap: 30px; 
} 
.about-me-card { 
    border: 2px solid #eceef4;   
    border-radius: 10px;  
    background-color: white;  
    padding: 20px; 
    width: 150px;
    text-align: center;
    transition: all 0.3s ease-in-out  ;
}
.stack-card:hover ,.about-me-card:hover{
    cursor: pointer;
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.stack-line {
    color: #2b3344;
}
.about-img {
    width: 30px;
    height: 30px;
}
.tech-title {
    padding: 10px;
    margin: 10px;
    color: #d6d9e0; 

}

.do-block {
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;         
    gap: 30px;
    padding: 20px;
    margin: 30px auto;
    width: 100%;
}
.do-card {
    display: flex;
    flex-direction: row;
    align-items: center; 
    justify-content: center;
    gap: 5px;
    background-color: #fefefe;
    border-radius: 10px;
    padding: 20px;
    margin: 10px;
    transition: all 0.3s ease;
}
.do-card div {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 10px;


}
.card-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}
.title,
.description {
    margin: 0;
}

.do-card:hover {
    cursor: pointer;
    transform: translateY(-5px);
    color: #4142f5;
    box-shadow: 1px 1px 3px #292f34;
}
.contact-section {
    max-width: 1200px;
    margin: 100px auto;   
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    align-items: center;  
    min-height: 100vh;
}

.contact-me {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
    margin: 15px auto;     
    gap: 50px;
    width: 100%;             
    max-width: 1100px;      
}

.info-menu {
    display: flex;
    flex-direction: column;
    gap: 20px;         
    padding: 10px 0;
    flex: 1; 
    width: 100%;
    max-width: 400px;
}


.info-item {
    display: flex;
    flex-direction: row;    
    align-items: center;   
    gap: 15px;             
    padding: 15px;         
    margin: 0;         
    border-radius: 10px;
    background-color: #fefefe;
    border: 1px solid #e5e8ed; 
    width: 100%;
    transition: all 0.3s;
}



.info-item div {
    display: flex;
    flex-direction: column; 
    gap: 2px;
}

.info-item h3 {
    font-size: 14px;
    color: #6b7280;         
    margin: 0;
}

.info-item p {
    font-size: 16px;
    color: #292f34;        
    font-weight: 500;
    margin: 0;
}

.info-item:hover {
    cursor: pointer;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);

}

.info-img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    flex-shrink: 0;       
}

.send-me {
    display: flex;
    flex-direction: column;
    gap: 20px;           
    background-color: #ffffff;
    border: 2px solid #eeeff2;
    border-radius: 10px;
    padding: 30px;
    margin: 0;            

    flex: 1.5;  
    width: 100%;        
    box-shadow: 0 10px 25px rgba(0,0,0,.03);
}
.send-block {
    display: flex;
    justify-content: center;

}


.send-mes {
    background-color: #4e49fb;
    color: white;
    border-radius: 10px;
    border: 2px solid #5350fb;
    padding: 10px;
    width: 100%;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.send-me h3 {
    font-size: 20px;
    margin-bottom: 5px;
    color: #292f34;
}

.input-menu {
    display: flex;
    flex-direction: column; 
    gap: 8px;               
}


.input-menu label {
    font-size: 14px;
    font-weight: 600;
    color: #4c658f;        
}

.textarea-input {
    border-radius: 5px; 
    border: 2px solid #e5e8ed;
    padding: 10px;
    min-height: 100px; 
    resize: vertical;
}
.block-input {
    border-radius: 6px;
    border: 2px solid #e5e8ed;
    padding: 12px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.3s ease;
}


.input-menu textarea {
    border-radius: 6px;
    border: 2px solid #e5e8ed;
    padding: 12px;
    font-size: 15px;
    min-height: 120px;      
    resize: vertical;       
    outline: none;
    font-family: inherit;    
    transition: border-color 0.3s ease;
}


.block-input:focus, 
.input-menu textarea:focus {
    border-color: #4f46e5;
}


.send-me button {
    margin-top: 10px;
    cursor: pointer;
    width: 100%;             
    text-align: center;
}
.footer-menu {
    display: flex;
    flex-direction: row;
    justify-content: space-between;

    background-color: #1a1f26;
    color: #5e6c84;

    padding: 20px;
}   

.footer-link {
    text-decoration: none;
    padding: 10px;
    color: #5e6c84;
    transition: all 0.3s ease;
}

.contact-link {
    padding: 10px;
    transition: all 0.3s ease;
}

.footer-link:hover {
    cursor: pointer;
    color: white;
}

.contact-link:hover {
    color: white;
    cursor: pointer;
}



@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero-section {
        flex-direction: column-reverse; 
        text-align: center;
        padding: 20px;
    }
    .nav-menu {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    .about-block, .do-block, .contact-me,.about-me-card,.stack-item ,.stack-block {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    .tech-title {
        text-align: center;
    }

    .button-menu {
        justify-content: center;
    }
    
    .name {
        font-size: 34px;
    }
    .description {
        font-size: 16px;
    }
    .send-me {
        width: auto;
    }
    .info-menu, .send-me {
        max-width: 100%;
        width: 100%;
    }
}