/* -------------------------------------------

Hasintha Doluweera — Portfolio
Custom additions on top of the Ashley template styles

------------------------------------------- */

/* hero: home-1 dark banner with portrait */
.mil-hero h1 {
    font-size: clamp(38px, 4.5vw, 60px);
}

.mil-hero .mil-hero-portrait {
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.mil-hero .mil-hero-portrait img {
    width: 100%;
    max-height: calc(100vh - 160px);
}

.mil-hero .mil-hero-portrait .mil-nimbus {
    top: auto;
    bottom: 0;
}

/* anchor the scroll-down circle to the portrait's lower-right corner */
.mil-hero .mil-hero-portrait .mil-circle-text {
    right: -20px;
    bottom: 40px;
}

@media screen and (max-width: 992px) {

    /* stacked hero content can exceed a fixed 100vh banner */
    .mil-hero {
        height: auto;
        min-height: 100vh;
    }

    .mil-hero .mil-banner-content {
        padding-top: 160px;
    }

    .mil-hero .mil-hero-portrait {
        margin-top: 60px;
        height: 400px;
    }
}

/* certification badges (marquee slider) */
.mil-cert-badge {
    text-align: center;
    padding: 30px 15px;
}

.mil-cert-badge i {
    font-size: 42px;
    color: rgba(0, 0, 0, .9);
    margin-bottom: 20px;
    display: inline-block;
}

.mil-cert-badge h6 {
    margin-bottom: 10px;
}

.mil-cert-badge .mil-cert-issuer {
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(0, 0, 0, .4);
}

/* about stats row */
.mil-stats-row {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.mil-stat-item .mil-stat-number {
    font-size: 42px;
    font-weight: 500;
    line-height: 1;
    color: rgba(59, 130, 246, 1);
    margin-bottom: 10px;
}

.mil-stat-item .mil-stat-label {
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(0, 0, 0, .4);
}

/* experience & skills cards rendered as non-link blocks */
div.mil-service-card-lg,
div.mil-service-card-sm {
    cursor: default;
}

/* image-less project cards on the one-pager */
.mil-project-card {
    display: block;
    height: calc(100% - 60px);
    padding: 40px;
    border: 1px solid rgba(0, 0, 0, .1);
    border-radius: 10px;
    transition: .4s cubic-bezier(0, 0, 0.3642, 1);
}

.mil-project-card:hover {
    border-color: rgba(59, 130, 246, 1);
    transform: translateY(-6px);
}

.mil-project-card h4 {
    font-size: 24px;
    overflow-wrap: anywhere;
    transition: .4s cubic-bezier(0, 0, 0.3642, 1);
}

.mil-project-card:hover h4 {
    color: rgba(59, 130, 246, 1);
}

/* achievements slider: icon circles instead of the template's face photos */
.mil-revi-pagination .swiper-pagination-bullet .mil-custom-dot {
    background-image: none !important;
    background-color: rgba(0, 0, 0, .08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mil-revi-pagination .swiper-pagination-bullet .mil-custom-dot i {
    font-size: 28px;
    color: rgba(0, 0, 0, .35);
    transition: .4s cubic-bezier(0, 0, 0.3642, 1);
}

.mil-revi-pagination .swiper-pagination-bullet-active .mil-custom-dot {
    background-color: rgba(59, 130, 246, 1);
}

.mil-revi-pagination .swiper-pagination-bullet-active .mil-custom-dot i {
    color: rgba(255, 255, 255, 1);
}

/* tech tag list on project pages and skill cards */
.mil-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
    list-style: none;
}

.mil-tag-list li {
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 8px 16px;
    border-radius: 40px;
    border: 1px solid rgba(0, 0, 0, .1);
    color: rgba(0, 0, 0, .6);
}

.mil-dark-bg .mil-tag-list li {
    border-color: rgba(255, 255, 255, .1);
    color: rgba(255, 255, 255, .6);
}
