/* ===== GENERAL IMAGE FIXES ===== */
img {
    max-width: 100%;
    height: auto;
}

/* ===== COSMIC BACKGROUND FIXES ===== */
.cosmic-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.cosmic-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.stars,
.animated-stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
}

.nebula {
    position: absolute;
    background-size: contain;
    background-repeat: no-repeat;
    max-width: 100vw;
    max-height: 100vh;
}

.nebula-1 {
    top: -5%;
    right: -5%;
    width: 60%;
    height: 60%;
}

.nebula-2 {
    bottom: -5%;
    left: -5%;
    width: 60%;
    height: 60%;
}

.cosmic-dust {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
}

.cosmic-ring {
    position: absolute;
    border-radius: 50%;
    max-width: 100vw;
    max-height: 100vh;
}

.ring-1,
.ring-2,
.ring-3 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* ===== CERTIFICATION JOURNEY FIXES ===== */
.cert-journey-map {
    position: relative;
    margin: 80px 0;
    padding-left: 0;
}

.journey-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50px;
    width: 4px;
}

.cert-milestone {
    position: relative;
    margin-bottom: 100px;
    display: flex;
    align-items: flex-start;
}

.milestone-connector {
    position: absolute;
    top: 50px;
    left: 50px;
    width: 40px;
    height: 4px;
    transform: translateX(-20px);
}

.cert-hexagon {
    width: 100px;
    height: 100px;
    margin-right: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cert-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cert-icon img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    max-width: 100%;
}

.cert-content {
    flex: 1;
    position: relative;
    overflow: hidden;
}

/* ===== RESPONSIVE FIXES ===== */
@media (max-width: 1200px) {
    .container {
        width: 90%;
        margin: 0 auto;
    }
}

@media (max-width: 900px) {
    .cert-milestone {
        flex-direction: column;
    }

    .cert-hexagon {
        margin-right: 0;
        margin-bottom: 20px;
    }

    .journey-line {
        left: 50px;
    }

    .milestone-connector {
        left: 50px;
        top: 100px;
        width: 4px;
        height: 40px;
        transform: translateX(-2px);
    }
}

@media (max-width: 768px) {
    .container {
        width: 95%;
    }

    .cert-journey-map {
        padding-left: 20px;
    }

    .journey-line {
        left: 30px;
    }

    .milestone-connector {
        left: 30px;
    }

    .cert-hexagon {
        width: 80px;
        height: 80px;
    }

    .cert-icon {
        width: 50px;
        height: 50px;
    }

    .cert-icon img {
        width: 40px;
        height: 40px;
    }

    .future-skill-tiles {
        justify-content: center;
    }

    .skill-tile {
        width: calc(50% - 20px);
    }
}

@media (max-width: 576px) {
    .cert-journey-map {
        margin: 60px 0;
        padding-left: 10px;
    }

    .journey-line {
        left: 20px;
    }

    .cert-milestone {
        margin-bottom: 80px;
    }

    .milestone-connector {
        left: 20px;
        width: 30px;
    }

    .cert-hexagon {
        width: 70px;
        height: 70px;
    }

    .cert-content {
        padding: 20px 15px;
    }

    .cert-content h3 {
        font-size: 18px;
        padding-right: 0;
    }

    .cert-badge {
        position: static;
        display: inline-block;
        margin-bottom: 15px;
    }

    .cert-skills {
        flex-wrap: wrap;
    }

    .cert-skills span {
        margin-bottom: 5px;
        font-size: 12px;
        padding: 4px 10px;
    }

    .certification-philosophy {
        padding: 30px 20px;
    }

    .skill-tile {
        width: 100%;
        margin-bottom: 15px;
    }
}

/* ===== CONTAINER WIDTH FIXES ===== */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}