body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    font-family: 'Inter', sans-serif;
    overflow-y: hidden;
}

.container {
    width: calc(100vw - 4%); 
    height: calc(100vh - 4% );
    display: grid;
    gap: 10px;
    margin: 2%;   
    background-color: #ffffff;
    grid-template-areas:
        "name name uiux motion"
        "dribbble showreel showreel pet"
        "linkedin showreel showreel pet"
        "email email twitter instagram";
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, 1fr);
}

.name-location {
    grid-area: name;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #d9d9d9;
    border-radius: 25px;
    background-image: url('img/metame.jpg');
    background-size: cover; 
    background-position: left;
}

.name {
    font-size: 3rem;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    padding-left: 12%;
    margin: 0;
    color: #000000;
    text-transform: none;
    letter-spacing: normal;
}

.location {
    font-size: 1.375rem;
    font-style: normal;
    font-weight: 400;
    padding-left: 12%;
    opacity: 0.85;
}

.uiux { grid-area: uiux; 
    background-color: #000000;
    background-image: url('img/uiux.jpg');
    background-size: cover; 
    background-position: center; }

.motion { grid-area: motion;
    background-color: #000000;
    background-image: url('img/motion.jpg');
    background-size: cover; 
    background-position: center; }

.motion span {
    background-image: -webkit-linear-gradient(-45deg, rgb(255, 255, 255), rgb(248, 183, 99));
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    padding: 1px;
    clip-path: inset(1px);
}

.dribbble { 
    grid-area: dribbble;
    background-color: #000000;
    background-image: url('img/dribbble.jpg');
    background-size: cover; 
    background-position: center;
     }

.dribbble span { 
    background-image: -webkit-linear-gradient(45deg, rgb(255, 255, 255), rgb(255, 153, 207));
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    padding: 1px;
    clip-path: inset(1px);
    }
    
.showreel { grid-area: showreel;
    background-image: url('img/reel_thumbnail.jpg');
    background-size: cover; 
    background-position: center;
    font-size: clamp(  1.625rem,  4.6vw,  6.0rem  );  }

.linkedin { grid-area: linkedin;
    background-color: #000000;
    background-image: url('img/linked.jpeg');
    background-size: cover; 
    background-position: right;
 }
 .pet {
    grid-area: pet; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    background-image: -webkit-linear-gradient(45deg, rgb(254, 196, 152), rgb(252, 188, 219), rgb(86, 199, 252));
    border-radius: 25px;
    overflow-y: hidden;
    padding: 15px;
}


.chhelper {
    width: 90%;
    height: fit-content;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
}

    
.highlight-icons{ 
    width: 50%;
}

.core77-link {
    margin-top: 5px;
}

.core77-badge {
    display: inline-block;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: clamp(0.75rem, 1.2vw, 1rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.core77-badge:hover {
    background: rgba(0, 0, 0, 1);
    transform: scale(1.05);
}
    
p {
    font-size: clamp(  1.625rem,  1.6vw,  6.0rem  );  
    margin-top: 2%;
    color: #000000;
}

.email { grid-area: email; 
    background-color: #000000;
    background-image: url('img/mail1.jpeg');
    background-size: cover; 
    background-position: right;
}

.twitter { grid-area: twitter; 
    background-image: url('img/twitter.jpeg');
    background-size: cover; 
    background-position: right;}

.instagram { grid-area: instagram; 
    background-image: url('img/inst.jpg');
    background-size: cover; 
    background-position: right;
}



a, .role  {
    display: flex;
    justify-content: center;
    align-items: center;

    border-radius: 35px;
    text-decoration: none;
    font-size: clamp(  1.625rem,  2.6vw,  3.0rem  );
    
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    text-transform: uppercase;
    text-align: center;
    color: #ffffff;
    transition: background-color 0.3s, transform 0.3s ease;
    cursor: pointer;
    z-index: 0;
    
}

a:hover, .role:hover {
    transform: scale(1.05);
    z-index: 1;
}


/* Base Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #000000;
    padding: 20px;
    width: 70%; 
    max-width: 800px;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translate(-50%, -45%);
    }
    to { 
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.close-button {
    position: absolute;
    right: 12px;
    top: 8px;
    color: #f1f1f1;
    font-size: 35px;
    cursor: pointer;
    transition: transform 0.2s ease;
    line-height: 1;
}

.close-button:hover {
    transform: scale(1.2);
}

/* Video modal: wrapper centers the player and acts as positioning parent for the close button */
.video-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    max-width: 800px;
}

/* Override modal-content centering — video-container handles it */
#videoModal .modal-content {
    position: static;
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
    max-width: none;
    padding: 0;
}

/* Close button sits above the player, outside iframe — iframe can't overlap it */
.video-close {
    position: absolute;
    top: -40px;
    right: -40px;
    z-index: 10000;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: normal;
    margin: 0;
}

.awards-title {
    text-align: center;
    text-transform: uppercase;
    color: #ffffff;
    margin: 0 0 10px 0;
    font-size: clamp(1rem, 1.8vw, 1.5rem);
    font-weight: 700;
}

/* Info Modal Styles (UI/UX & Motion) */
.info-modal .info-content {
    background: linear-gradient(145deg, #1a1a1a 0%, #0d0d0d 100%);
    border-radius: 24px;
    padding: 40px;
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    overflow-y: auto;
}

.info-content .close-button {
    right: 15px;
    top: 15px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 28px;
}

.info-content .close-button:hover {
    color: #fff;
}

.modal-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    color: #fff;
    margin: 0 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.modal-subtitle {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.motion-header h2 {
    background: linear-gradient(-45deg, #fff, #f8b763);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.modal-body {
    margin-bottom: 30px;
}

.highlight-section {
    margin-bottom: 25px;
}

.highlight-section h3 {
    font-size: clamp(0.8rem, 1.5vw, 0.95rem);
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 0 0 15px 0;
}

.work-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.work-list li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.work-list li:last-child {
    border-bottom: none;
}

.work-list strong {
    color: #fff;
    font-size: clamp(0.95rem, 1.8vw, 1.1rem);
    font-weight: 600;
}

.work-list span {
    color: rgba(255, 255, 255, 0.55);
    font-size: clamp(0.8rem, 1.4vw, 0.9rem);
    line-height: 1.4;
}

.compact-list li {
    padding: 10px 0;
}

.awards-list strong {
    font-size: clamp(1rem, 2vw, 1.2rem);
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: clamp(0.7rem, 1.2vw, 0.85rem);
    font-weight: 500;
    transition: background 0.2s ease;
}

.tag:hover {
    background: rgba(255, 255, 255, 0.15);
}

.modal-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-cta {
    display: inline-block;
    background: #fff;
    color: #000;
    padding: 14px 32px;
    border-radius: 30px;
    font-size: clamp(0.85rem, 1.5vw, 1rem);
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: auto;
    height: auto;
    justify-content: center;
    align-items: center;
}

.modal-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}


@media (max-width: 1024px) and (min-width: 601px) {
    .container {
        grid-template-areas:
            "name name uiux motion"
            "showreel showreel showreel pet"
            "showreel showreel showreel pet"
            "dribbble linkedin email email"
            "twitter instagram instagram instagram";
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: minmax(100px, auto) repeat(3, minmax(100px, 1fr)) minmax(80px, 1fr);
    }

    .name {
        font-size: clamp(1.5rem, 3.5vw, 2.5rem);
    }
}

@media (max-width: 600px) {

    body, html {
        margin: 0;
        padding: 0;
        min-height: 100%;
        height: auto;
        width: 100%;
        font-family: 'Inter', sans-serif;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .container {

        width: calc(100vw - 4%); 
        min-height: calc(100vh - 4%);
        height: auto;

        grid-template-areas:
            "name name"
            "uiux motion"
            "dribbble linkedin"
            "showreel showreel"
            "showreel showreel"
            "email email "
            "pet pet "
            "instagram twitter ";
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: minmax(100px, auto) repeat(7, minmax(80px, 1fr));
    }

    .name-location .name, .name-location .location {
        padding-left: 8%;
    }
    
    a, .role {
        font-size: clamp(1.5rem, 5vw, 2.5rem);
        min-height: 80px;
    }

    /* Mobile modal adjustments */
    .info-modal .info-content {
        width: 95%;
        padding: 25px 20px;
        max-height: 90vh;
    }

    .info-content .close-button {
        right: 10px;
        top: 10px;
    }

    .modal-header {
        margin-bottom: 20px;
        padding-bottom: 15px;
    }

    .modal-cta {
        width: auto;
        max-width: 100%;
        text-align: center;
        min-height: auto;
        height: auto;
        display: block;
        box-sizing: border-box;
        margin: 0 auto;
    }

    .pet {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        min-height: 120px;
    }

    .pet h1 {
        width: 100%;
    }

    .chhelper {
        width: auto;
    }

    .highlight-icons {
        width: 80px;
    }

    .core77-badge {
        padding: 10px 20px;
    }
}
