/* Prevent horizontal overflow */
html, body {
    width: 100%;
    overflow-x: hidden;
  }
  
  /* Ensure all elements respect boundaries */
  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    max-width: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* Critical for images/tables */
  }
.hero-section{
    background-color: #2A2A2A;
    background-size: contain;
    height: 100%;
    position: relative; /* Add this */
    z-index: 1; /* Add this */
    
    
}
.hero-section,
.stats-section,
.experience-education-section{
    display: flex;
    gap: 30px;
    padding: 20px;
}
.hero-content{
    width: 70%;
    
}
.hero-image-container{
    width: 40%;
    display: flex;
    justify-content: center;
    align-items: center;
   padding: 50px;
    

}
.hero-subtitle{
    margin-top: 20px;
}
.hero-description{
    margin-top: 20px;
}
.profile-image{
    width: 400px;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
    
}
.hero-section .hero-content{
    line-height: 0.9;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding:50px;
    padding-left: 30px;
    color: #E0E0E0;
    

}
.sharp{
    padding-top: 50px;
}
.hero-section .social-links{
    display: flex;
    gap: 35px;
    margin-top: 30px;
   
    
}
 .social-icon .fab{
   font-size: 1.5rem;
   color: #CCCCCC;
   transition: all 0.3s ease-in-out;
 
}
.fab:hover{
    color: #00A2FF;
    transform: translateY(-3px);
    
}

.download-cv-button{
    background: #00A2FF;
    color: #fff;
    padding: 20px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 30px;
    transition: all 0.3s ease-in-out;
    font-weight: bolder;
    text-decoration: none;
    
    
}
.download-cv-button:active{
    background-color: #00FF9D;
}
 h1{
    font-size: 2.3rem;
    font-weight: bolder;
    
}
.hero-subtitle{
    font-size: 3rem;
}
.hero-description{
    font-size: 1.1rem;
    line-height: 1.5;
}
.stats-section{
    width: 90%;
    justify-content: space-between;
    background-color: white;
    position: relative; /* Change from static to relative */
    z-index: 2; /* Ensure it's on top */
    border-radius: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    height: 20%;
    margin: -50px auto 0;


}
.stats-section .stat-item{
    text-align: center;
    
}
.stat-number{
    font-size: 2.5rem;
    font-weight: bolder;
    color: #00A2FF;
}
.stat-label{
    font-size: 1rem;
    
}
.services-section{
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px;
   
    box-sizing: border-box;
}
.services-section .section-title{
    font-size: 2.5rem;
}

.services-container .service-item{
    display: flex;
    flex-direction: column;
    width: 100%;
    border: 1px black solid;
    padding: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    background-color: #CCCCCC;
    border-radius: 10px;
    transition: all 0.3s ease-in-out 0.1s;
    border-style: none;
    
}
.service-item:hover{
    transform: scale(1.05);
}  


.services-container{
    display: flex;
    width: 50%;
    justify-content: center;
    gap: 40px;
    padding-top: 10px;
   
}
.service-item .service-number{
    color: #00A2FF;
    font-size: 2rem;
}
.experience-education-section{
    display: flex;
    gap: 30%;
    padding: 50px;
   
}
.coder{
    display: flex;
    flex-direction:column ;
    gap: 50px;
    

}
.experience-item{
    border-left: #00A2FF 5px solid;
    padding-left: 20px;
   
}
.education-item{
    border-left: #00A2FF 5px solid;
    padding-left: 20px;
}
.experience-container{
  line-height: 2;
}
.education-container{
    line-height: 2;
}
.skills-section{
    padding: 6rem 2rem;
    width: 100%;
    margin: 0 auto;
}

.skills-container{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}
.skill-item {
    text-align: center;
}
.skill-item img {
    width: 60px;
    height: 50px;
    margin-bottom: 1rem;
}
.projects-section{
   padding: 20px;
   
    margin: 0 auto;
    box-sizing: border-box;
    width: 100%;
}
.projects-container{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}
.project-item {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease-in-out 0.1s;
    cursor: pointer;
}
.project-item:hover{
    transform: scale(1.05);
    opacity: 0.8;
}
.project-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.project-details{
    padding: 1rem;
    margin: 0;
    font-size: 1.5rem;
}
.project-item .class{
    padding: 0 1rem 1rem;
}
.contact {
    padding: 6rem 2rem;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;

}
#contact-form{
    margin-top: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;

}

input, textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
}

textarea {
    height: 150px;
    resize: vertical;
}

.submit-btn {
    background: #00A2FF;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s;
}

.submit-btn:hover {
    transform: translateY(-2px);
}

footer {
    text-align: center;
    padding: 2rem;
    background: #f1f1f1;
}
/* Define the zoom animation */
@keyframes zoomIn {
    from {
      transform: scale(0.5); 
      opacity: 0; 
    }
    to {
      transform: scale(1);
      opacity: 1;
    }
  }
  
  
  .profile-image{
    animation: zoomIn 1s ease-out forwards; 
    max-width: 100%; 
  }

  @media (max-width: 780px) {
    body {
        overflow-x: hidden;
        margin: 0;
        padding: 0 ;
        box-sizing: border-box;
        
    }
   
    .hero-section{
        flex-direction: column;
        align-items: center;
        padding: 30px;
    }
    .hero-content{
        width: 100%;
        text-align: left;
      
    }
    .hero-image-container{
        width: 100%;
        padding: 0;
        padding-top: 20px;
       
    }
    .download-cv-button{
        width: 100%;
        padding: 15px;
        font-size: 1rem;
        margin-top: 20px;
        border-radius: 30px;
       border-radius: 20px;
       text-align: center;
        
       
       
    }
    .sharp{
        padding-top: 50px;
    }
    .hero-image-container {
        margin: 0;
    }
    
   
    .stat-label{
        font-size: 1rem;
    }
    .stats-section{
        flex-direction: column;
        width: 90%;
        height: auto;
        padding: 20px;
        margin: 0 auto;
        box-sizing: border-box;
    }
    .services-section{
        width: 100%;
        padding: 20px;
        margin: 0 auto;
        box-sizing: border-box;
    }
    .services-container{
        flex-direction: column;
        width: 70%;
    }
    .section-title{
        font-size: 1rem;
    }
    .service-title{
        font-size: 1rem;
    }
    .experience-education-section{
        flex-direction: column;
        width: 100%;
        padding: 20px;
    }
    .skills-container{
        grid-template-columns: repeat(2, 1fr);
    }
    .projects-container{
        grid-template-columns: 1fr;
    }
    .project-item img {
        height: 150px;
    }
    #contact-form{
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
       
    }
    .skills-section{
        padding: 2rem 1rem;
    }
    .contact{
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 20px;
    }
}
