 
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 100%;          
}

body {
  font-family: system-ui, -apple-system, sans-serif;
  line-height: 1.5;
  color: #333;
  background: #fff;         
  min-height: 100vh;
}

 
img {
  max-width: 100%;
  height: auto;
  display: block;
}
 
.header {
 
}

.hero {
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-align: center;
}

.hero-img {
  width: 100%;
  min-height: 350px;                
  background-image: url("img/ma.JPG");
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  color: white;
  padding: 1.5rem;
}

.hero-img h2 {
  font-size: 2.2rem;
  margin: 0;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.about-me {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0 0.5rem;
background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.04) 0%,
    aliceblue 35%,
    #f0f8ff 100%
);
border-radius: 10px;
}

.about-me h2 {
  font-size: 1.8rem;
}

.about-me p {
  font-size: 1.05rem;
  color: #555;
}

.icons {
  display: flex;
  justify-content: center;
  gap: 2rem;
  font-size: 2.2rem;
  margin-top: 1rem;
}

.icons a, .icons div {
  color: #333;
  transition: transform 0.2s ease, color 0.2s ease;
}

.icons a:hover, .icons div:hover {
  transform: scale(1.15);
  color: #0066cc;
}

 
.projects {
  padding: 2rem 1rem;
}
.project-grid{
    display: grid;
grid-template-columns: 1fr;

}
 

.projects h2 {
  margin-bottom: 0.4rem;
}

.project-card {
  background: linear-gradient(to right, 
    rgba(255, 255, 255, 0.92) 0%,
    aliceblue 45%,
    #f8fbff 100%
);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.project-card img {
  width: 100%;
  aspect-ratio: 4 / 3;          
  object-fit: cover;
  transition: transform 0.35s ease;
}

.project-card:hover img {
  transform: scale(1.06) translateY(-8px);
  transition: transform 0.5s ease-out;
}
.project-card a{
  text-decoration: none;
  color: #333;
}
 

.project-card .links {
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
 gap: 1rem;
   
}.project-card h3 {
  font-size: 1.45rem;
  margin: 0 0 0.6rem 0;
  font-weight: 600;
  color: #1f2937;
  transition: color 0.3s ease;
}

.project-card:hover h3 {
  color: #0066cc;
}
.project-card .links a:last-child {           /* targets the github icon link */
  font-size: 1.85rem;
  color: #333;
  transition: all 0.3s ease;
}

.project-card .links a:last-child:hover {
  color: #0066cc;
  transform: scale(1.25) rotate(10deg);   /* fun but professional hover */
}
 
 
.project-card p {
  padding: 0 1.5rem 1.5rem 1.5rem;   /* consistent padding with other elements */
  font-size: 1.02rem;
  line-height: 1.6;                  /* much better readability */
  color: #555;
  margin: 0;                         /* remove default margin */
}
 
footer {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.04) 0%,
    aliceblue 35%,
    #f0f8ff 100%
  );
  padding: 2rem 1rem 2rem;
  margin-top: 1rem;
}

.footer-content {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

/* Contact Section */
.contact h2 {
  font-size: 2.2rem;
  margin-bottom: 1.2rem;
  color: #1f2937;
}

.contact > p {
  font-size: 1.08rem;
  line-height: 1.7;
  color: #555;
  max-width: 620px;
  margin: 0 auto 2rem;
}

.contact-info {
  margin-bottom: 2rem;
}

.contact-info p {
  margin: 0.8rem 0;
  font-size: 1.1rem;
  color: #444;
}

.contact-info a {
  color: #0066cc;
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

/* Social Icons */
.social-icons {
  display: flex;
  justify-content: center;
  gap: 2.2rem;
  font-size: 2.4rem;
}

.social-icons a {
  color: #374151;
  transition: all 0.35s ease;
}

.social-icons a:hover {
  color: #0066cc;
  transform: scale(1.25) translateY(-6px);
}

/* ===================== RESPONSIVE ===================== */
 

 @media (min-width: 768px) {

    .projects h2 {
        text-align: left;
        margin-left: 2rem;
    }

    .hero {
        flex-direction: row;
        gap: 0;
    }

    .hero-img {
        align-items: start;
        justify-content: right;
        transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
                    box-shadow 0.35s ease;
    }

    .hero-img:hover {
        transform: translateY(30px);
    }

    .about-me {
     background: linear-gradient(to right, rgba(0, 0, 0, 0.06), aliceblue 40%);
      
        padding: 20px;
        transform: translateY(40px) translateX(-30px);
        text-align: right;
        padding-left: 3rem;
        /* z-index: -1;   ← REMOVE or change to z-index: 1; */
        z-index: 1;        /* Better: use positive or remove completely */
    }

    .icons {
        justify-content: right;
    }

    .project-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        padding: 2rem 1.5rem;
    }
footer {
    padding: 5rem 2rem 4rem;
  }
  
  .contact h2 {
    font-size: 2.4rem;
  }
  
  .contact > p {
    font-size: 1.12rem;
  }
}

@media (min-width: 1024px) {
.project-grid{
 
  grid-template-columns: repeat(3, 1fr);    
    gap: 2rem;  
}
     .hero-img {
    align-items: flex-end;
    justify-content: center;
    
    transition: 
    transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),  
    box-shadow 0.35s ease;
  }
    .hero-img:hover{
   transform: translateX(14px)
  }
   .about-me {
     background: linear-gradient(to right, rgba(0, 0, 0, 0.06), aliceblue 40%);
        box-shadow: inset;
        padding: 20px;
         transform: translateY(0px);
 text-align: left;
 padding-left: 3rem;
       }
}