/* Lenis scroll (for a smooth scroll) */

html.lenis {
	height: auto;
}

.lenis.lenis-smooth {
	scroll-behavior: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
	overscroll-behavior: contain;
}

.lenis.lenis-stopped {
	overflow: hidden;
}

/* Global */

* {
	box-sizing: border-box;
}

@font-face {
	font-family: "Kitto";
	src: url(Fonts/Kitto-PersonalUse.otf);
}

body {
	font-family: "Kitto";
	text-transform: uppercase;
	font-size: 1.5rem;
	overflow-x: hidden;
	cursor: url('Hamster_IP/kursor.png'), auto;
	background-image: url('Hamster_IP/bgu.svg');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	background-attachment: scroll;
	position: relative;
	will-change: auto;
}

/* Content overlay to ensure readability */
body::after {
	content: '';
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(255, 255, 255, 0.7);
	z-index: -1;
	pointer-events: none;
}

/* Custom cursor for all interactive elements */
a,
button,
.hero-btn,
.ca,
.menu-toggle,
.game_weapon,
.card,
.socials-list a,
.pfp_generator_controls_item button {
	cursor: url('Hamster_IP/kursor.png'), pointer;
}

/* Hover state */
a:hover,
button:hover,
.hero-btn:hover,
.ca:hover,
.menu-toggle:hover,
.game_weapon:hover,
.card:hover,
.socials-list a:hover,
.pfp_generator_controls_item button:hover {
	cursor: url('Hamster_IP/kursor.png'), pointer;
}

/* Active/click state */
a:active,
button:active,
.hero-btn:active,
.ca:active,
.menu-toggle:active,
.game_weapon:active,
.card:active,
.socials-list a:active,
.pfp_generator_controls_item button:active {
	cursor: url('Hamster_IP/kursor.png'), pointer;
}

body.no-scroll {
	overflow: hidden;
}

nav {
	position: fixed;
	width: 100%;
	padding: 1rem 2rem;
	display: flex;
	align-items: center;
	border-bottom: 5px solid black;
	background-color: rgba(255, 255, 255, 0.8);
	backdrop-filter: blur(10px);
	height: 90px;
	z-index: 1000;
}

a {
	text-decoration: none;
	color: black;
}

h1 {
	font-size: 6rem;
}

h2 {
	font-size: 4rem;
}

/* Preloader */
#preloader {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: white;
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 10000;
	transition: opacity 0.5s ease-out;
}

#preloader.fade-out {
	opacity: 0;
	pointer-events: none;
}

/* Splash screen */

#splash-screen {
	position: fixed;
	top: 0;
	left: 0;
	bottom: 0;
	width: 100%;
	min-height: 100svh;
	background-color: white;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	z-index: 9999;
	opacity: 0;
	transition: opacity 0.5s ease-in;
}

#splash-screen.loaded {
	opacity: 1;
}

#splash-screen img {
	position: absolute;
	width: 50%;
	/* Ajuste selon ton GIF */
	height: auto;
	margin-bottom: 2rem;
}

#splash-screen button {
	padding: 10px 20px;
	font-size: 2rem;
	cursor: url('Hamster_IP/kursor.png'), pointer;
	position: absolute;
	bottom: 15%;
}

/* Header */

.ca {
	display: flex;
	align-items: center;
	gap: 1rem;
	cursor: url('Hamster_IP/kursor.png'), pointer;
	position: relative;
}

.ca-heading {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.ca-heading img {
	width: 1rem;
	height: 1rem;
}

.tooltip {
	visibility: hidden;
	background-color: #333;
	color: #fff;
	text-align: center;
	padding: 5px;
	border-radius: 4px;
	position: absolute;
	bottom: -45px;
	left: 50%;
	transform: translateX(-50%);
	font-size: 12px;
	opacity: 0;
	transition: opacity 0.3s;
}

.copy-container:hover .tooltip {
	visibility: visible;
}

.show-tooltip {
	visibility: visible;
	opacity: 1;
}

.logo {
	font-size: 2.5rem;
	flex: 1;
}

.socials-list {
	list-style: none;
	display: flex;
	gap: 1rem;
	flex: 1;
	justify-content: end;
	align-items: center;
}

.socials-list img {
	width: 48px;
}

.socials-list a:hover {
	color: orange;
	cursor: url('Hamster_IP/kursor.png'), pointer;
}

.menu-toggle {
	cursor: url('Hamster_IP/kursor.png'), pointer;
	padding: 12px 0;
	margin-left: 2rem;
	display: none;
}

.menu-toggle span {
	position: relative;
	display: block;
	width: 20px;
	height: 3px;
	background: #222;
	transition: all 0.2s ease-in-out;
}

.menu-toggle span:before,
.menu-toggle span:after {
	position: absolute;
	background: #222;
	content: "";
	width: 20px;
	height: 3px;
	transition: all 0.2s ease-in-out;
}

.menu-toggle span:before {
	top: -8px;
}

.menu-toggle span:after {
	top: 8px;
}

.menu-toggle.active span {
	background: transparent;
}

.menu-toggle.active span:before {
	transform: rotate(45deg) translate(5px, 6px);
}

.menu-toggle.active span:after {
	transform: rotate(-45deg) translate(5px, -6px);
}

/* Hero */

.hero {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 6rem;
	padding-top: 9rem;
	position: relative;
}

.hero_heading {
	max-width: 650px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4.5rem;
}

.hero_heading_title {
	position: relative;
	width: fit-content;
}

.hero_poki {
	width: 300px;
}

.hero_anvil {
	width: 200px;
	position: absolute;
	top: 80px;
	left: 5%;
}

.hero-btn {
	background-color: rgba(255, 255, 255, 0.8);
	backdrop-filter: blur(10px);
	font-size: 2.5rem;
	padding: 1rem 2rem;
	will-change: scale;
	transition: transform 0.2s;
	font-family: inherit;
}

.hero-btn:hover {
	color: #49d732;
	cursor: url('Hamster_IP/kursor.png'), pointer;
	transform: scale(1.1);
}

.fun-quote {
	position: absolute;
	bottom: -40px;
	right: 0;
	transform: rotate(-10deg) translate(50%, 50%);
	color: grey;
	font-size: 1.125rem;
}

/* Marquee */

.marquee {
	flex-flow: column;
	justify-content: center;
	align-items: center;
	display: flex;
	padding: 3rem 0;
}

.marquee-advanced {
	width: 100vw;
	position: relative;
	overflow: hidden;
}

.marquee-advanced__scroll {
	will-change: transform;
	width: 100%;
	display: flex;
	position: relative;
}

.marquee-advanced__collection {
	will-change: transform;
	display: flex;
	position: relative;
}

.marquee-advanced__item {
	justify-content: flex-start;
	align-items: center;
	display: flex;
}

.marquee-advanced__item-width {
	margin: 1rem;
}

.marquee-advanced__item-width img {
	width: 200px;
}

/* Game */

.game {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	padding: 4rem 1rem;
}

.game_header {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
}

.game_canva {
	display: flex;
	flex-direction: column;
	gap: 2rem;
	align-items: center;
}

.game_main-img {
	width: 500px;
	height: 500px;
	background-image: url(Hamster_IP/Game/Hamster_game_Base.png);
	background-size: cover;
}

.game_weapons {
	display: flex;
	gap: 1rem;
}

.game_weapon {
	cursor: url('Hamster_IP/kursor.png'), pointer;
}

.game_weapon img {
	width: 150px;
}

.game_weapon:hover img {
	will-change: scale;
	transition: transform 0.1s;
	transform: scale(1.1);
}

#custom-cursor {
	position: fixed;
	left: var(--pos-x);
	top: var(--pos-y);
	transform: translate(-50%, -50%);
	pointer-events: none;
	display: none;
	width: 64px;
	height: 64px;
	z-index: 1000;
}

@keyframes squeeze {
	0% {
		transform: scale(1, 1);
	}

	50% {
		transform: scale(1.1, 0.8);
	}

	/* Effet écrasé */
	100% {
		transform: scale(1, 1);
	}
}

.squeeze {
	animation: squeeze 0.1s ease-in-out;
}

/* Exchanges */

.exchanges {
	display: flex;
	gap: 1rem;
	padding: 4rem;
	position: relative;
}

.exchanges_content {
	display: flex;
	flex-direction: column;
	gap: 5rem;
	width: 60%;
}

.exchanges_heading {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	z-index: 3;
}

.exchanges_list {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}

.exchanges_list li {
	padding-bottom: 1rem;
}

.phantom {
	width: 234px;
	position: absolute;
	left: 45%;
	top: 32px;
}

.exchanges_terminal {
	position: relative;
	padding-left: 200px;
}

.exchanges_terminal-img {
	position: absolute;
	bottom: 0;
	left: 213px;
	transform: translateX(-100%);
	width: 200px;
}

#integrated-terminal {
	border: 10px solid black;
	padding: 1rem;
	border-radius: 1rem;
	background-color: black;
	/* width: 400px; */
	/* height: 568px; */
}

/* PFP Generator */

.pfp_generator {
	display: flex;
	flex-direction: column;
	gap: 2rem;
	padding: 6rem;
	align-items: center;
}

.pfp_generator_heading {
	display: flex;
	text-align: center;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
}

.pfp_generator_btn {
	background-color: rgba(255, 255, 255, 0.8);
	backdrop-filter: blur(10px);
	font-size: 1rem;
	padding: 0.5rem 1rem;
	font-family: inherit;
	cursor: pointer;
	width: 100%;
}

.pfp_generator_canva {
	width: 400px;
	height: 400px;
	border: 5px solid black;
	border-radius: 1rem;
	position: relative;
	background: rgba(255, 255, 255, 0.8);
	backdrop-filter: blur(10px);
	overflow: hidden;
}

.pfp_generator_canva img {
	position: absolute;
	width: 100%;
	height: 100%;
}

.pfp_generator_controls {
	min-width: 30%;
	max-width: 40%;
	display: flex;
	flex-direction: column;
	font-size: 1rem;
	align-items: stretch;
}

.pfp_generator_row {
	display: flex;
	width: 100%;
	gap: 1rem;
}

.pfp_generator_controls_item {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.pfp_generator_controls_item button {
	background-color: rgba(255, 255, 255, 0.8);
	backdrop-filter: blur(10px);
	cursor: url('Hamster_IP/kursor.png'), pointer;
	border: none;
	padding: 0.5rem 0.5rem;
}

.pfp_generator_controls_item button:nth-child(3) {
	transform: rotate(180deg);
}

.pfp_generator_content {
	width: 100%;
	display: flex;
	gap: 1rem;
	align-content: space-between;
	justify-content: center;
	align-items: center;
}

/* Falling anvil */

.falling-anvil {
	position: absolute;
	left: 10%;
	/* Position sur la gauche */
	bottom: 0;
	width: 100px;
	height: 100svh;
}

.falling-anvil img {
	width: 150px;
}

#anvil {
	position: absolute;
	top: -125.33px;
	/* Cache l'enclume en haut de l'écran */
	left: 0;
	height: auto;
	transition: transform 0.5s ease-in, opacity 0.01s ease-in;
	opacity: 0;
}

#squished-hamster {
	position: absolute;
	bottom: 0px;
	left: 0;
	height: auto;
	transition: opacity 0.5s ease-in;
}

/* Flip Cards Section */

.flip-cards {
	padding: 4rem 2rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 3rem;
}

.flip-cards-heading {
	text-align: center;
}

.flip-cards-heading h2 {
	font-size: 4rem;
	margin-bottom: 1rem;
}

.gallery-section {
	padding: 4rem 2rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
}

.gallery-heading {
	text-align: center;
	margin-bottom: 0.5rem;
}

.gallery-heading h2 {
	font-size: 4rem;
	margin-bottom: 0;
}

.flip-cards-container {
	display: flex;
	gap: 2rem;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
}

.card {
	width: 300px;
	height: 200px;
	perspective: 1000px;
}

.card-inner {
	width: 100%;
	height: 100%;
	position: relative;
	transform-style: preserve-3d;
	transition: transform 0.999s;
}

.card:hover .card-inner {
	transform: rotateY(180deg);
}

.card-front,
.card-back {
	position: absolute;
	width: 100%;
	height: 100%;
	backface-visibility: hidden;
}

.card-front {
	background-color: rgba(255, 255, 255, 0.8);
	backdrop-filter: blur(10px);
	color: black;
	display: flex;
	align-items: center;
	border-style: solid;
	border-width: 10px 10px 10px 10px;
	border-image: url(DoodleCSS-main/border.svg) 10 10 10 10 stretch stretch;
	border-radius: 10px;
	justify-content: center;
	font-size: 24px;
	transform: rotateY(0deg);
	padding: 0;
	overflow: hidden;
}

.card-back {
	background-color: rgba(255, 255, 255, 0.8);
	backdrop-filter: blur(10px);
	color: black;
	display: flex;
	align-items: center;
	border-style: solid;
	border-width: 10px 10px 10px 10px;
	border-image: url(DoodleCSS-main/border.svg) 10 10 10 10 stretch stretch;
	border-radius: 10px;
	justify-content: center;
	font-size: 24px;
	transform: rotateY(180deg);
	padding: 0;
	overflow: hidden;
}

.card-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	text-align: center;
}

.card-content i {
	font-size: 3rem;
	color: black;
}

.card-content p {
	margin: 0;
	font-size: 1.2rem;
	font-weight: bold;
}

.card-front img,
.card-back img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 5px;
	display: block;
}

footer {
	padding: 6rem 4rem 4rem 4rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 3rem;
	position: relative;
	margin-bottom: 0;
	overflow: hidden;
	min-height: 300px;
	background-image: url('Hamster_IP/bg.svg');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	justify-content: flex-end;
}

.footer-content {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
	width: 100%;
	margin-bottom: 2rem;
	margin-top: 0.1rem;
}

.footer-socials {
	display: flex;
	gap: 1rem;
	align-items: center;
	justify-content: center;
	margin-top: 4rem;
}

.footer-socials img {
	width: 48px;
	height: 48px;
}

.footer-socials a:hover {
	transform: scale(1.1);
	transition: transform 0.2s ease;
}

footer p {
	max-width: 900px;
}

.flip-cards-marquee {
	width: 100vw;
	overflow: hidden;
	background: none;
	margin-bottom: 1.5rem;
	margin-top: 1rem;
	position: relative;
	left: 50%;
	right: 50%;
	transform: translateX(-50%);
}

.marquee-row {
	overflow: hidden;
	margin-bottom: 0.5rem;
}

.marquee-container-left {
	display: flex;
	width: max-content;
	animation: marquee-scroll-left 15s linear infinite;
	will-change: transform;
}

.marquee-container-right {
	display: flex;
	width: max-content;
	animation: marquee-scroll-right 15s linear infinite;
	will-change: transform;
}

.marquee-text {
	display: inline-block;
	white-space: nowrap;
	font-size: 2.2rem;
	font-weight: bold;
	color: black;
	letter-spacing: 2px;
	font-family: inherit;
	padding-right: 50px;
}

@keyframes marquee-scroll-left {
	0% {
		transform: translateX(0);
	}

	100% {
		transform: translateX(-50%);
	}
}

@keyframes marquee-scroll-right {
	0% {
		transform: translateX(-50%);
	}

	100% {
		transform: translateX(0);
	}
}

/* Responsive tablet */

@media (max-width: 992px) {
	.hero_anvil {
		width: 150px;
		left: 0%;
	}

	.ca-data {
		display: none;
	}

	.marquee-advanced__item-width img {
		width: 150px;
	}

	.game_weapon img {
		width: 100px;
	}

	.exchanges {
		flex-direction: column;
		padding: 3rem;
	}

	.exchanges_content {
		width: 100%;
	}

	.phantom {
		right: 0;
		left: auto;
	}

	footer {
		padding: 6rem 3rem 8rem 3rem;
	}
}

/* Responsive mobile */

@media (max-width: 767px) {
	body {
		font-size: 1rem;
	}

	.pfp_generator_controls {
		width: 100%;
		max-width: 100%;
		margin-top: 1rem;
		display: flex;
		flex-direction: column;
		gap: 1rem;
		font-size: 1rem;
	}

	.pfp_generator_content {
		display: block;

	}

	h1 {
		font-size: 4rem;
	}

	h2 {
		font-size: 3rem;
		text-align: center;
	}

	.hero {
		padding: 8rem 1rem 6rem 1rem;
	}

	.hero-btn {
		font-size: 1rem;
		padding: 0.5rem 1rem;
	}

	.fun-quote {
		font-size: 1rem;
	}

	.menu-toggle {
		display: block;
	}

	.socials-list {
		display: none;
		flex-direction: column;
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100vh;
		background: white;
		justify-content: center;
		align-items: center;
		gap: 2rem;
		box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
		margin-top: 90px;
	}

	.socials-list.active {
		display: flex;
	}

	.hero_anvil {
		width: 100px;
	}

	.ca-data {
		display: none;
	}

	.marquee-advanced__item-width img {
		width: 100px;
	}

	.game_main-img {
		width: 100%;
		aspect-ratio: 1 / 1;
		height: auto;
	}

	.game_weapons {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		gap: 1rem;
	}

	.game_weapon img {
		width: 75px;
	}

	.exchanges_terminal {
		padding-left: 0;
	}

	.exchanges_terminal-img {
		display: none;
	}

	.phantom {
		display: none;
	}

	.pfp_generator {
		padding: 4rem 1rem;
	}

	.pfp_generator_content {
		width: 100%;
	}

	.pfp_generator_canva {
		width: 100%;
		height: auto;
		aspect-ratio: 1 / 1;
	}

	.pfp_generator_row {
		flex-wrap: wrap;
	}

	footer {
		margin-bottom: 10px;
		padding: 6rem 1rem 8rem 1rem;
	}
}