@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&family=Smooch+Sans:wght@100..900&display=swap');

:root {
  --footer-height: 50px; 
}

body {
  font-family: 'Manrope', sans-serif;
  font-weight: 300;
  position: relative;
  background-image: url(../img/bg2.jpg);
  background-position: center;
  background-size:auto;
  background-repeat: no-repeat;
}

.top-footer {
  background: linear-gradient(45deg, #1b1b1b, #6e6e6e, #202020);
  animation: pulseBackground 6s ease-in-out infinite;
  background-size: 200% 200%;
  color: white;
  padding: 1rem 0;
  text-align: center;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  height: var(--footer-height);
  display: flex;
  align-items: center;
  justify-content: center;
}

.top-footer p {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 300;
}

h1,h2,p {
  font-size: 1rem;
  color: #ffffff;
  letter-spacing: 1px;
}

h1{
  font-size: 2.9rem;
}

.red{
  color: red;
}

#tm-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.img-icon{
  size: 2rem;
}

.img-fluid{
  border-radius: 20px
}

.underline-draw {
  animation: drawUnderline 2.5s ease-in-out infinite;
  overflow: hidden;
}

@keyframes drawUnderline {
  from {
    clip-path: inset(0 100% 0 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}

.fade-img {
  margin-top: -1rem;
  animation: fadeInOut 4s ease-in-out infinite;
}

@keyframes fadeInOut {
  0%, 100% {
      opacity: 1;
  }
  50% {
      opacity: 0;
  }
}

#tm-bg:after {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

#tm-wrap {
  display: flex;
  align-items: center;
  height: 100%;
  min-height: 100vh;
}

p {
  line-height: 1.9;
  letter-spacing: 1px;
}

.tm-main-content {
  display: flex;
  align-items: center;
  padding: 150px 15px;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  overflow: auto;
  margin-top: 100px;
}


.tm-site-header-col {
  display: flex;
  align-items: center;
  margin-top: 2rem;
}

.tm-site-header {
  margin: 10px;
  text-align: right;
  width: 100%;
}

.tm-nav ul {
  padding-left: 0;
  display: block;
}

.tm-nav li {
  list-style: none;
  display: inline-block;
  border: 1px solid white;
  margin: 10px;
  float: left;
}

.tm-nav-link {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 165px;
  height: 165px;
  text-align: center;
  border: 1px solid white;
  cursor: pointer;
  position: relative;
  border-radius: 10px;
  background: linear-gradient(45deg, #00000096, #b4b4b4);
  background-size: 200% 200%;
  animation: gradientMove 4s infinite;
}
.tm-nav-link:hover {
  transform: scale(1.00);
  background: rgba(255, 255, 255, 0.2);
  animation: gradientShift 2s infinite;
  background: linear-gradient(45deg, #000000, #ffffff8c, #000000);background-size: 300% 300%;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.tm-nav-text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  font-size: 1.2rem;
  font-style: italic;
  font-weight: 900;
  color: #ffffff;
}

.fa-3x {
  font-size: 2.5em;
}

.linkedin-icon:hover {
  transform: scale(1.2);
  transition: transform 0.3s ease;
}

.email-icon:hover {
  transform: scale(1.2);
  transition: transform 0.3s ease;
}

.phone-icon:hover{
  transform: scale(1.2);
  transition: transform 0.3s ease;
}

.tm-nav-icon {
  display: block;
  margin-bottom: 25px;
  color: rgb(255, 0, 0);
}

/* Expanding Grid Items */
.tm-page-title {
  font-weight: 300;
  font-size: 2.6rem !important;
  margin-bottom: 50px;
}
.content {
  max-width: 370px;
}
.grid {
  display: flex;
  flex-wrap: wrap;
}
.grid__item {
  margin: 10px;
}

.grid__item:hover{
  transform: scale(1.1);
  transition: transform 0.3s ease;

}
.product {
  position: relative;
  cursor: pointer;
}

.product__bg {
  width: 100%;
  height: 100%;
  top: 55px;
}

.product__bg,.product__description {
  opacity: 0;
  position: absolute;
}

.product__description {
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  display: none;
}

.tm-fa-close {
  font-size: 30px;
}

.details {
  font-size: 1rem;
  width: 100%;
  height: 100%;
  bottom: 0;
  left: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  pointer-events: none;
  padding: 15px;
  display: none;
}

.details > * {
  position: relative;
  opacity: 0;
}

.details--open {
  pointer-events: auto;
}

.details__bg {
  width: 100%;
  max-width: 900px;
  left: 0;
  right: 0;
  margin-left: auto;
  margin-right: auto;
}

.details__bg--down {
  background: rgb(43, 43, 43);
  border-radius: 20px;
}

.details__bg {
  padding: 50px;
  transform-origin: 0 0;
}

.details__close {
  position: absolute;
  color: #ffffff;
  top: 5px;
  right: 0;
  border: 0;
  background: none;
  margin: 1em;
  cursor: pointer;
  font-size: 0.85em;
  z-index: 1001;
}

.row.mb-4 {
  text-align: center; 
}
#linked-margin{
  margin-left: 22px;
}

.tm-reverse-sm {
  flex-direction: row;
}

a.tm-slider-img-link {
  padding-left: 10px;
  padding-right: 10px;
}
.tm-slider-img:hover {
  transform: scale(1.2);
  transition: transform 0.3s ease;
}

.slick-dots li button:before {
  font-size: 20px;
  opacity: 1;
}

.slick-dots {
  position: absolute;
  bottom: -40px;
  display: block;
  width: 100%;
  padding: 0;
  list-style: none;
  text-align: center;
}

.slick-dots li.slick-active button:before {
  opacity: 0.75;
  color: red;
}

/* Contact */
.form-control {
  font-size: 1.1rem;
  border-radius: 0;
  border: none;
  background-color: #ffffff;
  color: white;
  padding: 0.75rem;
}

.form-control:focus {
  color: #cecece;
  background-color: #cecece;
  border-color: transparent;
}
.tm-col-email {
  padding-left: 0;
}

.tm-btn-submit {
  background-color: red;
}

.tm-btn-gray {
  background-color: #494752;
  color: white;
}

.tm-btn-gray:hover {
  background-color: #77757d;
  color: white;
}

.btn {
  padding: 0.5rem 2.4rem;
  font-size: 1.2rem;
  border-radius: 0;
}

.btn-primary {
  border-color: transparent;
}

.btn-primary:hover {
  background-color: #0e7fb9;
  border-color: transparent;
}

.tm-text-highlight {
  color: white;
}
.tm-text-highlight:hover {
  color: red;
}
.tm-main-content{
  flex-direction: column;
  
}
.tm-main-content.tm{
  position: relative;
  bottom: 0;
  margin-top: 50px;
}

a,
button {
  transition: all 0.3s ease;
}
a:hover,
a:focus {
  text-decoration: none;
  outline: none;
}

p:last-child {
  margin-bottom: 0;
}

#me{
  color: red;
}

footer {
  font-weight: 600;
  font-family: 'Manrope', sans-serif;
  background: linear-gradient(45deg, #1b1b1b94, #a7a7a757, #20202079);
  background-size: 200% 200%;
  animation: pulseBackground 6s ease-in-out infinite;
  color: white;
  text-align: center;
  height: var(--footer-height);
  font-size: 1rem;
  position: fixed;
  bottom: 0;
  width: 100%;
  display: flex; 
  justify-content: center; 
  align-items: center; 
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

@keyframes pulseBackground {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}


@media (max-width: 990px) {
  .container {
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
  }
  .content {
    margin-left: auto;
    margin-right: auto;
  }
  .tm-nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    justify-items: center;
    margin-left: auto;
    margin-right: auto;
  }
  .tm-col-email {
    padding-left: 15px;
  }
  .tm-reverse-sm {
    flex-direction: column-reverse;
  }
}

@media (max-width: 767px) and (min-width: 544px) {
  .grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    justify-items: center;
    margin-left: auto;
    margin-right: auto;
  }

  .tm-site-header,
  h1 {
    font-size: 2.6rem;
    width: 80%;
  }
}

@media (max-width: 544px) {
  body, html {
    overflow-x: hidden;
    overflow-y: auto;
    margin: 0;
    padding: 0;
  }
  .grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .tm-site-header,
  h1 {
    width: 100%;
    height: 100%;
    justify-content: center;
    font-size: 1.5rem;
  }
  .tm-main-content {
    flex-direction: column;
  }
  .details__bg {
    padding: 55px 40px;
  }
  .slick-dots li button:before {
    font-size: 15px;
  }
}

@media (max-width: 419px) {
  .tm-nav-link {
    width: 120px;
    height: 120px;
  }
  .fa-3x {
    font-size: 2.2em;
  }

  .tm-site-header,
  h1 {
    font-size: 1.2rem;
  }
}
