/* http://meyerweb.com/eric/tools/css/reset/
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

input,
textarea,
select{
  width: 150px;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}
button{
	all: unset;
	cursor: pointer;
}

*{
	box-sizing: border-box;
}

html {
	--white: #FFF;

	--gray-25: #FCFCFD;
	--gray-50: #F9FAFB;
	--gray-100: #F1F3F6;
	--gray-200: #E4E8EF;
	--gray-300: #D3D9E2;
	--gray-400: #AAB3C2;
	--gray-500: #828D9E;
	--gray-600: #5A677C;
	--gray-700: #36404F;
	--gray-800: #1E242D;
	--gray-900: #010203;

	--primary-400: #6A81F2;
	--primary-500: #4460ED;
	--primary-700: #1B3096;

	--error-600: #CF212C;
	--error-900: #390B0E;

	--success-400: #6AF281;

	--font:'Satoshi Variable', sans-serif;

	--L-Regular:400 16px/24px 'Satoshi Variable', sans-serif;
	--L-Semibold: 500 16px/24px 'Satoshi Variable', sans-serif;

	--3XL-Regular: 400 24px/32px 'Satoshi Variable', sans-serif;
	--3XL-Semibold: 500 24px/32px 'Satoshi Variable', sans-serif;

	--4XL-Regular: 400 32px/40px 'Satoshi Variable', sans-serif;
	--4XL-Semibold: 500 32px/40px 'Satoshi Variable', sans-serif;

	--opacity: 0.3;

	-webkit-font-smoothing: antialiased;
}

/* #FONT */
@font-face {
  font-family: 'Satoshi Variable';
  src: url('/assets/font/Satoshi-Variable.ttf') format("truetype-variations");
  font-weight: 1 999;
	font-style: normal;
}
@font-face {
  font-family: 'Satoshi Variable';
  src: url('/assets/font/Satoshi-VariableItalic.ttf') format("truetype-variations");
  font-weight: 1 999;
	font-style: italic;
}


h1{
    font: var(--4XL-Regular);
}
.opener:not(:empty) ~ * {
  margin-top: 32px;
}
.opener:has(h1){
    gap: 12px;
    display: inline-flex;
    align-items: baseline;
}
.opener h1{
    color: var(--gray-400, #AAB3C2);
}

hr{
    height: 1px;

    border: none;
    margin: 32px 0;
    background-color: var(--gray-300);
}


/* #MAIN */
body {
	font-size: 16px;
	font-family: var(--font);
	-webkit-font-smoothing: antialiased;
}
body:has(.modal.show) {
  overflow: hidden;
}

.home{
	padding: 40px 72px;
}

main{
    height: 100%;
	position: relative;
}

.pointer{
	cursor: pointer;
}

/* #ANIMATION */
@keyframes slideY {
  0% {
		opacity: 0;
    transform: translateY(-10px);
  }
  100% {
		opacity: 1;
    transform: translateY(0);
  }
}

.fade-out {
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.2s ease-out!important;
}

/* #LINKS */
a{
	color: var(--black);
	font-style: italic;
	text-underline-offset: 8px;
	text-decoration: underline dotted;
}
a:hover{
	text-decoration: none;
}
a:hover > img{
	margin-bottom: 4px;
}

.inlineOutside{
	position: relative;
}
.inlineOutside img{
	width: 16px;
	max-width: 100%;
	margin-left: 12px;
	transition:  0.2s;
}

/* #HEADER */
header {
	display: flex;
	margin-bottom: 40px;
	animation-name: slideY;
  animation-duration: 0.4s;
	justify-content: space-between;
}
header figure {
	width: 24px;
}
header figure img {
	max-width: 100%;
}

/* #INTRO */
.introduction {
	font-size: 2em;
	line-height: 48px;
	max-width: 1000px;
	animation-name: slideY;
  animation-duration: 0.8s;
}
.introduction p{
	color: var(--black-lighter);
}
.introduction b{
	color: var(--black);
}
.introduction p + p{
	margin: 64px 0;
}

/* #BUTTONS */
.buttons{
    animation-name: slideY;
    animation-duration: 1.2s;
}

.button-group{
	gap: 12px;
	display: flex;
}

.button{
    transition: 0.2s;
	padding: 8px 20px;
	line-height: 22px;
	border-radius: 32px;
	color: var(--gray-400);
	background-color: var(--gray-100);
}
.is-checked{
	color: var(--gray-25);
	background-color: var(--gray-900);
}

/* #GRID LOGIC */
.grid {
    gap: 32px;
    display: flex;
    flex-wrap: wrap;
    margin-top: 40px;
    animation-name: slideY;
    animation-duration: 1.6s;
}

/* #CARD */
.card {
    height: 500px;
    padding: 32px;
    position: relative;
    border-radius: 24px;
    box-sizing: border-box!important;
    overflow: hidden;
    flex-direction: column;
    justify-content: space-between;
    flex-basis: calc(33.33% - 22px); /* Adjust the width based on your needs */
    border: 1px solid var(--gray-100, #F1F3F6);
    background: var(--gray-50, #F1F3F6);
    transition: background-color 0.3s ease;
}
.card.pointer::before {
  content: "";
  position: absolute;
  top: -400px;
  left: -100px;
  width: 150%;
  height: 100%;
  border-radius: 424px;
  background-color: rgba(255, 255, 255, 0);
  filter: blur(40px);
  transition: background-color 0.3s ease; /* Transition for smooth animation */
}
.card.pointer:hover::before {
  background-color: rgba(255, 255, 255, 0.9); /* Blurred white background on hover */
}
.card .head{
    display: flex;
    flex-direction: row;
    justify-content: space-between
}
.card .head h3{
    gap: 8px;
    display: inline-flex;
    padding: 6px 16px;
    justify-content: center;
    align-items: center;

    border-radius: 24px;
    border: 1px solid var(--gray-300);
    background: var(--gray-100);
}
.card > figure + div:has(h3){
    gap: 12px;
    z-index: 1;
    display: flex;
    flex-direction: column;
}
.card > figure + div h3{
    font: var(--3XL-Semibold);
    color: var(--gray-700, #36404F);
}
.card > figure + div p{
    font: var(--L-Regular);
    color: var(--gray-500, #828D9E);
}
.card figure{
    z-index: 1;
    position: absolute;
    top: 60px;
      left: 0;
      right: 0;
    width: 100%;
}
.card figure img{
    max-width: 100%;
}

.card div{
    z-index:1;
}

.card.show {
  display: flex;
}
.card:not(.show) {
  display: none;
}

/* #PHILOSOPHY */
.philosophy{
    margin-top: 64px;
    animation-name: slideY;
     animation-duration: 2s;
}

.philosophyCards{
    gap: 24px;
    display: flex;
    flex-wrap: wrap;
    max-width: 1240px;
}

.philosophyCard{
    height: 325px;
    padding: 24px;
    max-width: 390px;
    border-radius: 24px;
    flex: 1 0 calc(33.333% - 24px); /* Adjust the item width and spacing as needed */
    background-color: var(--gray-100);
    border: 1px solid var(--gray-200);
}
.philosophyCard p{
    color: var(--gray-500);
    font: var(--3XL-Regular);
}
.philosophyCard p b{
    color: var(--gray-900);
    font: var(--3XL-Semibold);
}
.philosophyCard.working{
    background: var(--gray-50) url('../assets/images/cards/philosophy/working.png') no-repeat 50% bottom/100%;
}
.philosophyCard.value{
    background: var(--gray-50) url('../assets/images/cards/philosophy/value.png') no-repeat 50% bottom/100%;
}
.philosophyCard.context{
    background: var(--gray-50) url('../assets/images/cards/philosophy/context.png') no-repeat 50% bottom/100%;
}
.philosophyCard.adaptability{
    background: var(--gray-50) url('../assets/images/cards/philosophy/adaptability.png') no-repeat 50% bottom/100%;
}
.philosophyCard.transparent{
    background: var(--gray-50) url('../assets/images/cards/philosophy/transparent.png') no-repeat 50% bottom/100%;
}
.philosophyCard.joint{
    background: var(--gray-50) url('../assets/images/cards/philosophy/joint.png') no-repeat 50% bottom/100%;
}

/* #AVAILABILITY */
.availability{
    margin-top: 48px;
    animation-name: slideY;
     animation-duration: 2.4s;
}

.availability section{
    gap: 32px;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
}

.activity-card{
    gap: 152px;
    display: flex;
    height: 300px;
    padding: 32px;
    flex-direction: column;
    justify-content: space-between;

    flex-basis: calc(25% - 24px);
    align-self: stretch;

    overflow:hidden;

    border-radius: 24px;
    border: 1px solid var(--gray-100, #F1F3F6);
    background: var(--white, #FFF);
    transition: 0.5s box-shadow;
    box-shadow: 0px 40px 32px -28px rgba(1, 2, 3, 0.05);
}
.activity-card:hover{
    box-shadow: 0px 12px 32px -28px rgba(1, 2, 3, 0.05);
}
.activity-card h2{
    font: var(--3XL-Semibold);
    color: var(--gray-700, #36404F);
}
.activity-card div{
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.activity-card div p{
    font: var(--L-Regular);
}

.activity-card.done{
    animation: glowing-grow 5s infinite;
    box-shadow: 0px 12px 32px -28px rgba(106, 129, 242, 0.05);
}

@keyframes glowing-grow {
  0% {
    background: url('../assets/images/cards/done-bg.png') no-repeat 50% bottom/100%;
  }

  50% {
   background: url('../assets/images/cards/done-bg.png') no-repeat 50% bottom/180%;
  }

  100% {
    background: url('../assets/images/cards/done-bg.png') no-repeat 50% bottom/100%;
  }
}

/* #MODAL */
.modal {
    z-index: 2;
  position: fixed;
  top: 43%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 648px;
  max-height: 648px;
  display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;

  opacity: 0; /* Initially hidden */
  visibility: hidden; /* Initially hidden */
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal.show {
  opacity: 1; /* Displayed when the "show" class is added */
  visibility: visible; /* Displayed when the "show" class is added */
}

.modal-content {
    width: 100%;
  padding: 40px;
  border-radius: 24px;
   background-color: var(--white);
   border: 1px solid var(--gray-100);
}
.modal-content header{
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-content.thank{
    width: 648px;
    height: 556px;
     background-color: var(--white); /* Set the desired background color */
       background-position: 50% bottom;
       background-repeat: no-repeat;
       background-size: 100%;
       text-align: center;
       animation: glowing-growTwo 5s infinite;
}
.thank p{
    margin-top: 16px;
    color: var(--gray-400);
}
.thank h1{
    margin-top: 24px;
}
.thank img{
    width: 78px;
}
.thank figure{
    margin-top: 100px;
}
.thank a {
    display: inline-block;
    width: auto;
    font-style: inherit;
    text-underline-offset: 0;
    text-decoration: none;
    cursor: pointer;
}

@keyframes glowing-growTwo {
    0% {
        background-image: url('../assets/images/cards/done-bg.png');
    background-size: 120%;
    }

    50% {
        background-image: url('../assets/images/cards/done-bg.png');
    background-size: 180%;
    }

    100% {
        background-image: url('../assets/images/cards/done-bg.png');
    background-size: 120%;
    }
}

label {
  gap: 8px;
  width: 100%;
  display: flex;
  flex-direction: column;
}

input, textarea, select{
    border-radius: 8px;
    font: var(--L-Regular);
    border: 1px solid var(--gray-300);
}
input:focus, textarea:focus, select:focus{
    border: 1px solid var(--primary-500);
}

input, select {
  width: 100%;
  min-height: 44px;
  padding-left: 8px;
  padding-right: 8px;
}

textarea {
  width: 100%;
  height: 100px;
  padding: 8px;
  resize: none; /* Allows both vertical and horizontal resizing */
  box-sizing: border-box; /* Includes padding and border in the total height/width */
}

.budgetInput div{
    display: flex;
    gap: 8px;
}
.budgetInput div #currency{
    width: 56px;
    padding-left: 4px;
    padding-right: 0;
}
.budgetInput div #budget{
    padding-left: 8px;
}

.inputContainer{
    gap: 32px;
    display:flex;
    margin-bottom: 32px;
}
.inputContainer div{
    width: 100%;
}

.contactInfo{
    gap: 32px;
    display: flex;
    margin-top: 32px;
    align-items: center;
}
.contactInfo div{
    width: 100%;
}

.personal{
    margin-bottom: 32px;
}

.main-button{
    color: var(--white);
    margin-top: 40px;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.2s;
    background-color: var(--gray-900);
}
.main-button:hover{
    background-color: var(--primary-400);
}
.main-button:active{
    background-color: var(--primary-700);
}

.close-button{
    font: var(--L-Regular);
    color: var(--error-600, #CF212C);
    transition: color 0.5s;
}
.close-button:hover{
    color: var(--error-900, #390B0E);
}

@keyframes fadeOut {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-100%);
  }
}

@keyframes rollText {
  0% {
    transform: translateY(0%);
  }
  100% {
    transform: translateY(-200%);
  }
}

/* Animation for opening the modal */
@keyframes modal-open {
  from {
    opacity: 0;
    transform: translate(-50%, -55%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

/* Animation for closing the modal */
@keyframes modal-close {
  from {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
  to {
    opacity: 0;
    transform: translate(-50%, -45%);
  }
}

/* Styles for the background */
.background {
    z-index:1;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(1, 2, 3, 0.5);
  backdrop-filter: blur(22px);
  opacity: 0; /* Initially hidden */
  visibility: hidden; /* Initially hidden */
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.background.show {
  opacity: 1; /* Displayed when the "show" class is added */
  visibility: visible; /* Displayed when the "show" class is added */
}

/* Animation for fading in the background */
@keyframes background-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Animation for fading out the background */
@keyframes background-fade-out {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}


/* #FOOTER */
footer{
	gap: 24px;
	display: flex;
	margin-top: 64px;
	align-items: center;
	flex-direction: column;

	animation-name: slideY;
  animation-duration: 2.8s;

    border-top: 1px solid var(--gray-200);
}
footer p {
	color: var(--black-lighter);
}
footer p.sociaLinks{
	margin-top: 64px;
}
footer a {
	color: var(--black)
}
footer a img{
	width: 8px;
	transition: all 0.2s;
}
footer section{
	gap: 8px;
	display: flex;
	align-items: center;
	flex-direction: column;
	margin-bottom: 64px;
}

@media screen and (max-width: 1170px) {
	.card {
        flex-basis: calc(50% - 16px);
	}
	.activity-card{
	   flex-basis: calc(50% - 16px);
	}
	.philosophyCard{
        flex: 1 0 calc(50% - 16px);
	}
}

@media screen and (max-width: 1000px) {
	.home{
		padding: 0;
	}
	.grid{
		gap: 24px;
	}
	header:has(figure), .introduction, main, footer, .button-group, .philosophyCards {
		padding: 0 24px;
	}
	header:has(figure){
	   margin-top: 24px;
		font-size: 18px;
	}

	.opener{
	   margin-left: 24px;
	}

	.availability section{
        margin: 0 24px;
	}

	.button{
		text-align: center;
		padding: 16px 32px;
	}
	.button-group {
		overflow-x: scroll;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;

		-ms-overflow-style: none;
		scrollbar-width: none;
	}
	.button-group::-webkit-scrollbar {
		display: none;
	}

	/* #MODAL */
    .modal {
        top: 40%;
        max-width: 1000px;
    }
    .modal-content{
        width: 70vw;
    }
}

@media screen and (max-width: 800px) {
	.card {
        flex-basis: calc(100%); /* Adjust the width based on your needs */
	}

	.activity-card{
	   flex-basis: calc(100%);
	}

	.modal {
        top: 44%;
    }
	.modal-content{
        width: 90vw;
        padding: 24px;
    }
   	.modal-content.thank{
        width: 90vw;
           max-width: 648px!important;
	}

	.philosophyCard{
        flex: 1 0 calc(50% - 16px);
	}
}

@media screen and (max-width: 700px) {
	.philosophyCard{
	    height: 400px;
	    max-width: 60vw;
        flex: 1 0 calc(100%);

	}
}

@media screen and (max-width: 606px) {
	.philosophyCard{
	    height: 370px;
	    max-width: 100vw;
        flex: 1 0 calc(100%);
	}
}



@media screen and (max-width: 414px) {
    .modal{
        top:50%;
        max-height: 100%;
    }
    .modal.show > body{
        overflow: hidden;
    }
	.modal-content{
        width: 100vw;
        padding: 24px;
        border-radius: 0;
        height: 100vh;
    }
   	.modal-content.thank{
        width: 100vw;
        border-radius: 0;
        height: 100vh;
	}

	.main-button{
	   margin-top: 32px;
        padding: 12px 32px;
        width: 100%;
        box-sizing: border-box;
        text-align: center;
	}

	hr{
	   display:none;
	}

	.personal{
	   margin-top: 16px;
	}

	textarea {
        height: 75px;
    }

    .opener{
        gap: 4px;
        flex-direction: column-reverse;
    }

}
