@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Catamaran:wght@100..900&family=Josefin+Sans:ital,wght@0,100..700;1,100..700&family=Permanent+Marker&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto+Mono:ital,wght@0,100..700;1,100..700&family=Roboto:ital,wght@0,100..900;1,100..900&family=Space+Mono:ital,wght@0,400;0,700;1,400;1,700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

.container {
    height: 100vh;
    width: 100%;
}

.content-container {
    height: 100vh;
    width: 100%;
    background-color: #ececec;
    display: flex;
    align-items: center;
    padding: 10px 8px;
    column-gap: 10px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.cc-sidebar {
    height: 100%;
    width: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    row-gap: 10px;
}

.cc-sidebar-top, .cc-sidebar-bottom {
    height: calc(50%);
    width: 100%;
    border-radius: 25px;
    background-color: #e2e2e2;
}

.cc-sidebar-top {
    border-radius: 25px 25px 10px 10px;
}

.cc-sidebar-bottom {
    border-radius: 10px 10px 25px 25px;
}

.cc-sidebar-mid {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    row-gap: 10px;
}

.cc-sidebar-btn {
    height: 70px;
    width: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    color: #4c4c4c;
    text-decoration: none;
    border-radius: 10px;
    background-color: #e2e2e2;
    border: 1px solid #bebebe;

}

.cc-cards {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    column-gap: 10px;
}

.cc-cards-left {
    width: 60%;
    height: 100%; 
}

.cc-cards-right {
    width: 40%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    row-gap: 10px;
}

.cc-main-card {
    height: 100%;
    width: 100%;
    border-radius: 40px;
    background-color: #d3d3d3;
    background-image: url(./imgs/bg9.png);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
}

.cc-main-info {
    background-color: #ececec;
    position: absolute;
    right: 0;
    bottom: 0;
    height: calc(100% / 3);
    width: 70%;
    border-radius: 50px 0 0 0 ;
}

.cc-main-info-edge-1 {
    position: absolute;
    right: 0;
    top: -50px;
}

.cc-main-info-edge-2 {
    position: absolute;
    left: -50px;
    bottom: 0;
}

.cc-main-info-content {
    height: 100%;
    padding: 22px 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ccmic-header {
    font-size: 55px;
    line-height: 1;
    font-family: "Archivo Black", sans-serif;
    font-weight: 400;
    color: #4c4c4c;
}

.ccmic-surname {
    font-family: "Josefin Sans", sans-serif;
    font-weight: 700;
    color: #D2B48C;
    text-shadow: 0 0 10px #D2B48C;
    font-size: 57px;
}

.ccmic-role {
    margin-top: 2px;
    font-family: "Roboto Mono", monospace;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #8a8a8a;
}

.ccmic-bio {
    font-size: 15px;
    line-height: 1.6;
    color: #6f6f6f;
    max-width: 100%;
}

.ccmic-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ccmic-tag {
    font-family: "Roboto Mono", monospace;
    font-size: 13px;
    font-weight: 500;
    color: #4c4c4c;
    background-color: #dedede;
    padding: 6px 14px;
    border-radius: 20px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.ccmic-tag:hover {
    background-color: #121212;
    color: #ececec;
}

.ccmic-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.ccmic-socials {
    display: flex;
    gap: 8px;
}

.ccmic-social {
    height: 55px;
    width: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background-color: #dedede;
    color: #4c4c4c;
    font-size: 25px;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
    margin-top: 3px;
}

.ccmic-social:hover {
    background-color: #121212;
    color: #ececec;
    transform: translateY(-2px);
}

.main-dark {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    border-radius: 40px;
}

.top-asset {
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url(./imgs/top-asset.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    height: 60px;
    width: 600px;
    margin: auto;
    font-family: "Josefin Sans", sans-serif;
    font-weight: bold;
    color: #d4d4d4;
    font-size: 30px;
    gap: 10px;
}

.top-asset-blue {
    color: #D2B48C;
    font-family: "Josefin Sans", sans-serif;
    font-size: 30px;
    text-shadow: 0 0 5px #D2B48C;
}


.cc-card {
    height: calc(100% / 3);
    width: 100%;
    border-radius: 40px;
    background-color: #bfbfbf;
    position: relative;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    overflow: hidden;
}

.cc-card::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 70%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
    pointer-events: none;
}

.cc-card-btn {
    height: 70px;
    width: 70px;
    border-radius: 10px;
    background-color: #ececec;
    color: #121212;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: bold;
    position: absolute;
    right: 20px;
    bottom: 20px;
    font-size: 25px;
    z-index: 1;
}

.cc-card-header {
    position: absolute;
    left: 50px;
    top: 50px;
    font-size: 48px;
    color: #ececec;
    text-shadow: 0 0 10px rgb(0, 0, 0, 0.3);
    font-family: "Josefin Sans", sans-serif;
    z-index: 1;
}

/* =========================================================
   RESPONSIVE — desktop (>1150px) is untouched
   ========================================================= */

/* ----- Laptops & short screens: keep the desktop layout,
       scale the type so the info panel fits ----- */
@media (min-width: 1025px) and (max-width: 1600px),
       (min-width: 1025px) and (max-height: 900px) {
    .cc-main-info { height: auto; }
    .cc-main-info-content { padding: 16px 24px; gap: 7px; }
    .ccmic-header { font-size: 36px; }
    .ccmic-surname { font-size: 38px; }
    .ccmic-role { font-size: 12px; letter-spacing: 2px; }
    .ccmic-bio { font-size: 12.5px; line-height: 1.55; }
    .ccmic-tag { font-size: 11.5px; padding: 5px 12px; }
    .ccmic-social { height: 44px; width: 44px; font-size: 20px; }
    .cc-card-header { font-size: 34px; left: 35px; top: 35px; }
    .cc-card-btn { height: 56px; width: 56px; font-size: 21px; }
    .top-asset { width: min(520px, 85%); font-size: 19px; height: 50px; }
    .top-asset-blue { font-size: 19px; }
}

/* ----- Mobile & tablet: stack everything, sidebar becomes a top nav ----- */
@media (max-width: 1024px) {
    .container {
        height: auto;
        min-height: 100vh;
    }

    .content-container {
        height: auto;
        min-height: 100vh;
        flex-direction: column;
        align-items: stretch;
        row-gap: 10px;
        padding: 10px 8px 8px;
    }

    /* Sidebar → horizontal nav bar */
    .cc-sidebar {
        width: 100%;
        height: auto;
        flex-direction: row;
        gap: 8px;
    }

    .cc-sidebar-top,
    .cc-sidebar-bottom {
        height: 54px;
        width: auto;
        flex: 1;
    }

    .cc-sidebar-top { border-radius: 16px 10px 10px 16px; }
    .cc-sidebar-bottom { border-radius: 10px 16px 16px 10px; }

    .cc-sidebar-mid {
        width: auto;
        flex-direction: row;
        gap: 8px;
    }

    .cc-sidebar-btn {
        height: 54px;
        width: 54px;
        border-radius: 10px;
    }

    /* overrides the inline 45px on the @ button too */
    .cc-sidebar-btn i { font-size: 24px; }

    /* Home: cards stack vertically */
    .cc-cards {
        flex-direction: column;
        height: auto;
        row-gap: 10px;
    }

    .cc-cards-left {
        width: 100%;
        height: auto;
    }

    /* Fixed height (viewport-independent) so the framing is identical on every
       phone. bg9.png is square; a taller card + cover shows a large portion of
       the composition (icons + head + torso) with the face clear of the panel. */
    .cc-main-card {
        height: 760px;
        /* bg9.png is square. `cover` would scale it to exactly the card height,
           leaving no vertical slack — so background-position-Y had no effect.
           Over-scale the image (max() keeps the card width covered even on wide
           tablets) to create vertical slack, then bottom-align so the head rises
           to the upper-middle while the torso stays in frame. */
        background-size: auto max(115%, 100vw);
        background-position: center bottom;
    }

    .cc-main-info {
        width: 100%;
        height: auto;
    }

    .cc-main-info-edge-2 { display: none; }

    .cc-main-info-content { padding: 18px 20px; gap: 8px; }

    .ccmic-header { font-size: 32px; }
    .ccmic-surname { font-size: 34px; }
    .ccmic-role { font-size: 12px; letter-spacing: 2px; }
    .ccmic-bio { font-size: 12.5px; }
    .ccmic-tag { font-size: 11px; padding: 5px 11px; }
    .ccmic-social { height: 44px; width: 44px; font-size: 20px; }

    /* Give the band the pill graphic's own aspect ratio so it fills the box
       with no internal gap and sits flush against the card's top edge. */
    .top-asset {
        width: min(600px, 92%);
        aspect-ratio: 745 / 77;
        height: auto;
        font-size: 15px;
    }

    .top-asset-blue { font-size: 16px; }

    .cc-cards-right {
        width: 100%;
        height: auto;
        row-gap: 10px;
    }

    .cc-card { height: 190px; }

    .cc-card-header {
        font-size: 26px;
        left: 28px;
        top: 28px;
    }

    .cc-card-btn {
        height: 52px;
        width: 52px;
        right: 14px;
        bottom: 14px;
        font-size: 20px;
    }
}