@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;700&display=swap');
*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}
html{
    font-size: 10px;
    font-family: 'Montserrat',sans-serif;
}
a{
    text-decoration: none;
}
.container{
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
img{
    /*height: 100%; */
    width: 100%;
    object-fit: cover;
}
.section-title{
    font-size: 4rem;
    font-weight: 300;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: .2rem;
    text-align: center;
    color:crimson;
}
.brand h1 {
	font-size: 3rem;
	text-transform: uppercase;
	color: white;
}

.brand p {
    font-size: 5rem;
	text-transform: uppercase;
	color: white;
    font-style: italic;
    font-weight: bolder;
    font-size: larger;
}
.brand h1 span, .brand p span{
	color: crimson;
}

/* header */
#header {
	position: fixed;
	z-index: 1000;
	left: 0;
	top: 0;
	width: 100vw;
	height: auto;
}
#header .header {
	min-height: 8vh;
	background-color: rgba(12, 12, 14, 0.6);
	transition: .3s ease background-color;
}
#header .nav-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	height: 100%;
	max-width: 1300px;
	padding: 0 10px;
}
#header .nav-list ul {
	list-style: none;
    position: initial;
    background-color:transparent;
    width: fit-content;
    height: auto;
	display: block;
}

#header .nav-list ul a {
	font-size: 1.8rem;
	font-weight: 500;
	letter-spacing: .2rem;
	text-decoration: none;
	color: white;
	text-transform: uppercase;
	padding: 20px;
	display: block;
}
#header .nav-list ul li a {
    font-size: 1.8rem;
}
#header .nav-list ul li {
    display: inline-block;
}
#header .nav-list ul li:hover a {
	color: crimson;
}

/* End header */

/* start section */
#start{
    background-image:url(./img/rufaida.jpg) ;
    background-size: cover;
    background-position: top center;
    position: relative;
    z-index: 1;
}
#start::after{
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background-color: black;
    opacity: .0;
    z-index: -1;
}
#start .start{
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 50px;
    justify-content: flex-start;
}
#start p:nth-child(3), #start p {
    display: block;
    width: fit-content;
    font-size: 4em;
    position: relative;
    color: transparent;
    animation: text-reveal .5s ease forwards;
    animation-delay: 1s;
}
#start p:nth-child(1){
   animation-delay: 1s;
}
#start p:nth-child(2){
    animation-delay: 2s;
 }
 #start p:nth-child(3){
    animation: text-reveal-name 1s ease forwards;
    animation-delay: 3s;
 }
#start p:nth-child(3) span , #start p span{
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background-color: crimson;
    animation: text-reveal-box 1s ease  ;
    animation-delay: .5s;
}
#start p:nth-child(1) span{
    animation-delay: .5s;
 }
 #start p:nth-child(2) span{
    animation-delay: 1.5s;
 }
 #start p:nth-child(3) span{
    animation-delay: 2.5s;
 }
#start .cta{
    display:inline-block;
    padding: 10px 30px;
    color: white;
    background-color: transparent;
    border: 2px solid crimson;
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: .1rem;
    margin-top: 30px;
    transition: .3s ease;
    transition-property: color, background-color;
}
#start .cta:hover{
    color:white;
    background-color: crimson;

}
/* End start section */

/* Start informations section */
#education, #skills{
background-color: #e8e2e2;
display: flex;
border-bottom:3px solid #5d5252;
}
#education .informations, #skills .informations{
    flex-direction: column;
    text-align: center;
    max-width: 1500px;
    margin: 0 auto;
    padding: 100px 0;
}
#education .section-title, #skills.section-title{
    font-size: 4rem;
    font-weight: 300;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: .2rem;
    text-align: center;
    color: crimson;
}
#education .informations-content, #skills .informations-content{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
}
#education .informations-item, #skills .informations-item{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 30px;
    border-radius: 10px;
    background-image: url(./img/rufaidaportfolio2.jpg);
    background-size: cover;
    margin: 10px 5%;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.education-content .informations-item {
    max-width: 23%;
    margin: 15px 2% !important;
}
#education .informations-item::after, #skills .informations-item::after{
    content:"";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    opacity: .4;
    z-index: -1;
}
#education .informations-item p,
#skills .informations-item p{
    font-size: larger;
}
#education  .informations-content .icon,
#skills .informations-content .icon{
    height: 80px;
    width: 80px;
    margin-bottom: 20px;
}
#education .icon img, #skills .icon img{
    height: 100%;
    width: 100%;
    object-fit: cover;
}
.informations-item p:nth-child(2){
font-size: 2rem;
color:black;
margin-bottom: 10px;
text-transform: uppercase;
}
.informations-item p:nth-child(3){
    font-size: 1.4rem;
    color:black;
    line-height: 1.9rem;
    }
/* End informations section */

/* Projects section */
#projects {
    background-color: #e8e2e2;
}
#projects .projects {
	flex-direction: column;
	max-width: 1300px;
	margin: 0 auto;
    padding: 100px 0;
}
#projects .projects-header p {
	margin-bottom: 50px;
}
#projects .all-projects {
	display: flex;
	align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}
#projects .project-item {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: row;
	width: 100%;
	overflow: hidden;
    border-radius: 10px;
    height: 300px;
}
#projects .project-item:nth-child(even){
    flex-direction: row-reverse;
}
#projects .project-info {
	padding: 30px;
	flex-basis: 50%;
	height: 100%;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	flex-direction: column;
	background-image: linear-gradient(60deg, #29323c 0%, #485563 100%);
    color: white;
    width: 50%;
}
#projects .project-info h2 {
	font-size: 30px;
	font-weight: 600;
}
#projects .project-info p {
	font-size: 16px;
	font-weight: 500;
    margin-top: 10px;
}
#projects .project-info div a{
    color: wheat;
    text-decoration: underline;
    padding: 6px;
    display: block;
    font-size: 14px;
}
#projects .project-info .project-type {
    color:crimson;
}
#projects .project-img {
	flex-basis: 50%;
	height: 300px;
	overflow: hidden;
    position: relative;
    height: 100%;
}
#projects .project-img:after {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	height: 100%;
	width: 100%;
	background-image: linear-gradient(60deg, #29323c 0%, #485563 100%);
	opacity: .0;
}
#projects .project-img img {
	transition: .3s ease transform;
}
#projects .project-item:hover  .project-img img {
	transform: scale(1.1);
}
/* End Projects section */

/* Footer */
#footer {
	background-image: linear-gradient(60deg, #29323c 0%, #485563 100%);
}
#footer .footer {
	min-height: 200px;
	flex-direction: column;
	padding-top: 50px;
	padding-bottom: 10px;
}
#footer p:nth-child(1) {
	color: white;
	font-weight: bold;
	font-size: 2.5rem;
	letter-spacing: .1rem;
}
#footer .social-icon {
	display: flex;
	margin-bottom: 30px;
}
#footer .social-item {
	height: 50px;
	width: 50px;
	margin: 0 5px;
}
#footer .social-item span {
	height: 50px;
	width: 50px;
    margin-left: 7px;
    color:white;
}
#footer .social-item img  {
	filter: grayscale(1);
	transition: .3s ease filter;
}
#footer .social-item:hover span{
    margin: 0 7px;
    color:crimson;
    font-weight: bold;
}

#footer .social-item:hover img, #footer .social-item:hover span {
	filter: grayscale(0);
}
#footer p:nth-child(2) {
	color: white;
    font-size: 1.8rem;
    margin:15px;
    padding:10px;
}
#footer small{
    color: white;
    margin-top: 15px;
}
/* End Footer */


/* Keyframes */
@keyframes text-reveal-box {
    50%{
      width: 100%;
      left: 0;
    }
    100%{
        width: 0;
        left: 100%;
    }
}
@keyframes text-reveal {
    100%{
      color:white;
    }
}
@keyframes text-reveal-name {
    100%{
      color:crimson;
      font-weight: 500;
    }
}
@keyframes hamburger_puls {
	0% {
		opacity: 1;
		transform: scale(1);
	}
	100% {
		opacity: 0;
		transform: scale(1.4);
	}
}


/* End keyframes */

/* Media query */
@media only screen and (max-width: 922px) {
    .education-content .informations-item {
        max-width: 100%;
        margin: 15px 6% !important;
    }
    
    #projects .project-item {
        flex-direction: column !important;
        margin: 25px;
        width:80%;
        height: 100%;
    }
    #projects .project-info {
        width:100%;
    }
    #projects .project-info h2{
        font-size: 20px;
        font-weight: bolder;
    }
    #projects .project-info p{
        font-size: 14px;
    }
    /* Header section */
    #header .nav-list ul {
        list-style: none;
        position: absolute;
        background-color: rgb(31, 30, 30);
        width: 100vw;
        height: 100vh;
        left: 100%;
        top: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 1;
        overflow-x: hidden;
        transition: .5s ease left;
    }
    #header .nav-list ul.active {
        left: 0%;
    }
    #header .nav-list ul a {
        font-size: 2.5rem;
        font-weight: 500;
        letter-spacing: .2rem;
        text-decoration: none;
        color: white;
        text-transform: uppercase;
        padding: 20px;
        display: block;
    }
    #header .nav-list ul a::after {
        content: attr(data-after);
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(0);
        color: rgba(240, 248, 255, 0.021);
        font-size: 13rem;
        letter-spacing: 50px;
        z-index: -1;
        transition: .3s ease letter-spacing;
    }
    #header .nav-list ul li:hover a::after {
        transform: translate(-50%, -50%) scale(1);
        letter-spacing: initial;
    }
    #header .nav-list ul li:hover a {
        color: crimson;
    }

    #header .hamburger {
        height: 60px;
        width: 60px;
        display: inline-block;
        border: 3px solid white;
        border-radius: 50%;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 100;
        cursor: pointer;
        transform: scale(.8);
        margin-right: 20px;
        background-color: black;

    }
    #header .hamburger:after {
        position: absolute;
        content: '';
        height: 100%;
        width: 100%;
        border-radius: 50%;
        border: 3px solid white;
        animation: hamburger_puls 1s ease infinite;
    }
    button .hamburger .active::after{
        border:0px solid transparent;
    }

    #header .hamburger .bar {
        height: 2px;
        width: 30px;
        position: relative;
        background-color: white;
        z-index: -1;
    }
    #header .hamburger .bar::after,
    #header .hamburger .bar::before {
        content: '';
        position: absolute;
        height: 100%;
        width: 100%;
        left: 0;
        background-color: white;
        transition: .3s ease;
        transition-property: top, bottom;
    }
    #header .hamburger .bar::after {
        top: 8px;
    }
    #header .hamburger .bar::before {
        bottom: 8px;
    }
    #header .hamburger.active .bar::before {
        bottom: 0;
    }
    #header .hamburger.active .bar::after {
        top: 0;
    }
    /* End Header section */
    /* Start section */
    .start-info{
        font-size: 6px;
    } 
    /* End Start section */
}



















































