/* Global box-sizing to include padding and border */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
  font-size: 20px;
  font-weight: 400;
  overflow-x: hidden; /* Prevents horizontal scrolling */
  margin: 0; /* Remove any unintended margins */
  padding: 0;
  width: 100%; /* Full width */
  color: #707172;
  background-color: #666;
}

/* Preserve the sidebar offset for main content */
.tm-section-wrap {
  width: calc(100%); /* Full width minus sidebar width */
  padding-left: 425px; /* Sidebar width */
  padding-right: 0; /* Remove extra right padding */
  margin: 0;
  box-sizing: border-box;
}


#intro {
  min-height: 100vh; /* Ensure full viewport height */
  padding-bottom: 60px; /* Space below intro section */
  padding-right: 40px; 
  position: relative; /* Ensure stacking order */
  z-index: 2; /* Ensure proper stacking over background */
}

#our-work,
#talk {
  padding: 40px 30px;
  border-radius: 10px;
}

/* Common styling for both sections */
#our-work .tm-double-border-1,
#talk .tm-double-border-1 {
  margin: 0 auto; /* Center align */
  padding: 30px 40px; /* Uniform padding inside */
  max-width: 1100px; /* Adjusted width */
  text-align: left; /* Align text to the left */
  border: 1px solid #ccc; /* Single border */
  box-sizing: border-box; /* Include padding in width */
  border-radius: 10px; /* Rounded corners */
  background-color: rgba(68, 68, 68, 0.2); /* Gray background for consistency */
}

/* Content box styling for both sections */
#our-work .tm-content-box,
#talk .tm-content-box {
  margin: 0 auto; /* Center-align content */
  padding: 30px; /* Uniform padding */
  max-width: 1100px; /* Consistent width */
  text-align: left; /* Align text to the left */
}

#our-work h2.tm-section-title,
#talk h2.tm-section-title {
  margin-top: 0;
  margin-bottom: 20px;
  text-align: left;
}

#our-work p,
#talk p {
  margin-bottom: 15px;
  line-height: 1.6;
}


#our-work h2.tm-section-title,
#talk h2.tm-section-title {
  margin-top: 0;
  margin-bottom: 20px;
  text-align: left;
}

#our-work p,
#talk p {
  margin-bottom: 15px;
  line-height: 1.6;
}



/* Typography adjustments */
#talk h2.tm-section-title {
  margin-top: 0; /* Remove extra top margin */
  margin-bottom: 20px; /* Add spacing below */
  text-align: left; /* Align title text to the left */
}

#talk p {
  margin-bottom: 15px; /* Add spacing between paragraphs */
  line-height: 1.6; /* Improve readability */
}

#talk a {
  color: #069; /* Match link color with theme */
  text-decoration: none; /* Remove underline */
}

#talk a:hover {
  text-decoration: underline; /* Add underline on hover */
}

/* Wrapper alignment inside sections */
#our-work .tm-content-box, #talk .tm-content-box {
  margin: 0 auto; /* Center-align the content */
  padding: 30px; /* Add padding for spacing */
  max-width: 1040px; /* Consistent width */
  text-align: left; /* Align text to the left */
}


/* Remove or merge duplicate rules */
#talk .tm-double-border-1, #work .tm-double-border-1 {
  margin: 0;
  padding: 0; /* Clean up padding inconsistency */
}


.tm-section + .tm-section { /* Add spacing between sections */
  margin-top: 30px; /* Adds spacing to avoid overlaps */
}

p {
  line-height: 2;
}

a {
  transition: all 0.3s ease;
}

.container-fluid {
  padding-left: 0;
  padding-right: 0;
}

.small {
  font-size: 0.95rem;
}

.tm-color-primary {
  color: #069;
}

.tm-color-gray {
  color: #333;
}

.tm-bg-black-transparent {
  background-color: rgba(0, 0, 0, 0.3);
}

.tm-bg-white-transparent {
  background-color: rgba(255, 255, 255, 0.3);
  border: 1px solid white;
}

.navbar-toggler {
  display: none; /* Hide by default */
}

/* Adjust logo box size and position */
.tm-intro {
  width: 70%; /* Make it occupy the right half of the screen */
  margin-left: auto; /* Push it to the right */
  margin-right: 20px; /* Add some padding on the right */
  text-align: left; /* Align the text to the left */
  padding-left: 40px; /* Add padding inside the box on the left */
  padding-top: 20px;
  padding-bottom: 30px;
  padding-right: 30px;
}

/* Style for the logo */
.tm-logo {
  max-width: 300px; /* Set maximum width */
  margin-bottom: 20px;
}

.tm-logo-sidebar {
  width: 100%; /* Make it fit the sidebar width */
  max-width: 300px; /* Adjust as needed */
  margin: 0 auto; /* Center the logo */
  display: block;
}

.tm-logo-box {
  background: none; /* Remove background */
  border: none; /* Remove border */
  box-shadow: none; /* In case there's a shadow */
}

.tm-section-title {
  font-size: 1.6rem;
}

.parallax-window {
  min-height: 662px;
  background: transparent;
}

.parallax-window {
  overflow: hidden;
}


.tm-section {
  display: flex;
  align-items: center;
  height: auto;
  max-width: 100%; /* Change from 1275px to 100% for better responsiveness */
  padding: 40px 30px; /* Adjusted padding */
  margin: 0 auto; /* Center align */
  overflow: hidden; /* Prevent overflow */
  width: 100%; /* Full width */
}

.tm-brand {
  font-size: 2.6rem;
}

.tm-brand-box {
  box-sizing: content-box;
  width: 100%;
  max-width: 330px;
  min-height: 140px;
  color: white;
  text-align: center;
  margin: 30px auto; /* Adjust vertical space */
}

/* Shared styling for both sections */
.tm-double-border-1 {
  margin: 0 auto; /* Center align */
  padding: 30px 40px; /* Uniform padding */
  max-width: 1100px; /* Consistent width */
  text-align: left; /* Align text to the left */
  border: 1px solid #ccc; /* Single border */
  box-sizing: border-box; /* Include padding in width */
  border-radius: 10px; /* Rounded corners */
  background-color: rgba(68, 68, 68, 0.2); /* Gray background for consistency */
}


.tm-border-gray {
  border-color: #cdcecf;
}

.tm-box-pad {
  padding: 50px 55px;
}

.tm-brand {
  padding: 30px;
}

.tm-sidebar {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  padding-left: 70px;
  padding-right: 70px;
  width: 400px;
  max-width: 400px;
  background-color: #777; /* Lighter gray */
  overflow-y: scroll; /* Ensure scroll works properly */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE 10+ */
}

/* Hide scrollbar */
.tm-sidebar {
  overflow-y: scroll;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE 10+ */
}
.tm-sidebar::-webkit-scrollbar {
  /* WebKit */
  width: 0;
  height: 0;
}

.tm-sidebar-sticky {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.tm-main-nav > li > a {
  color: white;
}

.tm-main-nav {
  margin-bottom: 160px;
}

.tm-white-rect {
  display: block;
  width: 15px;
  height: 15px;
  background-color: white;
}

.nav-link {
  font-size: 1.25rem;
  padding-top: 12px;
  padding-bottom: 12px;
}

.nav-link .tm-white-rect {
  opacity: 0;
  transition: all 0.3s ease;
}

.nav-link.current .tm-white-rect,
.nav-link:hover .tm-white-rect {
  opacity: 1;
}

.tm-main-nav .nav-link:hover {
  animation-name: blinker;
  animation-duration: 0.5s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

@keyframes blinker {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.1;
  }
  100% {
    opacity: 1;
  }
}

.tm-social-links {
  margin-bottom: 27px;
}

.tm-social-link {
  width: 40px;
  height: 40px;
  color: black;
  background-color: white;
  margin: 8px;
  border-radius: 5px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tm-social-link:hover,
.tm-social-link:focus {
  background-color: #069;
  color: white;
}

.tm-footer-link {
  color: white;
}

.tm-footer-link:hover {
  color: #F93;
  text-decoration: none;
}

.tm-section-half {
  padding: 0 30px; /* Adjust horizontal padding here */
}

.tm-section-icon {
  color: #369;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Our Work */

.tm-gallery-wrap {
  max-width: 1040px;
  margin-left: auto;
  margin-right: auto;
}



.tm-gallery-item {
  padding-left: 10px;
  padding-right: 10px;
}

.slick-dots {
  bottom: -30px;
}

.slick-dots li button:before {
  font-size: 16px;
  opacity: 0.2;
}

.slick-dots li.slick-active button:before {
  color: #98999a;
  opacity: 1;
}

/* 
  Gallery Item Hover Effect
  https://tympanus.net/codrops/2014/06/19/ideas-for-subtle-hover-effects/
*/

/* Common style */
.tm-gallery-item figure {
  position: relative;
  float: left;
  overflow: hidden;
  margin-bottom: 0;
  background: #3085a3;
  text-align: center;
  cursor: pointer;
}

.tm-gallery-item figure img {
  position: relative;
  display: block;
  min-height: 100%;
  max-width: 100%;
  opacity: 0.8;
}

.tm-gallery-item figure figcaption {
  padding: 1em;
  color: #fff;
  text-transform: uppercase;
  font-size: 1.25em;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.tm-gallery-item figure figcaption::before,
.tm-gallery-item figure figcaption::after {
  pointer-events: none;
}

.tm-gallery-item figure figcaption,
.tm-gallery-item figure figcaption > a {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Anchor will cover the whole item by default */
/* For some effects it will show as a button */
.tm-gallery-item figure figcaption > a {
  z-index: 1000;
  text-indent: 200%;
  white-space: nowrap;
  font-size: 0;
  opacity: 0;
}

.tm-gallery-item figure h2 {
  word-spacing: -0.15em;
  font-weight: 300;
}

.tm-gallery-item figure h2 span {
  font-weight: 800;
}

.tm-gallery-item figure h2,
.tm-gallery-item figure p {
  margin: 0;
}

.tm-gallery-item figure p {
  letter-spacing: 1px;
  font-size: 68.5%;
}

/*---------------*/
/***** Bubba *****/
/*---------------*/

figure.effect-bubba {
  background: #069;
}

figure.effect-bubba img {
  opacity: 1;
  -webkit-transition: opacity 0.35s;
  transition: opacity 0.35s;
}

figure.effect-bubba:hover img {
  opacity: 0.4;
}

figure.effect-bubba figcaption::before,
figure.effect-bubba figcaption::after {
  position: absolute;
  top: 15px;
  right: 15px;
  bottom: 15px;
  left: 15px;
  content: "";
  opacity: 0;
  -webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
  transition: opacity 0.35s, transform 0.35s;
}

figure.effect-bubba figcaption::before {
  border-top: 1px solid #fff;
  border-bottom: 1px solid #fff;
  -webkit-transform: scale(0, 1);
  transform: scale(0, 1);
}

figure.effect-bubba figcaption::after {
  border-right: 1px solid #fff;
  border-left: 1px solid #fff;
  -webkit-transform: scale(1, 0);
  transform: scale(1, 0);
}

figure.effect-bubba h2 {
  font-size: 1.5rem;
  margin-bottom: 30px;
  opacity: 0;
  -webkit-transition: -webkit-transform 0.35s;
  transition: transform 0.35s;
  -webkit-transform: translate3d(0, -20px, 0);
  transform: translate3d(0, -20px, 0);
}

figure.effect-bubba p {
  width: 100%;
  padding: 10px;
  opacity: 0;
  -webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
  transition: opacity 0.35s, transform 0.35s;
  -webkit-transform: translate3d(0, 20px, 0);
  transform: translate3d(0, 20px, 0);
}

figure.effect-bubba:hover figcaption::before,
figure.effect-bubba:hover figcaption::after {
  opacity: 1;
  -webkit-transform: scale(1);
  transform: scale(1);
}

figure.effect-bubba:hover h2,
figure.effect-bubba:hover p {
  opacity: 1;
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
}

/* Clients */
.tm-section-pad {
  padding: 20px 50px; /* Adjust as needed */
}

.tm-clients-images {
  max-width: 1040px;
}

.tm-w-80 {
  max-width: 80%;
}

.tm-flex-item-left {
  align-self: flex-start;
}


.tm-client-img {
  max-width: 80%; /* Ensure the image doesn't overflow */
  height: auto; /* Maintain aspect ratio */
}

.tm-client-img {
  border: none; /* Ensure the logo itself has no border */
  background: none; /* No background on the logo */
}


.tm-img-wrap a {
  text-align: center; /* Center the image */
  display: flex;
  align-items: center;
  justify-content: center;
  border: none; /* Removes the border */
  border-radius: 0; /* Removes the rounded corners */
  padding: 0; /* Removes padding */
  background-color: transparent; /* Ensures no background color */
  width: auto; /* Adjust the width as needed */
  height: auto; /* Adjust the height as needed */
}

.tm-contact-form-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.tm-contact-form {
  max-width: 305px;
  width: 100%;
}

.form-group {
  margin-bottom: 40px;
}

.tm-btn-primary {
  color: #707172;
  border-bottom: 1px solid #cdcecf;
  padding: 10px 18px;
  position: relative;
}

.tm-btn-primary:hover,
.tm-btn-primary:active {
  color: #fff;
  background-color: #999;
}

.tm-btn-primary:after {
  width: 100%;
  height: 0%;
  top: 0;
  left: 0;
  background: #cdcecf;
  content: "";
  position: absolute;
  z-index: -1;
  -webkit-transition: all 0.3s;
  -moz-transition: all 0.3s;
  transition: all 0.3s;
}

.tm-btn-primary:hover:after,
.tm-btn-primary:active:after {
  height: 100%;
}

.form-control:focus {
  outline: none;
  box-shadow: none;
}

@media (max-width: 768px) {
  .tm-intro {
    width: 90%; /* Narrow the box on smaller devices */
  }
}