*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html{
    scroll-behavior: smooth;
}

body{
    width:100%;
    position: relative;
    background: #000;
    color: #d4d4d4;
    font-family: 'Poppins', sans-serif,"Codec Cold Trial", Arial, "Times New Roman", serif;
}

/* navbar*/

nav{
    position:fixed;
    top:0;
    left: 0;
    width: 100%;
    height: 80px;
    background: #000;
    padding: 2% 6%;
    display: flex;
	justify-content: space-between; 
    align-items: center;
    flex-wrap: wrap;
    z-index: 9;
}
.logo{
	font-size: 120%;
	text-decoration: none;
	color: #d4d4d4;
	font-family:'Monoton', cursive, "Codec Cold Trial";
}
.nav-links{
	flex: 1;
	text-align: right;
}

.nav-links ul li{
	list-style: none;
	display: inline-block;
	padding: 8px 12px;
	position: relative;
}
.nav-links ul li a{
	color: #d4d4d4;
	text-decoration: none;
	font-size: 14px;
}
.nav-links ul li a:active{
	color: #e6be8a;
}
.nav-links ul li::after{
	content: '';
	width: 0%;
	height: 2px;
	background: #e6be8a;
	display: block;
	margin: auto;
	transition: 0.5s;
}
.nav-links ul li:hover::after{
	width: 100%;
}
nav ul li.activen a{
	color: #e6be8a;
}
nav ul li.res a:active{
	color: #e6be8a;
}

.logo:hover{
	color: #e6be8a;
	transition: 0.5s;
}

.burger{
	display: none;
	position: relative;
	z-index: 1;
	user-select: none;
	border: none;
	outline: none;
	background: none;
	cursor: pointer;
}
.burger span{
	display: block;
	width: 22px;
	height: 3px;
	margin: 3px;
	background-color: #d4d4d4;
	position: relative;
	border-radius: 6px;
	transform-origin: 0 0;
	transition: 0.4s;
}


/*home section*/
.home-container {
	display: flex;
	align-items: center; /* Center vertically */
	justify-content: center; /* Center horizontally */
	width: 100%;
	padding: 0 5vw;
	box-sizing: border-box;
	position: relative; /* Ensure the overlay and content stack properly */
    /*background-image: url('../images/Comp\ 2.gif'); /* Replace with your image path */
    background-size: cover;
    background-position: center;
}
.home-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*background: rgba(0, 0, 0, 0.5); /* Black overlay with 50% opacity */
    z-index: 1; /* Ensures the overlay is behind the content */
}
.home{
    width: 80%;
	max-width: 1200px;
    min-height: calc(95vh - 90px);
    height: auto;
    margin-top: 70px;
	padding-left: 6%;
    display: flex;
    align-items: center;
	justify-content: flex-start;
	gap:8%;
    position: relative;
	z-index: 2;
	background: rgba(0, 0, 0, 1); /* Black rectangle background */
    border-radius: 20px; /* Rounded corners */
}
.text-box, .image {
    position: relative; /* Ensures each element remains above the overlay */
    z-index: 3;
}
.text-box{
    width: 50%;
	max-width: 600px;
	min-width: 440px;
	box-sizing: border-box; 
}
.image{
    width: 30%;
	max-width: 400px;
	min-width: 265px;
	box-sizing: border-box; 
}

.text-box h1{
	font-size: 62px;
}

.text-box p{
	margin: 10px 0 40px;
	font-size: 16px; 
	color: #d4d4d4;
	line-height: 1.9;
	font-weight: 300;
}
.text-box p a{
	text-decoration: none;
	color: #e6be8a;
	
}
.hero-btn{
	display: inline-block;
	text-decoration: none;
	color:#d4d4d4;
	border: 1.5px solid #e6be8a;
	padding: 12px 34px;
	font-size: 16px;
	background: transparent;
	position: relative;
	cursor: pointer;
	border-radius: 10px;
}
.hero-btn:hover, .hero-btn:active{
	border: 1px solid #e6be8a;
	background: #e6be8a;
	transition: .5s;
	color: #000;
	font-weight: 500;
}


/*tablet view*/

@media screen and (max-width: 1050px){
	.text-box{
		width:60%;
		min-width: 300px;
	}
	.image{
		min-width: 225px;
	}
	.text-box p {
		font-size: 14px;
	}
	.text-box h1{
		font-size: 56px;
	}
	.home-container{
		padding: 0 1vw;

	}
	.home{
		padding-left: 5%;
	}

}




@media screen and (max-width: 996px){
    .nav-links ul li{
		display: block;
	}
	.nav-links{
		position: absolute;
		transform: translateY(-100%);
		z-index: 1;
		height: 100vh;
		top: 0vh;
		background-color: #000;
		text-align: center;
		width: 50%;
		display: flex;
		flex-direction: column;
		align-items: center;
		line-height: 30px;
		transition: .5s;
		padding: 20px;
		padding-top: 90px;
		right: 0;
	}
	.nav-links.is-active{
		transform: translateY(0%);
	}
	.nav-links li{
		opacity: 100%;
	}
	.burger{
		display: block;
	}
	.logo {
		font-size: 16px;
	}
	.burger.is-active span:nth-child(1){
		transform: translate(.2px,-3.7px) rotate(45deg);
	}
	.burger.is-active span:nth-child(2){
		opacity: 0;
		transform: translateX(15px);
	}
	.burger.is-active span:nth-child(3){
		transform: translate(-1.8px,.1px) rotate(-45deg);
	}

}

@media screen and (max-width: 850px){
    /*home section*/
	.home-container{
		padding: 0px;
	}
    .home{
        flex-direction: column-reverse;
        height: fit-content;
        padding-bottom: 12%;
		min-height: fit-content;
		width: 100%;
		padding-left: 0px;
	
    }
    .image{
        width: 300px;
        margin-top: 40px;
		margin-bottom: 8%;
		margin-left: auto;
		margin-right: auto;

    }
    .text-box{
        width: 100%;
        min-width: 350px;
        text-align: center;
		padding-left: 6%;
		padding-right: 6%;
    }
    .text-box h1{
        font-size: 56px;
    }
	.logo:hover, .logo:active{
		color: #e6be8a;
	}

}

/* mobile view */
@media screen and (max-width: 768px){
	.image{
        width: 250px;
		margin-top: 40px;
		margin-bottom: 6%;
    }
    .text-box p{
        font-size: 14px;
		margin-top: 0px;

    }
    .text-box h1{
        font-size: 28px;
    }

    .text-box{
        width:90%;
		text-align: left;
		padding-left: 2%;
		padding-right: 2%;
    }
	.home{
		padding-bottom: 12%;
		padding-left: 6%;
		padding-right: 6%;
		display: flex;
		width: 100%;
		align-items: flex-start;
	}
	.hero-btn{
		font-size: 14px;
	}
	

}

.container{
	padding-top: 64px;
	padding-bottom: 64px;
	padding: 6%;
}
.container h2{
	color: #101010;
	text-align: center;
	margin-bottom: 60px;
	font-size: 20px;
}
.projects{
	background-color: #F7F7F7;
	
}

.projects-grid{
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 30px;
	/*grid-template-columns: repeat(3, 1fr);
	grid-gap: 40px;
	justify-content: center;
	margin-left: auto;
	margin-right: auto;*/
}
.nine{
	text-decoration: none;
	color: #e6be8a;	
}

.project{
	width: 400px;
	height: 360px;
	margin: 20px;
	background-image: url('../images/ZenmileIcon.png');
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 
	0 2px 4px rgba(28, 5, 77, 0.1),
	0 12px 32px rgba(0, 0, 0, 0.05);
	display: flex;
	align-items: flex-end;
	position: relative; 
}

.project:nth-child(2){
	background-image: url('../images/AfyaIcon.png');
}
.project:nth-child(3){
	background-image: url('../images/SanvelloIcon.png');
}
.project:nth-child(4){
	background-image: url('../images/ParadiseIcon.png');
}
.project:nth-child(5){
	background-image: url('../images/DashrIcon.png');
}
.project:nth-child(6){
	background-image: url('../images/GenotaIcon.png');
}



.content{
	opacity: 0;
	color: #F7F7F7;
	padding: 30px;
	background-image: linear-gradient(rgba(255, 255, 255, 0.1),  rgba(0, 0, 0, 1));
	transition: 0.4s;
	position: absolute; 
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
}

.content h3{
	font-size: 20px;
}
.content p{
	font-size: 14px;
	line-height: 1.8;
}
.content:hover, .content:active{
	opacity: 1;
}


/* tablet view*/
@media screen and (max-width: 1160px){
	.project{
		width: 370px;
		height: 333px;
		/*grid-template-columns: repeat(2, 1fr);*/
	}
	.content:hover, .content:active{
		opacity: 1;
		transform: translateY(20px);
		z-index: 2;
		transition: 0.5s;
		transition: none;
	}
}





/* mobile view*/
@media screen and (max-width: 768px){

	.container h2{
		font-size: 16px;
		margin-bottom: 40px;
	}
	.projects-grid{
		gap: 20px;
	}
	.project{
		width: 350px;
		height: 315px;
	}

}


/* footer*/

footer{
	width: 100%;
	padding-bottom: 64px;
	padding: 6%;
	padding-top: 3%;
	font-family: Poppins, inter
}
.row h3{
	font-size: 16px;
	opacity: .8;
	float: right;
	font-weight: 200;
	color: #f5f4f2;

}
.row{
	padding-bottom: 10px;
}
.col{
	flex-basis: 25%;
	padding-left: 10px;
}
.col h4{
	color: #f5f4f2;
	font-weight: 200;
	font-size: 16px;
	opacity: .8;
}
.raw{
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	padding-top: 20px;
}

hr{
	margin: 30px auto;
}
.col a{
	text-decoration: none;
	margin-right: 14px;
}
.tw{
	color: #00acee;
}
.ig{
	color: #c13584;
}
.li{
	color: #0e76a8;
}
.git{
	color: #999999;
}
.mail{
	color: #d4d4d4;
}
.fly{
	text-align: center;
	padding-top: 6%;
	opacity: .8;
	font-size: 16px;
	font-weight: 200;
	color: #f5f4f2;
}





@media screen and (max-width: 500px){
	.row h3{
		text-align: center;
		float: none;
		font-size: 14px;
	}
	hr{
		margin: 10px auto;
	}
	.col h4{
		font-size: 14px;
	}
	.col p{
		font-size: 16px;
	}
	.raw{
		display: block;
	}
	.col{
		margin-bottom: 20px;
	}
}
@media screen and (max-width: 768px){
	.row h3{
		text-align: center;
		float: none;
		font-size: 14px;
	}
	hr{
		margin: 10px auto;
	}
	.col h4{
		font-size: 14px;
	}
	.col p{
		font-size: 14px;
	}
	.raw{
		display: block;
	}
	.col{
		margin-bottom: 20px;
		padding-left: 0px;
	}
	.fly{
		font-size: 14px;
	}

}

.ion{
	width: 70%;
	min-height: calc(80vh- 80px);
	height: auto;
	margin-top: 40px;
	padding: 6%;
	margin-left: 50px;
}

.ion h1{
	font-size: 32px;
	margin-bottom: 25px;
}

@media screen and (max-width: 768px){
	.ion h1{
		font-size: 24px;
		margin-top: 20px;
	}
	.ion p{
		font-size: 14px;
	}
	footer{
		padding-bottom: 10%;
	}
	.ion{
		margin-left: 0px;
	}


}

#preloader{
	background: #000 url('../images/loader.gif') no-repeat center;
	position: fixed;
	background-size: 15%;
	height: 100%;
	width: 100%;
	left: 0;
	top: 0;
	z-index: 1000;
}
