
/* ============GENERAL============== */

html{
	width:100%;
}

/* body */
body {
	font-family: "Mulish", sans-serif;
	margin: 0;
	padding: 0;
	background-color: #fafafa;
	color: #fff;
	width: 100%;
}

/* pages */
.page.first {
	min-height: 100svh;
}

.page {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	width:100%;

	/* transition height and min */
	transition: min-height 0.3s ease, height 0.3s ease;
	will-change: height, min-height;
}

/* footer */
footer {
	background-color: #fff;
	padding: 20px 0;
	text-align: center;
	border-top: 1px solid #eaeaea;
}

footer p {
	margin: 0;
	color: #666;
}

/* ensure correct svg colors */
svg, use{
	fill: currentColor;
}


/* superscript styling */
sup{
	font-size: 0.6em;
}

sup > a{
	color: inherit
}

.no-break{
	white-space: nowrap;
}

/* ========NAVBAR============ */

.navbar,
.nav-item {
	color: white;
}

header {
	padding: 20px 0;
	vertical-align: middle;
}

.navbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0 20px;
	gap:20px;
}

.logo {
	font-family: "SUSE", sans-serif;
	font-weight: 600;
	font-size: 2em;
	margin: 0;
	letter-spacing: 1px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: row;
	flex-wrap: nowrap;
	gap: 10px;
}

.logo svg{
	height: 1.2em;
	width: 1.2em;
	vertical-align: middle;
}

nav ul {
	list-style-type: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 30px;
}

nav ul li {
	display: inline;
	text-wrap: nowrap;
}

nav ul li a {
	text-decoration: none;
	color: #333;
	font-weight: 500;
	transition: color 0.3s ease;
	font-size: 1.1em;
}

nav ul li a:hover {
	color: #949494;
}

/* ========BACKGROUND IMAGES============= */

#why-us-section > .overlay{
	background-image: url('/assets/images/notebook1.jpeg');
	background-position: center left;
	filter: saturate(0.75) brightness(0.44) blur(3px);

}

#contact-section .overlay {
	background-image: url("/assets/images/contact.jpg");
	background-position: top center;
}


#main-hero > .overlay {
	background-image: url("/assets/images/hero.jpg");
	background-position: bottom center;
}

#services-section > .overlay {
	background-image: url("/assets/images/laptop.jpg");
	background-position: center center;
}

#why-section .overlay {
	background-image: url("/assets/images/erasing.jpg");
  	background-position: top center;
}



/* XS SCREEN */
@media screen and (max-width: 576px) {
	header{
		font-size: 0.8em;
	}
}

/* SMALL SCREEN */
@media screen and (max-width: 768px){


	#why-section .overlay {
	  background-image: url("/assets/images/erase-mobile.jpg");
	  background-position: top right;
	}

	#why-us-section .overlay{
		background-image: url('/assets/images/notebook1-mobile.jpeg');
		background-position: center center;
	}
}
/* ==============CARDS=============== */

.card-box{
	width:100%;
}

.card-box, .card-row{
	display: flex;
	justify-content: center;
	flex-direction: row;
	flex-wrap: wrap;
	margin-top: 0;
	margin-bottom: 0;
	gap: 20px;
	
}

.card {
	will-change: transform;
  font-size: 1em;
  width:252px;
  min-width: 252px;
	background: rgba(0, 0, 0, 0.4);
	border-radius: 5px;
	transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
	text-align: center; 
  padding: 20px;
  box-sizing: border-box;
  font-weight: 600;
}

.card.highlight {
	transform: scale(1.02);
}

.card ul {
	text-align: justify;
  padding-left:10px;
  margin-bottom:0;
}

.card p{
  text-align: center;
  margin-top:1em;
  margin-bottom: 0;
}
.card > h2 {
	font-size: 1.6em;
	margin-top: 0;
}


.card > svg {
	height: 80px;
	width: fit-content;
	max-width: 100%;
	display: inline-block;
}

.card.green.highlight {
	background-color: rgba(16, 45, 0, 0.4);
	color: #e7ffd5;
}

.card.red.highlight {
	background-color: rgba(51, 0, 0, 0.4);
	color: #ff9a9a;
}


.card-spacer{
	display: none;
}


#expensiveSVG{
	margin-left:-25px;
}

/* ============HEROS=========== */

.hero {
	overflow: clip;
	display: flex;
	flex-direction: column; /* Ensure contents are aligned vertically */
	align-items: center;
	justify-content: center; /* Center contents vertically */
	text-align: center;
	position: relative;
	z-index: 1; /* Lower than .services */
	text-shadow: 0px 0px 4px rgba(0, 0, 0, 0.3);
	text-align: center;
	flex: 1;
	box-sizing: border-box;
	padding-left: 30px;
	padding-right: 30px;
}

.overlay {
	background-size: cover;
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: -1; /* Ensures the overlay is on top of the image */
	filter: brightness(0.44) blur(3px);
	transform: scale(1.15);
}


.hero > .container {
	z-index: 2;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	max-width: 100%;
}

/* spacing */
.hero-spacer{
  height:24px;
  width:100%;
  background-color: transparent;
}

.card-section > .container {
	margin-top:15px
}

/* text sizing */
.hero > .container > h1,.hero > .container > h2 {
	margin-top: 0;
	margin-bottom: 10px;
}

.hero > .container > h1 {
	font-size: 3em;
}

.hero > .container > h2 {
	font-size: 2.25em;
}

.hero > .container > p {
	font-size: 1.08em;
	margin-bottom: 40px;
  	margin-top: 0;
	font-weight: 500;
	max-width: 600px;
}

/* CTA button */
.cta-button {
	display: inline-block;
	text-decoration: none;
	color: #a5ffc4;
	background-color: transparent;
	border: 3px solid #a5ffc4;
	padding: 15px 30px;
	border-radius: 5px;
	font-weight: 700;
	/* shadow */
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s ease;
}

.cta-button:hover {
	transform: scale(1.05);
}

/* next button */

.next {
	color: white;
	display: flex;
	flex-direction: row;
	z-index: 2;
	align-items: center;
	justify-content: center;
	font-size: 1.2em;
	opacity: 0.75;
	transition: opacity 0.3s ease;
	text-decoration: none;
	text-align: center;
}

.next > svg{
	height: 24px;
	width: 24px;
}


.next, .hero-spacer{
  margin: 30px;
}

.next:hover {
	opacity: 1;
}


/* =========== SECTIONS ==================*/
/* HEADERS */
section.header {
	width: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	background: rgb(28, 28, 28);
	color: white;
}

section.header, header{
	position: sticky;
	top: 0;
	z-index: 2;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	background-color: rgb(28, 28, 28);
}

section.header > h1 {
	font-size: 2em;
	text-align: center;
}

/* CONTENT */
section.content {
	width: 800px;
	display: flex;
	flex-direction: column;
	margin: 0 auto;
	font-size: 1.1em;
}

section.content > h2 {
	font-size: 2.3em;
	text-align: center;
	margin-bottom: 0px;
	margin-top: 0.5em;
}

section {
	width:100%;
}



/* LARGE SCREEN ONLY */
@media screen and (min-width: 769px){
	.card.red:hover {
		background-color: rgba(51, 0, 0, 0.4);
		color: #ff9a9a;
	}

	.card.green:hover {
		background-color: rgba(16, 45, 0, 0.4);
		color: #e7ffd5;
	}
	
	.card:hover{
		transform: scale(1.02);
	}
	
}

/* MOBILE ONLY (touch screen) */
@media screen and (max-width: 768px) and (pointer: coarse){

	/* hide scrollbars */
	.card-box::-webkit-scrollbar{
		display: none;
	}
	
	.card-box{
		scrollbar-width:none;
		-ms-overflow-style: none;
	    -webkit-overflow-scrolling: touch;
	}
}

/* only on mobile */
@media screen and (max-width: 768px) {

	.card-box {
		overflow-x: scroll;
		width: 252px;
		padding: 12px 100px;
		mask-image: linear-gradient(90deg, transparent 0, black 100px, black calc(100% - 100px), transparent 100%);
		-webkit-mask-image: linear-gradient(90deg, transparent 0, black 100px, black calc(100% - 100px), transparent 100%);
	} 

	.card-box::-webkit-scrollbar {
		width:100%;
		height:9px;
	}

	.card-box::-webkit-scrollbar-thumb {
		background-color: #7d7d7d; 
		border-radius: 6px;
	}

	.card-box::-webkit-scrollbar-track {
		background: #4c4c4c; /* Background color of the scrollbar track */
		border-radius: 6px;
		opacity: 0.5;
		width:100%;
		margin-left: 100px;
		margin-right: 100px
	}

	.card-row, .card-box {
		flex-wrap: nowrap;
		justify-content: flex-start;
	}
}