@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

*{
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth; 
}


header {
    background-color: #f0f0f0;
    width: 100%;
    position: fixed;
    z-index: 999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 200px ;
}

.logo{
    text-decoration: none;
    color: #601cfc;
    text-transform: uppercase;
    font-weight: 1000;
    font-size: 2em;
}

.navigation a{
    color: #3a6cf4;
    text-decoration: none;
    font-size: 1.2em;
    font-weight: 700;
    padding-left: 35px;
}

.navigation a:hover{
    color: #601cfc;
}

section {
    padding: 70px 200px;
}

.main {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: url(images/imag.jpg) no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    
}

.main h2 {
    margin-top: 200px;
    color: #fff;
    font-size: 1.6em;
    font-weight: 500;
}

.main h2 span {
    display: inline-block;
    margin-top: 18px;
    color: #4e9eff;
    font-size: 3em;
    font-weight: 700;
}

.main h3 {
    color: #fff;
    font-size: 1.8em;
    font-weight: 700;
    letter-spacing: 1px;
    margin-top: 18px;
    margin-bottom: 90px;
}

.main-btn {
    color: #fff;
    background-color: #3a6cf4;
    text-decoration: none;
    font-size: 1.2em;
    font-weight: 600;
    display: inline-block;
    padding: 0.9375em 2.1875em;
    letter-spacing: 1px;
    border-radius: 15px;
    margin-bottom: 40px;
    transition: 0.7s ease;
}

.main-btn:hover {
    background-color: #601cfc;
    transform: scale(1.1);
}

.social-icons a {
    color: #fff;
    font-size: 1.7em;
    padding-right: 30px;
    transition: 0.3s ease;
}
.social-icons a:hover{
    color: #601cfc;
    
}



#skills .icon {
    font-size: 5em;
    margin-bottom: 10px;
}
.title {
    display: flex;
    justify-content: center;
    color: #601cfc;
    font-size: 40px;
    font-weight: 900;
    margin-bottom: 30px;
}

.content {
    display: flex;
    justify-content: center;
    flex-direction: row;
    flex-wrap: wrap;
    
}

.card {
    background-color: #fff;
    width: 21.25em;
    box-shadow: 0 5px 25px rgba(1 1 1 / 25%);
    border-radius: 10px;
    padding: 25px;
    margin: 15px;
    transition: 0.7s ease;
    text-align: center;
}

.card:hover {
    transform: scale(1.1);
}

.card:hover .info h3 {
    color: #601cfc;
}

.card .icon {
    color: #3a6cf4;
    font-size: 8em;
    text-align: center;
    margin-bottom: 15px;
}

.info {
    text-align: center;
}

.info h3{
    color: #3a6cf4;
    font-size: 1.2em;
    font-weight: 700;
    margin: 10px;
}
#skills {
    background-color: #f7f9fc;

}
.section{
    background: linear-gradient(to right, #000016, #5f1cfc7e);
}
.section h2{
    font-size: 40px;
    text-align: center;
    color: #f0f0f0;
}
.timeline {
  
  position: relative;
  margin: 40px 0 0;
  padding: 10px 0;
  width: 100%;
  max-width: 900px; /* أرفع العرض شوية عشان ميبقاش داخل */
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20px;
  width: 3px;
  height: 100%;
  background: #5f1cfc7e;
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin: 15px 0 15px 50px; /* قللنا المسافة */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-item:hover {
  transform: translateY(-5px);
}

.timeline-dot {
  position: absolute;
  top: 5px;
  left: -30px;
  width: 16px;
  height: 16px;
  background: #fff;
  border: 3px solid #601cfc;
  border-radius: 50%;
}

.timeline-content {
  background: #ffffff;
  padding: 12px 18px;
  border-radius: 12px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.98);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

.timeline-item:hover .timeline-content {
  background: #f0f8ff; /* لمسة خفيفة */
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.timeline-title {
  font-size: 18px;
  font-weight: 600;
  color: #3a6cf4;
}

.timeline-date {
    color: #3a6cf4;
  font-size: 12px;
  margin-bottom: 6px;

}


.card:hover .icon {
        color: #601cfc;
}
.projects {
    background: linear-gradient(to right, #000016, #5f1cfc7e);
}
.projects h2{
    color: #fff;
}

.projects .content{
    margin-top: 30px;
}

.project-card {
    background-color: #f4f6fa;
    border: 1px solid #f4f6fa;
    min-height: 14em;
    width: 23em;
    overflow: hidden;
    border-radius: 10px;
    margin: 20px;
    transition: 0.7s ease;
}

.project-card:hover {
    transform: scale(1.1);
}

.project-card:hover .project-image {
    opacity: 0.9;
}

.project-image img{
    width: 100%
}

.project-info {
    padding: 1em;
}

.project-category {
    font-size: 0.8em;
    color: #000;
}

.project-title {
    display: flex;
    justify-content: space-between;
    text-transform: uppercase;
    font-weight: 800;
    margin-top: 10px;
}

.more-details {
    text-decoration: none;
    color: #552ab9;
}


.contact .icon{
    font-size: 4.5em;
}

.contact .info h3 {
    color: #000;
}

.contact .info p {
    font-size: 1.2em;
}

.footer {
    background-color: #000016;
    color: #fff;
    padding: 1.2em;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.footer-title {
    font-size: 1.3em;
    font-weight: 600;
}

.footer-title span {
    color: #3a6cf4;
}

.footer .social-icons a{
    font-size: 1.3em;
    padding: 0 6px ;
}


@media (max-width:1023px){
    header{
        padding: 12px 20px;
    }

    .navigation a{
        padding-left: 8.13px;
        font-size: 1em;
    }
    .main h2 {
    margin-top: 30px;
    }

    .title{
        font-size: 40px;
    }

    section{
        padding: 80px 20px;
    }

    .main-content h2{
        font-size: 1em;
    }

    .main-content h3{
        font-size: 1.6em;
    }

    .content{
        flex-direction: column;
        align-items: center;
    }

}

@media (max-width:641px){
    body{
        font-size: 12px;
    }
    .main-content h2{
        font-size: 0.8em;
    }
    .main-content h3{
        font-size: 1.4em;
    }
}

@media (max-width:300px){
    body{
        font-size: 10px;
    }
}
