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

:root {
    --base: #444;
    --base-100: #eaeaea;
    --base-400: #444;
    --base-800: #1a1a1a;
    --yellow: #f9c80e;
    --yellow-100: #fff3b6;
    --yellow-400: #f9c80e;
    --yellow-800: #d9a700;
    --blue: #235789;
    --blue-100: #b3cfe1;
    --blue-400: #235789;
    --blue-800: #193d5a;
}

body {
	font-family: "Open Sans", sans-serif;
	font-optical-sizing: auto;
	font-style: normal;
	font-size: 20px;
	padding-bottom:0px;
}

a {
	text-decoration: none;
	color: var(--blue);
	&:hover {
		text-decoration: underline;
	}
}

header {
	padding-top:10px;
	padding-bottom:10px;
	display:flex;
	justify-content:space-between;
	max-width:1440px;
	margin:auto;
	border-bottom: 1px solid rgba(0,0,0,0.1);

	.logo-holder {
		display:flex;
		padding:10px;
		align-items:center;
		font-weight:600;
		color: var(--base-800);
		
		.logo {
			display:flex;
			align-items:center;
			justify-content:center;
			font-size:32px;
			background-color: var(--base-800);
			color: var(--base-100);
			height:64px;
			width:64px;
			margin-right:20px;
			border-radius:50%;
		}
		.logo-text {
			flex:1;
		}
	}

	nav {
		display:flex;
		align-items:center;
		ul {
			display:flex;
			list-style-type: none;
			gap:5px;
			li {
				display:inline-block;
				a {
					display:inline-block;
					padding:10px 10px;
					color:var(--base);
					&:hover {
						background-color: var(--base-100);
						border-radius:10px;
						text-decoration:none;
					}
				}
			}
			li:nth-child(2) {
				a {
					margin-right:15px;
				}
			}
		}
		.mobile-toggle {
			display:none;
			color:var(--base-800);
			padding:10px;
			@media (max-width:768px){
				display:inline-block;
				position:absolute;
				top:20px;
				right:20px;
			}
		}
	}

	@media (max-width: 1024px) {
		flex-direction:column;
		align-items:center;
	}

	@media (max-width: 768px) {
		flex-direction:column;
		align-items:center;
		nav {
			margin-top:10px;
			width:100%;
			ul {
				display:none;
				flex-direction:column;
				text-align:center;
				width:100%;
				a {
					width:100%;
				}
				&.active {
					display:flex;
				}
			}
		}
	}
}

section {
	max-width:1440px;
	margin:auto;
	gap:30px;
	margin-top:30px;
	margin-bottom:30px;

	@media (max-width:1440px){
		padding-left:30px;
		padding-right:30px;
	}
}

.button {
	display:inline-block;
	padding:10px 30px;
	background-color: var(--blue);
	color: var(--base-100);
	border-radius:10px;
	transition: ease 0.3s all;
	&:hover {
		text-decoration:none;
		background-color: var(--base-800);
	}
	&.white {
		background-color: white;
		color: var(--base-800);
		&:hover {
			background-color: var(--base-100);
			color: var(--base);
		}
	}
	&.black {
		background-color: black;
		color: white;
		&:hover {
			background-color: var(--base);
			color: var(--base-100);
		}
	}
}

h1 {
	font-size:64px;
	line-height:1;
	margin-bottom:10px;
	small {
		display:block;
		font-weight:100;
	}
	@media (max-width:1024px){
		font-size:48px;
	}
}

.hero {
	display:flex;
	@media (max-width:1024px){
		flex-direction:column;
	}
	.hero-blue {
		flex:1;
		background-color: var(--blue-100);
		border-radius:30px;
		padding:30px;
		display:flex;
		flex-direction:column;
		justify-content:center;
		span {
			@media (max-width:768px){
				display:none;
			}
		}
		.call-to-action {
			margin-top: 20px;
			margin-bottom: 10px;
			display: flex; /* Enable flexbox layout */
			align-items: center; /* Align items vertically in the center */
			gap: 10px; /* Add spacing between items */
			flex-wrap: wrap;
		}
		
		.call-to-action a {
			margin: 0; /* Reset margins for consistent alignment */
		}
		
		.social-links {
			a {
				&:hover {
					text-decoration:none;
				}
			}
		}
	}
	.hero-yellow {
		flex:1;
		background-color: var(--yellow);
		border-radius:30px;
		padding:0px 0px;
		display:flex;
		justify-content:center;
		align-items:flex-end;
		img {
			margin-top:-10px;
			max-width:100%;
			margin-bottom:0px;
			border-bottom-left-radius: 30px;
			border-bottom-right-radius: 30px;
		}
	}
}

.logos {
	background-color: var(--base-100);
	border-radius:30px;
	padding:30px 0px;
	@media (max-width:1440px){
		border-radius:0px;
	}
	.marquee {
		width:100vw;
		max-width:100%;
		height:128px;
		overflow:hidden;
		position:relative;
		@media (max-width: 768px) {
			height: 80px; /* Reduced height for mobile */
		}
		.track {
			position:absolute;
			white-space:nowrap;
			will-change:transform;
			animation: marquee 40s linear infinite;
			display:flex;
			gap:10px;
			@media (max-width: 768px) {
				gap: 5px; /* Reduced gap for logos on mobile */
			}
			img {
				@media (max-width: 768px) {
					/* height: 60px; Adjust logo size for mobile */
					height:80px;
					width:80px;
					display:flex;
				}
			}
		}
	}
}

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

h2 {
	font-size:64px;
	line-height:1;
	margin-bottom:10px;
	text-align:center;
	color: var(--base-800);
	padding:30px;
	small {
		display:block;
		font-weight:100;
		font-size:0.5em;
		color:var(--base);
	}
	@media (max-width:1024px){
		font-size:48px;
	}
}

h3 {
	font-size:32px;
	font-weight:600;
	line-height:1;
	margin-bottom:20px;
	color: var(--base-800);
}

.work-experience {
	.jobs {
		display:flex;
		gap:30px;
		@media(max-width:1024px){
			flex-direction:column;
		}
		article {
			background-color: var(--yellow-100);
			padding:30px;
			border-radius:30px;
			flex:1;
			h3 {
				margin-top:20px;
				margin-bottom:10px;
			}
			div {
				font-weight:600;
				margin-bottom:5px;
				color: var(--base-800);
			}
			p {
				margin-bottom:10px;
			}
			figure {
				width:100%;
				padding-top:56.25%;
				overflow:hidden;
				position:relative;
				border-radius:15px;
				img {
					position:absolute;
					top:0;
					left:0;
					height:100%;
					object-fit:cover;
					transition: ease 3s all;
				}

				&:hover {
					figcaption {
						opacity:1;
						visibility:visible;
					}
					img {
						transform: scale(1.2);
					}
				}

			}
		}
	}
}

.bento {
	.bento-grid {
		display: grid;
		grid-gap: 30px;
		grid-template-columns: repeat(3, 1fr);
		grid-template-rows: repeat(3, 1fr);
		height: 960px;

		@media (max-width: 1024px) {
			grid-template-rows: repeat(6, 1fr);
		}

		@media (max-width: 768px) {
			display: flex;
			flex-direction: column;
			gap: 30px;
			height: auto;
		}

		.bento-item {
			padding: 0; /* No padding for cleaner alignment */
			background-color: var(--base-100);
			border-radius: 15px;
			position: relative;
			overflow: hidden;

			img {
				position: absolute;
				top: 0;
				left: 0;
				height: 100%;
				object-fit: cover;
				transition: none; /* No zoom effect */
			}

			.overlay {
				position: absolute;
				top: 0;
				left: 0;
				width: 100%;
				height: 100%;
				background: rgba(0, 0, 0, 0.7); /* Semi-transparent black */
				opacity: 0;
				display: flex;
				flex-direction: column;
				justify-content: center;
				align-items: center;
				gap: 15px;
				transition: opacity 0.3s;
			}

			&:hover .overlay {
				opacity: 1;
			}

			.button {
				background-color: white;
				color: black;
				padding: 10px 20px;
				text-decoration: none;
				border-radius: 5px;
				font-size: 0.9rem;
				font-weight: bold;
				border: 2px solid white; /* Add a border to maintain structure on transparency */
				transition: background-color 0.3s, color 0.3s; /* Smooth transitions */
			}
			
			.button:hover {
				background-color: transparent; /* Transparent background */
				color: white; /* White text */
			}

			figcaption {
				position: absolute;
				bottom: 0;
				left: 0;
				width: 100%;
				padding: 10px;
				background: rgba(0, 0, 0, 0.6); /* Semi-transparent background */
				color: white;
				font-size: 1.3rem;
				text-align: center;
				border-bottom-left-radius: 15px;
				border-bottom-right-radius: 15px;
				z-index: 2; /* Ensure it appears above the overlay */
			}

			@media (max-width: 768px) {
				height: 240px;
			}

			&:nth-child(1),
			&:nth-child(2),
			&:nth-child(3) {
				grid-column: span 1;
				grid-row: 1;
			}

			&:nth-child(4),
			&:nth-child(5),
			&:nth-child(6) {
				grid-column: span 1;
				grid-row: 2;
			}
		}
	}
}

footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px 0;
}

footer p {
    margin: 0;
    font-size: 1rem;
}

html {
    scroll-behavior: smooth;
}
