body{
  background-color: rgb(255, 0, 0);
}
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");

:root {
  --primary-color: #000000;
  --secondary-color: #ff4e05;
  --secondary-color-dark: #bf3900;
  --text-dark: #050606;
  --text-light: #dbdbdb;
  --white: #ffffff;
  --max-width: 1200px;
}

/* Header Section */

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

.section__container {
  max-width: var(--max-width);
  margin: auto;
  padding: 5rem 1rem;
}

.section__title {
  font-size: 2rem;
  font-weight: 600;
  text-align: center;
}

.section__title span {
  color: var(--secondary-color);
}

.section__subtitle {
  font-size: 18px;
  font-weight: lighter;
  text-align: center;

}

img {
  width: 100%;
}

.btn {
  padding: 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  outline: none;
  border: none;
  border-radius: 5px;
  color: var(--white);
  background-color: var(--secondary-color);
  cursor: pointer;
  transition: 0.3s;
}

.btn:hover {
  background-color: var(--secondary-color-dark);
}

 /* Button know more */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1); 
  }
  100% {
    transform: scale(1);
  }
}

.btn {
  padding: 10px 20px;
  font-size: 16px;
  background-color: var(--secondary-color);
  color: white;
  border: none;
  border-radius: 5px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  animation: pulse 1.5s infinite;
}

a {
  text-decoration: none;
  color: var(--white);
}

body {
  color: var(--white);
  font-family: "Poppins", sans-serif;
}

nav {
  position: absolute;
  width: 100%;
  top: 0;
  left: 45%;
  transform: translateX(-50%);
  max-width: var(--max-width);
  padding: 1px;
  display: flex;
  align-items: center;
  margin-left: 0;

}
nav .nav_img{
  width: 90px;
  height: 110px;
  border-radius: 20px;
  object-fit: cover;
  margin-left: 60px;
  margin-top: 0;
}
nav .nav__logo a {
  font-size: 1.5rem;
  font-weight: 600;
}

nav .nav__logo a span {
  color: var(--secondary-color);
  font-weight: 900;
  margin-left: 0;
}

header {
  margin-right: 0px;
  height: 100%;
  padding: 190px;
  background-image: url("./assets/subahan2.jpg");
  background-position: center center;
  background-repeat: no-repeat;
  background-size:cover;
  border-radius: 60px;
  margin-top: 1px;
  margin-bottom: 1px;
}

.header__container {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.header__container p {
  color: rgb(235, 225, 225);
  max-width: 400px;
  margin: 1rem 0;
}
.header__container p span {
  color: var(--white);
  padding: 0.5rem 1rem;
  background-color: var(--secondary-color);
  border-radius: 5px;
  margin-right: 1rem;
}
.header__container h1 {
  font-size: 3rem;
  line-height: 3rem;
}
.action__btns {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.action__btns .video {
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
}

.action__btns .video .play {
  height: 50px;
  width: 50px;
  display: grid;
  place-content: center;
  font-size: 1.5rem;
  border-radius: 100%;
  background-color: var(--secondary-color);
  transition: 0.3s;
}

.action__btns .video span {
  font-size: 1rem;
  font-weight: 600;
}

.action__btns .video:hover .play {
  background-color: var(--secondary-color-dark);
}

/* Project Section */
.about,
.project {
  background-color: rgb(18, 17, 17);
  border-radius: 60px;
}

.about__container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about__image,
.about__content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.about__image img {
  max-width: 350px;
  border-radius: 50px;
  border: 0.6px solid rgb(70, 69, 69);
}

.about__details {
  padding: 3rem 0;
  color: var(--text-light);
  text-align: center;
  font-size: 21px;
}

.service,
footer {
  background-color: var(--primary-color);
  border-radius: 60px;
  
}

.service__grid,
.project__grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1rem;
  margin-top: 5rem;
}

.service__card {
  display: grid;
  align-items: flex-start;
  gap: 1rem;
  padding: 2rem;
  background-color: var(--text-dark);
  border-radius: 15px;
}

.service__card i {
  font-size: 1.5rem;
}

.service__card h4 {
  font-size: 1.2rem;
  font-weight: 500;
}

.service__card p {
  color: var(--text-light);
}

.service__card .read__more {
  width: max-content;
  padding: 0.5rem 1rem;
  color: var(--text-light);
  font-size: 0.8rem;
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.05);
  cursor: pointer;
}

.project__card {
  display: grid;
  place-content: center;
  border-radius: 5px;
  overflow: hidden;
  cursor: pointer;
}

.project__card img {
  transition: scale 0.3s;
}

.project__card:hover img {
  scale: 1.1;
}

/* footer Section */
.footer__container {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
  margin-top: 1px;
}

.footer__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.footer__details {
  font-size: 1rem;
  color: var(--text-light);
  margin: 3rem 0;
  display: grid;
  gap: 1rem;
}

.social__icons {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.social__icons .icon {
  padding: 0.5rem;
  border-radius: 5px;
  color: var(--white);
  background-color: var(--secondary-color);
  transition: 0.3s;
  cursor: pointer;
}

.social__icons .icon:hover {
  background-color: var(--secondary-color-dark);
}

.footer__form {
  display: grid;
  gap: 1rem;
}

.footer__form :is(input, textarea) {
  padding: 1rem;
  background-color: rgba(26, 26, 29, 0.891);
  outline: none;
  border: none;
  border-radius: 5px;
  color: var(--white);
}

.footer__form textarea {
  resize: none;
  font-family: "Poppins", sans-serif;
}

.footer__form button {
  width: max-content;
}

#msg{
  color: rgb(6, 243, 6);
}


/* Media queries */

@media (min-width: 640px) {
  .section__title {
    font-size: 2.5rem;
  }

  .header__container p {
    margin: 2rem 0;
  }

  .header__container h1 {
    font-size: 4rem;
    line-height: 4rem;
  }

  .action__btns {
    gap: 2rem;
  }

  .about__container {
    flex-direction: row;
  }

  .about__content {
    align-items: flex-start;
  }

  .about__details {
    text-align: left;
  }

  .service__grid,
  .project__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .footer__container {
    grid-template-columns: repeat(2, 1fr);
  }
}





/* For Mobile Version */




@media (max-width:499px) {
  /* General styles (for smaller screens) */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

section {
  padding: 60px 20px;
}

h1, h2, p {
  margin: 0;
  padding: 0;
}

a {
  text-decoration: none;
  color: inherit;
}

/* --- Header Section --- */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
}

.nav__logo a {
  text-decoration: none;
  font-size: 24px;
  color: #ffffff;
  font-weight: bold;
}

.nav_img {
  height: 50px;
  width: auto;
}

header {
  text-align: center;
  padding: 80px 20px;
}

header p {
  font-size: 18px;
  margin-bottom: 10px;
}

header h1 {
  font-size: 36px;
  line-height: 1.3;
  margin: 20px 0;
}

header h2 {
  font-size: 24px;
  margin-bottom: 20px;
}

header p, header h1, header h2 {
  color: #ffffff;
}

.action__btns .btn {
  font-size: 16px;
  padding: 12px 24px;
  background-color: var(--secondary-color);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.action__btns .btn:hover{
  background-color: var(--secondary-color-dark);
}

/* --- About Section --- */
.about {
  background-color: rgb(18, 17, 17);
}

.about__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.about__content {
  max-width: 50%;
  margin: 0 20px;
}

.about__image img {
  width: 100%;
  max-width: 300px;
}

.about__content h2 {
  font-size: 28px;
  margin-bottom: 10px;
}

.about__details {
  font-size: 16px;
  line-height: 1.5;
}

.about__content p {
  margin-bottom: 20px;
}

.about__content .btn {
  padding: 10px 20px;
  background-color: var(--secondary-color);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.about__content .btn a {
  color: white;
  text-decoration: none;
}

/* --- Projects Section --- */
.project__container {
  text-align: center;
}

.project__subtitle {
  font-size: 20px;
  color: #ff6f61;
}

.project__title {
  font-size: 32px;
  color: #000000;
}

.project__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.project__card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.project__card p {
  font-size: 16px;
  margin-top: 10px;
  margin-bottom: 50px;
}

/* --- Contact Section --- */
footer {
  background-color: #000000;
  color: white;
}

.footer__container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 40px;
  flex-wrap: wrap;
}

.footer__content {
  max-width: 50%;
}

.footer__title {
  font-size: 28px;
}

.footer__details {
  font-size: 16px;
  margin-bottom: 20px;
}

.social__icons {
  display: flex;
  gap: 15px;
}

.social__icons .icon i {
  font-size: 24px;
  color: white;
}

.footer__form {
  max-width: 400px;
}

.footer__form input,
.footer__form textarea,
.footer__form button {
  width: 100%;
  padding: 12px 20px;
  margin: 10px 0;
  border-radius: 8px;
  border: none;
  box-sizing: border-box;
}

.footer__form button {
  background-color: var(--secondary-color);
  color: white;
  cursor: pointer;
}

/* Button know more */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1); 
  }
  100% {
    transform: scale(1);
  }
}

.btn {
  padding: 10px 20px;
  font-size: 16px;
  background-color: var(--secondary-color);
  color: white;
  border: none;
  border-radius: 5px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  animation: pulse 1.5s infinite;
} 

#msg{
  color: rgb(6, 243, 6);
}

/* --- Mobile Responsiveness --- */

/* Media Queries for smaller screens */
@media (max-width: 768px) {
  /* For Tablets and below */
  
  nav {
    padding: 20px;
    flex-direction: column;
    align-items: center;
  }

  .nav__logo a {
    font-size: 20px;
  }

  header h1 {
    font-size: 28px;
  }

  header h2 {
    font-size: 20px;
  }

  .about__container {
    flex-direction: column;
    align-items: center;
  }

  .about__content {
    max-width: 90%;
    text-align: center;
    margin-top: 20px;
  }

  .about__image img {
    max-width: 250px;
  }

  .project__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .project__card p {
    font-size: 14px;
  }

  footer {
    padding: 20px;
  }

  .footer__container {
    flex-direction: column;
    align-items: center;
  }

  .footer__content {
    max-width: 100%;
    text-align: center;
  }

  .footer__form input,
  .footer__form textarea,
  .footer__form button {
    padding: 10px;
  }

  .social__icons {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  /* For Mobile Phones */
  
  nav {
    padding: 10px;
  }

  .nav__logo a {
    font-size: 18px;
  }

  header h1 {
    font-size: 24px;
  }

  header h2 {
    font-size: 18px;
  }

  .about__content h2 {
    font-size: 24px;
  }

  .about__details {
    font-size: 14px;
  }

  .project__grid {
    grid-template-columns: 1fr;
  }

  .footer__form input,
  .footer__form textarea,
  .footer__form button {
    padding: 8px;
  }

  .scroll-down {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: transparent;
    color: #000000;
    background-color: #ff4e05;
    border-radius: 50%;
    padding: 10px;
    font-size: 30px;
    cursor: pointer;
    display: block; 
    animation: bounce 1.5s infinite;
    transition: right 0.3s ease; 
  }
  
  /* Bouncing animation */
  @keyframes bounce {
    0% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(10px);
    }
    100% {
      transform: translateY(0);
    }
  }
  
  @media (max-width: 768px) {
    .scroll-down {
      bottom: 15px;
      right: 15px;
      font-size: 24px;
    }
  }

}

}
