section {
    min-height: 100vh;
    padding: 100px 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.profile-container {
    margin-bottom: 30px;
    order: -2;
}

.profile-image {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    border-radius: 50%;
    border: 3px solid #4facfe;
    box-shadow: 0 0 20px rgba(79, 172, 254, 0.3);
    transition: transform 0.3s ease;
    overflow: hidden;
    will-change: transform;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-image:hover {
    box-shadow: 0 0 30px rgba(79, 172, 254, 0.5);
    transform: scale(1.02);
    border-color: #00ffff;
}

.home {
    display: block;
    text-align: center;
    padding-top: 120px;
    text-align: center;
    position: relative;
}

.home h1 {
    font-size: 4.2rem;
    margin-bottom: 40px;
    background: linear-gradient(135deg, #4facfe 0%, #00ffff 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(79, 172, 254, 0.3);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -1px;
}

.presentation-text h2 {
    font-size: 1.6rem;
    color: rgba(230, 237, 243, 0.85);
    margin-bottom: 30px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    line-height: 1.4;
}

.home p {
    font-size: 1.3rem;
    color: rgba(230, 237, 243, 0.9);
    max-width: 750px;
    margin: 0 auto 30px;
    line-height: 1.8;
    text-align: center;
    letter-spacing: 0.3px;
    font-weight: 400;
}

.skills-section {
    margin: 50px auto 0;
    max-width: 1000px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    width: 100%;
}

.skill-category {
    text-align: center;
}

.skill-category h3 {
    color: #4facfe;
    font-size: 1.3rem;
    margin-bottom: 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    text-shadow: 0 0 10px rgba(79, 172, 254, 0.2);
    line-height: 1.3;
}

.logos-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.logo-item {
    position: relative;
    cursor: pointer;
}

.logo {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.15), rgba(0, 255, 255, 0.1));
    border: 2px solid rgba(79, 172, 254, 0.4);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 8px;
    backdrop-filter: blur(5px);
    will-change: transform;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 4px rgba(79, 172, 254, 0.2));
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 15px rgba(79, 172, 254, 0.2);
    border-color: #4facfe;
}

.logo:hover img {
    filter: drop-shadow(0 0 8px rgba(79, 172, 254, 0.4));
    transform: scale(1.05);
}

.logo-item::after {
    content: attr(data-tooltip);
    position: absolute;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(13, 17, 23, 0.9);
    color: #4facfe;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    border: 1px solid rgba(79, 172, 254, 0.3);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.logo-item:hover::after {
    opacity: 1;
}

@media (max-width: 1564px) {
    .home {
        padding-top: 150px;
    }
}

@media (max-width: 1024px) {
    .home {
        padding-top: 140px;
    }
}

@media (max-width: 768px) {
    .home {
        padding-top: 90px;
    }

    .home h1 {
        font-size: 2.5rem;
        line-height: 1.1;
        margin-bottom: 30px;
    }

    .presentation-text h2 {
        font-size: 1.3rem;
        margin-bottom: 25px;
    }

    .home p {
        font-size: 1.1rem;
        max-width: 90%;
        line-height: 1.6;
    }

    section {
        padding: 80px 20px;
    }

    body::before {
        background: none;
    }

    .skills-section {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .skill-category h3 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .home h1 {
        font-size: 2rem;
        line-height: 1.1;
        margin-bottom: 25px;
    }

    .presentation-text h2 {
        font-size: 1.1rem;
        margin-bottom: 20px;
        letter-spacing: 0.8px;
    }

    .home p {
        font-size: 1rem;
        padding: 0 10px;
        max-width: 95%;
        line-height: 1.5;
        letter-spacing: 0.3px;
    }

    section {
        padding: 60px 15px;
    }

    .profile-image {
        width: 150px;
        height: 150px;
    }

    .logo {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 360px) {
    .home h1 {
        font-size: 1.8rem;
        line-height: 1.1;
        margin-bottom: 20px;
    }

    .presentation-text h2 {
        font-size: 1rem;
        margin-bottom: 18px;
        letter-spacing: 0.6px;
    }

    .home p {
        font-size: 0.9rem;
        line-height: 1.5;
        letter-spacing: 0.2px;
    }

    .skills-section {
        gap: 20px;
    }

    .logo {
        width: 45px;
        height: 45px;
    }

    .logos-container {
        gap: 10px;
    }
}

@media (max-width: 320px) {
    .home {
        padding: 60px 15px 20px;
        gap: 25px;
    }

    .profile-image img {
        width: 80px;
        height: 80px;
        border-width: 2px;
    }

    .home h1 {
        font-size: 1.6rem;
        line-height: 1.1;
        margin-bottom: 15px;
    }

    .presentation-text h2 {
        font-size: 0.9rem;
        margin-bottom: 15px;
        letter-spacing: 0.5px;
    }

    .home p {
        font-size: 0.8rem;
        line-height: 1.4;
        letter-spacing: 0.1px;
    }

    .skills-section {
        gap: 15px;
        margin-top: 25px;
    }

    .logo {
        width: 40px;
        height: 40px;
    }

    .logos-container {
        gap: 8px;
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .star,
    .language-particle,
    .mouse-particle {
        animation: none;
    }
    
    .logo:hover,
    .profile-image:hover,
    .nav-item:hover,
    .lang-toggle:hover,
    .lang-option {
        transform: none;
        transition: none;
    }
}

.profile-image,
.logo {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

.logo {
    contain: layout style paint;
}