/* Base Desktop Styles */
.social-media-section {
    overflow-x: hidden !important;
    background-color: #202020;
    padding-bottom: -10rem;

}

.social-media-section h1 {
    font-size: 8rem;
    text-align: right;
    padding: 6rem;
    color: #fff;
    padding-bottom: 4rem;
    margin: 0;
    font-weight: 900;
}

.social-flex {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 12rem;
    position: relative;
}

.social-flex img {
    width: 18rem;
    transition: all 0.3s ease;
}

.social-flex h1 {
    font-size: 4rem;
    margin: 0;
    color: #fff;
}

/* Tablet Styles (768px - 1199px) */
@media (min-width: 768px) and (max-width: 1199px) {
    .social-media-section h1 {
        font-size: 6rem;
        padding: 4rem;
        padding-bottom: 10rem;
    }

    .social-flex {
        padding-bottom: 10rem;
    }

    .social-flex img {
        width: 14rem;
    }

    .social-flex h1 {
        font-size: 3rem;
    }

    /* Special effect for 4th element centered, others behind rotated - Tablet */
    .social-flex>*:nth-child(4) {
        z-index: 10;
        transform: scale(1);
    }

    .social-flex>*:not(:nth-child(4)) {
        z-index: 1;
        transform: rotate(-15deg) scale(0.7);
        opacity: 1;
        position: absolute;
    }

    .social-flex>*:nth-child(1) {
        transform: rotate(-25deg) scale(0.6) translateX(-14rem) !important;
    }

    .social-flex>*:nth-child(2) {
        transform: rotate(-10deg) scale(0.65) translateX(-24rem) !important;
    }

    .social-flex>*:nth-child(3) {
        transform: rotate(-5deg) scale(0.75) translateX(-33rem) !important;
    }

    .social-flex>*:nth-child(5) {
        transform: rotate(15deg) scale(0.75) translateX(15rem) !important;
    }

    .social-flex>*:nth-child(6) {
        transform: rotate(10deg) scale(0.65) translateX(30rem) !important;
    }

    .social-flex>*:nth-child(7) {
        transform: rotate(25deg) scale(0.6) translateX(28rem) !important;
    }
}

/* Mobile Styles (320px - 767px) */
@media (max-width: 767px) {
    .social-media-section h1 {
        font-size: 4rem;
        text-align: center;
        padding: 3rem;
        padding-bottom: 3rem;
    }

    .social-flex {
        padding-bottom: 10rem;
    }

    .social-flex img {
        width: 12rem;
    }

    .social-flex h1 {
        font-size: 2.5rem;
    }

    /* Special effect for 4th element centered, others behind rotated - Mobile */
    .social-flex>*:nth-child(4) {
        z-index: 10;
        transform: scale(1.2);
    }

    .social-flex>*:not(:nth-child(4)) {
        z-index: 1;
        transform: rotate(-15deg) scale(0.7);
        opacity: 1;
        position: absolute;
    }

    .social-flex>*:nth-child(1) {
        transform: rotate(-25deg) scale(0.6) translateX(-8rem) !important;
    }

    .social-flex>*:nth-child(2) {
        transform: rotate(-10deg) scale(0.65) translateX(-12rem) !important;
    }

    .social-flex>*:nth-child(3) {
        transform: rotate(-5deg) scale(0.75) translateX(-16rem) !important;
    }

    .social-flex>*:nth-child(5) {
        transform: rotate(15deg) scale(0.75) translateX(8rem) !important;
    }

    .social-flex>*:nth-child(6) {
        transform: rotate(10deg) scale(0.65) translateX(15rem) !important;
    }

    .social-flex>*:nth-child(7) {
        transform: rotate(25deg) scale(0.6) translateX(14rem) !important;
    }
}

/*  */

/* Large Desktop Styles (1200px+) */
@media (min-width: 1200px) {
    .social-media-section h1 {
        font-size: 10rem;
        padding: 8rem;
    }

    .social-flex {
        padding-bottom: 15rem;
    }

    .social-flex img {
        width: 22rem;
    }

    .social-flex h1 {
        font-size: 5rem;
    }

    /* Larger spacing for big screens */
    .social-flex>*:nth-child(1) {
        transform: rotate(-30deg) scale(0.6) translateX(-250px);
    }

    .social-flex>*:nth-child(2) {
        transform: rotate(-15deg) scale(0.65) translateX(-125px);
    }

    .social-flex>*:nth-child(3) {
        transform: rotate(-7deg) scale(0.75) translateX(-60px);
    }

    .social-flex>*:nth-child(5) {
        transform: rotate(7deg) scale(0.75) translateX(60px);
    }

    .social-flex>*:nth-child(6) {
        transform: rotate(15deg) scale(0.65) translateX(125px);
    }

    .social-flex>*:nth-child(7) {
        transform: rotate(30deg) scale(0.6) translateX(250px);
    }
}

.influencer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(20rem, 2fr));
    gap: 40px;
    justify-items: center;
    padding-bottom: 20rem;
    padding-left: 6rem;
    padding-right: 6rem;
}

.influencer-card {
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    padding: 2rem 4rem 2rem 4rem;
    border-radius: 1rem;
    background: #1a1a1a;
    border: 1px solid #333;
}

.influencer-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(255, 255, 255, 0.1);
    background: #2a2a2a;
}

.profile-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    border: 4px solid #333;
    transition: border-color 0.3s ease, transform 0.3s ease;
    display: block;
}

.influencer-card:hover .profile-image {
    border-color: #666;
    transform: scale(1.05);
}

.influencer-name {
    font-size: 2rem;
    color: white;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.influencer-handle {
    font-size: 0.9rem;
    color: #ccc;
    margin-bottom: 12px;
}

.follower-count {
    font-size: 0.8rem;
    color: #999;
    font-weight: 500;
}

.social-icons {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 12px;
}

.social-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, transform 0.3s ease;
    text-decoration: none;
    color: white;
    font-size: 14px;
}

.social-icon:hover {
    background: #555;
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }

    .influencer-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 30px;
    }

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

    .influencer-name {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .influencer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .influencer-section {
        padding: 40px 15px;
    }
}