/* ========================= */
/* MISSION SECTION */
/* ========================= */

    .mission-section {
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #e0f7fa;
        padding: 0 40px;
        gap: 150px;
        min-height: 80vh;
    }

    /* ========================= */
    /* SKILLS GRID */
    /* ========================= */
    .skills-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 35px;
        max-width: 600px;
        justify-items: center;
    }

    .skill-card {
        width: 140px;
        height: 140px;
        background: rgba(0, 188, 212, 0.08);
        border-radius: 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 12px;
        box-shadow: 0 8px 20px rgba(0,0,0,0.15);
        transition: transform 0.35s ease, box-shadow 0.35s ease;
    }

    .skill-card img {
        width: 55px;
        height: 55px;
        object-fit: contain;
    }

    .skill-card span {
        font-weight: bold;
        font-size: 0.95rem;
        color: #003b46;
    }

    /* Hover effect */
    .skill-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 35px rgba(0,188,212,0.45);
    }

    /* ========================= */
    /* SKILL CARD FLOAT ANIMATION */
    /* ========================= */

    @keyframes skillFloat {
        0%   { transform: translateY(0); }
        50%  { transform: translateY(-8px); }
        100% { transform: translateY(0); }
    }

    .skill-card {
        animation: skillFloat 6s ease-in-out infinite;
    }

    /* Stagger animation for natural movement */
    .skill-card:nth-child(1) { animation-delay: 0s; }
    .skill-card:nth-child(2) { animation-delay: 0.6s; }
    .skill-card:nth-child(3) { animation-delay: 1.2s; }
    .skill-card:nth-child(4) { animation-delay: 1.8s; }
    .skill-card:nth-child(5) { animation-delay: 2.4s; }
    .skill-card:nth-child(6) { animation-delay: 3s; }
    .skill-card:nth-child(7) { animation-delay: 3.6s; }

    /* Hover still wins */
    .skill-card:hover {
        animation-play-state: paused;
        transform: translateY(-10px);
    }


    /* Restore original layout balance */
    .mission-section {
        flex-direction: row;
    }

    .mission-text {
        max-width: 600px;
    }


    .mission-text h2 {
        font-size: 2.5rem;
        color: #00bcd4;
        margin-bottom: 20px;
    }

    .mission-text p {
        font-size: 1.2rem;
        line-height: 1.8;
    }

    /* ========================= */
    /* MISSION SECTION UPGRADE */
    /* ========================= */

    .mission-section {
        position: relative;
        background: linear-gradient(
            -115deg,
            #b0eaf3,
            #ffffff
        );
        overflow: hidden;
    }

    .mission-inner {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 120px;
        padding: 120px 6%;
        position: relative;
        z-index: 1;
    }

    /* Vertical accent line */
    .mission-inner::before {
        content: "";
        position: absolute;
        left: 48%; 
        top: 15%;
        bottom: 15%;
        width: 2px;
        background: linear-gradient(
            to bottom,
            transparent,
            #00bcd4,
            transparent
        );
        opacity: 0.6;
    }

    /* Skills grid pop */
    .skills-grid {
        position: relative;
        transition: transform 0.4s ease;
}

.skills-grid:hover {
    transform: translateY(-6px);
}

/* Mission text emphasis */
.mission-text h2 {
    font-size: 3rem;
    position: relative;
}

/* Accent underline */
.mission-text h2::after {
    content: "";
    display: block;
    width: 70px;
    height: 4px;
    margin-top: 14px;
    background: #00bcd4;
    border-radius: 2px;
}

.mission-text p {
    font-size: 1.25rem;
    line-height: 1.9;
    margin-top: 25px;
}

/* Soft background glow */
.mission-section::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at 30% 50%,
        rgba(0,188,212,0.12),
        transparent 60%
    );
    pointer-events: none;
}

@media (max-width: 900px) {
    .mission-inner {
        flex-direction: column;
        gap: 60px;
        padding: 80px 20px;
        text-align: center;
    }

    .mission-inner::before {
        display: none;
    }

    .mission-text h2::after {
        margin-left: auto;
        margin-right: auto;
    }
}

/* ========================= */
/* DETAILS SECTION */
/* ========================= */
.details-section {
    min-height: 120vh;   /* fills screen if content is short */
    height: auto;        /* grows naturally with content */
    position: relative;
    background: url('../media/PortfolioBackground1.png') center/cover no-repeat fixed;
    display: flex;
    align-items: center;
    justify-content: center;
}


.details-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.3);
}

.details-section {
    padding-top: 100px;
}

.details-content {
    margin-top: 40px;
}

.details-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
}

.details-content h2 {
    font-size: 5rem;
    margin-bottom: 20px;
}

.details-content p {
    font-size: 1.5rem;
    line-height: 1.7;
    max-width: 900px;
    margin: 0 auto 50px;
}

.details-section .logo-card img {
    width: 120px;
    height: 120px;
}

#detailsCanvas {
    width: 100%;
    height: 100%;
}


/* ========================= */
/* EXPERIENCE SECTION */
/* ========================= */

.experience-section {
    padding: 80px 20px;
    text-align: center;
    background: linear-gradient(
            115deg,
            #b0eaf3,
            #ffffff
        );
        overflow: hidden;
}

.experience-content h2 {
    font-size: 4rem;
    color: #00bcd4;
}

.experience-content p {
    font-size: 1.4rem;
    line-height: 1.7;
    max-width: 900px;
    margin: 0 auto 50px;
}

.experience-section .logo-card img {
    width: 160px;
    height: auto;
    border-radius: 0;
}

/* ========================= */
/* BACK TO TOP BUTTON */
/* ========================= */

#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #00bcd4;
    color: white;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 2000;
}

#backToTop.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

#backToTop:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,188,212,0.6);
}

/* ========================= */
/* CONNECT WITH ME BUTTONS */
/* ========================= */
.connect-links {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
    justify-content: center; /* CENTER HORIZONTALLY */
    align-items: center;
}

.connect-btn {
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
}

.connect-btn.whatsapp {
    background: #25D366;
    color: #fff;
}

.connect-btn.email {
    background: rgba(255,255,255,0.12);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
}

.connect-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* ========================= */
/* MISSION SECTION – MOBILE FIX */
/* ========================= */
@media (max-width: 768px) {
    .mission-section {
        flex-direction: column;
        gap: 40px;
        padding: 80px 20px;
        text-align: center;
    }

    /* Ensure gallery doesn't force width */
    .mission-gallery {
        width: 100%;
        max-width: 100%;
        min-width: unset;
        height: auto;
        margin: 0 auto;
    }

    /* If you still have a slideshow or cards inside */
    .slideshow-container,
    .skills-grid {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }

    /* Text block */
    .mission-text {
        max-width: 100%;
        padding: 0;
    }

    .mission-text h2 {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .mission-text p {
        font-size: 1rem;
        line-height: 1.6;
        margin: 0 auto;
        max-width: 560px;
    }
}
@media (max-width: 768px) {

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .skill-card {
        padding: 18px;
    }
}


/* ========================= */
/* DETAILS MOBILE POLISH */
/* ========================= */
@media (max-width: 768px) {
    .details-content h2 {
        font-size: 2.2rem;
    }

    .details-section {
    height: 100vh;
    }

    .details-content p {
        font-size: 1rem;
    }

    .logo-links {
        gap: 25px;
    }

    .logo-card img {
        width: 80px;
        height: 80px;
    }
}

/* ========================= */
/* EXPERIENCE MOBILE */
/* ========================= */
@media (max-width: 768px) 
    {
        .experience-content h2 {
            font-size: 2.4rem;
        }

        .experience-content p {
            font-size: 1.05rem;
            line-height: 1.7;
        }
    }


    .experience-section .logo-card img 
    {
        width: 90px;
    }

