* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'Poppins', sans-serif; /* ✅ خط واضح وأنيق */
}

/* :root {
    --bg-color:#fff;
    --snd-bg-color: #d5fdf9;
    --text-color: #000;
    --main-color:#dddfde;
} */
:root {
    --bg-color: #fff;
    --snd-bg-color: #d5fdf9;
    --text-color: #000;
    --main-color: #007f73; /* ✅ أخضر فاتح أنيق */
}



html{

    font-size: 62.5%;
    overflow-x: hidden;   
}

body{
    background: var(--bg-color);
    color: var(--text-color);
}
section {
    min-height: 100vh;
    padding: 10rem 9% 2rem;
}
/* Header Section Code */

.header {
    position: fixed;
    width: 100%;
    top: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 5%;
    background: var(--main-color);
    backdrop-filter: blur(10px);
    transition: all 0.5s ease;
}
.logo {
    font-size: 3rem;
    color: var(--bg-color);
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s ease;
    letter-spacing: 0.5rem;
}

.logo:hover {
    transform: scale(1.09);
}
.navbar a {
    font-size: 1.9rem;
    color: var(--bg-color);
    margin-left: 4rem;
    font-weight: 700;
    transition: 0.3s ease;
}

.navbar a:hover,
.navbar a.active{
    color: var(--text-color);
}

#menu-icon {
    font-size: 3.6rem ;
    color: var(--bg-color);
    cursor: pointer;
    display: none;
}

/* Home Section Code */
.home {
    display: flex;
    justify-content: center;
    align-items: center;

}

.home-img img {
    width: 25vw;
    border-radius: 50%;
    box-shadow: 0 0 25px var(--main-color);
    cursor: pointer;
    animation: floatImage 4s ease-in-out infinite;
    transition: 0.4s ease;
}
.home-img img:hover {
    box-shadow : 0 0 25px var(--main-color),
                 0 0 35px var(--main-color),
                 0 0 45px var(--main-color);
                
}
@keyframes floatImage{
    0%{
        transform: translateY(0);
    }
    50%{
        transform: translateY(-2.4rem);
    }
    100%{
        transform: translateY(0);
    }
}

.home-content {
    margin-left: 5rem;
}
.home-content h3 {
    font-size: 3.7rem;
    font-weight: 700;
}
.home-content h3:nth-last-of-type(2) {
    margin-bottom: 2rem;   
}
span{
    color: var(--main-color);   
}
.home-content h1 {
    font-size: 6rem;
    font-weight: 700;
    line-height: 1.3; 
    letter-spacing: 0.25rem;
}
.home-content p {
    font-size: 2.1rem;   
}
.social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 42px;
    height: 42px;
    background:transparent ;
    border: 0.2rem solid var(--main-color);
    border-radius: 50%;
    font-size: 2rem;
    color: var(--main-color);
    margin: 3rem 1.5rem 3rem 0;
    transition: 0.3s ease;   
}
.social-links a:hover{
    transform: scale(1.2) translateY(-10px);
    background-color: var(--main-color);
    color: var(--bg-color);
    box-shadow: 0 0 25px; 

}
.btn {
    display: inline-block;
    padding: 1rem 2.8rem;
    background-color: var(--main-color);
    border-radius: 4rem;
    box-shadow: none;
    font-size:1.6rem;
    color: var(--bg-color);
    letter-spacing: 0.1rem;
    font-weight: 600;
    transition: 0.3s ease;
}
.btn:hover {
    box-shadow: 0 0 1.6rem var(--main-color);
}
/* About Section Code  */

.about {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem ;
    background: var(--snd-bg-color);
}
.about-img img{
    width: 25vw;
    border: 2px solid var(--main-color);
    border-radius: 50%;
    box-shadow: 0 0 25px var(--main-color);
    cursor: pointer;
    /* animation: floatImage 4s ease-in-out infinite; */
    transition: 0.4s ease;
}

.about-img img:hover {
    box-shadow : 0 0 25px var(--main-color),
                 0 0 35px var(--main-color),
                 0 0 45px var(--main-color);
                
}
@keyframes floatImage{
    0%{
        transform: translateY(0);
    }
    50%{
        transform: translateY(-2.4rem);
    }
    100%{
        transform: translateY(0);
    }
}

.heading {
    font-size: 6rem;
    text-align: left;    
}
.about_content {
    padding: 0 4rem;
}
.about_content h2{
    text-align: left;
    line-height: 1.2;
}

.about_content h3{
    font-size: 3rem;
}
.about_content p{
    font-size: 1.6rem;
    margin:3rem 0 3rem
}
/* projects Section Code */
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem; /* المسافة بين الكروت */
  padding: 4rem 8%;
  background: var(--bg-color);
  justify-items: center;
}

.project-card {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  overflow: hidden;
  max-width: 320px;
  transition: all 0.3s ease;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.project-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.project-info {
  padding: 1.2rem 1.4rem;
  text-align: center;
}

.project-category {
  font-size: 1.4rem;
  color: #444;
  margin-bottom: 0.6rem;
}

.project-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.3rem;
}

.project-title span {
  font-weight: 600;
  color: #00897b; /* لون جذاب */
}

.more-details {
  text-decoration: none;
  color: #00897b;
  font-weight: 500;
  transition: 0.3s ease;
}

.more-details:hover {
  color: #005f56;
}

/* ===== Responsive Design ===== */

/* شاشات التابلت */
@media (max-width: 992px) {
  html {
    font-size: 55%;
  }

  .home {
    flex-direction: column;
    text-align: center;
  }

  .home-img img {
    width: 50vw;
    margin-bottom: 3rem;
  }

  .about {
    flex-direction: column-reverse;
    text-align: center;
  }

  .about-img img {
    width: 50vw;
    margin-top: 2rem;
  }
}

/* شاشات الموبايل */
@media (max-width: 768px) {
  #menu-icon {
    display: block;
  }

  .navbar {
    position: absolute;
    top: 100%;
    right: -100%;
    width: 100%;
    background: var(--main-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: 0.3s ease;
  }

  .navbar a {
    display: block;
    margin: 2rem 0;
  }

  .navbar.active {
    right: 0;
  }

  .home-img img {
    width: 65vw;
  }

  .about-img img {
    width: 65vw;
  }

  .projects {
    grid-template-columns: 1fr; /* كل كارت لوحده */
  }
}


