/*FONTS*/
@font-face {
    font-family: 'SaharaScrolls';
    src: url('fonts/Sahara Scrolls.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Ironfist';
    src: url('fonts/Ironfist.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

.inter {
  font-family: "Inter", sans-serif;
  font-optical-sizing: auto;
  font-weight: weight;
  font-style: normal;
}

.sora {
  font-family: "Sora", sans-serif;
  font-optical-sizing: auto;
  font-weight: weight;
  font-style: normal;
}

.logo {
    margin-left: 30px;
    margin-top: 10px;
	font-family: Sora, Inter, Arial, Helvetica, sans-serif;
}

nav {
    top: 0;
    transition: all 600ms ease-in-out;
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    transition: all 600ms ease-in-out;
    background-color: hsl(0, 0%, 0%);
}


ul {
    margin: 0;
    padding: 40px;
    display: flex;
    justify-content: flex-end;
    list-style-type: none;
}

li {
    margin-right: 30px;
    font-family: Sora, Inter;
    font-weight: 500;
    font-size: 25px;
    text-decoration: none; 
} 
    
li a, .logo a { 
    text-decoration: none; 
    color: hsl(0, 0%, 70%); 
    transition: font-size 0.2s ease, color 0.2s ease;
} 

li a:hover, .logo a:hover { 
    text-decoration: none; 
    color: hsl(0, 0%, 95%); 
    font-size: 115%;
}

.active {
    color: hsl(0, 0%, 95%)
}

/* --- Burger button (hidden on desktop) --- */
.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    margin-right: 20px;
    z-index: 100;
}

.burger span {
    display: block;
    width: 26px;
    height: 2px;
    background-color: hsl(0, 0%, 70%);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Animated X when open */
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
        nav {
        flex-wrap: wrap;
        position: relative;
    }

    .burger {
        display: flex;
    }

    ul {
        display: none;
        flex-direction: column;
        width: 100%;
        padding: 10px 0 20px;
        margin: 0;
    }

    ul.open {
        display: flex;
    }

    li {
        margin: 0;
        padding: 12px 30px;
        font-size: 20px;
    }

    .logo {
        font-size: 2em;
    }
}

:root {
	--padding: 10vmin;
	--color-background: #D0CBC7;
	
	--font-size-large: 8vw;
	--font-size-medium: 4vw;
	--font-size-normal: 2vw;
	
	@media only screen and (min-width: 800px) {
		--font-size-large: 64px;
		--font-size-medium: 32px;
		--font-size-normal: 16px;
	}
	
	@media only screen and (max-width: 500px) {
		--font-size-large: 40px;
		--font-size-medium: 20px;
		--font-size-normal: 14px;
	}
}

html, body {
	margin: 0;
	overflow-x: hidden;
	min-height: 100%;
	min-width: 100%;
	font-family: 'Ironfist', serif;
	background-color: var(--color-background);
	font-weight: 400;
	font-size: var(--font-size-normal);
	overflow-x: hidden;
}

h1 {
		font-family: 'SaharaScrolls', serif;
		font-size: var(--font-size-large);
		margin: 0vmin 0 2vmin 0 ;
		font-weight: 700;
		display: inline-block;
}

h1.white {
	color: rgb(233, 226, 226);
}

h2 {
		font-family: 'Ironfist', serif;
		font-size: var(--font-size-large);
		margin: 0vmin 0 2vmin 0 ;
		font-weight: 400;
}

h2.white {
	color: rgb(233, 226, 226);
}
	
h3	{
		font-size: var(--font-size-medium);
		font-weight: 300;
		margin: 0;
}

p {
		font-size: 35px;
		line-height: 1.5;
}

p.white {
	color: rgb(233, 226, 226);
}

canvas {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 2;
	pointer-events: none;
	
	visibility: hidden;
	opacity: 1;
}

.content {
	position: relative;
	z-index: 1;
	
	/*TRIGGERS*/
	.trigger {
		position: absolute;
		top: 0;
		height: 100%;
	}

	.section-header {
		position: relative;
		padding: var(--padding);
		--pad2: calc(var(--padding) * 2);
		width: calc(100vw - var(--pad2));
		height: calc(100vh - var(--pad2));
		min-height: 400px;
		margin: 0 auto;
		z-index: 2;
		text-align: center;

		background: url("images/Pyramids.jpg") no-repeat top center; 
  		background-size: cover;
		transform-origin: top center;

		h1 {
			font-size: 12em;
		}
	}

	.hieroglyphs {
		background: url("images/Hieroglyphics.jpg") repeat top center; 
  		background-size: cover;
		transform-origin: top center;
	}

	.temple {
		background: url("images/city.jpg") repeat top center; 
  		background-size: cover;
		transform-origin: top center;
	}

	.sky {
		background: url("images/sky.jpg") repeat top center; 
  		background-size: cover;
		transform-origin: top center;
	}
	
	.market {
		background: url("images/market.webp") repeat top center; 
  		background-size: cover;
		transform-origin: top center;
	}

	.night {
		background: url("images/nightsky.jpg") repeat top center; 
  		background-size: cover;
		transform-origin: top center;
	}

	.tomb {
		background: url("images/tomb.jpg") repeat top center; 
  		background-size: cover;
		transform-origin: top center;
	}
	
	.section{
		position: relative;
		padding: var(--padding);
		--pad2: calc(var(--padding) * 2);
		width: calc(100vw - var(--pad2));
		height: calc(100vh - var(--pad2));
		min-height: 400px;
		margin: 0 auto;
		z-index: 2;
		
		&.dark {
			color: white;
			background-color: black;
		}
		
		&.right {
			text-align: right;
		}

		&.center {
			text-align: center;
			margin-left: 50%;
			margin-right: auto;
			transform: translateX(-50%);
		}

		h1 {
			font-size: 5em;
		}

		h2 {
			font-size: 4em;
			font-family: 'Ironfist', serif;
		}
		
		
	}

	.section.auto-height {
		height: auto;
		min-height: unset;
}
	
	.ground-container {
		position: relative;
		overflow: hidden;
		perspective: 2px;
		background-color: #f9d899; 
	}
	
	
	.scroll-cta, .credits {
		position: absolute;
		bottom: var(--padding);
	}	
	
	.scroll-cta {
		font-size: var(--font-size-medium);
		opacity: 0;
	}
	
	.end h2 {
		margin-bottom: 50vh;
	}
	
	.loading {
		position: fixed;
		width: 100vw;
		height: 100vh;
		top: 0;
		left: 0;
		display: flex;
		align-items: center;
		justify-content: center;
		font-size: var(--font-size-medium);
		z-index: 10;
		color: white;
	}

	.trigger-10, .trigger-11, .trigger-17 {
    	max-width: 600px;
	}

	.trigger-13 {
		max-width: 600px;
		margin-left: auto;
	}


}

.section-divider {
    position: relative;
    width: 100vw;
    height: 4px;
    background: transparent;
    z-index: 3;
    margin: 0;
    
    .divider-line {
        position: absolute;
        top: 0;
        left: 0;
        width: 0%;
        height: 100%;
        background: linear-gradient(90deg, transparent, #C9A84C, #FFD700, #C9A84C, transparent);
        box-shadow: 0 0 8px #FFD700, 0 0 20px rgba(201, 168, 76, 0.4);
    }
}


/*IMAGES*/

.pharaohs-portrait {
	border-radius: 10px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 2);
	height: 500px;
	width: auto;
}

.section:has(.trigger-10), .section:has(.trigger-11), .section:has(.trigger-13), .section:has(.trigger-17) {
    display: flex;
    align-items: center;
    gap: 5em;
}

.chamber, .temple, .tribute {
    flex-shrink: 0;
    order: 1;
}

.lunch {
	flex-shrink: 0;
	order: 0;
}
