/* Author - ravzzy */
@font-face {
	font-family: 'Lucidity Expand';
	/* Define a name for your font */
	src: url('../fonts/lucidity-expand.ttf') format('truetype');
	/* Path to your TTF font */
}

@font-face {
	font-family: 'Capraia SemiBold';
	/* Define a name for your font */
	src: url('../fonts/Capraia-SemiBold.otf') format('truetype');
	/* Path to your TTF font */
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	font-size: 8px;
	/* Root font size */

}

:root {
	--nav-bg-color: black;
	--nav-text-color: black;
	--nav-hover-color: white;
	--footer-text-color: black;
	--primary-background-color: #e61618;
	--secondary-background-color: #f1f1f1;
	--tile-background-color: #f1c47c;
	--final-background-color: rgb(23, 16, 16);
	--body-text-font: 'Noto Sans JP', sans-serif;
	--header-text-font: "Bebas Neue", sans-serif;
	--header2-text-font: 'Notable', sans-serif;
	--header-h3-text-font: 'Capraia SemiBold', sans-serif;
	--brand-text-font: 'Lucidity Expand', sans-serif;
	--default-text-font: 'Noto Sans KR', sans-serif;
	--section-p-text-font: 'Schelter Grotesk NF W01 Rg';


	/* Default color */
	/* Default hover effect */
}

body {
	height: 100%;
	overflow-x: hidden !important;
	font-family: var(--default-text-font);
	text-transform: uppercase;
	background-color: #f1f1f1;
}


.Header-swimlane {
	background-color: var(--secondary-background-color);
	padding: 1vh 0;
	width: 100%;
	position: fixed;
	top: 0;
	left: 0;
	text-align: center;
	display: flex;
	justify-content: center;
	align-items: center;
	height: 9vh;
	z-index: 4;
	/* Keep swimlane above the header */
	transition: transform 0.3s ease-out;
	border: 0.5px solid grey;
}

.Header-swimlane-Text {
	font-family: var(--brand-text-font);
	color: black;
	font-size: 1.7rem;
	width: auto;
	font-weight: 600;
	position: fixed;
	top: 3%;
	left: 8%;
	z-index: 5;
}

.logo-link {
	z-index: 10;
	position: fixed;
}

.topper {
	visibility: hidden;
	min-height: 9vh;
	background-color: black;
}


.final h1 {
	margin-top: 10px;
	text-transform: none;
	font-family: var(--header-h3-text-font);
	font-size: 4rem;
	margin-bottom: 0px;
	position: relative;
	color: white;
	font-weight: 700;
}

.final h1::after {
	content: '';
	display: block;
	width: 80px;
	height: 4px;
	background: var(--primary-background-color);
	margin: 10px auto;
	border-radius: 2px;
}

.accordion {
	margin-left: 4.5vh;
	min-width: 50%;
}

.item {
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
	font-family: var(--header-h3-text-font);
	font-weight: 400;
	/* Softer border */
	padding: 7px;
	max-width: 50vw;
	margin-bottom: 5px;
	background: white;
	border-radius: 8px;
	/* Rounded corners */
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
	/* Subtle shadow */
	transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
	text-transform: none;
}

.item:hover {
	/*background: rgba(0, 0, 0, 0.02);*/
	background: white;
	box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
	/* Hover effect */
	transform: translateY(-2px);
	/* Lift effect */
}

.title {
	font-size: 1.8rem;
	margin-left: 15px;
	color: #333;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.icon {
	font-size: 3rem;
	font-weight: 300;
	transition: transform 0.3s ease;
}

.active .icon {
	transform: rotate(45deg);
}

.content {
	font-family: var(--section-p-text-font);
	font-size: 2rem;
	color: #555;
	/* Softer text color */
	line-height: 1.6;
	/* Better readability */
	padding-top: 10px;
}

/* Ensure content is initially hidden */
.item .content {
	max-height: 0;
	opacity: 0;
	overflow: hidden;
	transition:
		max-height 0.5s ease-out,
		opacity 0.5s ease-out;
	padding: 0 15px;
	/* Adjust padding to match your design */
}

/* Active state (when clicked) */
.item.active .content {
	max-height: 500px;
	/* Adjust based on your content's max height */
	opacity: 1;
	padding: 15px;
	/* Match initial padding */
}

/* Fading effect */
.accordion:hover .title {
	opacity: 0.3;
}

.accordion .item:hover .title {
	opacity: 1;
}

.footer-branding {
	position: relative;
	color: white;
	padding-top: 5vh;
	text-align: center;
}

.designer-footer a {
	color: white;
}

/* Responsive Styles */
@media (max-width: 768px) {

	html,
	body {
		overflow-x: hidden !important;
		width: 100%;
	}

	body {
		overflow-x: hidden !important;
	}

	.topper {
		min-height: 5vh;
	}

	.final h1 {
		font-size: 2.5rem;
		width: 80%;
		font-weight: 700;
	}


	h1 {
		word-wrap: break-word;
		/* Allow word wrapping */
		word-break: break-word;
		/* Break long words if needed */
		font-size: 5vw;
		/* Make the font size responsive to viewport width */
		word-wrap: break-word;
		/* Ensure long words wrap */
		word-break: break-word;
		/* Break long words to prevent overflow */
		width: 100%;
		/* Ensure the h1 element doesn't overflow */
		text-align: center;
		margin-left: 4.5vh;
		padding: 0 1rem;
		/* Add some padding to ensure text doesn't touch the edges */
		box-sizing: border-box;
		/* Ensures padding is included in element's total width */

	}

	.item {
		max-width: 90vw;
	}

	.accordion {
		width: 80%;
	}

	.footer-branding {
		margin-left: 4.5vh;

	}


}


p a {
	color: #e61618;
	/* Change text color */
	text-decoration: none;
	/* Remove underline */
	font-weight: bold;
}

p a:hover {
	text-decoration: underline;
	/* Add underline on hover */
}


.Header-ticker {
	position: fixed;
	left: 0.1%;
	top: 0;
	/*width: 3.5vw;*/
	width: 10vh;
	height: 100%;
	border-right: 0.01vw solid #c2c2c2;
	background-color: #f1f1f1;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	justify-content: center;
	z-index: 3;
}

/* Ticker Container */
.ticker-container {
	position: relative;
	height: 100%;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-transform: none;
}

.ticker-wrapper {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.ticker-text {
	will-change: transform;
	font-size: 1.8rem;
	font-weight: 600;
	color: black;
	transform: rotate(-90deg);
	white-space: nowrap;
	align-items: center;
	justify-content: center;
}



.logo-wrapper {
	position: fixed;
	/*width: 3.65vw;*/
	width: 10.4vh;
	height: 9vh;
	z-index: 10;
}

.logo-image {
	background-image: url('../images/rooting_research_transparent.webp');
	background-size: cover;
	/* Ensures the image covers the entire div */
	background-repeat: no-repeat;
	/* Ensures no repetition of the image */
	background-position: center;
	/* Centers the image within the div */
	position: absolute;
	width: 100%;
	/* Ensures the image takes up the full width of the wrapper */
	height: 100%;
	/* Ensures the image takes up the full height of the wrapper */
	transform: scale(1);
	opacity: 1;
}


/*Navbar code starts here */
/* Transparent Navbar */
/* Navbar container */

nav {
	padding: 1em;
	display: flex;
	justify-content: space-between;
}

nav div {
	font-size: 1.5rem;
	font-weight: 300;
}


nav a {
	/* Navbar links */
	/*background-color: var(--nav-bg-color);*/
	color: var(--footer-text-color);
	background-color: transparent;
	/*padding: 0.25em 0.75em;*/
	/*border-radius: 5em;*/
	/*color: #f1f1f1;*/
	text-decoration: none;
	margin-inline-start: 0.5em;
}

.navbar {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	/*background: rgba(255, 255, 255, 0.1); */
	/* Transparent */
	/* backdrop-filter: blur(10px); */
	/* Glass effect */
	padding: 1.2vw 1.2vw;
	display: flex;
	justify-content: flex-end;
	/* Moves everything to the right */
	align-items: center;
	opacity: 0;
	z-index: 10;
}

/* Navigation Menu */
.nav-menu {
	list-style: none;
	padding: 0;
	margin-right: 4rem;
	display: flex;
	gap: 0.1vw;
}

.nav-menu li {
	position: relative;
}

.nav-menu li:hover>a {
	color: #e61618 !important;
	/* Change this to any color you like */
}

/* Menu Items */
.nav-menu a {
	text-decoration: none;
	/*background-color: var(--nav-bg-color);*/
	background-color: transparent;
	/* Removes background */
	color: var(--nav-text-color) !important;
	/* Ensure text color updates */
	/*color: white;*/
	font-size: 1.5rem;
	font-weight: 500;
	/*padding: 0.7vw 1vw;
	transition: background 0.3s, color 0.3s;*/
	padding: 0.5rem;
	/* Removes padding */
	transition: color 0.3s;
	/* Just transition the color */
}

/* Hover Effect */
.nav-menu a:hover {
	/*background: var(--nav-hover-color);*/
	/* Adjust hover background */
	color: var(--nav-bg-color);
	/* Use dynamic color */
	/*background: rgba(0, 0, 0, 0.06);
	color: black;*/
	border-radius: 5em;
}

/* Dropdown Menu */

/* Show Dropdown on Hover */

/* Dropdown Items */

/* Change color on hover */

.shuffle-text span {
	display: inline-block;
	position: relative;
}

.designer-footer {

	position: fixed;
	bottom: 1vh;
	/* Adjust spacing from bottom */
	right: 0%;
	/* Adjust spacing from right */
	transform: scale(0.7);
	opacity: 0;
	z-index: 3;
	color: var(--footer-text-color);
	/* Apply the dynamic text color */

}

section {
	min-height: 100dvh;
}

canvas {

	display: block;
	/* Removes inline spacing issues */
	width: 100vw;
	/* Covers full screen width */
	height: 100vh;
	/* Covers full screen height */
	position: fixed;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	/* Ensures it's centered */
	background-color: transparent;
	z-index: -100;
	touch-action: none;
	/* Prevents unwanted scrolling on touch screens */

}

.page {
	padding-inline: 2em;
	display: flex;
	flex-direction: column;
	gap: 1em;
}

.loader {
	z-index: 9999;
	/* Ensure it's on top */
}

body.loading .loader {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	background-color: #f1f1f1;
}

.loader img {
	width: 15rem;
}


section>.title {
	color: rgb(255, 255, 255);
	text-align: center;
	padding: 4em 2em;
}

.final>.title {
	padding-block-end: 0;
}

.final {
	/*background: linear-gradient(135deg, #f9f9f9 0%, #ffffff 100%);*/
	width: 100%;
	min-height: 91vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background: url('/images/services-bg.jpeg') no-repeat center center/cover;

	/*background: url('https://images.unsplash.com/photo-1541746972996-4e0b0f43e02a?q=80&w=2670&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2069&q=80') no-repeat center center/cover; */
}

@keyframes marquee {
	from {
		translate: 0% 0;
	}

	to {
		translate: -100% 0;
	}
}


@media (orientation: landscape) {
	/* Desktop */

	body {
		overflow-x: hidden !important;
	}

	html,
	body {
		width: 100%;
		max-width: 100%;
		overflow-x: hidden;
	}

	.right {
		translate: 0 50%;
	}

	.right {
		text-align: right;
	}

	.page>.right {
		width: 40%;
	}

	section>.title {
		padding-block: 5em;
	}



}

@media (orientation: portrait) {
	/* Mobile */


	body {
		overflow-x: hidden;
		/* Prevents horizontal scrolling */
		touch-action: pan-y;
		/* Ensures smooth vertical scrolling */
	}

	.final {
		width: 100%;
	}

	.Header-swimlane {
		height: 5vh;
	}

	.Header-swimlane-Text {
		font-size: 1.2rem;
		font-weight: 600;
		top: 1.5%;
		left: 15%;

	}

	/* hide the cross button */

	.change .line-1,
	.change .line-2,
	.change .line-3 {
		transform: none !important;
		opacity: 1 !important;
		visibility: visible !important;
	}

	.logo-wrapper {
		width: 5.05vh;
		height: 5vh;
	}

	.navbar {
		display: none;
		/* Completely hides the navbar on mobile */
	}

	.Header-ticker {
		width: 5vh;

	}


	/* footer-message text */

	.page .right {
		/* Correct way to target <div class="right"> inside .page */
		margin-top: 5em;
	}

	.designer-footer {
		bottom: 5px;
		/* Adjust spacing from bottom */
		right: 0%;
		/* Adjust spacing from right */
		opacity: 0;
		transform: scale(0.5);
	}

	#form {
		display: none !important;
		/* Hides the contact us form */
	}

}