/* Experience Section */
.experience-section {
    text-align: center;
    padding: 50px 10%;
    background: #111; /* Temporary solid background for testing */
    color: white;
    position: relative; /* Ensures the wave stays inside */
    overflow: hidden; /* Prevents background elements from overflowing */
    z-index: 1; /* Ensures content appears above the wave */
}

/* Two-column layout for consistency */
.experience-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

.experience-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: left;
    cursor: pointer;
}

.experience-card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

/* Skills Styling */
.skills {
    font-style: italic;
    color: #ccc;
}

/* 🔹 LinkedIn Call-to-Action */
.linkedin-cta {
    text-align: center;
    margin-top: 60px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.08); /* Subtle background glow */
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.15);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    transition: all 0.3s ease-in-out;
}

/* 🔹 LinkedIn CTA Text */
.linkedin-cta p {
    font-size: 1.4rem;
    font-weight: 500;
    font-style: italic;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

/* 🔹 LinkedIn Button */
.linkedin-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 1);
    transition: all 0.3s ease-in-out;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

/* 🔹 Hover Effect */
.linkedin-button:hover {
    background: #005f8d;
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.8);
}

/* 🔹 Responsive CTA */
@media (max-width: 768px) {
    .linkedin-cta {
        max-width: 90%;
        padding: 20px;
    }

    .linkedin-button {
        font-size: 14px;
        padding: 10px 20px;
    }
}


/* Experience Section */
.experience-section {
    text-align: center;
    padding: 50px 10%;
    background: #111; /* Base Dark Background */
    color: white;
    position: relative; /* Keeps gradient inside */
    overflow: hidden; /* Prevents overflow */
    z-index: 1; /* Ensures content appears above the background */
}

/* Metallic Shining Background */
.metallic-shine {
    position: absolute;
    top: 0;
    left: 0;
    width: 400%;
    height: 400%;
    background: repeating-linear-gradient(
        120deg,
        rgba(255, 255, 255, 0.3) 0%,
        rgba(255, 255, 255, 0.1) 10%,
        rgba(0, 0, 0, 0.2) 20%,
        rgba(255, 255, 255, 0.3) 30%
    );
    background-size: 200% 200%;
    animation: metallicMove 8s infinite linear;
    z-index: -1; /* Keeps it behind content */
}

/* Metallic Reflection Animation */
@keyframes metallicMove {
    0% {
        background-position: 0% 100%;
    }
    50% {
        background-position: 100% 0%;
    }
    100% {
        background-position: 0% 100%;
    }
}

/* 🔹 EXPERIENCE CARD IMAGE STYLING */
.company-logo {
    width: 100%; /* Ensure the image spans the width of the card */
    max-height: 150px; /* Set a consistent height */
    object-fit: contain; /* Ensures the image scales properly without distortion */
    display: block;
    margin: 0 auto 15px; /* Centers the image inside the card and adds spacing below */
}

/* lg */
@media (max-width: 1024px) {
    .container {
        max-width: 768px;
        padding: 0 30px; /* Adjusted padding for balance */
    }

    /* Experience Section */
    .experience-section {
        padding: 60px 8%;
        text-align: center;
    }

    /* Experience Grid */
    .experience-container {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 15px;
    }

    /* Experience Card */
    .experience-card {
        padding: 25px;
        text-align: center;
    }

    .experience-card h3 {
        font-size: 1.6rem;
    }

    .experience-card p {
        font-size: 1.1rem;
    }

    /* LinkedIn CTA */
    .linkedin-cta {
        max-width: 80%;
        padding: 25px;
    }

    .linkedin-cta p {
        font-size: 1.3rem;
    }

    .linkedin-button {
        font-size: 1rem;
        padding: 12px 22px;
    }

    /* Experience Card Images */
    .company-logo {
        max-height: 140px;
    }

    /* Adjust the metallic shine */
    .metallic-shine {
        width: 300%;
        height: 300%;
    }
}

/* md */
@media (max-width: 768px) {
    .container {
        max-width: 640px;
        padding: 0 25px; /* Adjusted padding for balance */
    }

    /* Experience Section */
    .experience-section {
        padding: 50px 6%;
        text-align: center;
    }

    /* Experience Grid */
    .experience-container {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 12px;
    }

    /* Experience Card */
    .experience-card {
        padding: 22px;
        text-align: center;
    }

    .experience-card h3 {
        font-size: 1.5rem;
    }

    .experience-card p {
        font-size: 1rem;
    }

    /* LinkedIn CTA */
    .linkedin-cta {
        max-width: 85%;
        padding: 20px;
    }

    .linkedin-cta p {
        font-size: 1.2rem;
    }

    .linkedin-button {
        font-size: 0.9rem;
        padding: 10px 18px;
    }

    /* Experience Card Images */
    .company-logo {
        max-height: 130px;
    }

    /* Adjust the metallic shine */
    .metallic-shine {
        width: 280%;
        height: 280%;
    }
}

/* sm */
@media (max-width: 640px) {
    .container {
        max-width: 475px;
        padding: 0 20px; /* Adjusted padding for balance */
    }

    /* Experience Section */
    .experience-section {
        padding: 40px 5%;
        text-align: center;
    }

    /* Experience Grid */
    .experience-container {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 10px;
    }

    /* Experience Card */
    .experience-card {
        padding: 18px;
        text-align: center;
    }

    .experience-card h3 {
        font-size: 1.4rem;
    }

    .experience-card p {
        font-size: 0.95rem;
    }

    /* LinkedIn CTA */
    .linkedin-cta {
        max-width: 90%;
        padding: 18px;
    }

    .linkedin-cta p {
        font-size: 1.1rem;
    }

    .linkedin-button {
        font-size: 0.85rem;
        padding: 9px 16px;
    }

    /* Experience Card Images */
    .company-logo {
        max-height: 120px;
    }

    /* Adjust the metallic shine */
    .metallic-shine {
        width: 250%;
        height: 250%;
    }
}

/* xs */
@media (max-width: 475px) {
    .container {
        width: 100%;
        padding: 0 15px; /* Adjusted padding for smaller screens */
    }

    /* Experience Section */
    .experience-section {
        padding: 30px 5%;
        text-align: center;
    }

    /* Experience Grid */
    .experience-container {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Smaller card sizes */
        gap: 8px; /* Reduced spacing for compact layout */
    }

    /* Experience Card */
    .experience-card {
        padding: 15px;
        text-align: center;
    }

    .experience-card h3 {
        font-size: 1.2rem; /* Slightly smaller for readability */
    }

    .experience-card p {
        font-size: 0.9rem;
    }

    /* LinkedIn CTA */
    .linkedin-cta {
        max-width: 100%;
        padding: 15px;
    }

    .linkedin-cta p {
        font-size: 1rem;
    }

    .linkedin-button {
        font-size: 0.8rem;
        padding: 8px 14px;
    }

    /* Experience Card Images */
    .company-logo {
        max-height: 100px;
    }

    /* Adjust the metallic shine */
    .metallic-shine {
        width: 200%;
        height: 200%;
    }
}

