/* Colors */
:root {
	--color-magenta: #ff0090;
	--color-grey: #d0d0d0;
	--color-darkgrey: #9b9696;
	--color-darkergrey: #626060;
	--color-darkestgrey: #2b2a2a;
	--color-darkerrgrey: #413e3e;
	--color-metalgrey: #1e1e1e;
	--color-black: #000000;
	--color-white: #ffffff;
	--color-red: rgb(211, 47, 47);
	--color-green: rgb(23, 199, 23);
	--color-yellow: rgb(224, 206, 11);
	--color-orange: #e67e22;
	--color-krem: #feeeca;
	--color-light-orange: rgb(246, 157, 123);
	--color-pink: rgb(250, 101, 101);
}

/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

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

a {
	color: var(--color-grey);
	text-decoration: none;
	font-weight: 700;
	font-size: 1.2rem;
	margin-left: 1rem;
	transition: color 0.2s ease-in-out;
}

a:hover {
	color: var(--color-red);
}

.btn {
	display: inline-block;
	padding: 10px 20px;
	border-radius: 30px;
	background-color: #888;
	color: #fff;
	font-size: 2rem;
	font-weight: bold;
	text-transform: uppercase;
	text-decoration: none;
	transition: all 0.3s ease;
}

.btn:hover {
	background-color: var(--color-black);
}

body {
	font-family: 'Roboto', sans-serif;
	font-size: 16px;
	line-height: 1.5;
	color: var(--color-darkgrey);

	background-color: var(--color-metalgrey);
	height: 100%;
	/*cursor: url(images/transparent-crosshair.png), auto;*/
}

/* Header */
.hero {
	height: 100vh;
	background: linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)),
		url('images/black-mirror.jpg');
	background-size: cover;
	background-position: center;
	display: flex;
	justify-content: center;
	align-items: center;
	text-align: center;
}

.hero h1 {
	font-size: 2.1rem;
	font-weight: 700;
	color: var(--color-white);
	margin-bottom: 2rem;
}

.hero p {
	font-size: 1.8rem;
	margin: 0 auto;
	margin-bottom: 2rem;
	color: var(--color-grey);
	max-width: 80%;
}

.hero a {
	font-size: 3rem;
	font-weight: 700;
}

/* Navigation */
nav {
	background-color: var(--color-black);
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0.7rem;
	position: sticky;
	top: 0;
	z-index: 3;
}
.robodetect-logo {
	font-size: 19px; /* Large font size for impact */
	color: white; /* Bright text color */
	background: black; /* Dark background for contrast */
	font-family: 'Arial Black', sans-serif; /* Bold, impactful font */
	text-align: center;
	letter-spacing: 5px; /* Spacing between letters */
	padding: 20px;

	overflow: hidden; /* Ensures the text fits in the div */
	text-transform: uppercase; /* Makes all letters uppercase */
	background: url('images/texture.jpeg'); /* Path to a distressed texture background */
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	display: inline-block;
}
.robodetect-logo-m {
	font-size: 19px; /* Large font size for impact */
	color: white; /* Bright text color */
	background: black; /* Dark background for contrast */
	font-family: 'Arial Black', sans-serif; /* Bold, impactful font */
	text-align: center;
	letter-spacing: 5px; /* Spacing between letters */
	padding: 20px;

	overflow: hidden; /* Ensures the text fits in the div */
	text-transform: uppercase; /* Makes all letters uppercase */
	background: url('images/texture.jpeg'); /* Path to a distressed texture background */
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	display: inline-block;
}
.robodetect-style {
	background: black; /* Dark background for contrast */
	font-family: 'Arial Black', sans-serif; /* Bold, impactful font */
	overflow: hidden; /* Ensures the text fits in the div */
	text-transform: uppercase; /* Makes all letters uppercase */
	background: url('images/35mm-film-grain-texture-wallpaper-thumb.jpg'); /* Path to a distressed texture background */
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	/*display: inline-block;*/
}
.human {
	transition: opacity 0.5s ease-out; /* Smooth transition for opacity changes */
	opacity: 1; /* Start fully visible */
}

/* Ensure you have a distressed texture image that can overlay the text */

main {
	max-width: 1750px;
	margin: 0 auto;
	padding: 2rem;
}

section {
	margin-bottom: 4rem;
	text-align: center;
}

section h2 {
	text-align: center;
	font-size: 3rem;
	font-weight: 700;
	color: #888;
	letter-spacing: 1px;
	text-transform: uppercase;

	display: grid;
	grid-template-columns: 1fr max-content 1fr;
	grid-template-rows: 27px 0;
	grid-gap: 20px;
	align-items: center;
	margin-bottom: 2rem;
}

section h2:after,
section h2:before {
	content: ' ';
	display: block;
	border-bottom: 1px solid #c50000;
	border-top: 1px solid #c50000;
	height: 5px;
	background-color: #f8f8f800;
}

section p {
	font-size: 1.5rem;
	margin-bottom: 1rem;
}

/* About Us */
.team {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 2rem;
	z-index: 0;
}

.team-member {
	text-align: center;
}

.team-member img {
	width: 250px;
	height: 250px;
	border-radius: 50%;
	object-fit: cover;
	margin-bottom: 1rem;
	filter: brightness(100%);
	-webkit-filter: grayscale(100%); /* Safari 6.0 - 9.0 */
	filter: grayscale(100%);
}
.footer {
	display: flex;
	justify-content: center;
	align-items: center;
}
.footer p {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: column;
}

.middle {
	transition: 0.5s ease;
	opacity: 0;
	position: inherit;
	transform: translate(0%, -180%);
}

.team-member img:hover {
	filter: brightness(50%);
}

.team-member:hover .middle {
	opacity: 1;
}

.team-member h3 {
	font-size: 1.5rem;
	margin-bottom: 0.5rem;
}

.team-member p {
	font-size: 1rem;
	color: #888;
}

.tech-stack {
	display: flex;
	align-items: center;
	gap: 1rem;
	grid-template-columns: repeat(auto-fit, minmax(80px, 0.1fr));
	justify-content: space-between;
	margin: 0 auto;
	max-width: 80%;
	margin-bottom: 1rem;
}

.tech-plate {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	/*limit size*/
	width: 125px;
}

.tech-plate-image img {
	width: 100%;
	height: 100%;
	border-radius: 0%;
	object-fit: contain;
	margin-bottom: 1rem;
}

.tech-plate-image_invert img {
	width: 80%;
	height: 80%;
	border-radius: 0%;
	object-fit: contain;
	margin-bottom: 1rem;
	filter: invert(1);
}
.tech-plate-content {
	padding: 1rem;
	flex-grow: 1;
	font-size: 1.2rem;
	font-weight: 700;
}

.features {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 2rem;
	margin-bottom: 4rem;
}

.feature {
	background-color: var(--color-grey);
	border-radius: 15px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	position: relative;
}

.feature-image img {
	width: 120%;
	height: 110%;
	object-fit: cover;
	z-index: 1;
}

.feature-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 1;
}

.feature:hover .feature-image img {
	filter: brightness(30%);
}

.feature-content {
	position: absolute;
	padding: 0.8rem;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	border-radius: 10%;
	z-index: 2;
	height: 100%;
	width: 100%;
	top: 0;
	cursor: pointer; /* Make cursor a pointer to indicate clickable */
	transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth transition for transform and shadow */
}

.feature-content h3 {
	padding: 0.2rem;
	position: absolute;
	left: 0;
	bottom: 0;
	font-size: 1.2rem;
	font-weight: 700;
	color: var(--color-black);
	background-color: var(--color-grey);
	width: 100%;
	transition: background-color 0.3s; /* Smooth transition for background color */
}

.feature-content p {
	transition: opacity 0.5s ease; /* Smooth transition for text opacity */
	opacity: 0;
	font-size: 1.2rem;
	color: var(--color-grey);
}

.feature:hover .feature-content p {
	opacity: 1;
	transform: scale(1.05); /* Scale up when hovered */
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Shadow effect for depth */
}

.feature-content:hover p {
	opacity: 1; /* Make text fully visible on hover */
}

.video-icon-container {
	position: absolute;
	top: 10px;
	right: 10px;
	background: rgba(0, 0, 0, 0.5);
	border-radius: 50%; /* Ensure the container is a circle */
	padding: 0.5rem;
	width: 40px; /* Fixed width for perfect circle */
	height: 40px; /* Fixed height for perfect circle */
	display: flex;
	align-items: center;
	justify-content: center;
}

.video-icon {
	margin-left: 3px;
	width: 24px;
	height: 24px;
	color: white;
}

.feature:hover .video-icon-container {
	display: none; /* Hide the video icon container on hover */
}

/* How it works */
@keyframes grow {
	0% {
		transform: scaleX(0);
	}
	100% {
		transform: scaleX(1);
	}
}

.another-load {
	/* Initialize the element state for the animation */
	transform: scaleX(0);
	transform-origin: left;
}

.another-load.animate {
	/* Start the animation when the animate class is added */
	animation: grow 0.7s ease-out forwards;
}

.olcards,
.olcards * {
	margin: 0;
	padding: 0;
	width: 100%;
}

.olcards {
	list-style: none;
	counter-reset: cardCount;
	font-family: sans-serif;
	display: flex;
	flex-direction: column;
	--cardsGap: 1rem;
	gap: var(--cardsGap);
	padding-bottom: var(--cardsGap);
	margin-bottom: 2rem;
}
.olcards li {
	counter-increment: cardCount;
	display: flex;
	color: white;
	--labelOffset: 1rem;
	--arrowClipSize: 1.5rem;
	margin-top: var(--labelOffset);
	place-content: left;
}

.olcards li::before {
	content: counter(cardCount, decimal-leading-zero);
	background: white;
	color: var(--cardColor);
	font-size: 2em;
	font-weight: 700;
	transform: translateY(calc(-1 * var(--labelOffset)));
	margin-right: calc(-1 * var(--labelOffset));
	z-index: 1;
	display: flex;
	padding-inline: 0.5em;
}

.olcards li .content {
	animation: grow 1s ease-out;
	transform-origin: left;
	background-color: var(--cardColor);
	--inlinePadding: 1em;
	--boxPadding: 0.5em;
	display: grid;
	padding: var(--boxPadding) calc(var(--inlinePadding) + var(--arrowClipSize))
		var(--boxPadding) calc(var(--inlinePadding) + var(--labelOffset));
	gap: 0.25em 1em;
	clip-path: polygon(
		0 0,
		calc(100% - var(--arrowClipSize)) 0,
		100% 50%,
		calc(100% - var(--arrowClipSize)) 100%,
		calc(100% - var(--arrowClipSize)) calc(100% + var(--cardsGap)),
		0 calc(100% + var(--cardsGap))
	);
	position: relative;
	text-align: left;
}
.olcards li .content::before {
	content: '';
	position: absolute;
	width: var(--labelOffset);
	height: var(--labelOffset);
	background: var(--cardColor);
	left: 0;
	bottom: 0;
	clip-path: polygon(0 0, 100% 0, 0 100%);
	filter: brightness(0.75);
}
.olcards li .content::after {
	content: '';
	position: absolute;
	height: var(--cardsGap);
	width: var(--cardsGap);
	background: linear-gradient(to right, rgba(0, 0, 0, 0.25), transparent 50%);
	left: 0;
	top: 100%;
}
.olcards li .icon {
	grid-area: icon;
	align-self: center;
	font-size: 2em;
}
.olcards li .content .title {
	font-size: 1.25em;
	/* font-weight: 700; */
}
/* Contact Us */
.contact-us {
	padding: 2rem;
	flex-grow: 1;
	display: flex;
	flex-direction: column;

	justify-content: center;
	align-items: center;
}
.aselsan-anchor {
	margin: 0;
}

.contact-us h3 {
	text-align: center;

	text-transform: uppercase;
	font-size: 1.5rem;
	letter-spacing: 1px;

	display: grid;
	grid-template-columns: 1fr auto 1fr;
	grid-template-rows: 16px 0;
	grid-gap: 22px;
	margin-bottom: 2rem;
	margin-top: 3rem;
}

.contact-us h3:after,
.contact-us h3:before {
	content: ' ';
	display: block;
	border-bottom: 1px solid #c50000;
	background-color: #f8f8f800;
}

.contact-us p {
	font-size: 1.2rem;
	margin-bottom: 1.5rem;
}
.aselsan {
	width: 100%;
	filter: brightness(100%);
	-webkit-filter: grayscale(100%); /* Safari 6.0 - 9.0 */
	filter: grayscale(100%);
}

.aselsan:hover {
	filter: brightness(50%);
	opacity: 1;
}

/* Footer */
footer {
	background-color: var(--color-black);
	color: var(--color-white);
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 2rem;
}

/* Parallax Scrolling */
.parallax {
	/* The image used */

	/* Full height */
	height: 100%;

	/* Create the parallax scrolling effect */
	background-attachment: fixed;
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
}

/* Lazy Load */
.lazy-load {
	opacity: 0;
	transition: opacity 1.5s ease-in-out;
}

/* icon */
.icon {
	background-image: url(images/app-icon.png);
	background-repeat: no-repeat;
	width: 50px;
	height: 50px;
	display: inline-block;
	margin-right: 2rem;
}

a[href^='mailto:'] {
	color: val(--color-darkgrey);
	font-size: 1.2rem;
}

a[href^='mailto:']:hover {
	color: red;
}

.modal {
	display: none; /* Hidden by default */
	position: fixed; /* Stay in place */
	z-index: 999; /* Sit on top */
	left: 0;
	top: 0;
	width: 100%; /* Full width */
	height: 100%; /* Full height */
	overflow: auto; /* Enable scroll if needed */
	background-color: rgb(0, 0, 0); /* Fallback color */
	background-color: rgba(0, 0, 0, 0.4); /* Black w/ opacity */
}

/* Modal Content/Box */
.modal-content {
	background-color: rgba(16, 15, 15, 0.276);
	margin: 15% auto; /* 15% from the top and centered */
	padding: 20px;
	border: 1px solid #888;
	width: 80%; /* Could be more or less, depending on screen size */
}

/* The Close Button */
.close {
	color: #aaa;
	float: right;
	font-size: 28px;
	font-weight: bold;
	cursor: pointer;
}

/* Existing CSS code */

.video-container {
	position: relative;
	width: 100%;
	padding-bottom: 56.25%; /* 16:9 aspect ratio (adjust as needed) */
	margin-bottom: 20px;
	background-color: transparent;
}

video {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	border: 15px solid #000000;
	border-radius: 15px;
}

.demo-container {
	display: flex;
	flex-wrap: wrap;
	margin-bottom: 2.5rem;
}

.youtube-video-container {
	flex: 2;
	position: relative;
	height: 0;
	padding-bottom: 56.25%;
}

.youtube-video-container iframe {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	width: 100%;
	align-items: center;
	justify-content: center;
}

.poster-container {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: fit-content;
}

.poster-container img {
	max-width: 79%;
	height: auto;
}

.poster-container img:hover {
	filter: brightness(50%);
}
.poster-container:hover .middle {
	opacity: 1;
}
.navbar {
	padding-right: 2rem;
}
/* Responsive */
@media screen and (max-width: 768px) {
	.hero h1 {
		font-size: 1.8rem;
	}

	.hero p {
		font-size: 1.4rem;
	}

	.hero a {
		font-size: 1.8rem;
	}

	.features {
		grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	}

	.feature-content {
		min-height: 350px;
	}

	.feature-content h3 {
		font-size: 1.2rem;
	}

	.feature-content p {
		font-size: 1rem;
	}

	.team {
		grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	}

	.team-member img {
		height: 200px;
		max-width: 200px;
	}

	.tech-plate-content {
		font-size: 0rem;
	}

	section h2 {
		font-size: 2rem;
	}

	section p {
		font-size: 1.2rem;
	}

	nav a {
		font-size: 1rem;
	}
	.youtube-video-container,
	.poster-container {
		flex: 100%;
		margin-bottom: 10px;
	}
	.youtube-video-container iframe {
		height: 100%;
	}
	.demo-container {
		margin-bottom: 0px;
	}

	@media screen and (max-width: 480px) {
		.scroll-link {
			font-size: 0.9rem;
		}
		.hero h1 {
			font-size: 1.4rem;
		}

		.hero p {
			font-size: 1rem;
		}

		.hero a {
			font-size: 1rem;
		}

		section h2 {
			font-size: 1.5rem;
		}

		section p {
			font-size: 0.8rem;
		}

		.features {
			grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
		}

		.feature-content {
			min-height: 250px;
		}

		.feature-content h3 {
			font-size: 1.2rem;
		}

		.feature-content p {
			font-size: 0.9rem;
		}

		.team {
			grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
		}

		.team-member img {
			height: 150px;
			max-width: 150px;
		}

		.team-member h3 {
			font-size: 1rem;
		}

		.team-member p {
			font-size: 0.8rem;
		}

		footer {
			flex-direction: column;
			text-align: center;
		}
		.youtube-video-container,
		.poster-container {
			flex: 100%;
			margin-bottom: 10px;
		}
		.youtube-video-container iframe {
			height: 100%;
		}
		.demo-container {
			margin-bottom: 0px;
		}
	}
}

@media screen and (max-width: 480px) {
	.robodetect-logo {
		display: none;
	}
	.robodetect-logo-m {
		display: block;
	}
}

@media screen and (min-width: 480px) {
	.robodetect-logo {
		display: block;
	}
	.robodetect-logo-m {
		display: none;
	}
}
