:root {
    --bg-1: #119b04;
    --bg-2: #00203F;
    --text: #FFE6E6;
    --muted: #D89C9C;
    --accent: #2bff00;
    --accent-2: #77fd5c;
    --card: #032201;
    --card-2: #ffffff;
    --shadow: 0 10px 30px rgba(255, 56, 56, 0.15);
}
*{
    margin: 0;
    padding: 0;
}

@font-face {
    font-family: 'Open sans';
    src: url('../Fonts/OpenSans-Italic-VariableFont_wdth\,wght.ttf');
}

body{
    font-family: 'Open Sans';
    background: var(--bg-1);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}
html{
    scroll-behavior: smooth;
    overflow-x: hidden;
}
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
    radial-gradient(ellipse at top, var(--bg-2) 0%, var(--bg-1) 100%);
    z-index: -2;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
    radial-gradient(2px 2px at 20px 30px, var(--accent), transparent),
    radial-gradient(2px 2px at 40px 70px, var(--accent-2), transparent),
    radial-gradient(1px 1px at 90px 40px, var(--accent), transparent),
    radial-gradient(1px 1px at 130px 80px, var(--accent-2), transparent),
    radial-gradient(2px 2px at 160px 30px, var(--accent), transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: stars 20s linear infinite;
    opacity: 0.3;
    z-index: -1;
}

@keyframes stars {
    from { transform: translateY(0px); }
    to { transform: translateY(-100px); }
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.section {
    padding: 60px 0;
}
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 80px;
    color: #ffffff;
    position: relative;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    border-radius: 2px;
}

/* start nav  */
nav{
    padding: 15px 0;
    background-color: rgba(34, 155, 94, 0.438);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(4px);
}
.nav_box{
    width: 75%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
}
nav a{
    color: white;
    text-decoration: none;
}
nav a:hover{
    color: #2bff00;
}
.nav_icon,.nav_links-icon{
    font-size: 35px;
    font-weight: bold;
}

.nav_links{
    display: flex;
    align-items: center;
}
.nav_links-icon{
    display: flex;
    justify-content: space-between;
    display: none;
}
.nav_links p{
    font-size: 20px;
    font-weight: bold;
}
.nav_links-icon a{
    margin-left: 15px;
    left: 0;
}
.nav_links>a{
    padding: 0 10px;
}

/* end nav  */


/* start header */
.header{
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 60px 0;
    color: var(--text);
}
.erfan-content {
    display: flex;
    justify-content: center;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.erfan-text {
    padding: 0 20px;
    animation: slideInLeft 1s ease-out;
    z-index: 100;
    background: rgba(0, 0, 0, 0.362);
    border: 1px solid #2bff00;
    border-radius: 12px;
    padding: 30px;
    font-size: 1.1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(2px);
}
.erfan-text button {
    cursor: pointer;
    padding: 0.1em 0.25em;
    width: 13em;
    height: 4.2em;
    color: #fff;
    background-color: #032201;
    border: 0.08em solid #fff;
    border-radius: 0.3em;
    font-size: 12px;
    margin-top: 20px;
}

.erfan-text button span {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    bottom: 0.4em;
    width: 8.25em;
    height: 2.5em;
    background-color: #032201;
    border-radius: 0.2em;
    font-size: 1.5em;
    border: 0.08em solid #fff;
    box-shadow: 0 0.4em 0.1em 0.019em #fff;
}

.erfan-text button span:active {
    transition: all 0.5s;
    transform: translate(0, 0.4em);
    box-shadow: 0 0 0 0 #fff;
}

.erfan-text button span:not(active) {
    transition: all 1d;
}


.greeting {
    color: #2bff00;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.erfan-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.cursor {
    color: #2bff00;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.erfan-quote {
    color: #2bff00;
    font-size: 1.1rem;
    margin-bottom: 35px;
}
/* Avatar and Solar System */
.erfan-visual {
    display: flex;
    justify-content: center;
    animation: slideInRight 1s ease-out;
}

.avatar-container {
    position: relative;
    width: 500px;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1120;
}
.container{
    max-width: 1120px;
}

.sun-core {
    width: 168px; 
    height: 168px; 
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 4px solid #FFD700;
    box-shadow:
    0 0 40px rgba(255, 215, 0, 0.8),
    0 0 80px rgba(255, 215, 0, 0.5),
    0 0 120px rgba(255, 215, 0, 0.3),
    inset 0 0 30px rgba(255, 215, 0, 0.4);
    animation: sunGlow 3s ease-in-out infinite alternate;
    cursor: pointer;
    transition: transform 0.3s ease;
    overflow: hidden;
}

.sun-core img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.sun-core:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

/* Orbit Icon Buttons */
.orbit-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 10px;
    font-weight: bold;
    color: var(--text);
    cursor: pointer;
    transition: all 0.3s ease;
    transform-origin: 0 0;
}

.orbit-icon img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.orbit-icon:hover {
    background: rgba(255, 56, 56, 0.4);
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(255, 56, 56, 0.5);
}

@keyframes sunGlow {
    0% {
    box-shadow:
        0 0 40px rgba(255, 215, 0, 0.8),
        0 0 80px rgba(255, 215, 0, 0.5),
        0 0 120px rgba(255, 215, 0, 0.3),
        inset 0 0 30px rgba(255, 215, 0, 0.4);
    }
    100% {
    box-shadow:
        0 0 50px rgba(255, 215, 0, 1),
        0 0 100px rgba(255, 215, 0, 0.7),
        0 0 150px rgba(255, 215, 0, 0.4),
        inset 0 0 40px rgba(255, 215, 0, 0.6);
    }
}




@keyframes slideInLeft {
    from {
    opacity: 0;
    transform: translateX(-50px);
    }
    to {
    opacity: 1;
    transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
    opacity: 0; 
    transform: translateX(50px);
    }
    to {
    opacity: 1;
    transform: translateX(0);
    }
}

/* Orbit rotation animations */
@keyframes rotate {
    from {
    transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
    transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes counterRotate {
    from {
    transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
    transform: translate(-50%, -50%) rotate(-360deg);
    }
}
.glow-genz-button {
    background: transparent;
    border: 2px solid var(--accent);
    border-radius: 12px;
    color: var(--accent);
    font-weight: 700;
    font-size: 18px;
    padding: 12px 36px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Ubuntu, Cantarell, 'Noto Sans', sans-serif;
    position: relative;
    overflow: hidden;
}

.glow-genz-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--accent), var(--accent-2), #FF7F7F, #FF3838);
    background-size: 400% 400%;
    animation: glowGradient 4s ease infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.glow-genz-button:hover {
    color: white;
    border-color: var(--accent-2);
    box-shadow: 0 0 25px rgba(255, 56, 56, 1), 0 0 50px rgba(255, 92, 92, 0.8);
    transform: scale(1.05);
}

.glow-genz-button:hover::before {
    opacity: 1;
}

@keyframes glowGradient {
    0% {
    background-position: 0% 50%;
    }
    50% {
    background-position: 100% 50%;
    }
    100% {
    background-position: 0% 50%;
    }
}


/* end header  */

/* start About Me*/
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-top: 60px;
}

.about-text p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: var(--muted);
}

.skills h3 {
    color: var(--text);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    background: #2bff0017;
    color: var(--accent);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid #2bff00;
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: var(--accent);
    color: white;
    transform: scale(1.05);
}

.about-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.code-animation {
    background: rgba(0, 0, 0, 0.362);
    border: 1px solid #2bff00;
    border-radius: 12px;
    padding: 30px;
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    color: var(--accent);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(2px);
}

.code-line {
    margin-bottom: 8px;
}

.code-line.indent {
    margin-left: 20px;
}
/* end About Me*/

/* start Certifications */
.Certifications{
    padding: 100px 0;
    max-width: 100vw;
}

.Certifications-box{
    display: flex;
    flex-wrap: wrap;
    width: 90%;
    margin: 0 auto;
}
.sec-top{
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 17px 0;
}

.sec-top-title{
    font-size: 38px;
    font-weight: bold;
    color: rgb(255, 255, 255);
    display: block;
}
.sec-top-line{
    width: 100px;
    height: 3px;
    background-color: #2bff00;
    display: inline-block;
    margin: 30px;
    border-radius: 8rem;
    max-width: 52%;
}
.Certifications-item{
    display: flex;
    padding: 40px 0;
}
.sec-top p{
    color: var(--muted);
    font-weight: 400;
    width: 60%;
}
.Certifications-item-img{
    width: 90%;
}
.Certifications-item-img img{
    width: 500px;
    box-shadow: 0 20px 45px -10px rgba(0, 0, 0, .15);
}
.Certifications-item-info{
    color: var(--muted);
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 6px 15px;
}
.Certifications-item-info h4{
    color: #2bff00;
    font-size: 35px;
    font-weight: bold;
}
.Certifications-item-info-text{
    width: 60%;
}
.Certifications-item-info p i{
    font-size: 20px;
    padding: 10px 0 ;
}
.Certifications-item-info-text2{
    padding: 3px 0;
}
.Certifications-item i{
    color: #2bff00;
    transition: all .8;
    animation: rotate_icon2 1s ease-in-out 80ms infinite;
}
@keyframes rotate_icon2 {
    100%{
        transform: rotate(360deg);
    }
}


/* end  Certifications */

/* start contact */
.contact{
    padding: 70px 0;
}
.contact_box{
    width: 75%;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
}
.contact_form{
    width: 45%;
    
}
.contact_info{
    width: 45%;
}
.contact_form form{
    background-color: rgba(178, 171, 171, 0.237);
    padding: 40px 35px;
    box-shadow: 0 20px 45px -10px rgba(0, 0, 0, .15);
    border-radius: 12px;
    backdrop-filter: blur(2px);
}
.contact_form_title{
    display: block;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 30px;
}
.contact_form .input1{
    display: block;
    width: 93.5%;
    padding: 10px 10px;
    margin: 5px 0;
    caret-color: #2bff00;
    border-radius: 12px;
}
.contact_form .input1:focus{
    border-color: #2bff00;
}
.contact_form textarea{
    display: block;
    width: 94%;
    padding: 15px 10px;
    border-radius: 12px;
    caret-color: #2bff00;
}
.contact_form_sub_btn {
    cursor: pointer;
    padding: 0.1em 0.25em;
    width: 13em;
    height: 4.2em;
    color: #fff;
    background-color: #032201;
    border: 0.08em solid #fff;
    border-radius: 0.3em;
    font-size: 12px;
    margin-top: 20px;
}

.contact_form_sub_btn {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    bottom: 0.4em;
    width: 8.25em;
    height: 2.5em;
    background-color: #032201;
    border-radius: 0.2em;
    font-size: 1.5em;
    border: 0.08em solid #fff;
    box-shadow: 0 0.4em 0.1em 0.019em #fff;
}

.contact_form_sub_btn:active {
    transition: all 0.5s;
    transform: translate(0, 0.4em);
    box-shadow: 0 0 0 0 #fff;
}

.contact_form_sub_btn:not(active) {
    transition: all 1d;
}
.contact_info_title{
    color: #73767c;
    display: block;
}
.contact_info_text{
    color: #2bff00;
    margin-bottom: 45px;
    display: block;
    width: 45%;
    margin-top: 10px;
}
/* end contact */
/* start footer */
footer{
    background-color:rgb(34, 155, 94);
    padding: 70px 0;
}
.footer_box{
    width: 75%;
    margin: 0 auto;
}
.footer_icons{
    list-style-type: none;
    display: flex;
    justify-content: center;
    margin-bottom: 35px;

}
.footer_icons li{
    display: inline-block;
}
.footer_icons li a{
    color: var(--muted);
    text-decoration: none;
    font-size: 35px;
    margin: 0 15px;
}
.footer_icons li a:hover{
    color: #2bff00;
}
.footer_inf{
    text-align: center;
    color: white;
    margin: 0 15px;
}
.footer_inf p{
    margin: 10px 0;

}
.footer_inf a{
    text-decoration: none;
    color: var(--muted); 
}
.footer_inf a:hover{
    color: #2bff00;
}
/* end footer  */

/* start project */
.project {
    padding-top: 100px;
    font-family: "Poppins", sans-serif;
}

.title-project {
    text-align: center;
    margin-bottom: 2rem;
}

.title-project h4 {
    margin-bottom: 0.5rem;
}

.title-project p {
    color: var(--muted);
}

.tools {
    display: flex;
    justify-content: center;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 2rem;
}

.list-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    list-style: none;
    max-width: 800px;
    justify-content: center;
}

.list-tools li {
    flex: 0 0 140px; 
}

.list-tools a {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    text-decoration: none;
    color: #ACF0D1;
    background: #00203F;
    padding: 15px 20px;
    border-radius: 12px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.list-tools a:hover {
    background: linear-gradient(135deg, #fff, #ccc);
    color: #000;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 15px rgba(0,0,0,0.5);
}

.projects-container {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-wrap: wrap;
    padding: 30px;
    margin: 30px;
}

.project-card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(1.5px);
    border: 1px solid rgba(80, 255, 103, 0.25);
    color: var(--muted);
    border-radius: 22px;
    overflow: hidden;
    text-align: center;
    transition: all 0.4s ease;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    padding: 0 0 5px;
    margin: 10px 0;
    box-shadow: 0 0 25px rgba(255, 80, 120, 0.15);
    max-width: 350px;
    max-height: 400px;
}
.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 120%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(80, 255, 80, 0.25),
        transparent
    );
    transition: 0.6s;
}
.project-card:hover::before {
    left: 120%;
}
.project-card-content video{
    display: none;
    object-fit: cover;
}
.project-card:hover video{
    display: block;
}

.project-card:hover img{
    display: none;
}

.project-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.project-card h3 {
    margin: 15px 0 5px;
    font-size: 1.2rem;
    color: var(--accent-2);
    transition: color 0.3s ease;
}

.project-card:hover h3,.bottom-links{
    color: #2bff00; 
}

.project-card p {
    font-size: 0.9rem;
    margin: 0 10px 15px;
}

.tech-buttons a {
    display: inline-block;
    margin: 5px 5px;
    padding: 5px 10px;
    background: #ffffff63;
    color: #111;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.tech-buttons a:hover {
    background: linear-gradient(135deg, #fff, #ccc);
    color: #000;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 12px rgba(0,0,0,0.3);
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 0 40px rgba(100, 255, 80, 0.5);
}
.project-card .bottom-links{
    color: var(--accent);
    text-decoration: none;
    margin-left: 5px; margin-top: 10px; margin-bottom: 10px;
    transition-duration: 0.3s;
} 
.project-card .bottom-links:hover{
    color: var(--accent);
}

.project-card a i{
    transition-duration: 0.5s;
}
.project-card .bottom-links:hover i{
    margin-left: 15px;
}
/* end project */
/* start loading  */
.loader_container::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at top, var(--bg-2) 0%, var(--bg-1) 100%);
    z-index: -2;
}

.loader_container::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(2px 2px at 20px 30px, var(--accent), transparent),
        radial-gradient(2px 2px at 40px 70px, var(--accent-2), transparent),
        radial-gradient(1px 1px at 90px 40px, var(--accent), transparent),
        radial-gradient(1px 1px at 130px 80px, var(--accent-2), transparent),
        radial-gradient(2px 2px at 160px 30px, var(--accent), transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: stars 20s linear infinite;
    opacity: 0.3;
    z-index: -1;
}
.loader_container{
    width: 100%;
    height: 100dvh;
    background-color: #6C7C58;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    visibility: visible;
    opacity: 1;
    transition: opacity 2.5s ease-in;
}
.hide{
    opacity: 0;
}

.main-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
}


.planets {
    position: relative;
    height: 100px;
    width: 100px;
    display: flex;
}

#planetTrail1,
#planetTrail2,
#planetTrail3 {
    outline: solid rgb(101, 101, 101) 1px;
    border-radius: 50%;
    position: absolute;
}

#planetTrail1::after,
#planetTrail2::after,
#planetTrail3::after {
    content: "";
    width: 10px;
    height: 10px;
    position: absolute;
    border-radius: 50%;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
}

#planetTrail1::after {
    background-color: rgb(213, 213, 120);
}

#planetTrail2::after {
    background-color: rgb(115, 174, 231);
}

#planetTrail3::after {
    background-color: rgb(180, 73, 49);       
}

#planetTrail1 {
    width: 120px;
    height: 120px;
    animation: trails1 4s infinite;
}

#planetTrail2 {
    width: 170px;
    height: 170px;
    animation: trails2 4s infinite;
}

#planetTrail3 {
    width: 220px;
    height: 220px;
    animation: trails3 4s infinite;
    }

    @keyframes trails1 {
    0% {
        transform: rotate(0deg);
    }
    40% {
        transform: rotate(360deg);
        width: 120px;
        height: 120px;
    }
    50% {
        width: 0px;
        height: 0px;
    }
    90% {
        width: 0px;
        height: 0px;
    }
    100% {
        width: 120px;
        height: 120px;
    }
}

@keyframes trails2 {
    0% {
        transform: rotate(0deg);
    }
    40% {
        transform: rotate(250deg);
        width: 170px;
        height: 170px;
    }
    50% {
        width: 0px;
        height: 0px;
    }
    90% {
        width: 0px;
        height: 0px;
    }
    100% {
        width: 170px;
        height: 170px;
    }
}

@keyframes trails3 {
    0% {
        transform: rotate(0deg);
    }
    40% {
        transform: rotate(170deg);
        width: 220px;
        height: 220px;
    }
    50% {
        width: 0px;
        height: 0px;
    }
    90% {
        width: 0px;
        height: 0px;
    }
    100% {
        width: 220px;
        height: 220px;
    }
}

#star {
    position: absolute;
    width: 50px;
    height: 50px;
    background-color: rgb(255, 170, 0);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: bouncingStar 4s infinite;
}

#starShadow {
    position: absolute;
    width: 50px;
    height: 20px;
    background-color: rgb(255, 170, 0);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, 100%);
    filter: blur(5px);
    opacity: 0.3;
    animation: shadowAnimation 4s infinite;
}

@keyframes bouncingStar {
    0% {
        transform: translate(-50%, -50%);
    }
    10% {
        transform: translate(-50%, -30%);
    }
    20% {
        transform: translate(-50%, -50%);
    }
    30% {
        transform: translate(-50%, -30%);
    }
    40% {
        transform: translate(-50%, -50%);
        width: 50px;
        height: 50px;
    }
    50% {
        width: 0px;
        height: 0px;
    }
    90% {
        width: 0px;
        height: 0px;
    }
    100% {
        width: 50px;
        height: 50px;
    }
}

@keyframes shadowAnimation {
    0% {
        opacity: 0.1;
    }
    10% {
        opacity: 0.4;
    }
    20% {
        opacity: 0.1;
    }
    30% {
        opacity: 0.4;
    }
    40% {
        opacity: 0.1;
    }
    50% {
        opacity: 0;
    }
    90% {
        opacity: 0;
    }
    100% {
        opacity: 0.1;
    }
}

#blackHole {
    position: absolute;
    width: 50px;
    height: 50px;
    background-color: rgb(0, 0, 0);
    outline: orange solid 5px;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: bouncingBlackHole 4s infinite;
    }

    @keyframes bouncingBlackHole {
    0% {
        height: 0px;
        width: 0px;
    }
    40% {
        width: 0px;
        height: 0px;
    }
    50% {
        width: 50px;
        height: 50px;
    }
    90% {
        width: 50px;
        height: 50px;
    }
    100% {
        width: 0px;
        height: 0px;
    }
}

#planet {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: rgb(255, 255, 255);
    border-radius: 50%;
    animation: planetAn 4s infinite;
}

@keyframes planetAn {
    0% {
        opacity: 0;
        transform: translate(0px, 0px);
        z-index: 1;
    }
    50% {
        opacity: 0;
        transform: translate(0px, 0px);
        z-index: 1;
    }
    58% {
        opacity: 1;
    }
    70% {
        opacity: 1;
        transform: translate(100px, 40px);
        z-index: 1;
    }
    71% {
        z-index: 0;
    }
    90% {
        z-index: 0;
        opacity: 1;
        transform: translate(-10px, 70px);
    }
    100% {
        transform: translate(-10px, 70px);
        opacity: 0;
    }
}


/* end loading  */

/* responsive  */

/* // Medium devices (tablets, less than 992px) 768-991*/
@media (max-width: 991.98px) {
/* start nav  */
    nav{
    padding: 15px 0;
    width: 100%;
    }
    .nav_box{
    width: 75%;
    }
    .nav_icon{
    font-size: 15px;
    }
    .nav_links a{
        display: none;
    }
    .nav_links-icon{
        display: flex;
        font-size: 15px;
    }
    .nav_bar{
        display: flex;
    }
    /* end nav  */
    /* start header */
.erfan-content {
    gap: 50px;
    text-align: center;
    flex-wrap: wrap;
    }

.erfan-social {
    justify-content: center;
}

.erfan-title {
    font-size: 3rem;
}
/* end header  */

/* start Certifications */
.Certifications{
    padding: 100px 0;
}

.Certifications-box{
    width: 85%;
    flex-wrap: wrap;
    justify-content: center;
}
.sec-top{
    padding: 17px 0;
}

.sec-top-title{
    font-size: 38px;
}
.Certifications-item{
    padding: 30px 0;
    flex-wrap: wrap;
    justify-content: center;
}
.sec-top p{
    width: 60%;
}
.Certifications-item-img{
    width: 100%;
}
.Certifications-item-img img{
    width: 100%;
}
.Certifications-item-info{
    width: 100%;
    padding: 6px 15px;
}
.Certifications-item-info h4{
    font-size: 35px;
}
.Certifications-item-info-text{
    width: 100%;
}
.Certifications-item-info p i{
    font-size: 20px;
    padding: 10px 0 ;
}
.Certifications-item-info-text2{
    padding: 3px 0;
}

/* end  CertCertifications */

/* start contact */

.contact_box{
    display: flex;
    flex-wrap: wrap;
}
.contact_form{
    width: 100%;
}
.contact_info{
    width: 100%;
}
    .about-content,
    .contact-content {
    grid-template-columns: 1fr;
    gap: 50px;
    }

    .projects-grid {
    grid-template-columns: 1fr;
    }
/* end contact */
}

/* // Small devices (landscape phones, less than 768px) 576-767*/
@media (max-width: 767.98px) {
/* start nav  */
nav{
    padding: 15px 0;
    width: 100%;
    }
    .nav_box{
        width: 75%;
    }
    .nav_icon{
    font-size: 15px;
    }
    .nav_links a{
        display: none;
    }
    .nav_bar{
        display: flex;
    }
    /* end nav  */
    /* start header */
.erfan-content {
    gap: 40px;
    flex-wrap: wrap;
}

.erfan-social {
    justify-content: center;
}

.erfan-title {
    font-size: 2.5rem;
}

.section-title {
    font-size: 2rem;
}

.avatar-container {
    width: 350px;
    height: 350px;
}

.sun-core {
    width: 80px;
    height: 80px;
}

.earth-container {
    width: 30px;
    height: 30px;
    top: -15px;
}

.orbit-icon.html {
    width: 60px;
    height: 60px;
}

.orbit-icon.css {
    width: 60px;
    height: 60px;
}

.orbit-icon.js {
    width: 60px;
    height: 60px;
}

.orbit-icon.react {
    width: 60px;
    height: 60px;
}

.orbit-icon.nodejs {
    width: 60px;
    height: 60px;
}

.orbit-icon.python {
    width: 60px;
    height: 60px;
}

.orbit-icon.git {
    width: 60px;
    height: 60px;
}

.moon-orbit {
    width: 60px;
    height: 60px;
}

.orbit-icon.moon {
    width: 9px;
    height: 9px;
    top: -4.5px;
}

    /* end header  */
    /* start services */
.services{
    padding: 15px 0;
}
.services-box{
    height: 100%;
    width: 90vw;
    flex-wrap: wrap;
}   
.service{
    height: 75%;
    width: 100%;
    padding: 7px;
}
.service_top_icon{
    font-size: 45px;
}
.service>h3{
    font-size: 19px;
    padding: 15px 0;
}

.service>p{
    margin-bottom: 25px;
}
.service a:hover i{
    margin-left: 15px;
}
/* end servises */
/* start portfolio */
.Certifications{
    padding: 100px 0;
}

.Certifications-box{
    width: 85%;
    flex-wrap: wrap;
    justify-content: center;
}
.sec-top{
    padding: 17px 0;
}

.sec-top-title{
    font-size: 38px;
}
.Certifications-item{
    padding: 30px 0;
    flex-wrap: wrap;
    justify-content: center;
}
.sec-top p{
    width: 60%;
}
.Certifications-item-img{
    width: 100%;
}
.Certifications-item-img img{
    width: 100%;
}
.Certifications-item-info{
    width: 100%;
    padding: 6px 15px;
}
.Certifications-item-info h4{
    font-size: 35px;
}
.Certifications-item-info-text{
    width: 100%;
}
.Certifications-item-info p i{
    font-size: 20px;
    padding: 10px 0 ;
}
.Certifications-item-info-text2{
    padding: 3px 0;
}

/* end  portfolio */
.project-card-content video{
    width: 310px;
}
.project-card {
    width: 310px;
}
/* start contact */

.contact_box{
    display: flex;
    flex-wrap: wrap;
}
.contact_form{
    width: 100%;
}
.contact_info{
    width: 100%;
}
/* end contact */
    .about-content,
    .contact-content {
    gap: 40px;
    }

    .projects-grid {
    gap: 30px;
    }

    .project-content {
    padding: 20px;
    }

    .contact-form {
    padding: 25px;
    }
}

/* // X-Small devices (portrait phones, less than 576px)  0-575*/
@media (max-width: 575.98px) {
/* start nav  */
nav{
    padding: 15px 0;
    width: 100%;
    }
    .nav_box{
        width: 75%;
    }
    .nav_icon{
    font-size: 15px;
    }
    .nav_links a{
        display: none;
    }
    .nav_bar{
        display: flex;
    }
    /* end nav  */
    /* start header */
.container {
    padding: 0 15px;
}

.section {
    padding: 60px 0;
}

.erfan-content {
    gap: 30px;
}

.erfan-social {
    justify-content: center;
}

.greeting {
    font-size: 1rem;
}

.erfan-title {
    font-size: 2rem;
}

.erfan-quote {
    font-size: 1rem;
}

.avatar-container {
    width: 250px;
    height: 250px;
}

.sun-core {
    width: 60px;
    height: 60px;
}



.earth-container {
    width: 24px;
    height: 24px;
    top: -12px;
}

.orbit-icon.html {
    width: 30px;
    height: 30px;
}

.orbit-icon.css {
    width: 30px;
    height: 30px;
}

.orbit-icon.js {
    width: 30px;
    height: 30px;
}

.orbit-icon.react {
    width: 30px;
    height: 30px;
}

.orbit-icon.nodejs {
    width: 40px;
    height: 40px;
}

.orbit-icon.python {
    width: 40px;
    height: 40px;
}

.orbit-icon.git {
    width: 40px;
    height: 40px;
}

.moon-orbit {
    width: 40px;
    height: 40px;
}

.orbit-icon.moon {
    width: 7px;
    height: 7px;
    top: -3.5px;
}

.nav-container {
    padding: 12px 15px;
}
/* end header  */

/* start Certifications */
.Certifications{
    padding: 100px 0;
}

.Certifications-box{
    width: 85%;
    flex-wrap: wrap;
    justify-content: center;
}
.sec-top{
    padding: 17px 0;
}

.sec-top-title{
    font-size: 38px;
}
.Certifications-item{
    padding: 30px 0;
    flex-wrap: wrap;
    justify-content: center;
}
.sec-top p{
    width: 60%;
}
.Certifications-item-img{
    width: 100%;
}
.Certifications-item-img img{
    width: 100%;
}
.Certifications-item-info{
    width: 100%;
    padding: 6px 15px;
}
.Certifications-item-info h4{
    font-size: 35px;
}
.Certifications-item-info-text{
    width: 100%;
}
.Certifications-item-info p i{
    font-size: 20px;
    padding: 10px 0 ;
}
.Certifications-item-info-text2{
    padding: 3px 0;
}

/* end  Certifications */

.project-card-content video{
    width: 310px;
}
.project-card {
    width: 310px;
}

/* start contact */
.contact_box{
    display: flex;
    flex-wrap: wrap;
}
.contact_form{
    width: 100%;
}
.contact_info{
    width: 100%;
}
/* end contact */
}
@media (max-width: 575.98px) {
    /* start header */
    .header-links{
        margin-top: 50px;
    }
    .header-link1{
        padding: 15px 25px;
    margin: 15px 0;
    }
    .header-link2{
        padding: 15px 25px;
    margin: 15px 0;
    }
    .about-content,
    .contact-content {
    gap: 30px;
    }

    .skills-grid {
    justify-content: center;
    }

    .project-links {
    flex-direction: column;
    }

    .social-links {
    justify-content: center;
    }
}