/* =========================================================
   HOME SECTION
   Modern / Professional / Fully Responsive
========================================================= */


/* =========================================================
   HOME
========================================================= */

#home {
    width: 100%;
    min-height: calc(100vh - 80px);

    display: flex;
    align-items: center;

    background: #f8f9fe;

    box-sizing: border-box;
    overflow: hidden;
}


/* =========================================================
   HOME CONTAINER
========================================================= */

.home-container {
    width: min(1200px, 90%);

    margin: 0 auto;
    padding: 80px 0;

    display: grid;

    grid-template-columns:
        minmax(0, 1.1fr) minmax(320px, 0.9fr);

    align-items: center;

    gap: 70px;

    box-sizing: border-box;
}


/* =========================================================
   HOME CONTENT
========================================================= */

.home-content {
    width: 100%;
    box-sizing: border-box;
}


/* =========================================================
   AVAILABILITY
========================================================= */

.availability {
    width: fit-content;

    display: flex;
    align-items: center;

    gap: 9px;

    margin-bottom: 22px;
    padding: 8px 13px;

    border: 1px solid #dce5f4;
    border-radius: 30px;

    background: #ffffff;
    color: #0057d9;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 0.8px;
    line-height: 1;

    box-sizing: border-box;
}


/* =========================================================
   AVAILABILITY STATUS DOT
========================================================= */

.availability span {
    width: 8px;
    height: 8px;

    display: block;

    border-radius: 50%;

    background: #16a34a;

    box-shadow:
        0 0 0 4px rgba(22, 163, 74, 0.10);

    flex-shrink: 0;
}


/* =========================================================
   HELLO
========================================================= */

.hello {
    margin: 0 0 10px;

    color: #0057d9;

    font-size: 18px;
    font-weight: 600;

    line-height: 1.5;
}


/* =========================================================
   MAIN HEADING
========================================================= */

.home-content h1 {
    margin: 0;

    color: #111827;

    font-size: clamp(48px, 5.2vw, 70px);
    font-weight: 800;

    line-height: 1.03;

    letter-spacing: -2.5px;
}


/* =========================================================
   ROLE
========================================================= */

.role {
    max-width: 720px;

    margin: 24px 0 0;

    color: #0057d9;

    font-size: 20px;
    font-weight: 600;

    line-height: 1.7;
}


/* =========================================================
   DESCRIPTION
========================================================= */

.description {
    max-width: 650px;

    margin: 18px 0 0;

    color: #667085;

    font-size: 15px;
    font-weight: 400;

    line-height: 1.85;
}


/* =========================================================
   HOME BUTTONS
========================================================= */

.home-buttons {
    display: flex;
    align-items: center;

    flex-wrap: wrap;

    gap: 12px;

    margin-top: 32px;
}


/* =========================================================
   PRIMARY BUTTON
========================================================= */

.btn-primary {
    min-height: 46px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 22px;

    border: 1px solid #0057d9;
    border-radius: 7px;

    background: #0057d9;
    color: #ffffff;

    box-sizing: border-box;

    font-size: 13px;
    font-weight: 600;

    text-decoration: none;

    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


.btn-primary:hover {
    background: #0048b5;
    border-color: #0048b5;

    transform: translateY(-2px);

    box-shadow:
        0 8px 20px rgba(0, 87, 217, 0.18);
}


/* =========================================================
   SECONDARY BUTTON
========================================================= */

.btn-secondary {
    min-height: 46px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 22px;

    border: 1px solid #d6dce7;
    border-radius: 7px;

    background: #ffffff;
    color: #1f2937;

    box-sizing: border-box;

    font-size: 13px;
    font-weight: 600;

    text-decoration: none;

    transition:
        border-color 0.25s ease,
        color 0.25s ease,
        background 0.25s ease,
        transform 0.25s ease;
}


.btn-secondary:hover {
    border-color: #0057d9;

    background: #f3f7ff;
    color: #0057d9;

    transform: translateY(-2px);
}


/* =========================================================
   CONTACT BUTTON
========================================================= */

.contact-btn {
    min-height: 46px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 9px;

    padding: 0 10px;

    color: #0057d9;

    font-size: 13px;
    font-weight: 600;

    text-decoration: none;

    transition:
        color 0.25s ease,
        transform 0.25s ease;
}


.contact-btn span {
    font-size: 18px;
    line-height: 1;

    transition:
        transform 0.25s ease;
}


.contact-btn:hover {
    color: #003f9e;

    transform: translateX(2px);
}


.contact-btn:hover span {
    transform: translateX(4px);
}


/* =========================================================
   SOCIAL ICONS
========================================================= */

.social-icons {
    display: flex;
    align-items: center;

    gap: 10px;

    margin-top: 32px;
}


/* =========================================================
   SOCIAL LINK
========================================================= */

.social-icons a {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #dfe4ec;
    border-radius: 7px;

    background: #ffffff;
    color: #475467;

    font-size: 15px;

    text-decoration: none;

    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;

    box-sizing: border-box;
}


.social-icons a:hover {
    border-color: #0057d9;

    background: #0057d9;
    color: #ffffff;

    transform: translateY(-3px);
}


/* =========================================================
   HOME IMAGE AREA
========================================================= */

.home-image {
    width: 100%;

    display: flex;
    align-items: center;

    /*
       Desktop:
       Keep image towards the right side
    */
    justify-content: flex-end;

    box-sizing: border-box;

    margin-bottom: 120px;
}


/* =========================================================
   IMAGE FRAME
========================================================= */

.image-frame {
    width: min(340px, 100%);

    aspect-ratio: 1 / 1;

    padding: 9px;

    box-sizing: border-box;

    border: 1px solid #dce3ee;
    border-radius: 18px;

    background: #ffffff;

    box-shadow:
        0 20px 45px rgba(15, 23, 42, 0.10);

    /*
       Desktop Figma-style slight tilt
    */
    transform: rotate(3deg);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}


/* =========================================================
   IMAGE
========================================================= */

.image-frame img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    border-radius: 11px;
}


/* =========================================================
   IMAGE HOVER
========================================================= */

.image-frame:hover {
    transform: rotate(1deg) translateY(-3px);

    box-shadow:
        0 25px 55px rgba(15, 23, 42, 0.14);
}


/* =========================================================
   LARGE TABLET / SMALL DESKTOP
   1100px
========================================================= */

@media (max-width: 1100px) {

    .home-container {
        width: 90%;

        gap: 50px;
    }


    .home-content h1 {
        font-size: clamp(44px, 5.5vw, 60px);

        letter-spacing: -2px;
    }


    .role {
        font-size: 15px;
    }


    .description {
        font-size: 14px;
    }


    .home-image {

        margin-bottom: 0px;
    }

    /* Slightly smaller image */

    .image-frame {
        width: min(310px, 100%);
    }
}


/* =========================================================
   TABLET
   900px

   IMPORTANT:
   Image becomes STRAIGHT
========================================================= */

@media (max-width: 900px) {

    #home {
        min-height: auto;
    }


    .home-container {
        grid-template-columns: 1fr;

        gap: 55px;

        padding: 70px 0;
    }


    .home-content {
        max-width: 720px;

        margin: 0 auto;

        text-align: center;
    }


    .availability {
        margin-left: auto;
        margin-right: auto;
    }


    .role,
    .description {
        margin-left: auto;
        margin-right: auto;
    }


    .home-buttons {
        justify-content: center;
    }


    .social-icons {
        justify-content: center;
    }


    /* =========================================
       IMAGE
       Move image above content
    ========================================= */

    .home-image {
        order: -1;

        justify-content: center;

        width: 100%;
    }


    /* =========================================
       STRAIGHT IMAGE
    ========================================= */

    .image-frame {
        width: min(330px, 70vw);

        transform: rotate(0deg);
    }


    .image-frame:hover {
        transform: translateY(-3px);
    }
}


/* =========================================================
   MOBILE
   600px

   Image stays STRAIGHT
========================================================= */

@media (max-width: 600px) {

    .home-container {
        width: 90%;

        gap: 40px;

        padding: 55px 0 65px;
    }


    /* =========================================
       AVAILABILITY
    ========================================= */

    .availability {
        margin-bottom: 18px;

        padding: 7px 11px;

        font-size: 9px;

        letter-spacing: 0.6px;
    }


    .availability span {
        width: 7px;
        height: 7px;
    }


    /* =========================================
       HELLO
    ========================================= */

    .hello {
        margin-bottom: 8px;

        font-size: 16px;
    }


    /* =========================================
       HEADING
    ========================================= */

    .home-content h1 {
        font-size: clamp(38px, 10vw, 48px);

        line-height: 1.05;

        letter-spacing: -1.5px;
    }


    /* =========================================
       ROLE
    ========================================= */

    .role {
        margin-top: 18px;

        font-size: 14px;

        line-height: 1.65;
    }


    /* =========================================
       DESCRIPTION
    ========================================= */

    .description {
        margin-top: 14px;

        font-size: 14px;

        line-height: 1.75;
    }


    /* =========================================
       BUTTONS
    ========================================= */

    .home-buttons {
        margin-top: 27px;

        gap: 9px;
    }


    .btn-primary,
    .btn-secondary {
        min-height: 44px;

        padding: 0 18px;

        font-size: 12px;
    }


    .contact-btn {
        min-height: 44px;

        font-size: 12px;
    }


    /* =========================================
       SOCIAL ICONS
    ========================================= */

    .social-icons {
        margin-top: 27px;

        gap: 8px;
    }


    .social-icons a {
        width: 36px;
        height: 36px;

        font-size: 14px;
    }


    /* =========================================
       IMAGE AREA
    ========================================= */

    .home-image {
        justify-content: center;
    }


    /* =========================================
       STRAIGHT MOBILE IMAGE
    ========================================= */

    .image-frame {
        width: min(285px, 72vw);

        padding: 8px;

        border-radius: 15px;

        /*
           NO ROTATION ON MOBILE
        */
        transform: rotate(0deg);
    }


    .image-frame img {
        border-radius: 9px;
    }


    .image-frame:hover {
        transform: translateY(-2px);
    }
}


/* =========================================================
   SMALL MOBILE
   480px
========================================================= */

@media (max-width: 480px) {

    .home-container {
        width: 92%;

        padding: 45px 0 55px;
    }


    /* =========================================
       HEADING
    ========================================= */

    .home-content h1 {
        font-size: clamp(34px, 10vw, 42px);

        letter-spacing: -1.2px;
    }


    .hello {
        font-size: 15px;
    }


    .role {
        font-size: 13px;
    }


    .description {
        font-size: 13px;
    }


    /* =========================================
       BUTTONS
    ========================================= */

    .home-buttons {
        flex-direction: column;

        align-items: stretch;

        width: 100%;
    }


    .btn-primary,
    .btn-secondary {
        width: 100%;
    }


    .contact-btn {
        width: 100%;
    }


    /* =========================================
       IMAGE
    ========================================= */

    .image-frame {
        width: min(255px, 70vw);

        padding: 7px;

        border-radius: 14px;

        /*
           Keep straight
        */
        transform: rotate(0deg);
    }


    .image-frame:hover {
        transform: translateY(-2px);
    }
}


/* =========================================================
   EXTRA SMALL MOBILE
   360px
========================================================= */

@media (max-width: 360px) {

    .home-container {
        width: 92%;
    }


    .availability {
        font-size: 8px;
    }


    .home-content h1 {
        font-size: 33px;

        letter-spacing: -1px;
    }


    .hello {
        font-size: 14px;
    }


    .role,
    .description {
        font-size: 12.5px;
    }


    /* =========================================
       SMALL IMAGE
    ========================================= */

    .image-frame {
        width: 225px;

        padding: 7px;

        transform: rotate(0deg);
    }


    .image-frame:hover {
        transform: translateY(-2px);
    }
}