@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: 0px;
  padding: 0px;
  box-sizing: border-box;
  scroll-behavior: smooth;
  transition: 0.7s ease;
}

:root {
  --header-height: 70px; 
}

header {
  height: var(--header-height);
}

html {
  scroll-padding-top: calc(var(--header-height) + 10px);
}


header {
  background-color: rgb(193, 193, 196);
  width: 100%;
  position: fixed;
  z-index: 999;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 50px;
}
.logo {
  width: 180px;
  height: 50px;
}

.navigation a {
  color: rgb(0, 89, 221);
  text-decoration: none;
  font-size: 1.1em;
  font-weight: 500;
  padding-left: 30px;
}

.navigation a:hover {
  color: rgb(169, 66, 6);
}

.menu-icon {
  display: none; 
  font-size: 1.8em;
  cursor: pointer;
}




section {
  padding-top: calc(var(--header-height) + 30px); 
  padding-left: 200px;   
  padding-right: 200px;
  padding-bottom: 100px;
}


.main {
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgb(82, 82, 82);
  padding: 0 250px;
  gap: 30px;
  border-radius: 0 0 50px 50px;
}

.text {
  flex: 1;
  color: #fff;
}

.main h2 {
  font-size: 1.5em;
  font-weight: 500;
}

.main h2 span {
  color: #000;
  font-size: 3em;
  font-weight: bold;
}

.main h3 {
  color: #000;
  font-size: 2em;
  font-weight: 700;
  margin-top: 10px;
  margin-bottom: 20px;
}

.main-btn {
  color: white;
  background-color:linear-gradient(90deg, #0048ff, #0099ff);
  text-decoration: none;
  font-size: 1.1em;
  font-weight: 600;
  padding: 0.9375em 2.1875em;
  border-radius: 15px;
  margin-bottom: 30px;
  display: inline-block;
  transition: 0.7s ease;
}

.main-btn:hover {
  background-color: rgb(0, 0, 0);
  transform: scale(1.1);
}

.main-profile {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.main-profile img {
  width: 300px;
  height: auto;
  border-radius: 20%;
  object-fit: cover;
  box-shadow:  0 10px 25px rgba(0, 0, 0, 0.3);
  border: 5px solid #fff;
  transition: 0.7s ease;
  background-color: #9a9999;
}

.main-profile img:hover {
  transform: scale(1.05);
  background-color: #9a9999;
}

.social-icons a {
  color: white;
  font-size: 1.7em;
  padding-right: 10px;
  transition: 0.7s ease;
  text-decoration: none;
}

.social-icons a:hover {
  transform: scale(1.2);
  color: rgb(0, 94, 255);
}

.about p{
font-weight: bold;
box-shadow: 0 5px 25px #9a9999;
border-radius: 20px;
display: flex;
justify-content: center;
margin: 20px;
padding: 25px;
background-color: aqua;
align-items: center;
transition: 1.5s ease;
text-align: center;
font-size: 117%;
}


.about p:hover{
transform: scale(1.1);
}



.title {
  display: flex;
  justify-content: center;
  color: rgb(1, 55, 218);
  font-size: 2.2em;
  font-weight: 800;
  margin-bottom: 30px;
}

.cards{
  background-color:  rgb(82, 82, 82);
  border-radius: 50px;
}

.content {
  display: flex;
  justify-content: center;
  flex-direction: row;
  flex-wrap: wrap;
}


.card {
  background-color: #fff;
  min-height: 250px; 
  max-width: 18em;
  min-width: 18em;
  box-shadow: 0 5px 25px #9a9999;
  border-radius: 10px;
  padding: 25px;
  margin: 15px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: 0.7s ease;
  text-align: center;
}


.card:hover {
  transform: scale(1.1);
}

.icon {
  color: royalblue;
  font-size: 4em;
  text-align: center;
  margin-bottom: 10px;
}
.info {
  text-align: center;
}

.info h3 {
  color: rgb(0, 0, 255);
  font-size: 1.2em;
  font-weight: 700;
  margin: 10px;
}

.projects {
  background-color: rgb(255, 255, 255);
}
.projects .content {
  margin-top: 30px;
}
.project-card {
  background-color: #a8a8a8;
  border: 1px solid #000000;
  min-height: 10em;
  border-radius: 10px;
  width: 15em;
  overflow: hidden;
  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;
text-align: center;

}
.more-details{
  text-decoration: none;
  color: rgb(18, 18, 238);
  display: flex;
}
.more-details:hover{
  color: rgb(1, 179, 199);
}

.contact{
  background-color:  rgb(82, 82, 82);
  border-radius: 50px 50px 0 0 ;
}

.contact .icon {
  color: royalblue;
  font-size: 3.2em;
  margin-bottom: 10px;
  transition: 0.3s ease;
}


.contact .info h3 {
font-size: 1.2em;
  color: royalblue;
  margin-bottom: 8px;
}
.contact .info p{
  font-size: 1em;
  color: #333;
  word-break: break-word;
  font-weight: bold;

}
.contact .info a{
  text-decoration: none;
  font-size: 1em;
  color: #333;
  word-break: break-word;
  font-weight: bold;

}

.footer{
background-color: #9a9999;
display: flex;
justify-content: center;
padding: 0.7em ;
}

.footer .social-icons a{
  padding: 20px 25px ;
font-size: 2.2em;
 }
.footer p {
justify-content: center;
display: flex;
padding: 15px;
font-weight: bold;
}
.footer p span {

  color: darkblue;
}



@media (max-width: 1024px) {
  header {
    padding: 12px 30px;
  }

  .navigation a {
    padding-left: 15px;
    font-size: 1em;
  }

  section {
    padding: 80px 40px;
  }

  .main {
    padding: 0 100px;
    gap: 20px;
  }

  .main h2 span {
    font-size: 2.5em;
  }

  .main h3 {
    font-size: 1.8em;
  }

  .card, .project-card {
    width: 45%;
  }
}

  


 @media (max-width: 480px) {
  header {
    padding: 8px 15px;
  }

  .logo {
    width: 130px;
  }

  .main h2 {
    font-size: 1.2em;
  }

  .main h2 span {
    font-size: 2em;
  }

  .main h3 {
    font-size: 1.4em;
  }

  .main-profile img {
    width: 200px;
  }

  .navigation a {
    font-size: 0.9em;
  }

  .main-btn {
    font-size: 0.9em;
    padding: 0.8em 1.8em;
  }

  .card, .project-card {
    width: 95%;
  }

   .social-icons{
    font-size: 60%;
  }

  .footer .social-icons{
    font-size: 70%;
  }
}




@media (max-width: 320px) {
  body {
    font-size: 10px;
  }

  .logo {
    width: 100px;
  }

  .main-profile img {
    width: 150px;
  }

  .navigation a {
    font-size: 0.8em;
    padding: 6px 0;
  }

  .main-btn {
    font-size: 0.8em;
    padding: 0.6em 1.4em;
  }
   .social-icons{
    font-size: 60%;
  }

  .footer .social-icons{
    font-size: 70%;
  }
}





/*  Responsive Design for Mobile */



 @media (max-width: 768px) {

  section {
    padding: 30px 10px;
  }

  header {
    padding: 10px 20px;
  }

  .logo {
    width: 150px;
    height: auto;
  }





  .navigation {
   display: none; 
  flex-direction: column;
  background: #333;
  position: absolute;
  top: 60px; 
  right: 0;
  width: 100%;
  text-align: center;
  }
  .navigation.active {
  display: flex; 
}

  .navigation a {
    padding: 8px 0;
    font-size: 1em;
  }


  .menu-icon {
  display: block; 
}

.main {
  flex-direction: row;     
  flex-wrap: nowrap;         
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 10px;
  width: 100%;
  overflow-x: auto;        
  -webkit-overflow-scrolling: touch;
}

.text {
  flex: 1 1 50%;   
  min-width: 0;    
  text-align: left; 
}

.main-profile {
  flex: 0 0 35%;   
  display: flex;
  justify-content: flex-end;
}

.main-profile img {
  width: 50vw;
  max-width: 320px;  
  height: auto;
  border-radius: 50%;
  margin-top: 0;
}

  .card {
    width: 90%;
     min-height: 200px;
     padding: 20px;
  }
.icon{
  font-size: 2.8em;
}
.contact .icon{
  font-size: 2.5em;
}
  .project-card {
    width: 40%;
   
  }
  .project-info{
  font-size:60%;
  
  }

  .contact .info h3 {
    font-size: 1.1em;
  }

  .contact .info p {
    font-size: 0.95em;
  }
  .social-icons{
    font-size: 60%;
  }

  .footer .social-icons{
    font-size: 70%;
  }

  .footer p {
    font-size: 0.9em;
  }
}






