/* ---------------------------------------------------------------------------
   Personal portfolio - custom styles layered on top of Bootstrap 5.
   Keep this file small: if Bootstrap already provides it, don't redefine it.
   --------------------------------------------------------------------------- */

/* Base layout */
body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #f4f5f7;
    color: #33373d;
}

#content {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.06);
    padding: 30px;
}

#footer {
    text-align: center;
    padding: 18px 0;
    color: #6c757d;
    font-size: 0.9rem;
}

/* Navigation */
.site-nav {
    background-color: #24292f;
}

/* Intro section */
.intro .lead {
    font-weight: 600;
}

/* Section headings get a subtle rule underneath */
.section-heading {
    padding-bottom: 8px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e6e8eb;
}

/* Project cards */
.project-card {
    border: 1px solid #e6e8eb;
    border-radius: 8px;
    transition: transform 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.project-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
}

.project-card .card-img-top {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    object-fit: cover;
    height: 180px;
}

/* --- Project image carousel ---------------------------------------------- */

/* Clip the slides to the card's rounded top corners */
.project-carousel {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    overflow: hidden;
}

/* Every screenshot is forced to the same box, so cards stay aligned however
   different the source images are. "cover" crops rather than squashing. */
.project-carousel .carousel-item img {
    height: 200px;
    object-fit: cover;
    background-color: #eef1f5;
}

/* Bootstrap's arrow icons are white, which disappears on pale screenshots.
   Give them a dark pill so they're visible on any image. */
.project-carousel .carousel-control-prev,
.project-carousel .carousel-control-next {
    width: 15%;
    opacity: 0;
    transition: opacity 0.15s ease-in-out;
}

/* Only reveal the arrows on hover / keyboard focus, keeping the card clean */
.project-carousel:hover .carousel-control-prev,
.project-carousel:hover .carousel-control-next,
.project-carousel .carousel-control-prev:focus,
.project-carousel .carousel-control-next:focus {
    opacity: 1;
}

.project-carousel .carousel-control-prev-icon,
.project-carousel .carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.55);
    border-radius: 50%;
    padding: 12px;
    background-size: 45% 45%;
}

.project-carousel .carousel-caption {
    bottom: 0;
    padding: 4px 10px;
    background: rgba(0, 0, 0, 0.55);
    border-radius: 4px;
    left: 12%;
    right: 12%;
}

/* Technology badges inside each project card */
.tech-badge {
    background-color: #eef1f5;
    color: #41474f;
    font-weight: 500;
    margin: 0 4px 4px 0;
}
