@import url("https://fonts.googleapis.com/css?family=Raleway:100,300,400,500,700,900");

/* Modern Color Palette */
:root {
  --primary: #1a3c5e;
  --secondary: #e63946;
  --accent: #457b9d;
  --light: #f1faee;
  --dark: #1d3557;
  --text: #2b2d42;
}

body {
  font-family: 'Inter', 'Raleway', sans-serif;
  font-size: 1.1em;
  color: var(--text);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  line-height: 1.6;
}

a {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--accent);
}

a:hover,
a:focus {
  text-decoration: none;
  color: var(--secondary);
}

.tm-text-primary {
  color: var(--primary);
}

.tm-btn-primary {
  color: white;
  background-color: var(--primary);
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
}

.tm-btn-primary:hover {
  background-color: var(--secondary);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
  color: white;
}

/* Navbar Modernization */
.tm-navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: transparent;
  transition: all 0.4s ease;
  padding: 20px 0;
  margin: 0;
  /* Ensure no margin is pushing it down */
}

.tm-navbar.scroll {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 10px 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  color: white;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.tm-navbar.scroll .navbar-brand {
  color: var(--primary);
}

.tm-nav-link {
  color: white;
  font-weight: 500;
  margin: 0 10px;
  padding: 5px 15px !important;
  border-radius: 5px;
}

.tm-navbar.scroll .tm-nav-link {
  color: var(--dark);
}

.tm-navbar.scroll .tm-nav-link:hover,
.tm-nav-link:hover {
  color: var(--secondary) !important;
  background: transparent;
}

.navbar-toggler {
  border: none;
  color: white;
}

.tm-navbar.scroll .navbar-toggler {
  color: var(--dark);
}

.navbar-toggler-icon {
  color: white;
  padding-top: 6px;
}

.tm-navbar.scroll .navbar-toggler {
  border: 1px solid #707070;
}

.tm-navbar.scroll .navbar-toggler-icon {
  color: #707070;
}

/* Hero */

#infinite {
  background-color: var(--dark);
  background: linear-gradient(rgba(29, 53, 87, 0.5), rgba(29, 53, 87, 0.7)), url(../img/infinite-loop-01.jpg);
  background-size: cover;
  background-position: center;
  height: 100vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff !important;
  text-align: center;
}

.tm-hero-title {
  color: #ffffff !important;
  font-size: 4.5rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
  text-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

.tm-hero-subtitle {
  color: #ffffff !important;
  font-size: 1.4rem;
  font-weight: 300;
  max-width: 700px;
  margin: 0 auto;
  opacity: 1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

@media (max-width: 767px) {
  .tm-hero-title {
    font-size: 2.8rem;
  }

  .tm-hero-subtitle {
    font-size: 1.1rem;
  }
}

.tm-intro-next {
  position: absolute;
  bottom: 100px;
  left: 0;
  right: 0;
}

@media (max-height: 480px) {
  .tm-hero-text-container-inner {
    margin-top: -40px;
  }

  .tm-intro-next {
    bottom: 20px;
  }
}

.tm-down-arrow-link {
  display: block;
  margin-top: 18%;
}

.tm-down-arrow {
  color: #FFF;
  cursor: pointer;
  background: #357;
  padding: 15px 40px;
  transition: all 0.3s ease;
}

.tm-down-arrow:hover,
.tm-down-arrow:focus {
  color: #FFF;
  background: #37A;
  padding: 20px 50px;
}

/* Introduction */

#introduction {
  padding-bottom: 100px;
}

.tm-section-title {
  font-size: 2.6rem;
  font-weight: normal;
}

.tm-intro-text {
  font-size: 1.2rem;
}

.tm-icon {
  display: block;
  color: #37A;
}

.tm-continue {
  padding: 20px 0 30px 0;
}

/* Testimonials */
#testimonials {
  color: white;
  background-image: url(../img/infinite-loop-02.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  background-size: 100%;
  position: relative;
}

@media (max-width: 991px) {
  #testimonials {
    background-image: url(../img/infinite-loop-02-mobile.jpg);
  }
}

.tm-testimonials-content {
  position: relative;
  z-index: 100;
}

/* Service Cards */
.service-card {
  background: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  height: 100%;
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: var(--secondary);
}

.service-card .tm-icon {
  margin-bottom: 25px;
  color: var(--secondary);
  transition: all 0.3s ease;
}

.service-card:hover .tm-icon {
  transform: scale(1.1);
}

.service-card h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.service-card .tm-intro-text {
  font-size: 1rem;
  line-height: 1.7;
  color: #666;
  margin: 0;
}

.tm-bg-overlay {
  width: 100%;
  height: 100%;
  background: rgba(20, 70, 80, 0.4);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

.tm-testimonials-carousel {
  max-width: 1050px;
  margin: 0 auto;
  display: flex;
  flex-wrap: nowrap;
  /* Ensure they stay on one line for scrolling */
  transition: all 0.3s ease;
}

@media (max-width: 991px) {
  .tm-testimonials-carousel {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 30px;
    padding-left: 5%;
    /* Space for peeking */
    padding-right: 5%;
  }
}

.tm-testimonials-carousel::-webkit-scrollbar {
  display: none;
}

.tm-testimonial-item {
  background: rgba(255, 255, 255, 0.08);
  /* Slightly more visible */
  padding: 40px 30px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  margin: 15px;
  transition: all 0.3s ease;
  flex: 0 0 calc(50% - 30px);
  /* 2 items on desktop */
}

@media (max-width: 991px) {
  .tm-testimonial-item {
    flex: 0 0 85%;
    /* Peek next card */
    scroll-snap-align: center;
    margin: 15px 10px;
  }
}

.tm-testimonial-item:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-10px);
  border-color: var(--secondary);
}

.tm-testimonial-item img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 25px;
  display: block;
  border: 4px solid var(--secondary);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.tm-testimonial-item blockquote {
  font-size: 1.1rem;
  line-height: 1.8;
  font-weight: 300;
  margin-bottom: 25px;
  color: #eee;
}

.tm-testimonial-item figcaption {
  text-align: center;
  font-weight: 700;
  color: var(--secondary);
  font-size: 1.25rem;
  letter-spacing: 0.5px;
}

.tm-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.tm-carousel-btn:hover {
  background: var(--secondary);
  border-color: var(--secondary);
  color: white;
  transform: translateY(-50%) scale(1.1);
}

.tm-carousel-btn.prev {
  left: -70px;
}

.tm-carousel-btn.next {
  right: -70px;
}

@media (max-width: 1200px) {
  .tm-carousel-btn.prev {
    left: -10px;
  }

  .tm-carousel-btn.next {
    right: -10px;
  }
}

@media (max-width: 767px) {
  .tm-carousel-btn {
    width: 40px;
    height: 40px;
  }
}

/* Work */

.tm-section-desc {
  max-width: 650px;
  width: 100%;
  font-size: 0.9rem;
}

.tm-gallery-container {
  padding-top: 70px;
  padding-bottom: 120px;
}

.tm-gallery-item {
  margin: 0 15px;
}

.slick-dots {
  bottom: -65px;
}

.slick-dots li {
  margin: 0 13px;
}

.slick-dots li button:hover:before,
.slick-dots li button:focus:before,
.slick-dots li.slick-active button:before {
  opacity: 1;
  color: #3ba0dd;
}

.tm-testimonials-carousel .slick-dots li button:before {
  color: white;
  opacity: 0.5;
}

.tm-testimonials-carousel .slick-dots li button:hover:before,
.tm-testimonials-carousel .slick-dots li button:focus:before,
.tm-testimonials-carousel .slick-dots li.slick-active button:before {
  color: white;
  opacity: 1;
}

.slick-dots li button:before {
  font-size: 18px;
}

/* Hover Effect */
/* Common style */
.grid figure {
  position: relative;
  float: left;
  overflow: hidden;
  background: #3085a3;
  text-align: center;
  cursor: pointer;
}

.grid figure img {
  position: relative;
  display: block;
  min-height: 100%;
  max-width: 100%;
  opacity: 0.8;
}

.grid figure figcaption {
  padding: 2em;
  color: #fff;
  text-transform: uppercase;
  font-size: 1.25em;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.grid figure figcaption::before,
.grid figure figcaption::after {
  pointer-events: none;
}

.grid figure figcaption,
.grid figure figcaption>a {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Anchor will cover the whole item by default */
/* For some effects it will show as a button */
.grid figure figcaption>a {
  z-index: 1000;
  text-indent: 200%;
  white-space: nowrap;
  font-size: 0;
  opacity: 0;
}

.grid figure h2 {
  word-spacing: -0.15em;
  font-size: 0.9em;
  font-weight: 300;
}

.grid figure h2 span {
  font-weight: 600;
}

.grid figure h2,
.grid figure p {
  margin: 0;
}

.grid figure p {
  letter-spacing: 1px;
  font-size: 68.5%;
}

/*---------------*/
/***** Honey *****/
/*---------------*/

figure.effect-honey {
  background: #4a3753;
  max-width: 220px;
}

figure.effect-honey img {
  opacity: 1;
  -webkit-transition: opacity 0.35s;
  transition: opacity 0.35s;
}

figure.effect-honey:hover img {
  opacity: 0.4;
}

figure.effect-honey figcaption::before {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 10px;
  background: #38C;
  content: "";
  -webkit-transform: translate3d(0, 10px, 0);
  transform: translate3d(0, 10px, 0);
}

figure.effect-honey h2 {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 1em 1.5em;
  width: 100%;
  text-align: left;
  -webkit-transform: translate3d(0, -30px, 0);
  transform: translate3d(0, -30px, 0);
}

figure.effect-honey h2 i {
  font-style: normal;
  opacity: 0;
  -webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
  transition: opacity 0.35s, transform 0.35s;
  -webkit-transform: translate3d(0, -30px, 0);
  transform: translate3d(0, -30px, 0);
}

figure.effect-honey figcaption::before,
figure.effect-honey h2 {
  -webkit-transition: -webkit-transform 0.35s;
  transition: transform 0.35s;
}

figure.effect-honey:hover figcaption::before,
figure.effect-honey:hover h2,
figure.effect-honey:hover h2 i {
  opacity: 1;
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
}

.tm-container-gallery {
  padding-top: 30px;
}

/* Contact */

#contact {
  color: white;
  background-color: #001828;
  background-image: url(../img/infinite-loop-03.jpg);
  background-position: center;
  background-repeat: no-repeat;
  min-height: 980px;
  position: relative;
  padding-bottom: 50px;
  padding-top: 100px;
}

.contact-item {
  margin-bottom: 30px;
  background: rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 15px;
  transition: all 0.3s ease;
}

.contact-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.item-link {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.item-link i {
  font-size: 1.5rem;
  color: var(--secondary);
}

.item-link span {
  color: white;
  font-size: 1.1rem;
  font-weight: 400;
}

.item-link:hover span {
  color: var(--secondary);
}

/* Main Footer Styling */
.main-footer {
  background-color: var(--dark);
  color: #fff;
  padding: 80px 0 30px;
  position: relative;
  z-index: 100;
  margin-top: -1px;
  /* Avoid gap */
}

.footer-title {
  color: var(--secondary);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 25px;
  position: relative;
}

.main-footer p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  line-height: 1.8;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: var(--secondary);
  padding-left: 5px;
}

.footer-bottom {
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

.footer-bottom a {
  color: white;
  text-decoration: none;
}

.footer-bottom a:hover {
  color: var(--secondary);
}

#contact {
  padding-bottom: 100px;
  min-height: auto;
}

p {
  line-height: 1.9;
}

@media (min-width: 768px) {
  .tm-intro-text-container {
    padding-left: 0px;
  }

  .navbar-expand-md .navbar-nav .nav-link {
    padding-right: 30px;
    padding-left: 30px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1275px;
  }

  .tm-container-gallery {
    max-width: 1290px;
  }

  .tm-container-contact {
    max-width: 1063px;
  }
}

@media (max-width: 991px) {
  .tm-intro-text-container {
    padding-left: 15px;
    padding-top: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }

  .tm-intro-img {
    display: block;
    margin-left: auto;
    margin-right: auto;
  }

  .tm-btn-submit {
    margin-left: 0;
    margin-top: 20px;
  }
}

@media (max-width: 767px) {

  .navbar-nav {
    max-width: 200px;
    text-align: right;
  }

  .navbar-collapse {
    background-color: rgb(255, 255, 255);
    padding: 10px;
    border-radius: 3px;
  }

  .navbar-collapse .nav-link {
    color: #707070;
    padding-right: 20px;
  }

  .tm-section-pad-top {
    padding-top: 50px;
  }

  .tm-section-title {
    font-size: 2rem;
  }

  .tm-section-desc {
    font-size: 0.85rem;
    padding: 0 15px;
  }
}

@media (max-width: 480px) {
  .tm-gallery-container {
    max-width: 220px;
    margin-left: auto;
    margin-right: auto;
  }

  .tm-gallery-container-2 {
    max-width: 90vw;
  }

  .slick-dots li {
    margin: 0 8px;
  }

  .tm-gallery-item {
    margin: 0;
  }
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 40px;
  right: 40px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.2);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  background-color: #128c7e;
  transform: scale(1.1) rotate(5deg);
  color: #FFF;
  box-shadow: 2px 5px 20px rgba(0, 0, 0, 0.3);
}

@media (max-width: 767px) {
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
    font-size: 25px;
  }
}

/* Call Floating Button */
.call-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 40px;
  left: 40px;
  background-color: var(--accent);
  /* Theme blue */
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  font-size: 25px;
  box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.2);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.call-float:hover {
  background-color: var(--primary);
  transform: scale(1.1) rotate(-5deg);
  color: #FFF;
  box-shadow: 2px 5px 20px rgba(0, 0, 0, 0.3);
}

@media (max-width: 767px) {
  .call-float {
    width: 50px;
    height: 50px;
    bottom: 20px;
    left: 20px;
    font-size: 22px;
  }
}