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

html{
    scroll-behavior: smooth;
}
header {
  background-color:  #1e3a8a;
  color: black;
  width: 100%;
  margin: 15px auto;
   border-radius: 15px;
        box-shadow: 0 4px 8px rgba(23, 72, 116, 0.7);
  position: sticky;
  top: 0;
  z-index: 1000;
  
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.navbar a {
  color: #ffffff;
  text-decoration: none;
}

.logo {
  font-size: 2.5rem;
}

.nav-link {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}

.nav-link li {
  margin-left: 1.5rem;
  border: none;
}

.nav-link a {
  color: white;
  font-size: 1.2rem;
  text-decoration: none;
}

.nav-link a:hover {
  text-decoration: underline;
  margin-bottom: 10px;
}

.menu-toggle {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle .bar {
  width: 25px;
  height: 3px;
  background-color: white;
  border-radius: 5px;
}



ul {
    list-style: none;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav-link {
    display: none;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 60px;
    left: 0;
    background: linear-gradient(to right, #2c3e50, #3498db);
    padding: 1rem 0;
    text-align: center;
   
  }

  .nav-link li {
    margin: 1rem 0;
    border: none;
    
     
  }

  .nav-link.active {
    display: flex;
  }
}

@media (max-width: 600px) {
.nav-link {
    display: none;
    width: 100%;
}

  .logo {
    font-size: 24px;
  }

  .nav-link a {
    font-size: 18px;
  }
}


body {
    font-family: Poppins, sans-serif;
    color: #333333;
    min-height: 100vh;
    line-height: 1.5;
    background: linear-gradient(to bottom, #f8f9fa, #e9ecef);
}


img {
    max-width: 100%;
    display: block;
}

/* Page Styles */
/* Header Section */

/* Hero Section */
#hero{
   background: linear-gradient(to right, #2c3e50, #3498db);
 color: white;
    width: 80%;
    margin: 4rem auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 90px 25px 40px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(23, 72, 116, 0.7);
    h1{
        font-size: 2rem;
        margin-bottom: 20px;
    }
    div:first-child{
        flex-basis: 45%;
        p{
            margin-bottom: 20px;
        }
    }
    div:last-child{
        flex-basis: 25%;
    }
    button{
        padding: 10px 20px;
        border: none;
        background-color: #2563eb;
        color: white;
        border-radius: 5px;
        cursor: pointer;
        font-size: 1.2rem;
        transition: background-color 0.3s ease;

        &:hover{
  background-color: #1e40af;
  transform: scale(1.03);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

        }
    }

    .typed{
      color: linear-gradient(to bottom, #f8f9fa, #e9ecef);
      font-size: 2rem;
      font-weight: bold;
    }

/* skillset section */
#skillset{
    width: 80%;
    background-color: #e9ecef;
    color:#000;
    margin: 5rem auto;
    display: flex;
    justify-content: space-around;
    padding: 25px 40px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(206, 212, 218, 0.8);

    div:first-child{
        flex-basis: 40%;

        img{
            border-radius: 15px;
            aspect-ratio: 1/1;
            object-fit: cover;
            object-position: center 21%;
        }
    }
    div:last-child{
        flex-basis: 40%;
        h2{
            margin-bottom: 20px;
            border-bottom: 3px solid #d1d5db;
        }
        ul{
            display: flex;
            flex-wrap: wrap;
            gap: 15px;
        }
        li{
           border: 2px solid #1e3a8a; /* or use #2563eb for consistency */
            padding: 10px 15px;
            border-radius: 8px;
            font-weight: bold;
            transition: background-color 0.3s ease, border 0.3s ease, color 0.3s ease;
        }
        li:hover{
            background-color: #1e40af;
            border: 3px solid #2563eb;
            color: white;
        }
    }
}

#service h2{
  font-size: 2rem;
  color: #000;
  text-align: center;
   margin-bottom: 40px;

}
.service-container{
  display: flex;
  justify-content: space-around;
  align-items: center;

}
.service-container2{
  flex-basis: 30%;
}
.offer{
  color: #fff;
  background-color: #1e3a8a;
  padding: 15px;
  border-radius: 10px;
  text-align: center;
  margin-bottom: 10%;
}
.offer h3{
  margin-bottom: 2%;
}

/* portfolio section */
#portfolio {
  
  margin: 4rem auto;
}

#portfolio h2 {
  font-size: 2rem;
  color: #000;
  margin-bottom: 40px;
  text-align: center;
}

.projects {
  display: flex;
  flex-wrap: wrap;
  color:#000;
  gap: 40px; /* ✅ spacing */
}

.projects > a,
.projects > div {
  flex: 0 0 calc(33.333% - 27px); /* ✅ exactly 3 per row */
  text-align: center;
  
}

.projects img {
  width: 100%;
  border-radius: 15px;
  aspect-ratio: 5 / 3;
  object-fit: cover;
  object-position: center 30%;
  transition: transform 0.3s ease;
  display: block;
  margin: 0 auto; 
}

.projects img:hover {
  transform: scale(1.05);
}

.projects h3 {
  margin: 10px 0 3px;
  font-size: 1.5rem;
}

footer {
  background-color: #1e3a8a;
  color: #fff;
  padding: 2rem;
  font-family: sans-serif;
}

footer > div {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}

footer address,
footer form {
  flex: 1 1 300px;
}

footer h3 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

footer li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

footer li svg {
  width: 1rem;
  height: 1rem;
  fill: #fff;
}

footer a {
  color: #fff;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* Form Styling */
footer form label {
  display: block;
  margin-top: 1rem;
  font-weight: bold;
}

footer form input,
footer form textarea {
  width: 100%;
  padding: 0.5rem;
  margin-top: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  outline: none;
}
input:not(:placeholder-shown) {
  border-color: #ffffff; /* Change border color when input is filled */
  background-color: #dddddd; /* Light background when input is filled */
}
textarea:not(:placeholder-shown) {
  border-color: #ffffff; /* Change border color when input is filled */
  background-color: #dddddd; /* Light background when input is filled */
}

footer form textarea {
  resize: vertical;
  min-height: 100px;
}

footer form button {
  margin-top: 1rem;
  padding: 0.7rem 1.5rem;
  background-color: #fff;
  color: #000;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}

footer form button:hover {
  background-color: #ccc;
}

footer p {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.9rem;
  border-top: dashed 1px #fff;
}

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

/* Medium Screens (Tablets & below) */
@media (max-width: 992px) {
 

  #hero {
    flex-direction: column;
    padding: 30px 20px;
    text-align: center;
    width: 90%;
  }

  #hero div:first-child,
  #hero div:last-child {
    flex-basis: 100%;
  }
#hero .img-fluid {
    display: none;
  }

  #skillset {
    flex-direction: column;
    padding: 30px 20px;
    width: 90%;
  }

  #skillset div:first-child,
  #skillset div:last-child {
    flex-basis: 100%;
    text-align: center;
  }
  ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  list-style: none;
  margin: 0;
}

ul li {
  padding: 10px 15px;
  border-radius: 8px;
  font-weight: bold;
  border: 1px solid #ccc;
  font-size: 1rem;
  white-space: nowrap;
}

@media (max-width: 768px) {
  ul {
    justify-content: center;
    gap: 8px;
  }

  ul li {
    font-size: 0.9rem;
    padding: 8px 12px;
  }
  .projects > a,
.projects > div {
  flex: 0 0 calc(50% - 27px); /* ✅ exactly 2 per row */
}
.service-container{
  flex-direction: column;

}

    
}

 @media (max-width: 768px) {
  footer {
    padding: 1.5rem;
  }

  footer > div {
    flex-direction: column;
    gap: 1rem;
  }

  footer address,
  footer form {
    flex: 1 1 100%;
  }

  footer p {
    margin-top: 1rem;
    font-size: 0.8rem;
  }
}

}

/* Small Screens (Phones) */
@media (max-width: 600px) {
  

  #hero {
    width: 95%;
    padding: 25px 15px;
  }

  #hero h1 {
    font-size: 1.5rem;
  }
  #hero p{
    text-align: left;
  }

  #hero .typed {
    font-size: 1.2rem;
  }

  #hero button {
    font-size: 1rem;
    width: 100%;
    margin-bottom: 10px;
  }

  #skillset {
    width: 95%;
    padding: 25px 15px;
  }

  #skillset h2 {
    font-size: 1.3rem;
  }

  #skillset ul {
    justify-content: center;
  }

  .service-container{
  flex-direction: column;
}
.offer{
  width: 95%;
  margin: auto;
  margin-bottom: 3%;
}

 .projects > a,
  .projects > div {
    flex: 1 1 100%;
  }
 
 
  
footer > div {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

  footer form input,
  footer form textarea {
    font-size: 0.95rem;
  }

  footer form button {
    width: 100%;
  }

  footer p {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
#hero p{
    text-align: left;
  }
  

 footer ul {
    flex-direction: column;
    align-items: center;
    border: none;
  }

  footer ul li {
    width: 90%;
    text-align: center;
    border: none;
  }
}