:root {
  --color-gray: #f1f1f1;
}

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

html {
  scroll-behavior: smooth;
}

body {
  padding: 0;
  margin: 0;
  font-family: "Inter", sans-serif;
  overflow-x: hidden;
}

/* ================= NAVBAR ================= */

.navbar {
  transition: background-color 0.3s, color 0.3s;
}

.navbar .nav-link,
.navbar .navbar-brand {
  color: white !important;
  transition: color 0.3s;
}

.navbar.navbar-dark-section .nav-link,
.navbar.navbar-dark-section .navbar-brand {
  color: black !important;
}

/* ================= HOME ================= */

#home {
  min-height: 100vh;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url(img/bg.jpg);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

#home .list-unstyled a {
  display: inline-block;
  padding: 10px;
  font-size: 18px;
  border: 1px solid black;
}

.home-inner p.animate::after {
  content: "";
  animation: type 5s infinite;
}

@keyframes type {
  1% { content: "L|"; }
  3% { content: "La|"; }
  5% { content: "Lar|"; }
  7% { content: "Larry|"; }
  9% { content: "Larry |"; }
  11% { content: "Larry D|"; }
  13% { content: "Larry Da|"; }
  15% { content: "Larry Dan|"; }
  17% { content: "Larry Dani|"; }
  19% { content: "Larry Danie|"; }
  21% { content: "Larry Daniel|"; }
  23% { content: "Larry Daniels|"; }
  25% { content: "Larry Daniel|"; }
  27% { content: "Larry Danie|"; }
  29% { content: "Larry Dani|"; }
  31% { content: "Larry Dan|"; }
  33% { content: "Larry Da|"; }
  35% { content: "Larry D|"; }
  37% { content: "Larry |"; }
  39% { content: "Larry|"; }
  41% { content: "Lar|"; }
  43% { content: "La|"; }
  45% { content: "L|"; }
  47% { content: "|"; }
  49% { content: "D|"; }
  51% { content: "De|"; }
  53% { content: "Dev|"; }
  55% { content: "Deve|"; }
  57% { content: "Devel|"; }
  59% { content: "Develo|"; }
  61% { content: "Develop|"; }
  63% { content: "Develope|"; }
  65% { content: "Developer|"; }
  67% { content: "Develope|"; }
  69% { content: "Develop|"; }
  71% { content: "Develo|"; }
  73% { content: "Devel|"; }
  75% { content: "Deve|"; }
  77% { content: "Dev|"; }
  79% { content: "De|"; }
  81% { content: "D|"; }
  83% { content: "|"; }
  85% { content: "D|"; }
  87% { content: "De|"; }
  89% { content: "Des|"; }
  91% { content: "Desi|"; }
  93% { content: "Desig|"; }
  95% { content: "Design|"; }
  97% { content: "Designe|"; }
  99% { content: "Designer|"; }
  100% { content: "Designer|"; }
}

/* ================= ABOUT ================= */

#about {
  background-color: white;
  min-height: 100vh;
  padding: 80px 0;
}

.imgs img {
  width: 300px;
}

.btn {
  padding: 0.5rem 1rem;
  font-size: 1rem;
  font-weight: bold;
}

.button1 {
  color: white;
  background-color: black;
  border-radius: 5px;
}

.button1:hover {
  background-color: white;
  color: black;
  border: 2px solid black;
  transition: 0.5s;
}

.button2 {
  color: black;
  background-color: white;
  border: 2px solid black;
  border-radius: 5px;
}

.button2:hover {
  background-color: black;
  color: white;
  transition: 0.5s;
}

.progress-bar {
  position: relative;
  font-size: 14px;
  color: white;
  text-align: center;
  line-height: 1.5;
}

/* Removed .image::before completely */

.profile-image {
  position: relative;
  z-index: 2;
  display: block;
}

/* ================= SERVICES ================= */

#services {
  background-color: var(--color-gray);
  min-height: 100vh;
  padding: 80px 0;
}

.word::before {
  opacity: 40%;
  content: "";
  position: absolute;
  width: 200px;
  height: 50px;
  background: radial-gradient(#ccc 2px, transparent 2px);
  background-size: 10px 10px;
  z-index: 1;
}

#services .icon-container {
  color: black;
  border-radius: 50%;
  border: 1px solid var(--color-gray);
  background-color: var(--color-gray);
}

#services .card {
  border: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#services .card:hover .icon-container {
  color: white;
  background-color: black;
  transition: 0.5s;
}

/* ================= PORTFOLIO ================= */

#work {
  background-color: white;
  min-height: 100vh;
  padding: 80px 0;
}

.inner-work {
  position: relative;
  overflow: hidden;
}

.layer {
  position: absolute;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.407);
  overflow: hidden;
  width: 100%;
  height: 100%;
  transform: scale(0);
  transition: 0.3s ease;
  opacity: 0;
}

.inner-work:hover .layer {
  opacity: 1;
  transform: scale(1);
}

.inner-work img {
  transition: 0.3s ease;
}

.inner-work:hover img {
  transform: scale(1.05);
}

.layer-content {
  font-size: 20px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: black;
}

#work .list-unstyled:hover i {
  color: white;
  background-color: black;
  transition: 0.5s;
}

/* ================= CLIENT ================= */

#client {
  background-color: var(--color-gray);
  min-height: 100vh;
  padding: 80px 0;
}

#client img {
  width: 100px;
}

.icons i {
  width: 30px;
  height: 30px;
  padding-top: 8px;
  color: black;
}

.icons i:hover {
  color: gray;
  transition: 0.5s;
}

#client .carousel-indicators button {
  height: 25px;
  width: 25px;
  background-color: #bbb;
  border-radius: 50%;
}

.carousel-indicators {
  bottom: -50px;
  color: gray;
}

/* ================= COMPONENTS ================= */

#components {
  padding: 80px 0;
}

#components .icon-com {
  height: 100px;
  width: 100px;
}

/* ================= TEAM ================= */

#team {
  background-color: var(--color-gray);
  min-height: 100vh;
  padding: 80px 0;
}

.card-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.card {
  position: relative;
  overflow: hidden;
  width: 300px;
}

.card-img-container {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.card-img-top {
  width: 100%;
  height: auto;
  display: block;
}

.over {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease-in-out;
}

.card-img-container:hover .over {
  opacity: 1;
  visibility: visible;
}

.card-img-container:hover .card-img-top {
  transform: scale(0.9);
  transition: all 0.4s ease;
}

.icon i {
  color: white;
  background-color: black;
  transition: transform 0.3s ease, color 0.3s ease;
}

.icon i:hover {
  transform: scale(1.2);
  color: black;
  background-color: white;
}

.card-body {
  text-align: center;
  background: #f8f9fa;
  padding: 15px;
}

/* ================= CONTACT ================= */

#contact {
  padding: 80px 0;
  background-color: white;
}

.first-two {
  display: flex;
  gap: 20px;
}

.first-two input {
  width: 35%;
}

.form-floating {
  width: 70%;
}

.form-control:focus {
  border-color: var(--color-gray);
  box-shadow: none;
}

.form-control {
  background-color: var(--color-gray);
  padding: 0.375rem 0.75rem;
  border-radius: 10px;
}

.contact .btn:hover {
  background-color: var(--color-gray);
}

.icon2 {
  color: black;
  background-color: var(--color-gray);
  transition: transform 0.3s ease, color 0.3s ease;
}

#contact .inner:hover .icon2 {
  color: var(--color-gray);
  transform: scale(1.2);
  background-color: black;
}

/* ================= FOOTER ================= */

.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px 10px;
    background-color: #1c1c1c;
    z-index: 1000;
}
.copyright {
  margin: 0;
  color: white;
  text-align: center;
}


@media (max-width: 991.98px) {

  /* Navbar */

  .navbar .container {
    gap: 0 !important;
  }

  .navbar-collapse {
    background-color: white;
    padding: 15px;
    margin-top: 10px;
    border-radius: 5px;
  }

  .navbar-collapse .nav-link,
  .navbar-collapse .navbar-brand {
    color: black !important;
  }

  .navbar-collapse .nav-link.active {
    color: black !important;
  }


  /* Home */

  #home {
    min-height: 100vh;
    height: auto;
  }

  .home-inner h1 {
    font-size: 42px !important;
  }

  .home-inner p {
    font-size: 28px !important;
  }


  /* About */

  #about {
    min-height: auto;
    height: auto;
    padding: 100px 20px;
  }

  .image {
    margin-bottom: 50px;
  }

  .imgs img {
    width: 100%;
  }


  /* Services */

  #services {
    height: auto !important;
    min-height: auto;
    padding: 100px 20px;
  }

  #services .row {
    flex-direction: row !important;
  }

  .samlly {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    gap: 20px;
  }

  #services .card {
    width: 18rem !important;
  }


  /* Portfolio */

  #work {
    height: auto;
    min-height: auto;
    padding: 100px 20px !important;
  }


  /* Testimonials */

  #client {
    height: auto !important;
    min-height: auto;
    padding: 100px 20px;
  }


  /* Statistics */

  #components {
    height: auto;
    padding: 70px 20px;
  }

  #components > div {
    flex-wrap: wrap !important;
    justify-content: center;
    gap: 30px !important;
  }

  .inn {
    width: 40%;
  }


  /* Team */

  #team {
    height: auto !important;
    min-height: auto !important;
    padding: 100px 20px !important;
  }

  #team .container {
    height: auto !important;
  }

  .card-group {
    width: 100%;
    height: auto !important;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 25px;
  }

  #team .card {
    width: 280px !important;
    height: auto !important;
    flex: 0 0 auto;
  }

  #team .card-img-top {
    width: 100%;
    height: auto;
  }


  /* Contact */

  #contact {
    height: auto !important;
    min-height: auto !important;
    padding: 80px 20px !important;
  }

  #contact .row {
    height: auto !important;
  }

  .first-two {
    width: 100%;
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 15px !important;
  }

  .first-two input {
    width: 50% !important;
  }

  .form-floating {
    width: 100% !important;
  }

  #contact form {
    width: 100%;
  }

  #contact textarea {
    width: 100%;
  }

  #contact form button {
    margin-top: 10px;
  }
}

@media (max-width: 767.98px) {

  /* General */
  body {
    overflow-x: hidden;
  }

  .container {
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Navbar */
  .navbar {
    padding: 10px 15px;
  }

  .navbar-brand {
    font-size: 22px;
  }

  .navbar-collapse {
    background-color: white;
    padding: 15px;
    border-radius: 5px;
  }

  .navbar-collapse .nav-link,
  .navbar-collapse .navbar-brand {
    color: black !important;
  }

  .navbar-toggler {
    background-color: white;
  }

  /* Home */
  #home {
    min-height: 100vh;
    padding: 0 15px;
  }

  .home-inner h1 {
    font-size: 36px !important;
  }

  .home-inner p {
    font-size: 22px !important;
  }

  #home .list-unstyled {
    gap: 8px !important;
  }

  #home .list-unstyled a {
    padding: 8px;
    font-size: 15px;
  }

  /* About */
  #about {
    height: auto !important;
    min-height: 100vh;
    padding: 80px 15px;
  }

  #about .row {
    display: flex;
    flex-direction: column;
  }

  #about .image,
  #about .col-md-6 {
    width: 100%;
  }

  .image {
    margin-bottom: 40px;
  }

  .profile-image {
    width: 100%;
    max-width: 350px;
    margin: auto;
  }

  .image::before {
    display: none;
  }

  #about h1 {
    font-size: 28px !important;
  }

  #about h2 {
    font-size: 20px;
  }

  #about p {
    font-size: 16px !important;
    line-height: 1.7;
  }

  #about .button1,
  #about .button2 {
    font-size: 14px;
    padding: 10px 14px;
  }

  /* Services */
  #services {
    height: auto !important;
    min-height: 100vh;
    padding: 80px 15px;
  }

  #services .row {
    display: flex;
    flex-direction: column !important;
  }

  .samlly {
    width: 100%;
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
  }

  #services .card {
    width: 100% !important;
    max-width: 350px;
    margin: 0 auto 15px !important;
  }

  #services .card-text {
    font-size: 14px;
    line-height: 1.6;
  }

  /* Portfolio */
  #work {
    padding: 80px 15px 50px !important;
  }

  #work .nav {
    flex-wrap: wrap;
    gap: 5px;
  }

  #work .nav-link {
    font-size: 14px;
    padding: 8px;
  }

  #work .row {
    margin-top: 20px !important;
  }

  #work .col-md-4 {
    width: 100%;
  }

  .inner-work {
    width: 100%;
  }

  .inner-work img {
    width: 100%;
    display: block;
  }

  /* Testimonials */
  #client {
    height: auto !important;
    min-height: 100vh;
    padding: 80px 15px;
  }

  #client .carousel {
    width: 100%;
  }

  #client p {
    font-size: 14px;
    line-height: 1.7;
    padding: 0 15px;
  }

  #client p br {
    display: none;
  }

  #client img {
    width: 80px;
  }

  /* Statistics */
  #components {
    padding: 50px 15px;
  }

  #components > div {
    display: flex !important;
    flex-direction: column !important;
    gap: 30px !important;
    width: 100%;
  }

  .inn {
    width: 100%;
  }

  .icon-com {
    height: 70px;
    width: 70px;
  }

  .inn h1 {
    font-size: 22px !important;
  }

  .inn h2 {
    font-size: 16px !important;
  }

  /* Team */
  #team {
    height: auto !important;
    min-height: 100vh;
    padding: 80px 15px;
  }

  .card-group {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 25px;
  }

  .card {
    width: 100% !important;
    max-width: 350px;
  }

  .card-body h3 {
    font-size: 22px;
  }

  .card-body p {
    font-size: 18px !important;
  }

  /* Contact */
  #contact {
    padding: 80px 15px !important;
  }

  #contact .row {
    width: 100%;
    display: flex !important;
    flex-direction: column !important;
    gap: 30px !important;
  }

  #contact .col-lg-4,
  #contact .col-md-6 {
    width: 100%;
  }

  .first-two {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    width: 100%;
    gap: 15px !important;
  }

  .first-two input {
    width: 100% !important;
  }

  .form-floating {
    width: 100%;
  }

  #contact form button {
    width: 50% !important;
  }

  /* Footer */
  .footer {
    padding: 15px 10px;
  }

  .copyright {
    font-size: 12px;
    text-align: center;
    margin: 0;
  }
}

@media (max-width: 400px) {

  .home-inner h1 {
    font-size: 30px !important;
  }

  .home-inner p {
    font-size: 19px !important;
  }

  #home .list-unstyled a {
    padding: 6px;
    font-size: 13px;
  }

  #about h1 {
    font-size: 25px !important;
  }

  #about h2 {
    font-size: 18px;
  }

  #about .button1,
  #about .button2 {
    padding: 8px 10px;
    font-size: 12px;
  }

  #services .card {
    max-width: 100%;
  }

  #work .word,
  #client .word,
  #team .word,
  #contact .word {
    font-size: 30px !important;
  }

  #contact form button {
    width: 70% !important;
  }
}
