/* =========================================================
   PORTFOLIO HERO
========================================================= */

.tw-portfolio-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 125px 0 105px;
    background: #07152b;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    color: #fff;
}

.tw-portfolio-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: #07152b;
    pointer-events: none;
}

.tw-portfolio-hero .container {
    position: relative;
    z-index: 2;
}

.tw-portfolio-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr);
    align-items: center;
    gap: 70px;
}

.tw-portfolio-hero-content {
    max-width: 720px;
}

.tw-portfolio-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 16px;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 50px;
    background: rgba(255,255,255,.08);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .8px;
    text-transform: uppercase;
}

.tw-portfolio-hero-badge-icon {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #1877f2;
    color: #fff;
}

.tw-portfolio-hero-title {
    margin: 0 0 22px;
    max-width: 720px;
    color: #fff;
    font-size: clamp(42px, 5.2vw, 70px);
    line-height: 1.05;
    font-weight: 850;
    letter-spacing: -2px;
}

.tw-portfolio-hero-description {
    max-width: 650px;
    margin: 0;
    color: rgba(255,255,255,.78);
    font-size: 17px;
    line-height: 1.75;
}

.tw-portfolio-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    margin-top: 34px;
}

.tw-portfolio-hero-stat {
    display: flex;
    align-items: center;
    gap: 11px;
}

.tw-portfolio-hero-stat-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 12px;
    background: rgba(255,255,255,.08);
    color: #fff;
}

.tw-portfolio-hero-stat strong,
.tw-portfolio-hero-stat span {
    display: block;
}

.tw-portfolio-hero-stat strong {
    color: #fff;
    font-size: 19px;
    line-height: 1.1;
}

.tw-portfolio-hero-stat span {
    margin-top: 3px;
    color: rgba(255,255,255,.62);
    font-size: 11px;
}

.tw-portfolio-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    margin-top: 38px;
}

.tw-portfolio-hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 13px 23px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    transition: transform .3s ease, box-shadow .3s ease, background .3s ease;
}

.tw-portfolio-hero-btn:hover {
    transform: translateY(-3px);
}

.tw-portfolio-hero-btn-primary {
    background: #1877f2;
    color: #fff;
    box-shadow: 0 14px 30px rgba(24,119,242,.28);
}

.tw-portfolio-hero-btn-primary:hover {
    color: #fff;
    box-shadow: 0 18px 38px rgba(24,119,242,.36);
}

.tw-portfolio-hero-btn-secondary {
    border: 1px solid rgba(255,255,255,.35);
    background: rgba(255,255,255,.06);
    color: #fff;
}

.tw-portfolio-hero-btn-secondary:hover {
    color: #fff;
    background: rgba(255,255,255,.12);
}

/* Visual */

.tw-portfolio-hero-visual {
    position: relative;
    min-height: 440px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tw-portfolio-hero-window {
    width: min(100%, 570px);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 22px;
    background: rgba(255,255,255,.09);
    box-shadow: 0 35px 80px rgba(0,0,0,.34);
    backdrop-filter: blur(12px);
    overflow: hidden;
    transform: rotate(1.5deg);
}

.tw-portfolio-hero-window-bar {
    display: flex;
    gap: 7px;
    padding: 13px 17px;
    border-bottom: 1px solid rgba(255,255,255,.1);
    background: rgba(0,0,0,.16);
}

.tw-portfolio-hero-window-bar span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255,255,255,.45);
}

.tw-portfolio-hero-window-body {
    padding: 25px;
    background: rgba(255,255,255,.96);
}

.tw-portfolio-hero-window-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #101828;
    font-size: 18px;
    font-weight: 800;
}

.tw-portfolio-hero-window-heading i {
    color: #1877f2;
    font-size: 13px;
}

.tw-portfolio-hero-project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 20px;
}

.tw-portfolio-hero-project-grid div {
    min-height: 105px;
    border: 1px solid #e4e7ec;
    border-radius: 12px;
    background: linear-gradient(145deg,#eef4fb,#dce8f6);
}

.tw-portfolio-hero-project-grid div:nth-child(2),
.tw-portfolio-hero-project-grid div:nth-child(5) {
    background: linear-gradient(145deg,#e7edf5,#f8fafc);
}

.tw-portfolio-hero-float {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 17px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 15px;
    background: rgba(10,25,48,.82);
    color: #fff;
    box-shadow: 0 15px 35px rgba(0,0,0,.22);
    backdrop-filter: blur(10px);
}

.tw-portfolio-hero-float-one {
    left: -12px;
    bottom: 45px;
    font-size: 11px;
    font-weight: 700;
}

.tw-portfolio-hero-float-one i {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #1877f2;
}

.tw-portfolio-hero-float-two {
    right: -5px;
    top: 35px;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.tw-portfolio-hero-float-two strong {
    font-size: 21px;
}

.tw-portfolio-hero-float-two span {
    color: rgba(255,255,255,.62);
    font-size: 10px;
}

/* Responsive */

@media (max-width: 1100px) {
    .tw-portfolio-hero-grid {
        grid-template-columns: 1fr;
        gap: 55px;
    }

    .tw-portfolio-hero-content {
        max-width: 850px;
    }

    .tw-portfolio-hero-visual {
        min-height: 390px;
    }

    .tw-portfolio-hero-window {
        max-width: 650px;
    }
}

@media (max-width: 767px) {
    .tw-portfolio-hero {
        padding: 75px 0 70px;
    }

    .tw-portfolio-hero-title {
        font-size: 40px;
        letter-spacing: -1px;
    }

    .tw-portfolio-hero-description {
        font-size: 14px;
    }

    .tw-portfolio-hero-stats {
        gap: 18px;
    }

    .tw-portfolio-hero-visual {
        min-height: 300px;
    }

    .tw-portfolio-hero-window-body {
        padding: 18px;
    }

    .tw-portfolio-hero-project-grid div {
        min-height: 65px;
    }

    .tw-portfolio-hero-float-one {
        left: -4px;
        bottom: 12px;
    }

    .tw-portfolio-hero-float-two {
        right: -4px;
        top: 8px;
    }
}

@media (max-width: 480px) {
    .tw-portfolio-hero-title {
        font-size: 33px;
    }

    .tw-portfolio-hero-actions {
        flex-direction: column;
    }

    .tw-portfolio-hero-btn {
        width: 100%;
    }

    .tw-portfolio-hero-stats {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .tw-portfolio-hero-window {
        border-radius: 16px;
    }
}
