@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");
:root {
    --primary-color: #5c48ee;
    --primary-color-dark: #0f1e6a;
    --secondary-color: #f9fafe;
    --text-color: #0f1e6a;
    --white: #ffffff;
    --max-width: 1200px;
  }


  * {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: "Poppins", sans-serif;
    background-color: var(--secondary-color);
  }
  nav {
    max-width: var(--max-width);
    margin: auto;
    padding: 1rem;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  nav img {
    height: 93px;
    margin-top: 20px;
  }

  .nav__links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  .link a {
    padding: 0.5rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-color);
    text-decoration: none;
    transition: 0.3s;
  }

  .link a:hover {
    color: var(--primary-color);
  }

  .container {
    max-width: var(--max-width);
    margin: auto;
    padding: 1rem;
    min-height: calc(100vh - 100px);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5rem;
  }
  
  .content__container {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .content__container h1 {
    font-size: 3rem;
    font-weight: 400;
    line-height: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
  }

  .heading__1 {
    font-weight: 700;
  }
  .heading__2 {
    font-weight: 700;
    color: var(--primary-color-dark);
  }
  
  .content__container p {
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 2rem;
  }  

  .content__container form {
    display: flex;
    align-items: center;
  }
  
  .content__container input {
    width: 100%;
    max-width: 300px;
    padding: 1rem;
    font-size: 0.8rem;
    outline: none;
    border: none;
    box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.2);
  }

  .image__container {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    place-content: center;
  }
  
  .image__container img {
    width: 100%;
    max-width: 300px;
    margin: auto;
    border-radius: 10px;
  }

  .image__container img:nth-child(1) {
    transform: translateY(80px);
  }
  
  .image__container img:nth-child(2) {
    transform: translateY(-30px);
  }
  
  .image__content {
    position: absolute;
    width: 100%;
    max-width: 310px;
    left: 50%;
    top: 50%;
    transform: translate(-35%, 50%);
    background: linear-gradient(
      to right,
      var(--primary-color),
      var(--primary-color-dark)
    );
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 10px;
  }
  
  .image__content li {
    margin-bottom: 0.5rem;
  }


 #services  {
      padding: 1rem 0;
      text-align: center;
      color: var(--primary-color-dark);
 }

 #services h2 {
      margin-bottom: 5rem;
      color: var(--primary-color);
 }

 .service {
  width: 30%;
  display: inline-block;
  padding: 0 1rem;
  text-align: center;
 }

 .service img{
  width: 250px;
  margin-bottom: 1rem;
  border-radius: 50%;
 }

 .service h3{
  margin-bottom: 1rem;
 }

 #about {
  padding: 1rem 0;
      text-align: center;

 }

 #about h2 {
   margin-bottom: 3rem;
   margin-top: 3rem;
   color: var(--primary-color);
 }

 #about {

  padding: 50px 8%;

 }

 #about p {

  margin-top: 0.6rem;
  color: var(--primary-color-dark);

 }

 #about img {
  margin-top: 50px;
  border-radius: 20px;
 }

 .contact {
  padding: 1rem 0;
      text-align: center;
 }

 .contact h2 {
  margin-bottom: 3rem;
  margin-top: 1rem;
  color: var(--primary-color);
}

.contact {

  padding: 50px 8%;
 }

 .contact p {

  color: var(--primary-color-dark);
  
 }

.contact-wrapper{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 30px;
}

.contact-form{
  text-align: left;
}

.contact-form h3{
  font-size: 24px;
  margin-bottom: 20px;
  margin-top: 20px;
  margin-left: 100px;
  color: #5c48ee;

}

.form-group{
  margin-bottom: 20px;
  margin-left: 100px;
}

.form-message, textarea{
  
  height: 140px;
  width: 78%;
  margin-left: 50px;
  margin-bottom: 20px;
  border-radius: 10px;
  resize: none;
  padding: 1px;
  
 
}

input, text area{
  width: 70%;
  padding: 12px;
  border-radius: 8px;
  border-color: #5c48ee;
  background-color: #ffffff;
  color: #0f1e6a;
  
}

input:focus,
textarea:focus{
  outline:none;
  box-shadow: 0 0 8px #5c48ee;
}

button{
  display: inline-block;
  margin-top: 0.1px;
  margin-left: 100px;
  margin-bottom: 20px;
  padding:12px 24px;
  border-radius: 10px;
  background-color: #5c48ee;
  color:#fff;
  border: none;
  cursor: pointer;
  transition: 0.3s ease;
}

button:hover{
  background-color: #503ce3;
}

.contact-info{
  text-align: left;

}

.contact-info h3{
  font-size: 24px;
  margin-bottom: 20px;
  margin-left: 150px;
  margin-top: 20px;
  color: #5c48ee;
}

.contact-info p{
  margin-bottom: 20px;
  margin-left: 150px;
  color: #0f1e6a;
}

.contact-info i{
  color:#0f1e6a;
  margin-right: 10px;
}



footer {
  background: linear-gradient(
    to right,
    var(--primary-color),
    var(--primary-color-dark)
  );
  color: #fff;
  display: flex;
  justify-content: center;
  padding: 0.2rem;
  margin-top: 10px;
text-align: center;
}

footer p{
  font-size: 1.5rem;
  margin: 0;
}

footer a {
  color: #fff;
  margin-left: 1rem;
  text-decoration: none;
}

html{

  scroll-behavior: smooth;
}

/* tablets & large phones */
@media only screen and (max-width: 768px) {
  nav {
    justify-content: flex-start;
  }

  nav img {
    margin: 0;
  }

  .nav__links {
    justify-content: flex-start;
    margin-top: 0.5rem;
  }
}

@media only screen and (max-width: 768px) {
  nav {
    align-items: flex-start;
  }

  nav img {
    margin: 0;
  }

  .nav__links {
    align-items: flex-start;
  }

  .link a {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
  }

  .container {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1rem;
  }

  .content__container h1 {
    font-size: 2.5rem;
    line-height: 3rem;
  }

  .content__container p {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }

  .image__container {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .image__container img {
    max-width: 100%;
  }

  .image__content {
    max-width: 90%;
    padding: 0.8rem 1.5rem;
    transform: translate(-50%, 40%);
  }

  #services .service {
    width: 45%;
    margin-bottom: 2rem;
  }

  #services .service img {
    width: 200px;
  }

  #about,
  .contact {
    padding: 40px 5%;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .contact-form,
  .contact-info {
    margin: 0 auto;
  }

  .contact-form h3,
  .contact-info h3 {
    margin-left: 0;
    text-align: center;
  }

  .form-group,
  input,
  textarea,
  button,
  .contact-info p {
    width: 100%;
    margin-left: 0 !important;
  }
}

/*———————————————————————————
  SMALL PHONES (up to 480px)
———————————————————————————*/
@media only screen and (max-width: 480px) {
  body {
    font-size: 16px;
  }

  nav img {
    height: 50px;
  }

  .link a {
    font-size: 0.85rem;
  }

  .container {
    padding: 0.5rem;
    gap: 1.5rem;
  }

  .content__container h1 {
    font-size: 2rem;
    line-height: 2.5rem;
  }

  .content__container p {
    font-size: 0.85rem;
  }

  .image__container {
    grid-template-columns: 1fr;
  }

  .image__container img:nth-child(1),
  .image__container img:nth-child(2) {
    transform: none;
  }

  .image__content {
    position: static;
    transform: none;
    margin: 1rem auto;
  }

  #services .service {
    width: 100%;
    padding: 0.5rem 0;
  }

  #services .service img {
    width: 150px;
  }

  #about p {
    font-size: 0.9rem;
  }

  .contact-wrapper {
    padding: 20px 2%;
  }

  .form-group,
  input,
  textarea,
  button {
    padding: 0.8rem;
  }

  .contact-info p {
    font-size: 0.9rem;
  }
   
  footer p {
    font-size: 1.2rem;
  }
}

/* catch any spills and pin footer to full width on phones */
@media only screen and (max-width: 768px) {
  html, 
  body {
    overflow-x: hidden;      /* hide any accidental overflow */
  }

  footer {
    width: 100%;             /* make sure footer spans exactly the viewport */
    box-sizing: border-box;  /* include its padding in that width */
  }
}

@media only screen and (max-width: 480px) {
  /* two-up images with content box below, minimal top/bottom padding */
  .image__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "img1 img2"
      "content content";
    gap: 0.5rem;
    padding: 0 1rem;
    margin: 0.5rem 0 1rem; /* small space above, moderate below */
    position: relative;
  }

  .image__container img:nth-child(1) {
    grid-area: img1;
    width: 100%;
    border-radius: 10px;
    transform: none !important;
    object-fit: cover;
  }

  .image__container img:nth-child(2) {
    grid-area: img2;
    width: 100%;
    border-radius: 10px;
    transform: none !important;
    object-fit: cover;
  }

  .image__content {
    grid-area: content;
    position: static;
    transform: none !important;
    width: 100%;
    margin: 0;
    padding: 0.75rem 1rem;  /* slightly slimmed box */
    background: linear-gradient(
      to right,
      var(--primary-color),
      var(--primary-color-dark)
    );
    color: var(--white);
    border-radius: 10px;
    text-align: left;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  }

  .image__content li {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.4rem;
    line-height: 1.3;
  }
}



body {
  background: #faf5ff;
  
}
