/* ============================================
   Base Styles (Mobile-First)
   ============================================ */
* {
    box-sizing: border-box;
}

body {
    background-color: #313131;
    background-image: url("../assets/Header.jpg");
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    pointer-events: none;
    z-index: 1;
}

/* ============================================
   Container — the blurred glass box
   ============================================ */
.container {
    width: 100%;
    max-width: calc(100vw - 40px);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    padding: 30px;
    backdrop-filter: blur(20px);
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

/* ============================================
   Profile Section
   ============================================ */
.profile-section {
    font-family: "Space Grotesk", sans-serif;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.profile-pic {
    align-self: center;
}

.profile-pic img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 10px;
    object-fit: cover;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.profile-info {
    display: flex;
    flex-direction: column;
    word-wrap: break-word;
    text-align: justify;
}

/* ============================================
   Typography
   ============================================ */
.header-big {
    color: white;
    font-size: 30px;
    margin: 10px 0;
    text-shadow: 2px 2px 4px #000000;
    text-align: center;
}

/* "Explore my work..." — always left-aligned */
.header-big:last-child {
    text-align: left;
}

.text-desc {
    color: white;
    font-size: 16px;
    text-align: justify;
    text-shadow: 2px 2px 4px #000000;
    word-break: break-word;
}

.uji-link,
.uji-link:link,
.uji-link:visited,
.uji-link:hover,
.uji-link:active {
    color: #e60105;
    text-decoration: none;
}

/* ============================================
   Links Section
   ============================================ */
.links {
    display: flex;
    flex-direction: column;
    font-family: "Space Grotesk", sans-serif;
    width: 100%;
}

.links h2 {
    color: white;
    font-size: 18px;
    margin: 20px 0 10px 0;
    text-shadow: 2px 2px 4px #000000;
    text-align: left;
}

.links h2:first-of-type {
    margin-top: 10px;
}

/* ============================================
   Link Grid & Buttons
   ============================================ */
.link-holder {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    width: 100%;
}

.link-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 16px;
    background-color: rgba(10, 10, 10, 0.85);
    color: #f0f0f0;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.15s ease-in-out;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.link-btn:hover {
    background-color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
    color: #111111;
    border-color: transparent;
}

.link-btn:hover :first-child {
    transform: scale(1.2) translateX(-7px);
}

.link-btn:hover :last-child {
    transform: scale(1.2) translateX(7px);
}

.link-btn * {
    transition: all 0.2s ease-in-out;
}

.link-btn i {
    margin-right: 10px;
    font-size: 18px;
}

.link-btn:hover i {
    color: black !important;
}

.link-txt {
    font-size: 16px;
    font-weight: 500;
}



/* ============================================
   Modal
   ============================================ */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    font-family: "Space Grotesk", sans-serif;
    background: rgba(21, 21, 21, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 40px 50px;
    text-align: center;
    color: white;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    max-width: 400px;
    width: 90%;
    animation: modalFadeIn 0.25s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes modalFadeOut {
    from {
        opacity: 1;
        transform: scale(1) translateY(0);
    }

    to {
        opacity: 0;
        transform: scale(0.9) translateY(10px);
    }
}

.modal-overlay.closing .modal-content {
    animation: modalFadeOut 0.2s ease-in forwards;
}

.modal-overlay.closing {
    animation: fadeOutOverlay 0.2s ease-in forwards;
}

@keyframes fadeOutOverlay {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

.modal-content h2 {
    font-size: 24px;
    margin: 0 0 20px 0;
    text-shadow: 2px 2px 4px #000000;
}

.modal-content p {
    font-size: 18px;
    margin: 0 0 25px 0;
    color: rgba(255, 255, 255, 0.85);
}

.modal-close-btn {
    font-family: "Space Grotesk", sans-serif;
    padding: 10px 30px;
    background-color: #e60105;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.modal-close-btn:hover {
    background-color: #ff2a2e;
    transform: scale(1.05);
}

/* ============================================
   Mobile — dynamic text says "below!"
   ============================================ */
#dynamic-text::before {
    content: "below!";
}



/* ============================================
   Medium Desktop (1024px – 1299px)
   Single-column stacked, with categories
   ============================================ */
@media (min-width: 1024px) and (max-width: 1299px) {
    body {
        align-items: center;
    }

    .container {
        max-width: 700px;
        padding: 30px 40px;
    }

    .header-big {
        font-size: 36px;
    }

    .text-desc {
        font-size: 18px;
    }

    .link-holder {
        gap: 16px;
    }

    .link-btn {
        padding: 14px 20px;
    }

    .link-txt {
        font-size: 15px;
    }

    .links h2 {
        font-size: 20px;
    }

    #dynamic-text::before {
        content: "below!";
    }
}

/* ============================================
   Large Desktop (≥1300px)
   Two-column: bio left, links right
   No scroll, fill viewport
   Sizes scale with viewport height via clamp()
   ============================================ */
@media (min-width: 1300px) {
    body {
        overflow: hidden;
        height: 100vh;
        align-items: center;
    }

    .container {
        flex-direction: row;
        align-items: stretch;
        height: calc(100vh - 40px);
        padding: clamp(15px, 3vh, 30px) clamp(25px, 3vw, 40px);
    }

    .profile-section {
        flex: 1;
        margin-right: clamp(15px, 2vw, 30px);
        overflow-y: auto;
        overflow-x: hidden;
        scrollbar-width: none;
        justify-content: center;
    }

    .profile-section::-webkit-scrollbar {
        display: none;
    }

    .links {
        flex: 1;
        margin-left: 10px;
        overflow-y: auto;
        overflow-x: hidden;
        scrollbar-width: none;
        justify-content: center;
    }

    .links::-webkit-scrollbar {
        display: none;
    }

    .profile-pic img {
        width: clamp(60px, 10vh, 100px);
        height: clamp(60px, 10vh, 100px);
    }

    .header-big {
        font-size: clamp(26px, 4vh, 40px);
        margin: clamp(3px, 1vh, 10px) 0;
    }

    .text-desc {
        font-size: clamp(14px, 2.2vh, 20px);
    }

    .link-holder {
        gap: clamp(8px, 1.8vh, 20px);
    }

    .link-btn {
        padding: clamp(8px, 1.5vh, 15px) clamp(12px, 1.5vw, 20px);
    }

    .link-btn i {
        font-size: clamp(12px, 2.5vh, 22px);
        margin-right: clamp(5px, 1.2vh, 12px);
    }

    .link-txt {
        font-size: clamp(11px, 2.2vh, 18px);
    }

    .links h2 {
        font-size: clamp(16px, 2.5vh, 22px);
        margin: clamp(8px, 2vh, 25px) 0 clamp(4px, 1vh, 10px) 0;
    }

    .links h2:first-of-type {
        margin-top: 0;
    }

    #dynamic-text::before {
        content: "on the right!";
    }
}