#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
}

/* Responsive Fixes */
@media (max-width: 1200px) {
    .intro {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding-top: 6vh;
    }

    .skillsquote-section {
        margin-top: 4vh;
    }

    .intro-text {
        width: 90vw;
        padding-top: 6vh;
    }
}

/* Restrict particles to Skills Section only */
#skills-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding-bottom: 50px; /* Ensures spacing between this and next section */
}

/* Particle container stays inside the skills section */
#particles-container {
    position: absolute;
    width: 100%;
    height: 100%; /* Makes it take up the full height of the Skills section */
    top: 0;
    left: 0;
    z-index: -1; /* Ensures it stays behind all content */
}


/* 🛠️ Updated Section Headings */
h2.skills-heading {
    font-size: 2.5rem; /* Larger for professional formatting */
    font-weight: bold;
    color: #ffffff;
    text-align: center;
    margin-bottom: 5px; /* Reduced space between heading and content */
    padding: 10px 0;
    position: relative;
    display: block;
}

/* 🔥 Underline Effect for Headings */
h2.skills-heading::after {
    content: "";
    display: block;
    width: 60%;
    height: 3px;
    background: rgba(255, 255, 255, 0.8);
    margin: 8px auto 0;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

/* 🛠️ Reduce spacing between heading and content */
.technical-skills {
    margin-top: 10px; /* Further reduced space between heading and cards */
}

/* Soft Skills Section */
.soft-skills {
    margin-top: 30px; /* Adjusted for balance */
    padding: 0 5%;
}

.soft-skills ul {
    list-style-type: none;
    padding-left: 0;
}

.soft-skills ul li {
    font-size: 1.2rem;
    color: #ffffff;
    margin-bottom: 8px;
}

/* 🔥 Ticker Section Styling with Glowing Line */
.ticker {
    width: 100%;
    overflow: hidden;
    background: #111;
    padding: 12px 0; /* Reduced padding */
    white-space: nowrap;
    position: relative;
    cursor: grab;
    border-top: 3px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0px -3px 15px rgba(255, 255, 255, 0.6);
    margin-top: -10px; /* Adjusted spacing */
}

/* Ticker Wrapper */
.ticker-wrapper {
    display: flex;
    will-change: transform;
    overflow: hidden;
    scroll-behavior: smooth;
}

/* Ticker Content */
.ticker-content {
    display: flex;
    gap: 50px;
    min-width: max-content;
}

/* Non-clickable Ticker Items */
.ticker-item {
    font-size: 1.3rem;
    font-weight: bold;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
    user-select: none;
    pointer-events: none;
}

/* Make all images white */
.ticker-item img {
    filter: brightness(0) invert(1);
    width: 28px;
    height: auto;
    transition: filter 0.3s ease-in-out;
}

/* Ensure icons remain white on hover */
.ticker-item:hover img {
    filter: brightness(0) invert(1) drop-shadow(0 0 5px rgba(255, 255, 255, 0.7));
}

/* Make all images white */
.ticker-item img {
    filter: brightness(0) invert(1);
    width: 28px;
    height: auto;
    transition: filter 0.3s ease-in-out;
}

/* Ensure icons remain white on hover */
.ticker-item:hover img {
    filter: brightness(0) invert(1) drop-shadow(0 0 5px rgba(255, 255, 255, 0.7));
}

/* Technical Skills Section Styling */
.technical-skills {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 40px 5%;
    max-width: 90%;
    margin: 0 auto;
    flex-wrap: nowrap;
}

/* Individual Skill Card */
.skill-card {
    background: #111;
    color: #ffffff;
    padding: 20px;
    flex: 1;
    min-width: 250px;
    max-width: 280px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, height 0.4s ease-in-out;
    position: relative;
    overflow: hidden;
    height: 120px;
    cursor: pointer; /* Ensures tapability on mobile */
}


/* Skill Icon Styling */
.skill-icon {
    width: 50px;
    height: auto;
    margin-bottom: 10px;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease-in-out;
}

/* Hide Description Initially */
.skill-description {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.3s ease-in-out, max-height 0.3s ease-in-out;
}

@media (min-width: 1025px) {
    .skill-card:hover {
        height: 380px; /* Adjust as needed for full text visibility */
    }

    .skill-description {
        max-height: 100%; /* Ensure full description is visible */
        opacity: 1;
        overflow: visible;
    }
    .skill-description {
        opacity: 0;
        max-height: 0;
        overflow: hidden;
        transition: opacity 0.3s ease-in-out, max-height 0.3s ease-in-out;
    }

}


/* Show Description on Hover */
.skill-card:hover .skill-description {
    opacity: 1;
    max-height: 200px;
}

/* Add slight scale effect to the icon */
.skill-card:hover .skill-icon {
    transform: scale(1.1);
}

/* Glow Effect That Follows Cursor */
.skill-card::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 10%, transparent 70%);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.3s ease-out;
    border-radius: 50%;
    opacity: 0.5;
    pointer-events: none;
}

/* Activate Glow Effect on Hover */
.skill-card:hover::before {
    transform: translate(-50%, -50%) scale(1.2);
}

/* Ensure text inside the card is left-aligned except the heading */
.skill-card p {
    text-align: left;
    padding-left: 10px;
}

/* ============================ */
/* 🚀 HOVER-BASED EXPANSION (Desktop) */
/* ============================ */
/* 💡 Glow Effect on Tap (Only for Mobile) */
@media (max-width: 768px) {
    .skill-card.glow-effect {
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
        transition: box-shadow 0.5s ease-in-out;
    }

    /* Prevents height expansion on mobile */
    .skill-card {
        height: 120px !important; /* Fix height */
        overflow: hidden;
    }

    .skill-card .skill-description {
        display: none !important; /* Prevents expansion */
    }
}



/* Responsive Design */
@media (max-width: 1500px) {
    .technical-skills {
        justify-content: space-evenly;
    }
    .skill-card {
        max-width: 270px;
    }
}

@media (max-width: 1440px) {
    .technical-skills {
        flex-wrap: wrap;
        justify-content: center;
    }
    .skill-card {
        max-width: 45%;
    }
}

@media (max-width: 900px) {
    .technical-skills {
        flex-direction: column;
        align-items: center;
    }
    .skill-card {
        max-width: 90%;
    }
}

/* lg */
@media (max-width: 1024px) {
    .container {
        max-width: 768px;
        padding: 0 30px; /* Adjusted padding for better spacing */
    }

    /* Skills Section */
    #skills-section {
        padding-bottom: 100px; /* More space for expanded cards */
        min-height: 100vh; /* Ensures full expansion */
    }


    /* Particle Effect */
    #particles-container {
        height: 90%; /* Reducing height slightly */
    }

    /* Skills Heading */
    h2.skills-heading {
        font-size: 2.2rem; /* Slightly reduced size */
    }

    /* Technical Skills */
    .technical-skills {
        padding: 30px 5%;
        max-width: 85%;
        gap: 15px;
    }

    /* Ensure hover expansion is fully visible */
    .skill-card {
        max-width: 270px;
        height: 120px; /* Default height */
        padding: 18px;
    }

    .skill-card:hover {
        height: 330px; /* Expanded height to ensure full visibility */
    }

    /* Skill Icon */
    .skill-icon {
        width: 45px;
    }

    /* Ticker */
    .ticker {
        padding: 10px 0;
    }

    .ticker-item {
        font-size: 1.2rem;
    }

    /* Glow Effect */
    .skill-card::before {
        width: 110%;
        height: 110%;
    }
}

/* md */
@media (max-width: 768px) {
    .container {
        max-width: 640px;
        padding: 0 25px; /* Adjusted padding for better spacing */
    }

    /* Skills Section */
    #skills-section {
        padding-bottom: 35px; /* Adjusted spacing */
    }

    /* Particle Effect */
    #particles-container {
        height: 85%; /* Adjusted height */
    }

    /* Skills Heading */
    h2.skills-heading {
        font-size: 2rem; /* Slightly reduced size */
    }

    /* Technical Skills */
    .technical-skills {
        padding: 25px 5%;
        max-width: 80%;
        gap: 12px;
        flex-wrap: wrap;
    }

    .skill-card {
        max-width: 240px;
        height: 90px;
        padding: 16px;
    }

    .skill-card:hover {
        height: 250px; /* Ensuring expand effect works */
    }

    /* Skill Icon */
    .skill-icon {
        width: 42px;
    }

    /* Ticker */
    .ticker {
        padding: 8px 0;
    }

    .ticker-item {
        font-size: 1.1rem;
    }

    /* Glow Effect */
    .skill-card::before {
        width: 100%;
        height: 100%;
    }
}

/* sm */
@media (max-width: 640px) {
    .container {
        max-width: 475px;
        padding: 0 20px; /* Adjusted padding for better spacing */
    }

    /* Skills Section */
    #skills-section {
        padding-bottom: 30px; /* Adjusted spacing */
    }

    /* Particle Effect */
    #particles-container {
        height: 80%; /* Adjusted height */
    }

    /* Skills Heading */
    h2.skills-heading {
        font-size: 1.8rem; /* Slightly reduced size for better fit */
    }

    /* Technical Skills */
    .technical-skills {
        padding: 20px 5%;
        max-width: 90%;
        gap: 10px;
        flex-wrap: wrap;
    }

    .skill-card {
        max-width: 220px;
        height: 80px;
        padding: 14px;
    }

    .skill-card:hover {
        height: 230px; /* Ensuring expand effect works */
    }

    /* Skill Icon */
    .skill-icon {
        width: 38px;
    }

    /* Ticker */
    .ticker {
        padding: 6px 0;
    }

    .ticker-item {
        font-size: 1rem;
    }

    /* Glow Effect */
    .skill-card::before {
        width: 95%;
        height: 95%;
    }
}

/* xs */
@media (max-width: 475px) {
    .container {
        width: 100%;
        padding: 0 15px; /* Adjusted padding for better space usage */
    }

    /* Skills Section */
    #skills-section {
        padding-bottom: 25px; /* Reduced spacing for a compact look */
    }

    /* Particle Effect */
    #particles-container {
        height: 70%; /* Adjusted height for smaller screens */
    }

    /* Skills Heading */
    h2.skills-heading {
        font-size: 1.6rem; /* Further reduced for readability */
    }

    /* Technical Skills */
    .technical-skills {
        padding: 15px 5%;
        max-width: 100%;
        gap: 5px;
        flex-direction: column; /* Stack elements for better visibility */
    }

    .skill-card {
        max-width: 100%;
        height: 70px;
        padding: 12px;
    }

    .skill-card:hover {
        height: 200px; /* Maintaining expand effect */
    }

    /* Skill Icon */
    .skill-icon {
        width: 32px;
    }

    /* Ticker */
    .ticker {
        padding: 5px 0;
        font-size: 0.9rem;
    }

    .ticker-item {
        font-size: 0.9rem;
        gap: 6px;
    }

    /* Glow Effect */
    .skill-card::before {
        width: 90%;
        height: 90%;
    }
}


/* ✅ Media Query for 1440px Screens */
@media (min-width: 1440px) {
    .technical-skills {
        max-width: 85%;
        flex-wrap: wrap; /* Ensures no cutoff */
        justify-content: center;
        gap: 30px;
    }

    .skill-card {
        max-width: 320px; /* Slightly bigger for better readability */
        height: 120px; /* Default height */
    }

    .skill-card:hover {
        height: 320px; /* Expands properly to show content */
    }

    .skill-description {
        max-height: 200px; /* Ensures content inside fully shows */
    }
}

/* ✅ FINALIZED Media Query for 2560px Screens (4K) */
@media (min-width: 2560px) {
    /* ✅ Increase Section Spacing */
    #skills-section {
        padding-bottom: 110px; /* More spacing for balance */
    }

    /* ✅ Scale Skills Quote */
    .skillsquote-section {
        margin-top: 6vh;
    }

    /* ✅ Increase Heading Size */
    h2.skills-heading {
        font-size: 3.5rem; /* Larger title for emphasis */
        margin-bottom: 10px;
    }

    /* ✅ Scale Underline */
    h2.skills-heading::after {
        width: 55%;
        height: 5px;
    }

    /* ✅ Scale Soft Skills */
    .soft-skills {
        margin-top: 40px;
        padding: 0 7%;
    }

    .soft-skills ul li {
        font-size: 1.7rem;
        margin-bottom: 15px;
    }

    /* ✅ CENTER & EXPAND TECHNICAL SKILLS */
    .technical-skills {
        display: flex; 
        flex-wrap: wrap; /* Ensures proper wrapping */
        justify-content: center; /* Centers the boxes */
        gap: 50px; /* More space between skill cards */
        max-width: 85%;
        margin: 0 auto;
        padding: 60px 5%;
    }

    /* ✅ Increase Skill Card Size */
    .skill-card {
        max-width: 480px; /* Wider boxes for full visibility */
        height: 230px; /* Taller default height */
        padding: 45px;
        text-align: center;
        transition: all 0.3s ease-in-out;
    }

    /* ✅ Ensure Hover Expansion */
    .skill-card:hover {
        height: auto;
        min-height: 500px; /* Expands dynamically to fit all text */
    }

    /* ✅ Increase Skill Description Visibility */
    .skill-description {
        opacity: 0;
        max-height: 0;
        visibility: hidden;
        transition: opacity 0.3s ease-in-out, max-height 0.3s ease-in-out;
    }

    .skill-card:hover .skill-description {
        opacity: 1;
        max-height: 100%;
        visibility: visible;
    }

    /* ✅ Increase Skill Icon Size */
    .skill-icon {
        width: 75px;
    }

    /* ✅ Scale Particle Container */
    #particles-container {
        height: 100%;
    }

    /* ✅ Increase Ticker Size */
    .ticker {
        padding: 15px 0;
        font-size: 1.8rem;
    }

    .ticker-item {
        font-size: 1.5rem;
        gap: 12px;
    }

    .ticker-item img {
        width: 35px;
    }

    /* ✅ Scale Hover Effects */
    .skill-card:hover .skill-icon {
        transform: scale(1.2);
    }

    /* ✅ Glow Effect */
    .skill-card::before {
        width: 140%;
        height: 140%;
    }
}

