:root {
    --color-secondary: #F7E9E4;
    --color-secondary-dark: #EADCD8;
    --color-primary: #0C735F;
    --color-primary-dark: #0B6050;
    --color-white: #FFFFFF;
    --color-black: #000000;
    --color-gray: #707070; 

    --font-base: 'Satoshi', sans-serif;
    --font-heading: 'Tenor Sans', serif;

    --container-width: 1600px;
    --page-padding: clamp(1rem, 2vw, 2rem);

    --font-display: clamp(3rem, 8vw, 5.5rem); 
    --font-heading: clamp(2.5rem, 4vw, 3.75rem); 

}

/* Resets */

*, 
*::after, 
*::before {
    box-sizing: border-box;
}

body, 
h1, 
h2,
h3, 
h4, 
h5,
h6, 
p {
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    color: inherit;
    outline: none !important;
}

button, 
input {
    font: inherit;
}

img {
    max-width: 100%;
}

body {
    font-family: 'Satoshi', sans-serif;
    -webkit-font-smoothing: antialiased; 
    -moz-osx-font-smoothing: grayscale;  
    text-rendering: optimizeLegibility;
    scroll-behavior: smooth;
}

/* Global Styles */

body {
    background-color: var(--color-secondary);
    color: var(--color-primary);
    font-size: 1.5rem;
}

.title {
    font-family: var(--font-heading);
    font-weight: 400;
}

.viewport {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.section {
    padding: 0 var(--page-padding);
}

.container {
    margin-right: auto;
    margin-left: auto;
    width: 100%;
    max-width: var(--container-width);
}

.heading-large {
    font-size: var(--font-heading);
}

.col-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6%;
}

.thm-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.thm-link i {
    font-size: 1rem;
}

.thm-link.down i {
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.6;
}

.thm-link.down:hover i {
    transform: translateY(4px);
    opacity: 1;
}

.thm-link.left {
    gap: 1rem;
    position: relative;
}

.thm-link.right-up {
    justify-content: space-between;
}

.thm-link.right-up i {
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.thm-link.right-up span {
    position: relative;
}

.underline-link {
    position: relative;
}

.thm-link.left::after, 
.thm-link.right-up span::after, 
.underline-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background: var(--color-secondary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease-in-out;
}

.thm-link.left:hover::after, 
.thm-link.right-up:hover span::after, 
.underline-link:hover::after {
    transform: scaleX(1);
}

.thm-link.left i {
    transition: transform 0.3s ease-in-out;
}

.thm-link.left:hover i {
    transform: translateX(4px);
}

/* Header */

.header {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.header__inner {
    display: grid; 
    grid-template-columns: 1fr 1fr 1fr;
    place-content: center;
    margin-right: auto;
    margin-left: auto;
    width: 100%;
    max-width: var(--container-width);
    position: relative;
}

.header__left {
    justify-self: left;
    display: flex;
    gap: 2rem;
}

.header__logo {
    justify-self: center;
}

.header__right {
    justify-self: end;
    display: flex;
    align-items: center;
}

.header__logo-img {
    max-height: 35px;
}

/* Hero Section */

.hero {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 3%;
    padding-bottom: 3%;
}

.hero__inner {
    display: grid;
    gap: 1rem;
}

.hero__title {
    font-size: var(--font-display);
}

/* Projects Section */

.projects {
    background-color: var(--color-primary);
    color: var(--color-secondary);
    flex-grow: 1;
    display: grid;
    place-content: stretch;
    padding-top: 3%;
    overflow: hidden;
}


.projects__inner {
    background: 
        url("../images/line-path.svg") no-repeat center top,
        url("../images/currencies.svg") no-repeat center top;
    background-size: 100% auto, 90% auto;
    display: grid;
    grid-template-columns: auto auto;
    padding-bottom: 3%;
    height: 100%;
}



.projects__title {
    font-weight: 400;
    text-transform: uppercase;
    font-size: 1.5rem;
}

.projects__left {
    display: flex;
    gap: 16%;
}

.projects__right {
    justify-self: end;
}

.projects__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 0;
    padding: 0 0 0 2rem;
    border-left: 2px solid var(--color-secondary);
    max-height: fit-content;
}

.projects__item a {
    font-size: 1.75rem;
    text-transform: uppercase;
    display: flex;
    gap: 2.5rem;
}

/* About */

.about {
    margin-top: 16%;
    margin-bottom: 16%;
}

.about__inner {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(4rem, 5vw, 8rem);
}

.about__title {
    white-space: nowrap;
}

.about__text {
    color: var(--color-gray);
    font-size: clamp(1.5rem, 2vw, 2rem);
}

.about__right {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.about__left {
    display: flex;
    gap: clamp(4rem, 5vw, 8rem);
}

.about__image {
    background-image: url('../images/eur-bg.svg');
    background-repeat: no-repeat;
    background-size: contain; 
    background-position: left top;
    width: 100%;       
    min-height: 300px; 
}




/* Information */

.info {
    margin-top: 16%;
    margin-bottom: 16%;
}

.info__inner {
    display: flex;
    flex-direction: column;
    gap: 10rem;
}

.info__group {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.info__table {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.table__item {
    padding: 0 0 0.5rem 0;
    border-bottom: 1px solid var(--color-gray);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.table__item-label {
    text-transform: uppercase;
    color: var(--color-gray);
    font-size: 1rem;
}

.table__item-content {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 1.25rem;
    gap: 0.25rem;
}

.table__item i {
    opacity: 0.6;
    transition: opacity 0.3s ease-in-out;
}

.table__item i:hover {
    cursor: pointer;
    opacity: 1;
}

.table__bottom {
    display: flex;
    align-items: center;
    gap: 1rem;
    border-top: 1.5px solid var(--color-primary);
}

.table__name {
    font-weight: 400;
    text-transform: uppercase;
    color: var(--color-black);
}

.table__name.padding-top {
    padding-top: 0.5rem;
}

.table__currency {
    background-color: var(--color-primary);
    color: var(--color-secondary);
    padding: 0.75rem 1.5rem;
    font-size: 1.5rem;
}

/* Footer */

.footer {
    background-color: var(--color-primary);
    color: var(--color-secondary);
    position: relative;
    overflow: hidden;
}

.footer__inner {
    display: flex;
    flex-direction: column;
    background: url("../images/addictestate-bg.svg") no-repeat left bottom;
    background-size: contain;
    padding-top: 4%;
    padding-bottom: 4%;
    gap: 3.5rem;
}

.footer__heading {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
}

.footer__content {
    display: grid; 
    grid-template-columns: auto auto;
    align-items: end;
}

.footer__contact {
    display: flex;
    gap: 16%;
}

.contact__box-label {
    text-transform: uppercase;
    font-size: 1rem;
    opacity: 0.6;
}

.contact__box-content {
    font-size: 2rem;
    font-weight: 600;
}

.footer__social {
    display: flex;
    gap: 2rem;
}

.copyright {
    background-color: var(--color-primary-dark);
    color: var(--color-secondary);
    padding-top: 1rem;
    padding-bottom: 1rem;
    font-size: 1.25rem;
}

@media screen and (max-width: 1200px) {
    .col-2 {
        grid-template-columns: 1fr;
    }

    .projects__left {
        flex-direction: column;
        gap: 2rem;
        max-width: fit-content;
    }

    .about__left {
        flex-direction: column;
        gap: 2rem;
    }

    .projects {
        flex-grow: 0;
        padding: 0 var(--page-padding);
        padding-top: 1rem;
    }

    .projects__inner {
        padding: 4rem 0;
    }

    .about__inner {
        grid-template-columns: 1fr 2fr;
    }

    .header__inner {
        display: flex;
        justify-content: flex-end;
        gap: 2rem;
    }
    .header__logo {
        justify-self: center;
        order: -3;
        margin-right: auto;
    }

    .header__logo img {
        max-height: 30px;
    }
}

@media screen and (max-width: 992px) {
    .footer__content {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
}
    

@media screen and (max-width: 767px) {
    .viewport {
        min-height: auto;
    }

    .hero {
        padding-top: 10%;
        padding-bottom: 10%;
    }

    .about__inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .projects__right {
        justify-self: start;
    }

    .projects__inner {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .footer__contact {
        flex-direction: column;
        gap: 2rem;
    }

    .about__image {
        max-height: 200px;
        min-height: 200px;
    }

    .header__left, 
    .header__right {
        display: none;
    }

    .header__inner {
        gap: 0;
    }

    .table__name {
        font-size: 1.5rem;
    }

    .footer {
        padding: 2rem var(--page-padding);
    }

    .info {
        padding-bottom: 8rem;
        margin-top: 8rem;
    }

    .about {
        margin-bottom: 8rem;
    }

    .projects__inner {
        background-position: center top, center bottom;
        background-size: 100% 100%, 100% 100%;
    }
}