
/* ==========================================================================
                            Root Variables & Theme
   ========================================================================== */
:root {
    /* Brand */
    --primary-color: rgb(117, 193, 128);
    --primary-hover-color: rgb(125, 211, 114);

    /* Surfaces */
    --bg-color: white;
    --header-bg-color: lightgray;
    --footer-border-color: rgba(0, 0, 0, 0.1);

    /* Text */
    --text-color: black;
    --heading-color-h1: rgb(15, 50, 15);
    --heading-color-h2: rgb(15, 80, 20);
    --heading-color-h3: rgb(15, 110, 25);
    --heading-color-h4: rgb(15, 140, 30);
    --footer-text-color: rgb(158, 157, 157);
    --footer-link-color: rgb(153, 152, 152);
    --footer-link-hover-color: rgb(62, 61, 61);
}

/* ==========================================================================
                               Header & Navigation
   ========================================================================== */

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-height: 4rem;
    z-index: 3;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-transform: uppercase;
    height: 6.25rem;
    padding: 0 1.875rem;
    background-color: var(--primary-color);
}

.logo {
    width: 17rem;
    height: auto;
    background-color: var(--primary-color);
}

.logo img {
    display: block;
    width: 100%;
    min-width: 5rem;
    height: auto;
    background-color: var(--primary-color);
}

/* Desktop Menu */
.desktop-main-menu {
    margin-right: 5rem;
    font-size: 1.065rem;
}

.desktop-main-menu ul {
    display: flex;
}

.desktop-main-menu ul li {
    position: relative;
    margin-right: 1.25rem;
    padding-bottom: 0.125rem;
    margin-right: 2.5rem;
}

.desktop-main-menu ul li a {
    transition: color 0.3s;
}

.desktop-main-menu ul li a:hover {
    color: rgb(255, 255, 255);
}

/* Menu item bottom border */
.desktop-main-menu ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0.0625rem;
    background-color: rgb(255, 255, 255);
    transform: scaleX(0);
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    transform-origin: right center;
}

.desktop-main-menu ul li a:hover::after {
    transform: scaleX(1);
    transform-origin: left center;
    transition-duration: 0.4s;
}

.profile-photo-wrapper {
    display: flex;
    justify-content: center;
    transform: translateX(-2.5rem);
}

.profile-photo {
    display: block;
    width: 10.5rem;
    height: 10.5rem;
    border-radius: 50%;
    object-fit: cover;
}

/* Sections */
section {
    position: relative;
    height: 100vh;
    height: 100dvh;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    margin-top: 0;
}

.section-inner {
    position: absolute;
    bottom: 12.5rem;
    left: 9.375rem;
    max-width: 35rem;
}

.section-inner h2 {
    margin-bottom: 0;
    padding-bottom: 0.9rem;
    font-weight: 500;
    font-size: 1.4rem;
    animation: fadeInUp 0.5s ease-in-out;
    color: var(--heading-color-h4);
}

.section-inner h1 {
    font-weight: 700;
    font-size: 2.25rem;
    margin-bottom: 1.2rem;
    margin-top: 0.5rem;
    animation: fadeInUp 0.5s ease-in-out 0.2s;
    animation-fill-mode: both;
    color: var(--heading-color-h3);
}

.section-inner a {
    animation: fadeInUp 0.5s ease-in-out 0.4s;
    animation-fill-mode: both;
}

.section-title {
    text-align: center;
    width: 100%;
    margin-top: 0;
    margin-bottom: 3.5rem;
    padding-top: 0;
    font-weight: 700;
    font-size: 2.55rem;
}

.section-text {
    text-align: left;
    max-width: 55%;
    margin: 2rem auto;
    padding: 0 auto;
    font-weight: 500;
    font-size: 1.2rem;
    line-height: 1.6;
    text-indent: 0.9rem;
}

/* Background Images */
.section-a,
.section-b,
.section-c,
.section-d,
.section-e,
.section-f,
.section-g {
    background: linear-gradient(
        to left,
        rgb(117, 193, 128) 0%,
        rgb(255, 255, 255) 100%
    );
}

.btn {
    position: relative;
    display: inline-block;
    cursor: pointer;
    text-align: center;
    min-width: 8.125rem;
    padding: 0.9375rem 3.125rem;
    margin-top: 0.625rem;
    border: 3px solid var(--primary-color);
    text-transform: uppercase;
    font-weight: 700;
    font-size: 1.18rem;
    overflow: hidden;
    z-index: 2;
    color: var(--heading-color-h4);
}

.btn:hover span {
    color: rgb(255, 255, 255);
}

.btn .hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    color: rgb(255, 255, 255);
    z-index: -1;
    transform: translateY(100%);
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.btn:hover .hover {
    transform: translateY(0);
}

.scroll-arrow {
    position: absolute;
    bottom: 2.9rem;
    left: 50%;
    transform: translateX(-50%);
    animation: fadeBounce 3.5s infinite;
}

/* ==========================================================================
                               Global Rules
   ========================================================================== */

html {
    scroll-behavior: smooth;
}
   
body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: rgb(255, 255, 255);
    color: rgb(0, 0, 0);
}

a {
    text-decoration: none;
    color: rgb(0, 0, 0);
}

ul {
    list-style: none;
}

/* ==========================================================================
                               Hamburger Menu
   ========================================================================== */

.hamburger {
    position: fixed;
    top: 40px;
    right: 20px;
    z-index: 10;
    cursor: pointer;
    width: 20px;
    height: 20px;
    background: none;
    border: none;
}

.hamburger-top,
.hamburger-middle,
.hamburger-bottom {
    position: absolute;
    width: 20px;
    height: 2px;
    top: 0;
    left: 0;
    background: rgb(255, 255, 255);
    transition: all 0.5s;
}

.hamburger-middle {
    transform: translateY(5px);
}

.hamburger-bottom {
    transform: translateY(10px);
}

/* Transition Hamburger to X when open */
.open {
    transform: rotate(90deg);
}

.open .hamburger-top {
    transform: rotate(45deg) translateY(0.4rem) translateX(0.4rem);
}

.open .hamburger-middle {
    display: none;
}

.open .hamburger-bottom {
    transform: rotate(-45deg) translateY(0.4rem) translateX(-0.4rem);
}

.overlay-show {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 3;
}

.stop-scrolling {
    overflow: hidden;
}

.mobile-only {
    display: none;
}

.mobile-main-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 30%;
    height: 100%;
    z-index: 4;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(100%);
    transition: transform 1.5s cubic-bezier(0.19, 1, 0.22, 1);
}

/* Bring Menu from Right */
.show-menu {
    transform: translateX(0);
}

.mobile-main-menu ul {
    display: flex;
    flex-direction: column;
    align-items: end;
    justify-content: center;
    padding: 3rem;
    width: 100%;
}

.mobile-main-menu ul li {
     margin-bottom: 1.25rem;
     font-size: 1.125rem;
     font-weight: 500;
     text-transform: uppercase;
     border-bottom: 1px rgb(255, 255, 255) dotted;
     width: 100%;
     text-align: right;
     padding-bottom: 0.5rem;
}

.mobile-main-menu ul li a {
    color: rgb(0, 0, 0);
    transition: color 0.3s;
}

.mobile-main-menu ul li a:hover {
    color: rgb(255, 255, 255);
}

/* ==========================================================================
                               Certificaions
   ========================================================================== */

.certification-subtitle {
    display: flex;
    flex: 1;
    justify-content: center;
    align-items: center;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.4375rem;
    font-weight: 500;
    margin-top: 3.4375rem;
}

.certification-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    list-style-position: inside;
    padding: 0;
    max-width: 700px;
    margin: 1rem auto 0;
    gap: 1rem 3rem;
}

.certification-unit {
    display: grid;
    grid-template-rows: 1fr 1fr;
}

.certif-logo {
    width: 100%;
    max-width: 18.75rem;
    height: auto;
    border-radius: 50%;
}

.certif-p {
    display: grid;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 500;
    font-size: 1.3125rem;
    text-align: center;
}

.click-here,
.see-credential {
    font-weight: 400;
    font-size: 1rem;
    cursor: pointer;
}

/* ==========================================================================
                               Key Frames
   ========================================================================== */

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(140px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeBounce {
    0%,
    17%,
    50%,
    67%,
    100% {
        opacity: 0;
        transform: translateY(-1.25rem);
    }
    34% {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ==========================================================================
                                Media Queries
   ========================================================================== */

@media (max-width: 960px) {
    .desktop-main-menu {
        display: none;
    }
    .mobile-only {
        display: block;
    }
}

@media (max-width: 600px) {
    .section-inner {
        bottom: 4.6875rem;
        left: 1.25rem;
    }
    .section-inner h2 {
        font-size: 2.5rem;
    }
    .logo {
        width: 9.375rem;
        margin: auto;
    }
}
