body{
    margin: 0;
    background: #000000;
}
/* navbar */
nav{
    width: 100%;
    display: flex;
    justify-content: space-around;
    position: fixed;top: 0;left: 0;z-index: 100;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);  
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    
}

.img-nav{
    width: 30%;
}

.img-nav img{
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-top: 10px;
}

.list-nav{
    width: 50%;
    padding-top: 15px;
}

.list-nav ul{
    display: flex;
    justify-content: space-between;
    list-style-type: none;
}

.list-nav ul li{
    font-size: 25px;
}

.list-nav ul li a{
    text-decoration: none;
    color: #3d4e53;
}

.list-nav ul li a:hover{
    color: #420000;
    text-shadow: 2px 2px 2px rgba(5, 5, 5, 0.863);
}
/* Home */
.home{
    background-image: url(imgs/img5.jpg);
    width: 100%;
    height: 100vh;
    background-position: center ;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 40px;
}

h2 .text1::after {
  content: "";
  animation: typed 10s infinite;
  border-right: 2px solid rgb(14, 1, 73);
  padding-right: 5px;
  color: #440000;
}

@keyframes typed {
  0% { content: "I"; }
  5% { content: "I am"; }
  10% { content: "I am a"; }
  15% { content: "I am a Front"; }
  20% { content: "I am a Front-End"; }
  25% { content: "I am a Front-End Developer"; }
  35% { content: "I am a Front-End Developer"; }
  45% { content: "I am a Front-End Develope"; }
  50% { content: "I am a Front-End Develop"; }
  55% { content: "I am a Front-End Devel"; }
  60% { content: "I am a Front-End Dev"; }
  65% { content: "I am a Front-End"; }
  70% { content: "I am a Front"; }
  75% { content: "I am a"; }
  80% { content: "I am"; }
  85% { content: "I a"; }
  90% { content: "I"; }
  100% { content: ""; }
}
/* About */
.about{
    width: 70%;
    display: flex;
    margin: auto;
    padding-block: 50px;
    justify-content: space-around;
    color: wheat;
}

.about-my{
    width: 50%;
}

.about-my h2{
    font-size: 40px;
    text-shadow: 1px 1px 1px rgb(233, 9, 9);
}

.about-my p{
    font-size: 25px;
    padding-top: 10px;
}

.photo{
    width: 30%;
    background-color: #001116;
    position: relative;
    border: 1px deshed rgb(1, 1, 83);
    border-radius: 15px;
}

.photo img{
    width: 100%;
    position: absolute;
    top: 10px;
    left: 10px;
    border-radius: 15px;
}
/* project */
.project-title {
    font-size: 24px;
    margin-bottom: 30px;
    display: inline-block;
    padding-bottom: 5px;
}

.line-project {
    position: relative;
    width: 120px;            
    height: 2px;            
    background-color: #031fbd; 
    margin: 10px auto;       
}

.line-project::before,.line-project::after {
    content: "";
    position: absolute;
    left: 15%;               
    width: 70%;              
    height: 1.5px;          
    background-color: #022ec0;
}

.line-project::before {
    top: -4px;              
}

.line-project::after {
    bottom: -4px;            
} 


.project-section {
    text-align: center;
    padding: 50px 20px;
    color: whitesmoke;
}

.projects-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; 
}

.project-card {
    position: relative;
    width: 200px;
    height: 200px;
    overflow: hidden; /* عشان الكلام ميبانش بره الكارت */
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.5s ease;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Hover */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); 
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0; /* مخفية في البداية */
    transition: opacity 0.5s ease, transform 0.5s ease;
    transform: rotateY(180deg); /* تأثير الدوران */
}

.project-card:hover .overlay {
    opacity: 1;
    transform: rotateY(0deg);
}

.project-card:hover img {
    transform: scale(1.1); 
}

.open-btn {
    margin-top: 10px;
    padding: 5px 15px;
    border: 1px solid white;
    background: transparent;
    color: white;
    border-radius: 15px;
    cursor: pointer;
}

.open-btn:hover {
    background: white;
    color: black;
}
/* contact */
.contact-section {
    padding: 50px 20px;
    display: flex;
    justify-content: center;
    text-transform: lowercase; 
}

.contact-container {
    width: 100%;
    max-width: 800px;
    border: 2px solid #1500ce;
    border-radius: 20px;
    padding: 30px;
    background-color: #282829;
}

.contact-title {
    color: #4500e7;
    font-size: 28px;
    margin-bottom: 5px;
}

.contact-subtitle {
    font-size: 14px;
    margin-bottom: 25px;
}

.input-group {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.text,.email,textarea {
    width: 90%;
    background: #001116;
    padding: 12px 15px;
    border: 1px solid #222020;
    border-radius: 10px;
    outline: none;
    font-size: 14px;
    transition: border-color 0.3s;
    color: #ffffff;
    
}

.input-group input {
    flex: 1;
}

.email {
    margin-bottom: 10px;
}

textarea {
    height: 120px;
    resize: none; 
}

input:focus, textarea:focus {
    border-color: #020b5a;
    
}

.contact-container input:hover, 
.contact-container textarea:hover {
    border-color: #4d0000; 
    background-color: #1d4b1d; 
}

.contact-container input:focus, 
.contact-container textarea:focus {
    border-color: #06003d;
    box-shadow: 0 0 8px rgba(0, 83, 131, 0.3); 
    outline: none; 
}

/* footer */
.main-footer {
    background: #0d0d0e; 
    color: #fff;
    padding: 30px 0;
    text-align: center;
    width: 100%;
}

.made-by {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 20px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px; 
}

.icon-circle {
    width: 40px;
    height: 40px;
    background-color: #fff; 
    color: #000; 
    border-radius: 50%; 
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.icon-circle:hover {
    background-color: #06014e; 
    color: #fff; 
    transform: translateY(-5px); 
}

.icon-circle i {
    font-size: 18px;
} 
.up{
    background-color: cornsilk;
    color: #000;
    width: 40px;
    height: 40px;
    border-radius: 7px;
    border: 1px solid black;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    right: 20px;
    bottom: 20px;
}

.up a{
    color: #000;
}

@media (max-width: 768px) {

    .home {
        height: 60vh; 
        background-attachment: scroll; 
    }

    .home h2 {
        font-size: 2rem; 
        padding: 10px 20px;
    }

    
    .about {
        padding: 20px;
        text-align: center; 
    }

    .about {
        width: 100%; 
        padding: 0;
    }

    .photo {
        width: 100%; 
        margin-top: 20px;
        order: -1; 
    }

    .photo img {
        border-left: none; 
        border-bottom: 5px solid #000000; 
        width: 100%;
        max-width: 300px; 
    }

    .projects-container {
        flex-direction: column; 
        align-items: center;
    }

    .project-card {
        width: 90%; 
        height: 250px; 
    }

    
    .input-group {
        flex-direction: column;
        gap: 15px;
    }

    .contact-container {
        width: 95%; 
        padding: 20px;
    }

    .contact-title {
        font-size: 22px; 
    }

    .social-icons {
        gap: 10px;
    }

    .icon-circle {
        width: 35px;
        height: 35px;
    }
}