@font-face {
    font-family: 'Akaya Kanadaka';
    src: url(../font/AkayaKanadaka-Regular.ttf);
}
@font-face {
    font-family: 'Inter';
    src: url(../font/Inter-Regular.ttf);
}
@font-face {
    font-family: 'Inter';
    src: url(../font/Inter-SemiBold.ttf);
    font-weight: 500;
}
@font-face {
    font-family: 'Inter';
    src: url(../font/Inter-Bold.ttf);
    font-weight: 700;
}

:root {
    --orange: #D95117;
    --white: #fff7ee;
    --black: #1a1a1a;
}

* {
    margin: 0;
    box-sizing: border-box;
}

body {
    color: var(--black);
    font-family: 'Inter', sans-serif;
    background-color: #EDDFCE;
}

a, button {
    font-family: 'Inter', sans-serif;
}

h1 {
    font-family: 'Akaya Kanadaka', sans-serif;
}

#topNav nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 930px;
    margin: 0 auto;
    padding: 1rem 1rem 0;
}

#topNav button {
    position: relative;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    background: none;
}

#topNav button + button {
    margin-left: 1.75rem;
}

#topNav button::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0.25rem;
    width: 0;
    height: 2px;
    background-color: var(--orange);
    transition: width 0.15s ease;
}

#topNav button:hover::before {
    width: calc(100% - 0.5rem);
}

#topNav nav a svg {
    display: block;
    fill: none;
    stroke: var(--black);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.3px;
}

[data-tooltip] {
    position: relative;
}

#tooltip {
    display: none;
    position: absolute;
    z-index: 10;
    padding: 0.25rem 0.5rem;
    color: #f9ad8d;
    font-size: 0.875rem;
    border-radius: 0.25rem;
    white-space: nowrap;
    background-color: var(--black);
}

/* HEADER */
header {
    overflow: hidden;
}

#headerSection {
    position: relative;
    max-width: 930px;
    margin: 4rem auto 5rem auto;
    padding: 0 1rem;
}

#headerNameContainer {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-flow: row wrap;
    margin-bottom: 7rem;
    text-transform: uppercase;
}

header h1 {
    margin: 0;
    font-size: 6.5rem;
    font-size: clamp(2rem, 10vw, 7rem);
    color: var(--orange);
}

header h1 span {
    display: block;
    margin-left: 8%;
}

header p {
    width: 100%;
    font-size: 1.25rem;
    line-height: 2rem;
}

header p + p {
    margin-top: 1.25rem;
}

#circleTextContainer {
    position: relative;
    margin: 0 150px 0 auto;
}

#circleText {
    display: block;
    width: 300px;
    height: auto;
    fill: var(--black);
    transform-origin: center;
    animation: circleTextRotation 45s linear infinite;
}

@keyframes circleTextRotation {
    100% {
        transform: rotate(360deg);
    }
}

#circleTextContainer img {
    position: absolute;
    right: -50%;
    bottom: -25%;
    z-index: 1;
    border-radius: 50%;
    border: 9px solid #d1c2b0;
}

#circleTextContainer::before {
    content: "";
    position: absolute;
    right: -50%;
    bottom: -25%;
    z-index: 1;
    width: calc(100% - 18px);
    height: calc(100% - 18px);
    border-radius: 50%;
    background-color: #d1c2b0;
}

#shape1 {
    position: absolute;
    top: -4%;
    left: -29%;
    z-index: -1;
    width: 40%;
}

#shape2 {
    position: absolute;
    right: -9%;
    bottom: 10%;
    z-index: -1;
}

/* WORK LIST */
#workSection {
    margin-top: -14vw;
    color: var(--white);
}

#workTopShape {
    display: block;
    z-index: -1;
    width: 100%;
    fill: var(--black);
    transform: translateY(1px);
}

#workSection > div {
    background-color: var(--black);
}

#work {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 1rem 2rem 1rem;
}

#work h2 {
    padding: 1.5rem 0 1.5rem;
    font-size: 3.5rem;
}

#workList {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
	align-items: flex-start;
    min-height: 683px;
}

.work-list-column > div {
    padding: 1rem 1rem 1.25rem;
    border-radius: 2rem;
    overflow: hidden;
    cursor: pointer;
    background-color: #2e2e2e;
}

.work-list-column > div + div {
    margin-top: 2rem;
}

.work-list-image-container {
	display: grid;
	grid-template-rows: 1fr;
    transition: grid-template-rows 0.4s ease;
}

/*#workList:not(:has(:hover)) > div:first-of-type .work-list-image-container {
	grid-template-rows: 1fr;
}*/

.work-list-image-container div {
	overflow: hidden;
	grid-row: span 2;
	border-radius: 1rem 1rem 0.375rem 0.375rem;
}

.work-list-image-container img {
	display: block;
    width: 100%;
    height: auto;
	border-radius: inherit;
}

.work-list-column > div:hover .work-list-image-container {
	grid-template-rows: 1fr;
}

#workList h3 {
    margin: 1rem 0 0.75rem;
}

#workList p {
	margin: 0 0 0.5rem;
    color: #bbbbbb;
    line-height: 1.5rem;
}

#workList span {
	color: teal;
	font-size: 0.875rem;
}

/* work CAROUSEL */
body:has(#workCarousel.open) {
	overflow: hidden;
}

#workCarousel {
    display: none;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
}

#workCarousel.open {
	display: flex;
    animation: carousel-open 0.4s forwards;
}

#workCarouselCloseButton {
	position: absolute;
	top: 0.5rem;
	right: 0.5rem;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border: none;
	background-color: #fff;
}

#workCarouselCloseButton svg {
    pointer-events: none;
}

#workCarouselButtons {
	position: absolute;
	bottom: 1.5rem;
	display: flex;
	justify-content: space-between;
    z-index: 1;
	width: calc(100% - 1rem);
	max-width: 1240px;
    pointer-events: none;
}

#workCarouselButtons button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border: none;
	cursor: pointer;
    pointer-events: all;
	background-color: #fff;
	transition: transform 0.25s, box-shadow 0.25s, background-color 0.1s;
}

#workCarouselNextButton svg {
	transform: rotate(180deg);
}

#workCarouselPrevButton:hover {
	transform: translateX(-6px);
	box-shadow: 0 3px 6px 2px rgb(0 0 0 / 30%);
}
#workCarouselNextButton:hover {
	transform: translateX(6px);
	box-shadow: 0 3px 6px 2px rgb(0 0 0 / 30%);
}

#workCarouselButtons button:active {
	background-color: #eaeaea;
}

#workSlides {
	position: relative;
	width: 100%;
    height: 100%;
	max-width: 1080px;
}

.work-slide {
	--slide-translate: -120%;
	display: none;
	flex-direction: column;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	max-height: 100%;
	padding: 1.5rem 1rem 0.5rem;
	overflow-y: auto;
    background-color: #f1f1f1;
}

.work-slide > div:first-of-type {
    display: grid;
    gap: 0.5rem;
    grid-template-columns: 1fr;
    margin-bottom: 1rem;
}

.work-description > div {
    margin-bottom: 1rem;
}

.work-description h2 {
    font-size: 1.75rem;
}

.work-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.5rem;
}

.work-link span {
    padding: 0.25rem 0.5rem;
    color: #0e5f7f;
    font-size: 13px;
    font-weight: 500;
    line-height: normal;
    border-radius: 12px;
    background-color: #fff;
}

.work-link a {
    color: #0e5f7f;
    font-size: 0.875rem;
}

.work-slide p {
    line-height: 1.375rem;
    margin-bottom: 1.25rem;
}

.work-slide h3 {
    margin-bottom: 0.675rem;
    font-size: 1.125rem;
}

.work-slide ul + h3 {
    margin-top: 2rem;
}

.work-slide h4 {
    margin-bottom: 0.675rem;
    font-size: 1rem;
}

.work-description ul {
    padding-left: 1.25rem;
}

.work-description ul li {
    margin-bottom: 1rem;
}

.work-tech ul {
    display: flex;
    gap: 0.375rem;
    flex-flow: row wrap;
    padding-left: 0;
    list-style-type: none;
}

.work-tech ul li {
    display: inline;
    padding: 0.25rem 0.5rem;
    color: #6e3923;
    font-size: 13px;
    font-weight: 500;
    border-radius: 12px;
    background-color: #ffdaca;
}

.work-slide img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 1rem auto;
}

.mobile-images {
    display: flex;
    gap: 2rem;
    flex-flow: row wrap;
    justify-content: center;
    margin: 1rem auto;
}

.mobile-images img {
    margin: 0;
}

.work-slide.active {
	display: flex;
	animation: slide-in 0.4s forwards;
}

.work-slide.slide-up {
	animation: slide-up 0.4s forwards;
}

.work-slide.inactive {
	animation: slide-out 0.4s forwards;
}

/* next slide comes in from right, current slide goes out to right */
.work-slide.inactive + .active, .work-slide.active + .inactive {
	--slide-translate: 120%;
	/* background-color: red; */
}

/* (prev) if active is on the left, inactive slides out to right
.work-slide.active + .inactive {
	background-color: blue;
} */

.work-slide:first-of-type:not(:has(+ .active)) {
	--slide-translate: 120%;
	/* background-color: purple; */
}

@keyframes carousel-open {
    0% {
        background-color: rgba(0, 0, 0, 0);
    }
    100% {
        background-color: rgba(0, 0, 0, 0.7);
    }
}

@keyframes slide-in {
	0% {
		opacity: 0;
		transform: translateX(var(--slide-translate));
	}
	100% {
		opacity: 1;
		transform: translateX(0%);
	}
}

@keyframes slide-out {
	100% {
		opacity: 0;
		transform: translateX(var(--slide-translate));
	}
}

@keyframes slide-up {
	0% {
		opacity: 0;
		transform: translateY(30%);
	}
	100% {
		opacity: 1;
		transform: translateY(0%);
	}
}

/* ABOUT */
#aboutSection {
    position: relative;
    padding: 6vw 1rem 1rem;
    color: var(--white);
    background-color: #2e2e2e;
}

#aboutTopShape {
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    fill: var(--black);
}

#about {
    position: relative;
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    scroll-margin-top: 1.5rem;
}

#aboutSection h2 {
    margin-bottom: 2rem;
    font-size: 3.5rem;
}

#aboutText {
    width: 80%;
    margin: 0 auto;
    font-size: 1.125rem;
    line-height: 1.75rem;
}

#aboutText p + p {
    margin-top: 2rem;
}

#about li {
    margin-top: 0.75rem;
}

#about li a {
    color: #f9ad8d;
}

#aboutLinks {
    margin: 2.5rem 0;
    text-align: center;
}

#aboutLinks a + a {
    margin-left: 1rem;
}

#shape3 {
    display: block;
    margin: 2rem auto 1rem auto;
}


footer {
    padding: 2rem 1rem;
    text-align: center;
    font-size: 0.875rem;
    color: #c8c8c8;
    background-color: #373737;
}

@media (min-width: 600px) {
	#workList {
		grid-template-columns: 1fr 1fr;
	}

	.work-list-image-container {
		grid-template-rows: 0fr;
	}
}

@media (min-width: 768px) {
    #headerSection {
        margin-bottom: 3rem;
    }

    #headerNameContainer {
        margin-bottom: 2.5rem;
    }

    header p {
        width: 65%;
        margin-left: 1.5%;
        font-size: 1.5rem;
        line-height: 2.5rem;
    }

    #work {
        padding-bottom: 0;
    }

	#workSlides {
		width: 80%;
		height: 80%;
	}

	#workCarouselCloseButton {
		display: none;
	}

	#workCarouselButtons {
		top: 50%;
		bottom: auto;
		width: calc(80% + 128px);
		transform: translateY(-50%);
	}

	#workCarouselButtons button {
		border-radius: 50%;
	}

	.work-slide {
        padding: 2rem 2.5rem;
	}

    .work-slide > div:first-of-type {
        gap: 2.25rem;
        grid-template-columns: 3fr 1fr;
    }

    .work-description > div {
        display: grid;
        grid-template-columns: auto 1fr;
    }

    .work-description h2 {
        display: inline-block;
        margin-right: 0.75rem;
    }

    .work-link {
        display: inline-flex;
        width: 100%;
        margin-top: 0;
    }

    .work-tech ul {
        gap: 0.5rem;
        flex-direction: column;
    }

    .work-tech ul li {
        width: fit-content;
    }
}