body {
    font-family: Arial, sans-serif;
    margin: 0;
    background: #f5f5f5;
    text-align: center;
}

/* HERO */
.hero {
    padding: 40px 20px;
    background: #222;
    color: white;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap; /* key for responsiveness */
}

.hero-content {
    max-width: 500px;
}

#profile-pic {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 20px;
}

/* SKILL BANNER */
.skill-banner img {
    width: 100%;
    max-width: 1200px;
    height: auto;
    border-radius: 10px;
}

/* SECTIONS */
section {
    padding: 40px 20px;
}

/* SKILLS GRID */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.grid div {
    background: white;
    padding: 15px;
    border-radius: 8px;
    font-weight: bold;
}

/* PROJECT CARDS */
.card {
    background: white;
    padding: 20px;
    margin: 15px auto;
    border-left: 5px solid orange;
    max-width: 600px;
    text-align: left;
    border-radius: 8px;
}

/* CERTIFICATIONS */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
}

.card1 {
    background: white;
    padding: 10px;
    border-left: 3px solid orange;
    text-align: left;
    border-radius: 5px;
}

/* FOOTER */
footer {
    background: #111;
    color: white;
    padding: 15px;
}

/* 🔥 MOBILE OPTIMIZATION */
@media (max-width: 768px) {

    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    #profile-pic {
        width: 120px;
        height: 120px;
    }

    .card {
        margin: 10px;
    }

    section {
        padding: 25px 15px;
    }
}


.recommendations {
    padding: 50px 20px;
    text-align: center;
    background: #f9f9f9;
}

.carousel {
    position: relative;
    max-width: 800px;
    margin: auto;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
     width: 100%;
}

.slide {
    min-width: 100%;
    width: 100%;              /* ✅ important */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    box-sizing: border-box;   /* ✅ prevents overflow */
}

.slide img {
    width: 50%;
    max-width: 900px;   /* instead of % → stable layout */
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Buttons */
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 20px;
    border-radius: 50%;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.prev:hover, .next:hover {
    background: black;
}
