@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Poppins:wght@400;500;600;700;800&display=swap');


@import "variables.css";


@import "components/header.css";
@import "components/skills.css";
@import "components/about.css";
@import "components/contact.css";
@import "components/footer.css";

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* =====================================
   MAIN PORTFOLIO
===================================== */

.main {
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;

    display: flex;
    flex-direction: column;

    position: relative;
    isolation: isolate;

    font-family: 'Inter', sans-serif;
}


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

.background {
    position: absolute;
    top: 100px;
    left: 0;
    width: 100%;
    height: calc(100% - 100px);
    overflow: hidden;
    z-index: -1;
}

.background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}


/* =====================================
   PAGE ANIMATION
===================================== */

.info {
    animation: transitionIn 0.75s ease;
    transition: 0.4s ease;
}

@keyframes transitionIn {
    from {
        opacity: 0;
        transform: rotateX(-10deg);
    }

    to {
        opacity: 1;
        transform: rotateX(0);
    }
}


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

.portfolio {
    width: 86%;
    margin: 0 auto;
}

.portfolio h2 {
    color: var(--accent-color);

    position: relative;
    left: clamp(0px, 18vw, 250px);

    font-family: 'Inter', sans-serif;

    font-size: clamp(13px, 1.2vw, 15px);
    font-weight: 500;
}


/* =====================================
   INTRODUCTION / INFO
===================================== */

.info {
    width: 55%;
    margin-top: clamp(80px, 4vw, 100px);
    margin-left: 8%;

    position: relative;
    z-index: 1;
}

.info h1 {
    font-family: 'Poppins', sans-serif;

    font-size: clamp(35px, 5vw, 65px);
    font-weight: 700;

    color: var(--text-color);
    line-height: 1.15;
}

.info h3 {
    font-family: 'Inter', sans-serif;

    font-size: clamp(14px, 1.55vw, 20px);
    font-weight: 600;

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

    color: var(--text-color);
}

.info h4 {
    margin-left: 3%;

    animation: forwards 0.2s ease-in;

    color: var(--text-color);

    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

.info span {
    color: var(--primary-color);
}

.info h5 {
    padding-top: 26px;

    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

.info p {
    padding-top: 6px;

    font-family: 'Inter', sans-serif;

    font-size: 14px;
    font-weight: 400;
    line-height: 1.7;
}

.info h6 {
    padding-top: 12px;

    font-family: 'Inter', sans-serif;

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

    color: var(--text-color);
    line-height: 1.6;
}


/* =====================================
   HIRE ME BUTTON
===================================== */

.info a {
    text-decoration: none;
    color: #FFFFFF;

    background: var(--primary-color);

    font-family: 'Inter', sans-serif;

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

    margin: clamp(20px, 3vw, 40px) 0;
    padding: 10px 18px;

    border-radius: 10px;
    display: inline-block;

    transition: 0.4s ease;
}

.info a:hover {
    background: var(--accent-color);
    color: #FFFFFF;
}


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

.image {
    width: 42%;
    height: 88%;

    position: absolute;
    right: 2%;
    bottom: 0;
    z-index: 1;

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

    overflow: hidden;
}

.image img {
    display: block;

    width: auto;
    height: 100%;
    max-width: 100%;

    object-fit: contain;
    object-position: bottom center;

    animation: imageReveal 1.2s ease-out both;
}

/* IMAGE ENTRANCE ANIMATION */

@keyframes imageReveal {
    from {
        opacity: 0;
        transform: scale(0.96);
    }

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


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

.icons {
    display: flex;

    align-items: center;
    gap: 22px;

    margin-left: 8%;
    margin-top: 0;

    position: relative;
    z-index: 2;
}

.icons a {
    text-decoration: none;
    color: var(--text-color);
}

.icons ion-icon {
    color: #25332D;

    font-size: clamp(23px, 2.3vw, 30px);

    transition: 0.4s ease;
}

.icons ion-icon:hover {
    color: var(--primary-color);
}


/* =====================================
   SMALL DESKTOP RESPONSIVE
===================================== */

@media (max-width: 1200px) {

    .info {
        margin-top: clamp(60px, 4vw, 80px);
    }
}


/* =====================================
   TABLET RESPONSIVE
===================================== */

@media (max-width: 900px) {

    .portfolio {
        width: 90%;
    }

    .portfolio h2 {
        left: 15%;
    }

    .info {
        width: 55%;
        margin-left: 5%;
        margin-top: clamp(15px, 3vw, 30px);
    }

    .info h1 {
        font-size: clamp(35px, 5.5vw, 50px);
    }

    .info h3 {
        font-size: clamp(14px, 2vw, 17px);
    }


    /* PROFILE IMAGE */

    .image {
        width: 43%;
        height: 75%;
        right: 1%;
    }

    .image img {
        height: 100%;
        max-width: 100%;
    }


    /* SOCIAL ICONS */

    .icons {
        margin-left: 5%;
    }

}


/* =====================================
   MOBILE RESPONSIVE
   580px BELOW
===================================== */

@media (max-width: 580px) {

    .main {
        display: flex;
        flex-direction: column;

        min-height: 100vh;
        min-height: 100svh;

        height: auto;

        overflow: hidden;
    }


    /* BACKGROUND */

    .background {
        height: 100%;
    }


    /* PORTFOLIO HEADING */

    .portfolio {
        width: 90%;

        margin: 10px auto 0;

        text-align: center;
    }

    .portfolio h2 {
        left: 0;

        font-size: clamp(12px, 3.5vw, 14px);
    }


    /* INTRODUCTION */

    .info {
        width: 90%;
        margin: clamp(8px, 2vw, 12px) auto 0;
        text-align: center;
    }

    .info h1 {
        font-size: clamp(29px, 8vw, 42px);
        line-height: 1.2;
    }

    .info h3 {
        font-size: clamp(13px, 3.6vw, 16px);

        line-height: 1.5;
        letter-spacing: 0.5px;
    }

    .info h4 {
        margin-left: 0;
    }

    .info h6 {
        font-size: 12px;
    }

    .info a {
        margin: 18px 0;

        padding: 9px 17px;

        font-size: 13px;
    }


    /* PROFILE IMAGE */

    .image {
        position: relative;

        width: 100%;
        height: clamp(260px, 75vw, 380px);

        right: auto;
        bottom: auto;

        margin: 0 auto;

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

        overflow: hidden;
    }

    .image img {
        position: relative;

        width: auto;
        height: 100%;

        max-width: 90%;

        object-fit: contain;
        object-position: bottom center;

        left: auto;
        right: auto;
        bottom: auto;
    }


    /* SOCIAL ICONS */

    .icons {
        justify-content: center;

        gap: 22px;

        margin: 15px auto 20px;
    }

    .icons ion-icon {
        font-size: 25px;
    }

}


/* =====================================
   SMALL MOBILE
   420px BELOW
===================================== */

@media (max-width: 420px) {

    .portfolio {
        margin-top: 8px;
    }

    .info {
        margin-top: 8px;
    }

    .info h1 {
        font-size: clamp(27px, 7.5vw, 32px);
    }

    .info h3 {
        font-size: clamp(12px, 3.4vw, 14px);
    }

    .info a {
        margin: 15px 0;

        padding: 8px 15px;

        font-size: 12px;
    }

    .image {
        height: clamp(220px, 65vw, 290px);
    }

    .icons {
        margin-top: 12px;
        margin-bottom: 15px;

        gap: 18px;
    }

    .icons ion-icon {
        font-size: 23px;
    }

}


/* =====================================
   EXTRA SMALL MOBILE
   320px BELOW
===================================== */

@media (max-width: 320px) {

    .portfolio h2 {
        font-size: 12px;
    }

    .info {
        margin-top: 5px;
    }

    .info h1 {
        font-size: 25px;
    }

    .info h3 {
        font-size: 12px;
    }

    .image {
        height: 210px;
    }

    .icons {
        gap: 15px;
    }

}
