@keyframes text {
	0% {
	content: '';
	}

	5% {
	content: 'H';
	}
	
	10% {
	content: 'Hi';
	}
	
	15% {
	content: 'Hi,';
	}


	20% {
	content: 'Hi, I';
	}

	25% {
	content: 'Hi, I a';
	}
	
	30% {
	content: 'Hi, I am';
	}

	35% {
	content: 'Hi, I am A';
	}

	40% {
	content: 'Hi, I am Ah';
	}

	45% {
	content: 'Hi, I am Ahm';
	}

	50% {
	content: 'Hi, I am Ahma';
	}

	55% {
	content: 'Hi, I am Ahmad';
	}

	60% {
	content: 'Hi, I am Ahmad E';
	}

	65% {
	content: 'Hi, I am Ahmad Er';
	}

	70% {
	content: 'Hi, I am Ahmad Erf';
	}

	75% {
	content: 'Hi, I am Ahmad Erfa';
	}

	80% {
	content: 'Hi, I am Ahmad Erfan';
	}
	
    85% {
        content: 'Hi, I am Ahmad Erfan Y';
    }

	90% {
	content: 'Hi, I am Ahmad Erfan Yo';
	}

    92% {
	content: 'Hi, I am Ahmad Erfan You';
	}

    94% {
        content: 'Hi, I am Ahmad Erfan Yous';
    }

    96% {
        content: 'Hi, I am Ahmad Erfan Youso';
    }

    98% {
        content: 'Hi, I am Ahmad Erfan Yousof';
    }
    
    100% {
        content: 'Hi, I am Ahmad Erfan Yousofi';
    }

}

@keyframes circle {
        0% {
        top: 0px
        }

        100% {
        top: 250px
        }
 
 
}

@font-face {
    font-family: 'ParagraphFont';
    src: url('./assets/Fonts/Quicksand-VariableFont_wght.ttf');
}

@font-face {
    font-family: 'MyFont';
    src: url('./assets/Fonts/Fredoka-VariableFont_wdth\,wght.ttf');
}

* {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    box-sizing: border-box;
}

body {
    display: flex;
    flex-direction: column;
    background-image: linear-gradient(135deg, #222831, #222831, #222831);
    color: #948979;
}

#nav-bar {
    display: flex;
    justify-content: end;
}

#header-page {
    background-image: linear-gradient(90deg, #22283166, #393e4665);
    background-clip: padding-box;
    backdrop-filter: blur(3px);
    color: #948979;
    height: 10vh;
    width: 100%;
    border-radius: 0px;
    font-family: 'MyFont';
    font-size: 18px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding-left: 1rem;
    position: fixed;
    top: 0rem;
}

#header-page:hover {
    background-image: linear-gradient(90deg, #393e4665, #22283166);
    color: white;
}

button {
    background-color: #222831;
    backdrop-filter: blur(10px);
    font-family: 'ParagraphFont';
    height: 2.5rem;
    width: 8rem;
    font-size: 1rem;
    font-weight: bold;
    padding: 0.1rem;
    margin-right: 1rem;
    border-radius: 3rem;
    border: none;
    transition: 0.5s;
    color: #948979;
}

button:hover {
    background-color: #393E46;
    color: white;
    cursor: pointer;
    scale: 1.1;
}

button:active {
    background-color: white;
    color: black;
    scale: 1;
}

main {
    display: flex;
    flex-direction: column;
    height: 100%;
}

aside {
    background-image: linear-gradient(120deg,#222831, #393e46);
    background-clip: padding-box;
    color: #948979;
    backdrop-filter: blur(10px);
    width: 100%;
    height: 100vh;
}

aside:hover {
    background-image: linear-gradient(180deg, #393e46, #222831);
    cursor: pointer;
    color: white;
}

#text-animation::before {
    content:'Hi, I am Ahmad Erfan Yousofi';
    animation: text 10s ease-out 1s infinite alternate;
}

#container {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
}


#Introduction {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 10rem;
    gap: 8rem;
}

#title {
    width: 100%;
    font-family: 'MyFont';
}

.My-image {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    margin-top: 5px;
    border: 5px solid #393e46;
}

.text-2 {
    border-left: 4px solid #393E46;
    background-color: #2228311d;
    color: #DFD0B8;
    font-size: 20px;
    font-family: 'ParagraphFont';
    margin-top: 10rem;
    padding: 1rem;
    font-style: italic;
}

#My-info {
    width: 12rem;
    border-radius: 0.5rem;
    background-color: #393E46;
}

#About-Box {
    width: 100%;
    font-family: 'MyFont';
    text-align: center;
    display: flex;
    justify-content: center;
    position: relative;
    animation: circle 10s ease-in-out 0s infinite alternate;

}

#About-Box > section {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 0.5rem;
    margin-left: 0.5rem;
    padding: 0.5rem;
    justify-content: center;
    align-items: center;
    background-color: #222831;
    font-weight: bolder;
    box-shadow: 0px 0px 30px 2px white;
    text-shadow: 3px 3px 1px black;    
}

#About-Section {
    background-image: linear-gradient(180deg, #222831 , #393E46);
    backdrop-filter: blur(10px);
    height: 900px;
    padding-top: 1rem;
    display: flex;
    flex-direction: column;
}

.logo-one {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 3px solid white;
    object-fit: cover;
}

#About-Section:hover {
    background-image: linear-gradient(180deg, #393E46, #222831);
}

#About-Box2 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 12px;
}

#About-text {
    color: #948979;
    margin-top: 3rem;
    font-family: 'ParagraphFont';
    display: flex;
    text-align: center;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.li-text {
    margin-left: 1rem;
    font-size: 16px; 
    font-weight: bold;
}

#Skills {
    background-image: linear-gradient(180deg, #222831, #393E46);
    backdrop-filter: blur(10px);
    padding-top: 1rem;
    display: flex;
    flex-direction:  column;
}

#Skills:hover {
    background-image: linear-gradient(180deg, #393E46, #222831);
}

#educate-exper {
    background-image: linear-gradient(180deg, #222831, #393E46);
    backdrop-filter: blur(10px);
    padding-top: 1rem;
    display: flex;
    flex-direction:  column;
}

#educate-exper:hover {
    background-image: linear-gradient(180deg, #393E46, #222831);
}

.header-box {
    text-align: center;
    font-family: 'MyFont';
    margin-bottom: 1rem ;
    color: #948979;
    cursor: pointer;
}

.header-box:active {
    background-color: white;
    color: black;
    border-radius: 0.2rem;
    cursor: pointer;
    width: 70%;
    margin-left: 10rem;
}

.educationlogo {
    width: 80px;
    height: 80px;
}

.education-expreience {
    display: flex;
    flex-direction: row; 
    justify-content: center; 
    align-items: center; 
    gap: 2rem;
}

.education-expreience-box {
    width: 400px; 
    height: 200px; 
    border-radius: 0.5rem; 
    background-color: #222831;
}

#Projects-box {
    background-image: linear-gradient(180deg, #222831, #393E46);
    backdrop-filter: blur(10px);
    padding-top: 1rem;
    display: flex;
    flex-direction:  column;
}

#Projects-box:hover {
    background-image: linear-gradient(180deg, #393E46, #222831);
}

#Projects {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.5rem;
    gap: 1rem;
}

.section-container {
    display: flex;
    gap: 5rem;
    font-family: 'ParagraphFont';
}

.section-container > div {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    justify-content: space-between;
    align-items: center;
    background-color: #393E46;
    border-radius: 1rem;
    width: 400px;
    transition: 0.8s;
    border: 1px solid rgba(255, 255, 255, 0.107);
}

.section-container > div:hover {
    background-color: #222831;
    cursor: pointer;
}

.Project-Picture > img {
    border-radius: 1rem 1rem 0rem 0rem;
    width: 100%;
    height: 100%;
    margin: 0px;
}

#Projects > div > section > img {
    width: 300px;
    height: 200px;
    border-radius: 1rem;
    object-fit: cover;
}

#input-contact {
    display: flex;
    flex-direction: row;
    gap: 1.6rem;
}

#Contact {
    background-image: linear-gradient(180deg, #222831, #393E46);
    backdrop-filter: blur(10px);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    font-family: 'ParagraphFont';
    display: flex;
    flex-direction: column;
}

#Contact:hover {
    background-image: linear-gradient(180deg, #393E46, #222831);
}

#Contact-Input-Container {
    display: flex;
    justify-content: center;
}

#Contactwithme {
    display: flex;
    justify-content: center;
    border-radius: 20px;
    width: 97.8%;
}

#Contactwithme > article {
    width: 100%;
}

#Contact-section {
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: 3s;
}


#Contact-section:hover {
    background-color: #393E46;
    cursor: pointer;
}

.text-animation {
    font-weight: bold;
    transition: 0.5s;
}

.text-animation:hover {
    scale: 0.9;
    font-weight: bolder;
    color: black;
}

#Contact-section > section > article > img {
    object-fit: cover;
    height: 2rem;
    width: 2rem;
}

#Contact-section > section > a > img {
    object-fit: cover;
    height: 2rem;
    width: 2rem;
    transition: 0.5s;
}

#Contact-section > section > a > img:hover {
    scale: 1.5;
    cursor: pointer;
}

#Contact-section > section > article {
    display: flex;
    flex-direction: row;
    align-items: center;
}

#Contact-section > section > article > p {
    margin-left: 1rem;
    margin-top: 0.4rem;
}
    
#Input-Section {
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: 3s;
}

form {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

#Input-Section:hover {
    background-color: #393E46;
    cursor: pointer;
}

input[type="text"], input[type="email"], textarea {
    height: 3rem;
    width: 90%;
    border-radius: 1rem;
    outline: none;
    border: none;
    padding: 1rem;
    font-weight: bold;
    font-size: 1rem;
    background-color: #222831;
    color: white;
    font-family: 'ParagraphFont';
}

input:hover {
    background-color: #393E46;
    border: 1px solid rgba(255, 255, 255, 0.107);
    cursor: pointer;
}

input:active {
    background-color: black;
    color: white;
}

input:focus {
    box-shadow: 0px 0px 2px 1px white;
    cursor: pointer;
    scale: 0.9;
    transition: 1s;
    font-size: 1.1rem;
    font-weight: bold;
}

textarea:hover {
    background-color: #393E46;
    border: 1px solid rgba(255, 255, 255, 0.107);
    cursor: pointer;
}

textarea:active {
    background-color: black;
    box-shadow: 0px 0px 2px 1px white;
    color: white;
}

.logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: none;
    object-fit: cover;
}

#Box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.Box-container {
    background-image: linear-gradient(180deg, #393E46, #222831);
    color: #948979;
    font-family: 'ParagraphFont';
    text-align: center;
    width: 400px;
    height: 300px;
    margin: 0px 10px 10px 10px;
    border-radius: 20px;
    padding: 10px;
    transition: 1s;
}

.Box-container:hover {
    background-image: linear-gradient(180deg, #222831, #393E46);
    color: white;
    cursor: pointer;
}

.Box-container:active {
    background-image: linear-gradient(90deg, white);
    color: black;
    scale: 0.8;
    border-radius: 40px;
}

.box-model {
    display: flex;
    gap: 3rem;
}

@media (min-width: 200px) and (max-width: 550px) {
    main {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    margin: 0px;
    }   

aside {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 140vh;
    border-radius: 0px;
    border: none;
    margin: 0px;
    margin-top: 0px;
    }   

    #container {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    margin: 0px;
    }
    
    .header-box {
    text-align: center;
    display: flex;
    justify-content: center;
    font-family: 'MyFont';
    margin-bottom: 1rem ;
    color: #948979;
    cursor: pointer;
    }

    .header-box:active {
    background-color: white;
    color: black;
    border-radius: 0.2rem;
    cursor: pointer;
    width: auto;
    }

    #About-Section {
    height: 900px;
    border: none;
    border-radius: 0px;
    padding-top: 1rem;
    display: flex;
    flex-direction: column;
    margin-top: 0px;
    margin-bottom: 0rem;
    }

    #Introduction {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    gap: 0rem;
    margin-top: 50px;
    height: auto;
    }

    .text-2 {
    border-left: 4px solid #393E46;
    background-color: #2228311d;
    color: #DFD0B8;
    font-size: 20px;
    font-family: 'ParagraphFont';
    margin-top: 2rem;
    padding: 1rem;
    font-style: italic;
    }

    #My-imageMedia {
        margin-top: 1rem;
    }

    .Skills {
    width: 100%;
    border-radius: 0px;
    border: none;
    padding-top: 1rem;
    display: flex;
    flex-direction: column;
    }

    #Box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    }

    .education-expreience {
    display: flex;
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    gap: 2rem;
    }

    #Projects-box {
    border: none;
    margin: 0px;
    border-radius: 0px;
    padding-top: 1rem;
    display: flex;
    flex-direction:  column;
    }

    .section-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-family: 'ParagraphFont';
    }
    
    .section-container > div {
    display: flex;
    gap: 3rem;
    justify-content: space-between;
    align-items: center;
    background-color: #393E46;
    border-radius: 1rem;
    padding: 0.5rem;
    width: 350px;
    transition: 0.8s;
    border: 1px solid rgba(255, 255, 255, 0.107);;
    }
    
    #Contactwithme {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
}

    #Contact-section {
    padding: 2rem;
    gap: 5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: 3s;
}

    #Contact {
    border-radius: 0px;
    border: none;
    margin: 0px;
    }

    #nav-bar {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0px;
    }

    #header-page {
    background-image: none;
    background-clip: padding-box;
    backdrop-filter: blur(3px);
    padding-left: 0rem;
    color: #948979;
    height: 10vh;
    width: 100%;
    border-radius: 0px;
    margin: 0px;
    padding: 0px;
    font-family: 'MyFont';
    font-size: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    }

    #nav-btn {
    gap: 0rem;
    margin: 0px;
    padding: 0px;
    }

    #nav-btn-a {
    gap: 0rem;
    padding: 0rem;
    margin: 0px;
    }

    .button-media {
    height: 2rem;
    width: 3rem;
    font-size: 0.5rem;
    margin: 0px 0px 0px 0px;
    font-weight: bold;
    border-radius: 3rem;
    border: none;
    transition: 0.5s;
    color: #948979;    
    }

    .text-margin {
    display: none;
    }

    .box-model {
    display: flex;
    flex-direction: column;
    gap: 0rem;
    }

    .Box-container {
    background-image: linear-gradient(180deg, #393E46, #222831);
    color: #948979;
    font-family: 'ParagraphFont';
    text-align: center;
    width: 300px;
    height: 300px;
    margin: 0px 10px 10px 10px;
    border-radius: 20px;
    padding: 10px;
    transition: 1s;
    }

    .education-expreience-box {
        width: 300px;
        height: 250px;
    }
}