/* =========================================
   GLOBAL
========================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "DM Sans", sans-serif;
    background: #ffffff;
    color: #10233f;
    overflow-x: hidden;
}

a {
    text-decoration: none;
}


/* =========================================
   HERO SECTION
========================================= */

.portfolio-hero {
    position: relative;

    min-height: 530px;

    /* background:
        radial-gradient(
            circle at 85% 25%,
            rgba(37, 177, 142, 0.12),
            transparent 28%
        ),

        radial-gradient(
            circle at 60% 90%,
            rgba(37, 111, 181, 0.10),
            transparent 30%
        ),

        #f8fcfa; */
        background-image: url(/img/back.jpg);
        background-size: cover;

    overflow: hidden;

    display: flex;
    align-items: center;
}


/* =========================================
   DECORATIVE CIRCLES
========================================= */

.hero-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.circle-one {
    width: 420px;
    height: 420px;

    border: 1px solid rgba(32, 156, 126, 0.12);

    right: -180px;
    top: -150px;
}

.circle-two {
    width: 300px;
    height: 300px;

    border: 1px solid rgba(38, 108, 181, 0.12);

    left: -150px;
    bottom: -150px;
}


/* =========================================
   FLOATING DOTS
========================================= */

.hero-dot {
    position: absolute;
    border-radius: 50%;
    opacity: .6;
}

.dot-one {
    width: 10px;
    height: 10px;

    background: #20ad86;

    right: 42%;
    top: 20%;
}

.dot-two {
    width: 7px;
    height: 7px;

    background: #2674bd;

    right: 12%;
    bottom: 25%;
}

/* .dot-three {
    width: 12px;
    height: 12px;

    background: #55c6a5;

    left: 8%;
    top: 22%;
} */


/* =========================================
   HERO WRAPPER
========================================= */

.hero-wrapper {
    width: 90%;
    max-width: 1400px;

    margin: auto;
margin-top: 80px;
    display: grid;

    grid-template-columns:
        1.15fr .85fr;

    align-items: center;

    gap: 50px;

    position: relative;
    z-index: 2;
}


/* =========================================
   HERO TEXT
========================================= */

.hero-small-title {
    font-size: 14px;

    font-weight: 700;

    letter-spacing: 4px;

    text-transform: uppercase;

    color: #0b034e;

    margin-bottom: 18px;
}

.hero-small-title::after {
    content: "";

    display: inline-block;

    width: 60px;
    height: 2px;

    background: #2674bd;

    margin-left: 15px;

    vertical-align: middle;
}


/* =========================================
   MAIN NAME
========================================= */

.hero-title {
    font-family: "Playfair Display", serif;

    font-size:
        65px;

    line-height: .95;

    color: #000;

    margin-bottom: 28px;

    font-weight: 700;
}

.hero-title span {
    color: #061859;
}


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

.hero-description {
    max-width: 760px;

    font-size: 18px;

    line-height: 1.7;

    color: #212c35;

    margin-bottom: 35px;
}


/* =========================================
   RESUME BUTTON
========================================= */

.resume-btn {
    display: inline-flex;

    align-items: center;

    gap: 13px;

    padding: 15px 27px;

    border: 2px solid #1d9c7a;

    border-radius: 50px;

    color: #126f5a;

    background: #ffffff;

    font-size: 16px;

    font-weight: 700;

    transition: all .35s ease;
}

.resume-btn i {
    font-size: 17px;
}

.resume-btn .arrow {
    transition: transform .3s ease;
}

.resume-btn:hover {
    background: #09054d;

    color: #ffffff;

    transform: translateY(-3px);

    box-shadow:
        0 12px 30px
        rgba(29, 156, 122, .20);
}

.resume-btn:hover .arrow {
    transform: translateX(5px);
}


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

.hero-image-area {
    position: relative;

    display: flex;

    justify-content: center;

    align-items: center;
}


.hero-image-frame {
    position: relative;

    width: min(300px, 100%);

    padding: 12px;

    background: #ffffff;

    border-radius: 35px;

    box-shadow:
        0 25px 70px
        rgba(16, 45, 77, .14);

    transform: rotate(2deg);

    transition: .5s ease;
}

.hero-image-frame:hover {
    transform:
        rotate(0deg)
        translateY(-8px);
}


/* Green border */
/* 
.hero-image-frame::before {
    content: "";

    position: absolute;

    width: 100%;
    height: 100%;

    top: 18px;
    left: -18px;

    border: 3px solid #24a983;

    border-radius: 35px;

    z-index: -1;
} */


/* Blue border */

/* .hero-image-frame::after {
    content: "";

    position: absolute;

    width: 100%;
    height: 100%;

    right: -18px;
    bottom: -18px;

    border: 3px solid #2b73b7;

    border-radius: 35px;

    z-index: -2; 
} */


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

    height: 380px;

    display: block;

    object-fit: cover;

    border-radius: 25px;
}


/* =========================================
   HERO NOTE
========================================= */

.hero-note {
    position: absolute;

    right: -20px;
    bottom: -35px;

    width: 150px;

    font-family:
        "Playfair Display",
        serif;

    font-style: italic;

    font-size: 18px;

    line-height: 1.35;

    color: #1d9c7a;

    transform: rotate(-8deg);
}

.hero-note span {
    color: #2873b5;
}


/* =========================================
   CURVED WHITE TRANSITION
========================================= */

.hero-bottom {
    position: absolute;

    bottom: -1px;
    left: 0;

    width: 100%;
    height: 100px;

    background: #ffffff;

    clip-path:
        ellipse(65% 55% at 50% 100%);
}


/* =========================================
   WORK SECTION
========================================= */

.work-section {
    position: relative;

    padding: 50px 5% 100px;

    background: #ffffff;
}


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

.section-heading {
    text-align: center;

    margin-bottom: 55px;
}


.section-mini-title {
    display: inline-flex;

    align-items: center;

    gap: 15px;

    color: #219b7a;

    font-size: 13px;

    font-weight: 700;

    letter-spacing: 4px;

    text-transform: uppercase;

    margin-bottom: 12px;
}


.section-mini-title::before,
.section-mini-title::after {
    /* content: "";

    width: 45px;

    height: 2px;

    background:
        linear-gradient(
            90deg,
            #219b7a,
            #2776bb
        ); */
}


.section-heading h2 {
    font-family:
        "Playfair Display",
        serif;

    font-size:
        clamp(2.5rem, 3vw, 4.5rem);

    color: #112e4e;

    font-weight: 600;
}

.section-heading h2 span {
    color: #249b7c;
}


.section-heading p {
    margin: 12px auto 0;

    max-width: 600px;

    color: #7a8998;

    line-height: 1.7;
}


/* =========================================
   FIVE PORTFOLIO CARDS
========================================= */

.portfolio-tabs {
    width: 100%;

    max-width: 1450px;

    margin: auto;

    display: grid;

    grid-template-columns:
        repeat(5, 1fr);

    gap: 20px;
}


/* =========================================
   CARD
========================================= */

.portfolio-card {
    position: relative;

    min-height: 315px;

    padding: 28px 20px 25px;

    border-radius: 28px;

    background: #ffffff;

    border: 1px solid
        rgba(24, 55, 83, .09);

    box-shadow:
        0 15px 35px
        rgba(30, 65, 90, .08);

    overflow: hidden;

    cursor: pointer;

    transition:
        transform .4s ease,
        box-shadow .4s ease;
}


.portfolio-card:hover {
    transform: translateY(-12px);

    box-shadow:
        0 25px 55px
        rgba(30, 65, 90, .16);
}


/* Top colored line */

.portfolio-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 6px;

    background: var(--card-color);
}


/* Colored corner */

.portfolio-card::after {
    content: "";

    position: absolute;

    width: 100px;
    height: 100px;

    right: -45px;
    top: -45px;

    border-radius: 50%;

    background: var(--card-light);

    transition: .4s ease;
}

.portfolio-card:hover::after {
    transform: scale(1.6);
}


/* =========================================
   CARD ICON
========================================= */
/* =========================================
   IMAGE CARD
========================================= */

.portfolio-card {
    position: relative;

    min-height: 330px;

    padding: 0;

    border-radius: 28px;

    background: #ffffff;

    border: 1px solid rgba(24, 55, 83, .09);

    box-shadow:
        0 15px 35px rgba(30, 65, 90, .08);

    overflow: hidden;

    cursor: pointer;

    transition:
        transform .4s ease,
        box-shadow .4s ease;
}


/* =========================================
   TOP COLOR LINE
========================================= */

.portfolio-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 5px;

    background: var(--card-color);

    z-index: 5;
}


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

.card-image {
    position: relative;

    width: 100%;

    height: 205px;

    overflow: hidden;

    background: var(--card-light);
}


/* Image */

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

    display: block;

    object-fit: contain;

    transition:
        transform .6s ease;
}


/* Image hover */

.portfolio-card:hover .card-image img {
    transform: scale(1.08);
}


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

.card-image::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 100%;
    height: 70%;

    background:
        linear-gradient(
            to top,
            rgba(16, 45, 77, .35),
            transparent
        );

    opacity: 0;

    transition: .4s ease;
}


.portfolio-card:hover .card-image::after {
    opacity: 1;
}


/* =========================================
   CARD NUMBER
========================================= */

.card-number {
    position: absolute;

    right: 17px;
    top: 17px;

    z-index: 10;

    width: 34px;
    height: 34px;

    display: flex;

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

    border-radius: 50%;

    background: rgba(255,255,255,.92);

    color: var(--card-color);

    font-size: 11px;

    font-weight: 700;

    box-shadow:
        0 5px 15px rgba(0,0,0,.08);
}


/* =========================================
   CARD CONTENT
========================================= */

.card-content {
    position: relative;

    padding:
        25px 22px 30px;

    text-align: center;
}


/* =========================================
   CARD TITLE
========================================= */

.portfolio-card h3 {
    font-family:
        "Playfair Display",
        serif;

    font-size: 21px;

    color: #163552;

    margin-bottom: 8px;
}


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

.portfolio-card p {
    color: #7b8a98;

    font-size: 13px;

    line-height: 1.6;

    margin: 0;

    padding: 0 15px;
}


/* =========================================
   CARD ARROW
========================================= */

.card-arrow {
    position: absolute;

    /* bottom: -52px; */

    left: 50%;

    transform:
        translateX(-50%);

    width: 43px;
    height: 43px;

    display: flex;

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

    border-radius: 50%;

    background: var(--card-color);

    color: #ffffff;

    transition: .35s ease;

    z-index: 4;
}


/* Arrow hover */

.portfolio-card:hover .card-arrow {
    transform:
        translateX(-50%)
        rotate(-45deg);

    box-shadow:
        0 8px 20px
        rgba(0,0,0,.15);
}


/* =========================================
   CARD HOVER
========================================= */

.portfolio-card:hover {
    transform: translateY(-12px);

    box-shadow:
        0 25px 55px
        rgba(30,65,90,.16);
}

.portfolio-card:hover .card-icon {
    transform:
        rotate(-8deg)
        scale(1.08);
}


/* =========================================
   CARD NUMBER
========================================= */

.card-number {
    position: absolute;

    right: 20px;
    top: 20px;

    font-size: 12px;

    font-weight: 700;

    color: #9aa8b5;
}


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

.portfolio-card h3 {
    position: relative;

    z-index: 2;

    text-align: center;

    font-family:
        "Playfair Display",
        serif;

    font-size: 21px;

    color: #163552;

    margin-bottom: 8px;
}


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

.portfolio-card p {
    position: relative;

    z-index: 2;

    text-align: center;

    color: #7b8a98;

    font-size: 13px;

    line-height: 1.6;

    min-height: 42px;
}


/* =========================================
   CARD ARROW
========================================= */

.card-arrow {
    position: absolute;

    /* bottom: 22px; */
    left: 50%;

    transform:
        translateX(-50%);

    width: 43px;
    height: 43px;

    display: flex;

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

    border-radius: 50%;

    background: var(--card-color);

    color: #ffffff;

    transition: .35s ease;
}


.portfolio-card:hover .card-arrow {
    transform:
        translateX(-50%)
        rotate(-45deg);

    box-shadow:
        0 8px 20px
        rgba(0, 0, 0, .15);
}


/* =========================================
   CARD COLORS
========================================= */

.card-green {
    --card-color: #199d79;
    --card-light: #e5f7f0;
}

.card-blue {
    --card-color: #2878bd;
    --card-light: #e8f2fb;
}

.card-teal {
    --card-color: #168e99;
    --card-light: #e4f5f5;
}

.card-lime {
    --card-color: #65a82e;
    --card-light: #eff8e5;
}

.card-navy {
    --card-color: #315a96;
    --card-light: #e9eff8;
}


/* =========================================
   SECTION DECORATION
========================================= */

.section-decoration {
    position: absolute;

    left: 0;
    bottom: 25px;

    width: 100%;
    height: 70px;

    pointer-events: none;

    opacity: .5;

    background-image:
        radial-gradient(
            circle,
            rgba(30, 156, 122, .18) 1px,
            transparent 1px
        );

    background-size: 20px 20px;

    mask-image:
        linear-gradient(
            to right,
            transparent,
            black,
            transparent
        );
}


/* =========================================
   FOOTER
========================================= */

.portfolio-footer {
    background: #102e4c;

    padding: 20px 20px;

    text-align: center;

    color: #ffffff;
}


.portfolio-footer h3 {
    font-family:
        "Playfair Display",
        serif;

    font-size: 28px;

    margin-bottom: 10px;
}


.portfolio-footer p {
    color: #bdd0df;

    margin-bottom: 20px;
}


/* =========================================
   FOOTER ICONS
========================================= */

.footer-links {
    display: flex;

    justify-content: center;

    gap: 20px;
}


.footer-links a {
    width: 42px;
    height: 42px;

    border-radius: 50%;

    display: flex;

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

    color: #ffffff;

    border: 1px solid
        rgba(255,255,255,.25);

    transition: .3s ease;
}


.footer-links a:hover {
    background: #1da27e;

    transform: translateY(-4px);
}


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

@media (max-width: 1100px) {

    .portfolio-tabs {
        grid-template-columns:
            repeat(3, 1fr);

        max-width: 900px;
    }


    .hero-wrapper {
        grid-template-columns:
            1fr .8fr;
    }


    .hero-image-frame img {
        height: 390px;
    }
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 768px) {

    .portfolio-hero {
        min-height: auto;

        padding:
            0px 0
            110px;
    }


    .hero-wrapper {
        width: 88%;

        grid-template-columns: 1fr;

        text-align: center;

        gap: 60px;
    }


    .hero-small-title {
        font-size: 11px;

        letter-spacing: 3px;
    }


    .hero-small-title::after {
        display: none;
    }


    .hero-title {
        font-size:
            clamp(
                3rem,
                15vw,
                5rem
            );
    }


    .hero-description {
        font-size: 16px;
    }


    .resume-btn {
        margin: auto;
    }


    .hero-image-frame {
        width:
            min(
                360px,
                90%
            );
    }


    .hero-image-frame img {
        height: 360px;
    }


    .hero-note {
        right: -5px;

        bottom: -35px;

        font-size: 15px;
    }


    .hero-bottom {
        height: 65px;
    }


    /* Five cards become one column */

    .portfolio-tabs {
        grid-template-columns: 1fr;

        width: 90%;

        gap: 20px;
    }


    .portfolio-card {
        min-height: 280px;
    }


    .work-section {
        padding-top: 50px;

        padding-bottom: 70px;
    }


    .section-heading {
        margin-bottom: 40px;
    }


    .section-mini-title::before,
    .section-mini-title::after {
        width: 25px;
    }
}


/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 480px) {

    .hero-title {
        font-size: 3.1rem;
    }


    .hero-description {
        font-size: 15px;

        line-height: 1.65;
    }


    .hero-image-frame img {
        height: 410px;
    }


    .portfolio-card {
        min-height: 330px;
    }


    .card-icon {
        width: 85px;

        height: 85px;

        font-size: 32px;
    }


    .portfolio-card h3 {
        font-size: 22px;
    }
}


/* =========================================
   SECTION LOADING ANIMATION
========================================= */


/* -----------------------------------------
   HEADER INITIAL STATE
----------------------------------------- */

.portfolio-hero {
    opacity: 0;

    transform:
        translateY(35px);

    transition:
        opacity 1s ease-out,
        transform 1s cubic-bezier(.22, 1, .36, 1);
}


/* -----------------------------------------
   HEADER LOADED
----------------------------------------- */

.portfolio-hero.section-loaded {
    opacity: 1;

    transform:
        translateY(0);
}


/* -----------------------------------------
   HEADER CONTENT ANIMATION
----------------------------------------- */

.portfolio-hero .hero-small-title,
.portfolio-hero .hero-title,
.portfolio-hero .hero-description,
.portfolio-hero .resume-btn,
.portfolio-hero .hero-image-frame,
.portfolio-hero .hero-note {
    opacity: 0;

    transform:
        translateY(30px);

    transition:
        opacity .8s ease-out,
        transform .8s cubic-bezier(.22, 1, .36, 1);
}


/* Header animation delays */

.portfolio-hero.section-loaded .hero-small-title {
    opacity: 1;

    transform: translateY(0);

    transition-delay: .15s;
}


.portfolio-hero.section-loaded .hero-title {
    opacity: 1;

    transform: translateY(0);

    transition-delay: .30s;
}


.portfolio-hero.section-loaded .hero-description {
    opacity: 1;

    transform: translateY(0);

    transition-delay: .45s;
}


.portfolio-hero.section-loaded .resume-btn {
    opacity: 1;

    transform: translateY(0);

    transition-delay: .60s;
}


.portfolio-hero.section-loaded .hero-image-frame {
    opacity: 1;
    margin-top: -70px;
    margin-left: 150px;

    /* transform: rotate(2deg) translateY(0); */

    transition-delay: .40s;
}


.portfolio-hero.section-loaded .hero-note {
    opacity: 1;

    transform: rotate(-8deg) translateY(0);

    transition-delay: .75s;
}



/* =========================================
   WORK SECTION
========================================= */

.work-section {
    opacity: 0;

    transform:
        translateY(50px);

    transition:
        opacity 1s ease-out,
        transform 1s cubic-bezier(.22, 1, .36, 1);
}


.work-section.section-loaded {
    opacity: 1;

    transform:
        translateY(0);
}



/* -----------------------------------------
   WORK HEADING
----------------------------------------- */

.work-section .section-heading {
    opacity: 0;

    transform:
        translateY(35px);

    transition:
        opacity .8s ease-out,
        transform .8s cubic-bezier(.22, 1, .36, 1);
}


.work-section.section-loaded .section-heading {
    opacity: 1;

    transform:
        translateY(0);

    transition-delay: .15s;
}



/* =========================================
   FIVE CARD ANIMATION
========================================= */

.portfolio-card {
    opacity: 0;

    transform:
        translateY(50px)
        scale(.96);

    transition:
        opacity .7s ease-out,
        transform .7s cubic-bezier(.22, 1, .36, 1),
        box-shadow .4s ease;
}


/* Card 1 */

.work-section.section-loaded .portfolio-card:nth-child(1) {
    opacity: 1;

    transform:
        translateY(0)
        scale(1);

    transition-delay: .25s;
}


/* Card 2 */

.work-section.section-loaded .portfolio-card:nth-child(2) {
    opacity: 1;

    transform:
        translateY(0)
        scale(1);

    transition-delay: .38s;
}


/* Card 3 */

.work-section.section-loaded .portfolio-card:nth-child(3) {
    opacity: 1;

    transform:
        translateY(0)
        scale(1);

    transition-delay: .51s;
}


/* Card 4 */

.work-section.section-loaded .portfolio-card:nth-child(4) {
    opacity: 1;

    transform:
        translateY(0)
        scale(1);

    transition-delay: .64s;
}


/* Card 5 */

.work-section.section-loaded .portfolio-card:nth-child(5) {
    opacity: 1;

    transform:
        translateY(0)
        scale(1);

    transition-delay: .77s;
}



/* =========================================
   CARD HOVER STILL WORKS
========================================= */

.work-section.section-loaded
.portfolio-card:hover {

    transform:
        translateY(-12px)
        scale(1.01);

    box-shadow:
        0 25px 55px
        rgba(30, 65, 90, .16);
}



/* =========================================
   FOOTER ANIMATION
========================================= */

.portfolio-footer {
    opacity: 0;

    transform:
        translateY(45px);

    transition:
        opacity 1s ease-out,
        transform 1s cubic-bezier(.22, 1, .36, 1);
}


.portfolio-footer.section-loaded {
    opacity: 1;

    transform:
        translateY(0);
}



/* Footer content */

.portfolio-footer h3,
.portfolio-footer p,
.portfolio-footer .footer-links {
    opacity: 0;

    transform:
        translateY(25px);

    transition:
        opacity .7s ease-out,
        transform .7s cubic-bezier(.22, 1, .36, 1);
}


.portfolio-footer.section-loaded h3 {
    opacity: 1;

    transform: translateY(0);

    transition-delay: .15s;
}


.portfolio-footer.section-loaded p {
    opacity: 1;

    transform: translateY(0);

    transition-delay: .30s;
}


.portfolio-footer.section-loaded .footer-links {
    opacity: 1;

    transform: translateY(0);

    transition-delay: .45s;
}



/* =========================================
   MOBILE
========================================= */

@media (max-width: 768px) {

    .portfolio-hero {
        transform: translateY(25px);
    }

    .work-section {
        transform: translateY(35px);
    }

    .portfolio-card {
        transform:
            translateY(35px)
            scale(.97);
    }

    .portfolio-footer {
        transform: translateY(30px);
    }

    .portfolio-hero.section-loaded .hero-image-frame {
    opacity: 1;
    margin-top: 0px;
    margin-left: 0px;

    /* transform: rotate(2deg) translateY(0); */

    transition-delay: .40s;
}

}