* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Outfit', sans-serif;
    min-height: 100vh;
}

main {
    max-width: 1400px;
    margin: 100px auto 0;
    padding: 0;
    min-height: calc(100vh - 100px);
    position: relative;
    overflow: hidden;
}

.content-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 40px;
    scroll-margin-top: 100px;
    position: relative;
}

.content-wrapper {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: transparent;
}

.content-section h2 {
    font-family: 'Inter', sans-serif;
    font-size: 48px;
    text-align: center;
    margin-bottom: 30px;
    padding: 0 20px;
    color: rgb(0, 0, 0);
    font-weight: 700;
}

.content-section p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 20px;
    max-width: 800px;
    text-align: center;
    color: rgb(0, 0, 0);
}

#about .content-wrapper {
    padding-bottom: 80px;
}

.project-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 20vh;
    width: 100%;
    max-width: 1200px;
}

#projects .content-wrapper h2 {
    margin-top: -80px; 
    margin-bottom: 20px;
    padding: 0 20px;
    padding-top: 80px;
}

.project-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
}

.project-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.3s ease;
    display: block;
}

.preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgb(255, 255, 255);
    font-size: 20px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 12px;
    pointer-events: none;
}

.project-item:hover .preview-overlay {
    opacity: 1;
}

.project-item:hover img {
    transform: scale(1.04);
}

#projects ul {
    list-style-position: inside;
    max-width: 800px;
    margin: 0 auto 30px;
    padding: 0;
}

#projects ul li {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 12px;
    color: rgb(0, 0, 0);
}

#projects ul li:last-child {
    margin-bottom: 0;
}

#projects h3 {
    font-family: 'Inter', sans-serif;
    font-size: 24px;
    text-align: center;
    margin-bottom: 20px;
    color: rgb(0, 0, 0);
    font-weight: 600;
}

.lang-toggle {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 6px;
    padding: 6px 12px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: rgb(255, 255, 255);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 10px;
}

.lang-toggle:hover {
    background: rgb(255, 255, 255);
    border: 1px solid rgb(255, 255, 255);
    color: rgb(0, 0, 0);
}

.lang-text {
    display: inline-block;
}

@media screen and (max-width: 1024px) {
    .content-section h2 {
        font-size: 40px;
        padding: 0 18px;
    }
    
    #about .content-wrapper {
        padding-bottom: 60px;
    }
    
    #projects .content-wrapper h2 {
        margin-top: -30px;
        padding: 0 18px;
        padding-top: 60px;
    }
    
    .content-section p {
        font-size: 16px;
    }
    
    .project-gallery {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
        margin-bottom: 15vh;
    }
    
    .project-item img {
        height: 180px;
    }
    
    #projects ul li {
        font-size: 15px;
    }
    
    #projects h3 {
        font-size: 22px;
    }
}

@media screen and (max-width: 952px) {
    main {
        margin-top: 140px;
    }

    .content-section {
        min-height: auto;
        padding: 60px 20px;
    }
    
    #about .content-wrapper {
        padding-bottom: 50px;
    }
    
    #projects .content-wrapper h2 {
        margin-top: 0;
        padding: 0 15px;
        padding-top: 50px;
    }
    
    .content-section h2 {
        font-size: 32px;
        margin-bottom: 20px;
        padding: 0 15px;
    }
    
    .content-section p {
        font-size: 15px;
        line-height: 1.6;
    }
    
    .project-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin-top: 30px;
        margin-bottom: 12vh;
    }
    
    .project-item img {
        height: 150px;
    }
    
    .preview-overlay {
        font-size: 18px;
    }
    
    #projects ul li {
        font-size: 15px;
        margin-bottom: 10px;
    }
    
    #projects h3 {
        font-size: 20px;
    }
    
    .lang-toggle {
        margin-left: 0;
        margin-top: 10px;
        width: 100%;
        padding: 10px;
    }
}

@media screen and (max-width: 480px) {
    .content-section h2 {
        font-size: 28px;
        padding: 0 10px;
    }
    
    #about .content-wrapper {
        padding-bottom: 40px;
    }
    
    #projects .content-wrapper h2 {
        padding: 0 10px;
        padding-top: 40px;
    }
    
    .content-section p {
        font-size: 14px;
    }
    
    .project-gallery {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 10vh;
    }
    
    .project-item img {
        height: 200px;
    }
    
    .preview-overlay {
        font-size: 16px;
    }
    
    #projects ul li {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    #projects h3 {
        font-size: 18px;
    }
}