:root {
	/* --main-color: white; */
	/* --main-color: #aeb0d3;
	--secondary-color: rgb(61 67 104); */
	--main-color: white;
	--secondary-color: #2c4554;
	--highlight-color: #326076;
	/* --secondary-color: #0b5b75; */
	--font-light: rgba(255, 255, 255, 0.8);
	--font-dark: white;
	--carousel-background: #787878;
	/* --content-div: #f1f1f1;
	--content-div2: #d4d4d4; */
	--content-div: #2c4554;
	--content-div2: #2c4554;
	/* --background-gradiant: linear-gradient(to top, rgba(46, 49, 65, 0.8), rgba(46, 49, 65, 0.8)); */
	--background-gradiant: linear-gradient(to top, rgba(8, 58, 99, 0.8), rgba(37, 37, 41, 0.8));
}

html,
body {
	height: 100%;
	font-family: 'Almarai', sans-serif !important;
}

section h1 {
	margin: 0;
}

polygon.two {
	fill: #e7d2d2;
}

body {
	/* color: white !important; */
	/* background-color: #2e3141; */
	background-image: var(--background-gradiant), url("./images/image\ \(18\).jpeg");
	background-size: auto, cover;
	background-attachment: fixed, fixed;
	background-position: center, center;
	text-align: center;

	/* font-family: "Source Sans Pro", Helvetica, sans-serif !important; */
}

.hero {
	height: 96vh;
}

#content {
	background: var(--main-color);
	padding: 1px 0;
}

.hero {
	display: flex;
    align-items: center;
    justify-content: center;

	background-attachment: scroll, scroll, fixed;
	background-image: url("./assets/top-3200.svg");
	/* background-image: url("./assets/top-3200.svg"), url("/assets/overlay.png"),
		url("images/WhatsApp\ Image\ 2022-01-05\ at\ 7.13.58\ PM.jpeg"); */
	background-position: bottom center, top left, center center;
	background-repeat: repeat-x, repeat, no-repeat;
	background-size: 3200px 460px, auto, cover;
	color: var(--font-light);
	/* padding: 15em 0 20em 0; */
	position: relative;
	text-align: center;
}

.hero img {
	/* width: 20%; */
	height: 200px;
	/* line-height: 1.65em; */
}

.hero h1 {
	margin: 20px auto;
	font-size: 2.25em;
	font-weight: 700;
}

.hero p {
	width: 35vw;
	margin: auto;
	font-size: 1.25em;
	line-height: 1.65em;
}

p {
	line-height: 2.6;
}

#carouselExampleCaptions {
	background: var(--carousel-background);
	/* height: 50vh; */
}

/* .caro  {
	margin: 50px;
}
.splide{
	border-radius: 25px;
    overflow: hidden;
	box-shadow: rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px;
} */
.caro img {
	height: 500px;
}
@media (min-width: 576px) {
	.carousel-item img {
		/* height: 500px; */
		width: auto !important;
		height: 500px;
		max-height: 500px;
		margin: auto;
	}
}

.md-container {
	max-width: 1020px !important;
}

#nav-bar {
	transition: top 0.3s; /* Transition effect when sliding down (and up) */
	transition: background 0.3s;
	background-color: var(--main-color);
	height: 70px;
	position: fixed;
	z-index: 2;
	width: 100vw;
	/* box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px; */
	box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.05) 0px 4px 6px -2px;
}

.small-logo {
	margin: 5px;
	height: 50px;
	width: auto;
	object-fit: contain;
}

.nav {
	height: 100%;
	display: flex;
	align-items: center;
}

#nav-bar.nav-background {
	background-color: var(--secondary-color);
}

#nav-bar .nav-container {
	height: 100%;
	display: flex;
	justify-content: space-between;
	align-items: center;
	position: relative;
}

.nav-container h3,
li {
	margin: auto 0;
	/* color: white; */
}

.nav-item .nav-link {
	/* color: white; */
}

.projects {
	/* width: 80vw; */
	/* margin: auto; */
	margin: 10% 0;
}

/* TESTING SVG CONTENT */
/* .project-section {
	color: white !important;
	background-color: #4c5c96;
}
.ting {
	color: white !important;
	background-color: #4c5c96;
	padding: 0 !important;
	max-width: 100% !important;
}
.ting:before {
	left: 0;
	top: -6.5em;
}
.ting::after {
	transform: rotateX(180deg) !important;
}
.ting::after,
.ting::before {
	background-repeat: no-repeat;
	background-size: 100% 100%;
	content: '';
	display: block;
	height: 6.5em;
	position: absolute;
	width: 100%;
	background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpolygon points='0,100 100,0 100,100' style='fill:%234c5c96%3B' /%3E%3C/svg%3E");
} */

/* .ting {
    border-radius: 100px 0 100px;
    background: #f3f3f3;
    padding: 99px;
} */

.projects h2 {
	border-bottom: solid 2px rgba(17, 15, 15, 0.125);
}
.project-text {
	color: white;
	margin: auto !important;
	text-align: right;
}

.project-text h2 {
    font-weight: bold;
    font-size: 1.8em;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 10px;
}

.project-text p {
    font-size: 1.1em;
    line-height: 1.8;
    opacity: 0.9;
}
.projects img {
	width: 100%;
	border-radius: 73%;
	width: 280px;
	height: 280px;
	object-fit: cover;
}

.project-img-container {
	text-align: center;
}
.contact-section {
	background: transparent;
	color: var(--font-light);
	/* height: 50vh; */
	/* width: 55vw; */
	text-align: center;
	margin: auto;
	background-attachment: scroll, scroll, fixed;
	background-image: url("./assets/top-3200.svg");
	background-position: bottom;
	background-repeat: repeat-x, repeat, no-repeat;
	background-size: 3200px 460px, auto, cover;
	padding: 10em 0 20em 0;
	position: relative;
	text-align: center;
}
.contact-section label {
	text-align: left;
	font-size: 19px;
	margin-bottom: 8px;
	/* display: flex; */
}
.contact-section h1 {
	margin: auto;
}
#sub {
	width: 100%;
}
.contact-col {
	padding: 10px;
}
#contact-form {
	text-align: initial;
}
.form-row {
	margin-bottom: 20px;
}
input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"],
select,
textarea {
	-moz-appearance: none;
	-webkit-appearance: none;
	-ms-appearance: none;
	appearance: none;
	background: rgba(255, 255, 255, 0.025);
	border-radius: 5px;
	border: none;
	border: solid 2px rgba(255, 255, 255, 0.125);
	color: inherit;
	display: block;
	outline: 0;
	padding: 0 1em;
	text-decoration: none;
	width: 100%;
}
ul.contact-info li:before {
	border-radius: 100%;
	border: solid 2px rgba(255, 255, 255, 0.125);
	display: inline-block;
	font-size: 1.05em;
	height: 2.5em;
	left: 0;
	line-height: 2.35em;
	position: absolute;
	text-align: center;
	top: -4px;
	width: 2.5em;
}

.contact-container{
    margin: 32px auto !important;
    border: 3px solid #ffffff36;
    border-radius: 10px;
    background: #1f3c4a52;
}

ul.contact-info li:before {
	border-radius: 100%;
	border: solid 2px rgba(255, 255, 255, 0.125);
	background: var(--highlight-color);
	display: block;
	font-size: 1.65em;
	line-height: 2.35em;
	position: inherit;
	text-align: center;
	margin: auto;
	width: 2.5em;
}

ul.contact-info li span {
	font-family: 'Almarai', sans-serif !important;
}
ul.contact-info li {
	text-align: center;
	/* text-align: initial; */
	width: 100%;
	text-decoration: none;
	margin: 2.5em 0 0 0;
	/* padding: 0 0 0 4.25em; */
	position: relative;
	flex: 1;
	min-width: 200px;
}
h1,
h2 {
	-moz-transition: opacity 0.5s ease, -moz-transform 0.5s ease, -moz-filter 0.25s ease;
	-webkit-transition: opacity 0.5s ease, -webkit-transform 0.5s ease, -webkit-filter 0.25s ease;
	-ms-transition: opacity 0.5s ease, -ms-transform 0.5s ease, -ms-filter 0.25s ease;
	transition: opacity 0.5s ease, transform 0.5s ease, filter 0.25s ease;
	-moz-transform: translateX(0);
	-webkit-transform: translateX(0);
	-ms-transform: translateX(0);
	transform: translateX(0);
	-moz-transition-delay: 0.65s;
	-webkit-transition-delay: 0.65s;
	-ms-transition-delay: 0.65s;
	transition-delay: 0.65s;
	-moz-filter: blur(0);
	-webkit-filter: blur(0);
	-ms-filter: blur(0);
	filter: blur(0);
	opacity: 1;
	border-bottom: solid 2px rgba(255, 255, 255, 0.125);
	font-size: 2.25em;
	margin-bottom: 0.8em;
	padding-bottom: 0.4em;
}
@media (max-width: 576px) {
	.nav-item {
		display: none;
	}
}

/* angled div */
.slanted-div {
	position: relative;
	padding: 20px 0;
	background: var(--content-div);
	overflow: visible;
	z-index: 1;
}
.slanted-div:nth-child(even) {
	background: var(--content-div2);
}
.slanted-div:nth-child(odd) {
	direction: ltr;
	text-align: initial;
}
/* where the magic happens */
.slanted-div:before,
.slanted-div:after {
	content: '';
	width: 100%;
	height: 100%;
	position: absolute;
	background: inherit;
	z-index: -1;
	top: 0;
	transform-origin: right top;
	transform: skewY(-3deg);
}
.slanted-div:nth-child(even):before,
.slanted-div:nth-child(even):after {
	transform-origin: left top;
	transform: skewY(3deg) !important;
}

.slanted-div:nth-child(even):after {
	transform: skewY(-3deg) !important;
}

.slanted-div:after {
	bottom: 0;
	transform-origin: right bottom;
	transform: skewY(3deg);
}

#contact-form {
	margin: 50px;
}

/* responsive */
@media only screen and (max-width: 720px) {
	.slanted-div {
		padding: 50px 0;
	}
	.hero h1 {
		font-size: 1.25em;
		font-weight: 700;
	}

	.hero p {
		font-size: 1.15em;
		width: 75vw;
	}
	.projects img {
		width: 200px;
		height: 200px;
	}
	#contact-form {
		margin: 10px;
	}
	.contact-info {
		padding: 0 16px;
	}
	/* .caro  {
		margin: 20px;
	} */
}

.section-title {
	text-align: center;
	margin: 70px 0 30px 0;
	color: var(--secondary-color);
	font-weight: bold;
}

.about-section {
    padding: 60px 0;
    background: #f9f9f9;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: right;
    color: #333;
    line-height: 1.8;
}

.vision-mission {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    flex-wrap: wrap;
}

.vision, .mission {
    flex: 1;
    min-width: 300px;
    margin: 20px;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.vision h3, .mission h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.vision p, .mission p {
    color: #666;
    line-height: 1.6;
}

.section-title::after {
	content: " ";
	text-align: center;
	margin: 2px auto;
	width: 50px;
	display: block;
	border: 2px solid #24a6de;
	background: #24a6de;
	border-radius: 4px;
	-webkit-border-radius: 4px;
	-moz-border-radius: 4px;
	box-shadow: inset 0 1px 1px rgba(0, 0, 0, .05);
	-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .05);
	-moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .05);
}

.nav-item .btn-link {
	color: #7a7a7a;
	text-decoration: none;
}

.nav-item .btn-link:hover {
	color: #0b3e6e;
}

.nav-item .btn-check:focus + .btn,
.btn:focus {
	outline: 0 !important;
	box-shadow: initial !important;
}

@keyframes dropdown {
	0% {
		width: 0%;
	}

	100% {
		width: 70%;
	}
}

/* Clients Section Styles */
.clients-section {
    padding: 80px 0;
    background: #f9f9f9;
    position: relative;
    overflow: hidden;
}

.clients-section .section-title {
    color: var(--secondary-color);
    position: relative;
}

.clients-section .section-title::after {
    background: #24a6de;
    border-color: #24a6de;
}

.clients-carousel {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 0;
    position: relative;
}

.clients-carousel .splide__slide {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px;
}

.client-logo {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.client-logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s;
}

.client-logo:hover::before {
    left: 100%;
}

.client-logo:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    border-color: #24a6de;
    background: rgba(255, 255, 255, 1);
}

.client-logo img {
    max-width: 100%;
    max-height: 90px;
    object-fit: contain;
    transition: all 0.4s ease;
    position: relative;
}

.client-logo:hover img {
    transform: scale(1.1);
}

/* Responsive adjustments for clients carousel */
@media (max-width: 768px) {
    .clients-section {
        padding: 60px 0;
    }
    
    .clients-carousel {
        padding: 30px 0;
    }
    
    .clients-carousel .splide__slide {
        padding: 30px 20px;
    }
    
    .client-logo {
        height: 110px;
        padding: 20px;
        border-radius: 15px;
    }
    
    .client-logo:hover {
        transform: translateY(-5px) scale(1.02);
    }
    
    .client-logo img {
        max-height: 70px;
    }
}

/* Mobile Drawer Menu Styles */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    position: relative;
    z-index: 1001;
    margin: 0;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.mobile-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100dvh; /* Use dynamic viewport height to avoid address bar clipping */
    z-index: 1000;
    transition: right 0.3s ease-in-out;
}

/* Fallback for browsers that don't support dvh */
@supports not (height: 100dvh) {
    .mobile-drawer { height: 100vh; }
}

.mobile-drawer.open {
    right: 0;
}

.drawer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh; /* Match dynamic viewport height */
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

@supports not (height: 100dvh) {
    .drawer-overlay { height: 100vh; }
}

.drawer-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--highlight-color) 100%);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    padding-bottom: env(safe-area-inset-bottom); /* Prevent clipping behind home indicator */
}

.mobile-drawer.open .drawer-content {
    transform: translateX(0);
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: calc(20px + env(safe-area-inset-top)); /* Avoid notch overlap */
}

.drawer-logo {
    height: 50px;
    filter: brightness(0) invert(1);
}

.drawer-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.drawer-close:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.drawer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.drawer-nav-item {
    margin: 0;
    padding: 0;
}

.drawer-nav-link {
    display: block;
    width: 100%;
    padding: 20px 30px;
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    font-weight: 500;
    text-align: right;
    cursor: pointer;
    transition: all 0.3s ease;
    border-right: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

.drawer-nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: right 0.5s ease;
}

.drawer-nav-link:hover::before {
    right: 100%;
}

.drawer-nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-right-color: #24a6de;
    transform: translateX(-10px);
}

.drawer-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
}

.contact-info-mobile {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 14px;
}

.contact-item i {
    width: 20px;
    color: #24a6de;
}

/* Responsive Design */
@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    #nav-bar nav {
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }
    
    .small-logo {
        height: 40px;
    }
    
    .drawer-content {
        width: 280px;
    }
    
    .drawer-nav-link {
        font-size: 16px;
        padding: 18px 25px;
    }
}

@media (max-width: 480px) {
    .small-logo {
        height: 35px;
    }
    
    .drawer-content {
        width: 100%;
    }
    
    .drawer-header {
        padding: 15px;
        padding-top: calc(15px + env(safe-area-inset-top));
    }
    
    .drawer-logo {
        height: 40px;
    }
    
    .drawer-nav-link {
        font-size: 16px;
        padding: 15px 20px;
    }
    
    .drawer-footer {
        padding: 15px;
        padding-bottom: calc(15px + env(safe-area-inset-bottom));
    }
}

/* Animation for menu items */
.drawer-nav-item {
    opacity: 0;
    transform: translateX(50px);
    animation: slideInRight 0.5s ease forwards;
}

.drawer-nav-item:nth-child(1) { animation-delay: 0.1s; }
.drawer-nav-item:nth-child(2) { animation-delay: 0.2s; }
.drawer-nav-item:nth-child(3) { animation-delay: 0.3s; }
.drawer-nav-item:nth-child(4) { animation-delay: 0.4s; }

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Prevent body scroll when drawer is open */
body.drawer-open {
    overflow: hidden;
}
