/* ------------------------------------------------------------------
   PAGE STYLES
   - Contact section
   - Button styles
   - Footer
   - Media queries
   - Isotope
   - Mobile spacing
------------------------------------------------------------------- */

/* ======= Contact style ======= */
.contact h5 {
  color: #18191d;
}
.contact .item {
  padding: 10px 0px;
}
.contact .item .wrap-block {
  padding: 0;
  position: relative;
  overflow: hidden;
  margin-bottom: 10px;
}
.contact .item .icon {
  width: 50px;
  height: 50px;
  line-height: 50px;
  font-size: 40px;
  border-radius: 50%;
  margin-right: 10px;
  text-align: center;
  position: relative;
  z-index: 3;
  float: left;
  color: #18191d;
}
.contact .item .text-block {
  overflow: hidden;
}
.contact .item h5 {
  font-size: 16px;
  margin-bottom: 0px;
  margin-top: 0px;
  color: #18191d;
}
.contact .item p {
  margin-bottom: 0px;
}
.google-map {
  width: 100%;
  filter: grayscale(100%);
  height: calc(100% + 30px);
  overflow: hidden;
}

/* ======= Button style ======= */
.btn-wrap {
  margin-bottom: 0px;
}
.btn-wrap.text-center .btn-link {
  margin-left: auto;
  margin-right: auto;
}
.btn-link {
  position: relative;
  width: 170px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin: 0;
  text-decoration: none;
}
@media screen and (max-width: 767px) {
  .btn-link {
    margin-left: 10px;
  }
}

.btn-link a {
  text-align: center;
  font-family: var(--font-syne), sans-serif;
  font-weight: 400;
  color: #18191d;
  font-size: 16px;
  line-height: 1.75em;
  z-index: 99;
  text-decoration: none;
}

.btn-link a.white {
  color: #fff;
}
.btn-link a i {
  font-size: 12px;
}
.btn-link:hover,
.btn-link a:hover {
  text-decoration: none;
}
.btn-block {
  width: 70px;
  height: 70px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: -10%;
  z-index: 1;
  border-radius: 50%;
  text-decoration: none;
}
.btn-block:hover {
  text-decoration: none;
}
.animation {
  transition: all 0.2s ease;
}
.btn-link:hover .btn-block {
  left: 70%;
  text-decoration: none;
}
.animation-bounce {
  transition: all 700ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.btn-block.color1 {
  background-color: transparent;
  border: 2px solid rgba(0, 0, 0, 0.07);
}
.btn-block.color2 {
  background-color: transparent;
  border: 2px solid rgba(0, 0, 0, 0.07);
}
.btn-block.color3 {
  background-color: transparent;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

/* contact form button style */
.btn-link input[type='submit'],
.btn-link input[type='reset'],
.btn-link input[type='button'],
.btn-link button {
  font-family: var(--font-syne), sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75em;
  border: none;
  color: #18191d;
  background: transparent;
  padding: 20px 30px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.contact__form .btn-link:hover .btn-block {
  left: 60%;
  text-decoration: none;
}

/* Resume tooltip */
.resume-btn {
  position: relative;
}
.resume-tooltip {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 8px;
  padding: 6px 12px;
  font-size: 13px;
  color: #1a1a2e !important;
  background: #f5f5f5;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 100;
}
.resume-tooltip::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-bottom-color: #f5f5f5;
}
.resume-btn:hover .resume-tooltip {
  opacity: 1;
  visibility: visible;
}
.resume-btn .btn-block {
  left: -20%;
}
.btn-wrap.anim-delay-3 {
  margin-top: -15px;
}
.resume-btn:hover .btn-block {
  left: 55%;
}

/* ======= Footer style ======= */
.nilsbrown-footer-section {
  background: #fff;
  padding: 75px 0 60px 0;
  width: 100%;
}
.nilsbrown-footer-social-link {
  display: inline-block;
  margin: 10px 0;
  padding: 0;
}
.nilsbrown-footer-social-link li {
  display: inline-block;
  background-color: transparent;
  width: 45px;
  height: 45px;
  line-height: 45px;
  text-align: center;
  border-radius: 50%;
  transition: all 0.3s ease-in-out;
  border: 2px solid rgba(0, 0, 0, 0.05);
  font-size: 12px;
  margin-left: 5px;
  justify-content: center;
  align-items: center;
}

.nilsbrown-footer-social-link li:hover {
  background-color: #f5f5f5;
  color: #3a3a3a;
  transition: all 0.3s ease-in-out;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
}

.nilsbrown-footer-social-link li i {
  color: #18191d;
}
.nilsbrown-footer-social-link li a {
  display: block;
  width: 100%;
  height: 100%;
}

.nilsbrown-footer-section h5 {
  font-family: var(--font-syne), sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #18191d;
}
.nilsbrown-footer-section p {
  color: #868a9b;
}

/* ======= Iconify style ======= */
.iconify {
  filter: invert(0);
  transition: filter 0.3s ease;
}

.iconify:hover {
  filter: invert(1);
}

/* ======= Isotope style ======= */
.isotope-highlighted img {
  border: 6px solid #0d6efd;
}

/* Header container height */
.header-container {
  height: 80px;
}

/* ======= Media Query style ======= */
@media (max-width: 767px) {
  .nilsbrown-header {
    background: #fff;
    margin-bottom: 30px;
    padding: 20px;
  }
  .col-md-12 {
    padding-top: 20px;
  }

  .nilsbrown-header h1 {
    font-size: 40px;
    color: #18191d;
  }
  .nilsbrown-header h1 span.stroke {
    font-size: 50px;
  }
  .header-view-on-mobile h6,
  .header-not-view-on-mobile h6 {
    font-size: 12px;
    margin-bottom: 30px;
  }
  .header-view-on-mobile h1,
  .header-not-view-on-mobile h1 {
    font-size: 27px;
  }
  .header-view-on-mobile p,
  .header-not-view-on-mobile p {
    color: #868a9b;
  }
  .header-cont-text {
    background: transparent;
    width: 100%;
    padding: 0px;
    position: relative;
    z-index: 99;
    margin: 30px auto 30px auto;
  }
  .section-padding h1 {
    font-size: 45px;
  }
  .testimonials .testimonials-box {
    padding: 40px 20px;
    margin-bottom: 15px;
    min-height: 0px;
  }
  .accordion-box .block .acc-btn {
    padding: 15px 15px;
  }
  .accordion-box .block .acc-btn:before {
    right: 15px;
  }
  .accordion-box .block .content {
    padding: 0px 15px 20px;
  }
  .btn-wrap {
    margin-bottom: 45px;
  }
  .pagination-wrap {
    margin-bottom: 30px;
  }

  /* Mobile spacing adjustments */
  .section-padding {
    padding: 15px 0;
  }
  .mb-30 {
    margin-bottom: 10px;
  }
  .mt-30 {
    margin-top: 10px;
  }
  .mb-60 {
    margin-bottom: 15px;
  }
  .col-md-6.mb-30 {
    margin-bottom: 10px;
  }
  .mb-45 {
    margin-bottom: 10px !important;
  }
  .mt-45 {
    margin-top: 10px !important;
  }
  .row.mb-45 {
    margin-bottom: 5px !important;
  }
}

@media (min-width: 991px) {
  .header-cont-absolute {
    height: 56.6875em;
  }
  .header-view-on-mobile {
    display: none;
  }
  .header-not-view-on-mobile {
    display: block;
  }
  .header-img {
    width: 60%;
    margin-top: 40px;
  }
  .header-img-left {
    float: left;
  }
  .header-img-right {
    float: right;
  }
  .header-cont {
    width: 39.7%;
    position: relative;
    margin-top: 40px;
  }
  .header-cont-right {
    float: right;
  }
  .header-cont-absolute-right {
    left: -19%;
  }
  .header-cont-absolute-left {
    right: -19%;
    text-align: right;
    width: 100%;
  }
  .header-cont-absolute {
    position: absolute;
    z-index: 99;
    height: auto;
    top: 275px;
    transform: translateY(-50%);
  }
  .header-cont-text {
    margin: 0;
    width: 100%;
  }
  .header-cont-text-left {
    margin-left: -2.52648%;
  }
}

@media (min-width: 992px) {
  .header-cont-text-left {
    width: 100%;
    margin-left: -20%;
  }
  .header-img {
    margin-top: 0px;
    margin-bottom: 30px;
  }
  .header-cont-absolute-left {
    right: -40%;
  }
  .header-cont-absolute-right {
    left: -32%;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px !important;
  }
}

@media (min-width: 1270px) {
  .header-img {
    width: 57%;
  }
  .header-img-left {
    margin-left: 0%;
  }
  .header-img-right {
    margin-right: 0%;
  }
  .header-cont-text {
    width: 100%;
    padding: 30px 0 30px 0px;
    background-color: transparent;
    margin-bottom: 30px;
  }
  .header-cont-text-left {
    width: 120%;
    padding: 60px 100px;
  }
}

@media (max-width: 991px) {
  .header-section:after {
    display: none;
  }
}
