:root {
    --primary-bg-color: #7c55c5;
    --primary-bg-light-color: #7c55c5b5;
    --secondary-bg-color: #fff5f1;
    --primary-text-color: #7c55c5;
    --primary-text-light-color: #7c55c5cc;
    --secondary-text-color: white;
    --third-text-color: rgb(246, 169, 254);
    --fourth-text-color: black;
    --button-color: #FF723A;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--secondary-bg-color);
    color: var(--fourth-text-color);
}

/* Page Header */
.social-header {
    background: linear-gradient(135deg, var(--primary-bg-color) 0%, #9575d8 100%);
    padding: 100px 0 120px;
    /* Extra bottom padding for the overlap */
    text-align: center;
    color: white;
    position: relative;
}

.social-header h1 {
    color: #ffffff !important;
    /* Force white for maximum contrast */
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    /* Adds subtle depth */
}

.social-header p {
    color: rgba(255, 255, 255, 0.9) !important;
    /* Slightly transparent white */
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Floating Social Bar */
.social-icons-card {
    background: white;
    border-radius: 100px;
    padding: 15px 35px;
    /* Softer, more natural shadow */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    display: inline-flex;
    gap: 20px;
    margin-top: -45px;
    /* Adjust this if the overlap feels off */
    position: relative;
    z-index: 10;
}

.social-icon-link {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    text-decoration: none;
    color: white !important;

    /* Smooth transition for the "pop" */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* The "Pop" Hover Effect */
.social-icon-link:hover {
    transform: translateY(-12px) scale(1.15);
    /* Lifts up and grows slightly */
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.2);
    /* Deepens shadow for depth */
    color: white !important;
    z-index: 20;
    /* Ensures the popped icon stays on top */
}

/* Ensure the Font Awesome icons are always white */
.social-icon-link i {
    color: #ffffff !important;
    transition: transform 0.3s ease;
}

/* Extra touch: subtle rotate on the icon itself */
.social-icon-link:hover i {
    transform: rotate(5deg);
}

/* Specific Platform Colors */
.instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.facebook {
    background: #1877f2;
}

.x-twitter {
    background: #000000;
}

/* Updated for X */
.youtube {
    background: #FF0000;
}

.x-twitter {
    background: #000000 !important;
}

.linkedin {
    background: #0077b5;
}

@media (max-width: 768px) {
    .social-header h1 {
        font-size: 2.5rem;
    }

    .social-icons-card {
        padding: 15px 20px;
        gap: 10px;
        border-radius: 30px;
    }

    .social-icon-link {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

/* 1. Define the Fade-In Animation */
@keyframes slideUpFade {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 2. Apply animation to the links */
.social-icon-link {
    opacity: 0;
    /* Starts invisible */
    animation: slideUpFade 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

/* 3. Stagger the timing for each icon (Delay) */
.social-icon-link:nth-child(1) {
    animation-delay: 0.1s;
}

.social-icon-link:nth-child(2) {
    animation-delay: 0.2s;
}

.social-icon-link:nth-child(3) {
    animation-delay: 0.3s;
}

.social-icon-link:nth-child(4) {
    animation-delay: 0.4s;
}

.social-icon-link:nth-child(5) {
    animation-delay: 0.5s;
}

/* Ensure the card itself also has a soft entrance */
.social-icons-card {
    animation: slideUpFade 0.8s ease-out forwards;
}

/* Main Content Section */
.social-content {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-text-color);
    margin-bottom: 15px;
}

.section-title p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Instagram Feed Section */
.instagram-feed {
    background: white;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 8px 30px rgba(124, 85, 197, 0.1);
    margin-bottom: 50px;
}

.instagram-feed-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--secondary-bg-color);
}

.instagram-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
}

.instagram-feed-header h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--fourth-text-color);
    margin: 0;
}

.instagram-handle {
    color: var(--primary-text-color);
    text-decoration: none;
    font-weight: 600;
}

/* Instagram Embed Container */
.instagram-embed-container {
    background: var(--secondary-bg-color);
    border-radius: 16px;
    padding: 20px;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Instagram Grid (if not using embed) */
.instagram-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.instagram-post {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 1;
    background: var(--secondary-bg-color);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.instagram-post:hover {
    transform: scale(1.05);
}

.instagram-post img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.instagram-post-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.instagram-post:hover .instagram-post-overlay {
    opacity: 1;
}

.post-stat {
    color: white;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Social Feed Cards */
.social-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 30px rgba(124, 85, 197, 0.08);
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.social-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(124, 85, 197, 0.15);
}

.social-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.platform-badge {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.social-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--fourth-text-color);
    margin: 0;
}

.follow-btn {
    background: var(--button-color);
    color: white;
    padding: 10px 25px;
    border-radius: 50px;
    border: none;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.follow-btn:hover {
    background: #e6652e;
    color: white;
    transform: translateY(-2px);
}

/* CTA Section */
.social-cta {
    background: linear-gradient(135deg, var(--primary-bg-color) 0%, #9575d8 100%);
    border-radius: 30px;
    padding: 60px 40px;
    text-align: center;
    color: white;
    margin-top: 60px;
}

.social-cta h3 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.social-cta p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.social-cta-btn {
    background: var(--button-color);
    color: white;
    padding: 16px 40px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.social-cta-btn:hover {
    background: #e6652e;
    color: white;
    transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 768px) {
    .social-header h1 {
        font-size: 2rem;
    }

    .social-icon-link {
        width: 50px;
        height: 50px;
        font-size: 20px;
        margin: 0 5px;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .instagram-feed {
        padding: 25px;
    }

    .instagram-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Instagram Embed Style Overrides --- */

.embed-container {
    width: 100%;
    padding: 0;
    display: flex;
    justify-content: center;
    background: transparent;
}

.ig-embed-card {
    background: #FFF !important;
    border: 0 !important;
    border-radius: 24px !important;
    box-shadow: 0 8px 30px rgba(124, 85, 197, 0.1) !important;
    margin: 0 auto !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
}

iframe.instagram-media,
.instagram-media-rendered {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    margin: 0 !important;
    border-radius: 24px !important;
}

.ig-profile-link {
    background: #FFFFFF;
    line-height: 0;
    padding: 20px;
    text-align: center;
    text-decoration: none;
    width: 100%;
    display: block;
    border-radius: 24px;
}

.ig-view-text {
    color: var(--primary-text-color);
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    margin-top: 15px;
}

.ig-avatar-circle {
    background-color: var(--secondary-bg-color);
    border-radius: 50%;
    height: 50px;
    width: 50px;
    margin: 0 auto 10px;
}