/* ===== GLOBAL STYLES ===== */
* {
	font-family: "sfpro";
}
html,
body {
	background: black;
	color: white;
	padding: 0;
	margin: 0;
	overflow-x: hidden;
}

/*===== LAYOUT COMPONENTS ===== */
section {
	height: 100vh;
	width: 100vw;
	display: block;
	box-sizing: border-box;
	padding: 5vw;
	background-color: black;
}

/* ===== HERO SECTION ===== */
#hero {
	margin-top: 1vh;
	margin-left: 0.5vw;
	height: 98vh;
	width: 99vw;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	background-image: url("/assets/site-bg.webp");
	background-size: 100% 100%;
	transition: background-size 500ms ease;
	animation: scaleBg 1s ease-out;
	border-radius: 0 0 2.5rem 2.5rem;
}
#hero,
#hero > * {
	overflow: hidden;
}

/*===== APPLE INTELLIGENCE STYLE ANIMATION ===== */ /* Inspiration HEAVILY drawn from */ /* https://codepen.io/Bastien-D/pen/jOoGMrM */ /* Code altered using Mr. GPT and guess and check */ /* Setup changeable gradient angle property */
@property --gradient-angle {
	syntax: "<angle>";
	initial-value: 0deg;
	inherits: false;
}

/* Animation to change the gradient direction */ /* Tons of stops to make it seem random like */ /* Apple's AI animation */
@keyframes rotation {
	0% {
		--gradient-angle: 0deg;
	}
	20% {
		--gradient-angle: 80deg;
	}
	30% {
		--gradient-angle: 100deg;
	}
	40% {
		--gradient-angle: 160deg;
	}
	60% {
		--gradient-angle: 200deg;
	}
	70% {
		--gradient-angle: 260deg;
	}
	80% {
		--gradient-angle: 280deg;
	}
	100% {
		--gradient-angle: 360deg;
	}
}

/* The AI border itself */
.border {
	position: absolute;
	top: 0;
	left: 0;
	margin: 0;
	height: 100%;
	width: 100%;
	z-index: 10;
	border-radius: 2.5rem;
	box-sizing: border-box;
	padding: 5px;
	background: conic-gradient(
		from var(--gradient-angle),
		#ea6044,
		#dc5083,
		#9a6df7,
		#3f8def,
		#ea6044
	);
	animation: rotation 5s linear infinite;
	-webkit-mask: linear-gradient(#fff 0 0) content-box,
		linear-gradient(#fff 0 0);
	mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	pointer-events: none;
}

/* This is a conic gradient which fades in ever so slightly */ /* to give that effect like the Apple Intelligence animation */ /* when Siri is activated. */ /* See: https://www.youtube.com/shorts/88pFkRmZu84 */
.bigMainFade {
	position: absolute;
	top: 0;
	left: 0;
	margin: 0;
	height: 100%;
	width: 100%;
	z-index: 11;
	border-radius: 2.5rem;
	box-sizing: border-box;
	padding: 5px;
	background: conic-gradient(
		from var(--gradient-angle),
		#ea6044,
		#dc5083,
		#9a6df7,
		#3f8def,
		#ea6044
	);
	animation: rotation 5s linear infinite,
		bigMainFadeIn 2s ease-in-out forwards; /* Fade in from right to left */
	-webkit-mask-image: linear-gradient(to left, transparent 0%, white 100%);
	mask-image: linear-gradient(to left, transparent 0%, white 100%);
	-webkit-mask-size: 200% 100%;
	mask-size: 200% 100%;
	-webkit-mask-position: 100% 0;
	mask-position: 100% 0;
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	pointer-events: none;
	opacity: 0.1;
}

/*Fade-in effect just for the main border */
#hero .border.mainBorder {
	animation: rotation 5s linear infinite,
		fadeInBorder 1.5s ease-in-out forwards;
}

/* ===== HERO ANIMATIONS ===== */
@keyframes fadeInBorder {
	0%,
	60% {
		opacity: 0;
	}
	100% {
		opacity: 1;
	}
}

@keyframes bigMainFadeIn {
	0% {
		opacity: 0;
	}
	20% {
		opacity: 0.4;
	}
	100% {
		-webkit-mask-position: 0% 0;
		mask-position: 0% 0;
		opacity: 0;
	}
}

@keyframes scaleBg {
	from {
		background-size: 100% 200%;
	}
	to {
		background-size: 100% 100%;
	}
}

#web {
	margin: 20px;
	width: calc(100vw - 40px);
	padding: 2.5vw;
	height: fit-content;
	border-radius: 20px;
	box-sizing: border-box;
	background: linear-gradient(to bottom right, #05142a, #1748e5);

	display: grid;
	grid-template-rows: auto auto;
}
#web button {
	padding: 5px 8px;
	background-color: white;
	border: none;
	border-radius: 5px;
	cursor: pointer;
}
#web button a {
	text-decoration: none;
	color: black;
	font-size: 1.25rem;
}
.center {
	width: 100%;
	height: max-content;
	bottom: 0;
	position: relative;
	display: flex;
	align-items: baseline;
}
.left,
.right {
	width: 49.99%;
}
.right {
	display: flex;
	justify-content: right;
	align-items: end;
}
.left h1 {
	font-size: 4vw;
	font-weight: 700;
}

/* ===== TYPOGRAPHY ===== */
h1 {
	font-size: 7.5vw;
	margin: 0;
	font-weight: 500;
}

p {
	font-size: large;
}

/* Animated gradient text */
.bgGradMove {
	background: linear-gradient(
		209deg,
		#ea6044 39%,
		#dc5083 50%,
		#9a6df7 67%,
		#3f8def 81%
	);
	background-size: 200%;
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	animation: h1BgMove 4s infinite ease-in-out;
}

@keyframes h1BgMove {
	50% {
		background-position: 100% 100%;
	}
}

/* ===== BUTTONS ===== */
/* I added the AI effect to the button bc why not */
.downloadButton {
	position: relative;
	overflow: hidden;
	display: inline-block;
	padding: 15px;
	border-radius: 10px;
	background: none;
	border: none;
	cursor: pointer;
	color: white;
}

.downloadButton .border {
	position: absolute;
	inset: 0;
	border-radius: 10px;
	pointer-events: none;
	z-index: 1;
	animation: rotation 4s linear infinite;
}

button {
	transition: all 250ms ease;
}

button:active {
	opacity: 0.8;
	scale: 0.9;
}

.buttonText {
	position: relative;
	z-index: 2;
}

/* Thats it, really cool effect and I love it */
/* Apple Intelligence is a trademark of Apple Inc. */
/* Siri is a registered trademark of Apple Inc. */

/* ===== boost productivity section ===== */
#boost,
#utility {
	text-align: center;
}

.feature {
	position: relative;
	margin: 10px auto;
	text-align: left;
	max-width: 70%;
	border: 1px solid grey;
	border-radius: 20px;
	padding: 40px 36px;
	box-sizing: border-box;
	transition: width 250ms ease, max-width 250ms ease;

	background: linear-gradient(
		to bottom right,
		rgba(255, 255, 255, 0),
		rgba(23, 72, 229, 0.2)
	);
}

.feature h2 {
	margin: 0;
}

.feature_flex {
	display: flex;
	flex-direction: row;
	align-items: center;
	text-align: center;
}

.feature_content,
.feature_image {
	width: 50%;
	max-width: 50%;
	display: block;
	box-sizing: border-box;
}

.feature_image {
	margin: 0 5%;
}

.feature_image img {
	border-radius: 10px;
	max-width: 100%;
}

#footer {
	max-width: 980px;
	margin: auto;
	color: #555555;
	padding: 20px;
	box-sizing: border-box;
}
.links {
	text-align: center;
}
.links a:visited {
	color: white;
}
/* ===== MEDIA QUERIES ===== */
/* Large screens */
@media screen and (max-width: 1000px) {
	#hero {
		background-size: 100% 200%;
		animation: none;
	}

	h1 {
		font-size: 10vw;
	}

	.feature {
		max-width: 80%;
	}
}

/* Medium screens */
@media screen and (max-width: 750px) {
	h1 {
		font-size: 15vw;
	}
}
@media screen and (max-width: 650px) {
	.feature_flex {
		flex-direction: column;
	}

	.feature_content,
	.feature_image {
		max-width: 100%;
		width: 100%;
	}
	.feature_image {
		margin-top: 10px;
		scale: 1;
	}
	.left h1 {
		font-size: 5vh;
	}
}
/* Small screens */
@media screen and (max-width: 450px) {
	h1 {
		font-size: 5rem;
		max-width: 100%;
	}

	h1.notAsBig {
		font-size: 8vh;
		max-width: 100%;
	}

	.feature_flex {
		flex-direction: column;
	}

	.feature_content {
		max-width: 100%;
		width: 100%;
	}
	.feature_image {
		display: none;
	}
	.center {
		padding: 20px;
		box-sizing: border-box;
		flex-direction: column;
	}
	.left,
	.right {
		width: 100%;
		display: block;
	}
}

/* Extra small screens */
@media screen and (max-width: 400px) {
	h1 {
		font-size: 4rem;
	}

	h1.notAsBig {
		font-size: 4rem;
	}
}

/* Tiny screens */
@media screen and (max-width: 350px) {
	h1 {
		font-size: 3rem;
	}

	h1.notAsBig {
		font-size: 2.5rem;
	}
}

/* Modal at the end because it's not that useful */

.modal {
	display: flex;
	justify-content: center;
	align-items: center;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	z-index: 10;
	animation: opacityChange 500ms ease;

	backdrop-filter: blur(10px);
}

.modal .container {
	position: absolute;
	z-index: 8;
	padding: 50px;
	box-sizing: border-box;
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.modal.closing {
	pointer-events: none;
}

@keyframes opacityChange {
	0% {
		opacity: 0;
	}
	100% {
		opacity: 1;
	}
}
