/**
* Template Name: MyPortfolio
* Updated: Jan 29 2024 with Bootstrap v5.3.2
* Template URL: https://bootstrapmade.com/myportfolio-bootstrap-portfolio-website-template/
* Author: BootstrapMade.com
* License: https://bootstrapmade.com/license/
*/

/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/
body {
  font-family: "Inconsolata", monospace;
  color: #0d1e2d;
}

a {
  color: #777;
  text-decoration: none;
}

a:hover {
  color: #000;
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-heading {
  font-family: "Raleway", sans-serif;
}

.section {
  padding: 4rem 0;
}

/* Custom larger top spacing for process rows (used in work-single) */
.row.mt-6 {
  margin-top: 4.5rem; /* ~72px, increases space above the 'The Process' container */
}

.filters a {
  text-decoration: none;
  color: #000;
  display: inline-block;
  padding-left: 10px;
  padding-right: 10px;
  position: relative;
}

.filters a:hover,
.filters a:focus,
.filters a:active {
  text-decoration: none;
}

.filters a:hover:before {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 0;
  height: 1px;
  background-color: #000;
}

.filters a.active {
  color: #000;
}

.filters a.active:before {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 0;
  height: 1px;
  background-color: #000;
}

.item {
  border: none;
  margin-bottom: 30px;
}

.item .item-wrap {
  display: block;
  position: relative;
  overflow: hidden;
}

.item .item-wrap:after {
  z-index: 2;
  position: absolute;
  content: "";
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  visibility: hidden;
  opacity: 0;
  transition: 0.3s all ease-in-out;
}

.item .item-wrap img {
  transition: 0.3s transform ease;
  transform: scale(1);
}

.item .item-wrap>.work-info {
  position: absolute;
  top: 50%;
  width: 100%;
  text-align: center;
  z-index: 3;
  transform: translateY(-50%);
  color: #fff;
  opacity: 0;
  visibility: hidden;
  margin-top: 20px;
  transition: 0.3s all ease;
}

.item .item-wrap>.work-info h3 {
  font-size: 20px;
  margin-bottom: 0;
}

.item .item-wrap>.work-info span {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.2rem;
}

.item .item-wrap:hover {
  text-decoration: none;
}

.item .item-wrap:hover img {
  transform: scale(1.05);
}

.item .item-wrap:hover:after {
  opacity: 1;
  visibility: visible;
}

.item .item-wrap:hover .work-info {
  margin-top: 0px;
  opacity: 1;
  visibility: visible;
}

.testimonial-wrap {
  padding: 50px 50px 80px 50px;
  background: #eceff2;
}

.testimonial-wrap .testimonial {
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
}

.testimonial-wrap .testimonial img {
  border-radius: 50%;
  width: 120px;
  margin: 0 auto 30px auto;
}

.testimonial-wrap .testimonial blockquote p {
  font-size: 20px;
}

.h3 {
  font-size: 20px;
}

.h4 {
  font-size: 16px;
}

.heading {
  font-size: 28px;
}

.readmore {
  display: inline-block;
  border: 1px solid #000;
  padding: 10px 15px;
  font-size: 12px;
  text-transform: uppercase;
  color: #000;
  transition: 0.2s all ease;
  font-weight: 700;
}

.readmore:active,
.readmore:focus,
.readmore:hover {
  outline: none;
}

.readmore:hover {
  color: #fff;
  text-decoration: none;
  background: #000;
}

.testimonials-slider .swiper-pagination {
  margin-top: -60px;
  position: relative;
}

.testimonials-slider .swiper-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background-color: rgba(13, 30, 45, 0.3);
  opacity: 1;
}

.testimonials-slider .swiper-pagination .swiper-pagination-bullet-active {
  background-color: rgba(13, 30, 45, 0.6);
}

.sticky-content {
  position: sticky;
  position: -webkit-sticky;
  top: 0;
  /* required */
}

.list-line {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list-line li {
  margin-bottom: 10px;
  position: relative;
}

/* Make list items act like links. Prefer using an <a> inside each <li>; these rules
   style the anchor (and provide a fallback hover styling for bare <li>s).
   Hover color is orange for emphasis. */
.list-line li a,
.list-line li a:visited {
  color: #0d1e2d; /* base text color (matches body) */
  text-decoration: none;
  transition: color 0.15s ease;
  display: inline-block;
}

.list-line li a:hover,
.list-line li a:focus {
  color: #ff7a00; /* orange on hover */
  text-decoration: none;
  outline: none;
}

/* Fallback if <li> contains plain text (no <a>) — show pointer and color change on hover */
.list-line li {
  cursor: default;
}
.list-line li:hover {
  color: #ff7a00;
  cursor: pointer;
}

.form-control {
  border-radius: 0;
  background: #f8f9fa;
  border: 1px solid transparent;
  padding-top: 10px !important;
  padding-bottom: 10px !important;
}

.form-control:active,
.form-control:focus {
  background: #eff1f4;
  outline: none;
  box-shadow: none;
  border: 1px solid transparent;
}

.custom-progress {
  height: 7px;
  border-radius: 0;
}

.custom-progress .progress-bar {
  background: #000;
}

/* Services */
.services i {
  font-size: 40px;
}

.services h4 {
  padding-top: 10px;
}

/* Contact Form */
.php-email-form .error-message {
  display: none;
  color: #fff;
  background: #ed3c0d;
  text-align: left;
  padding: 15px;
  font-weight: 600;
}

.php-email-form .error-message br+br {
  margin-top: 25px;
}

.php-email-form .sent-message {
  display: none;
  color: #fff;
  background: #18d26e;
  text-align: center;
  padding: 15px;
  font-weight: 600;
}

.php-email-form .loading {
  display: none;
  background: #fff;
  text-align: center;
  padding: 15px;
}

.php-email-form .loading:before {
  content: "";
  display: inline-block;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  margin: 0 10px -6px 0;
  border: 3px solid #18d26e;
  border-top-color: #eee;
  animation: animate-loading 1s linear infinite;
}

@keyframes animate-loading {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
/* Custom Navmenu */
.custom-navmenu {
  background: #0d1e2d;
}

.custom-navmenu .custom-menu,
.custom-navmenu .custom-menu li {
  padding: 0;
  margin: 0;
  list-style: none;
}

.custom-navmenu .custom-menu li {
  margin-bottom: 0;
  font-size: 20px;
}

.custom-navmenu .custom-menu li a {
  color: #fff;
  padding: 10px 0 !important;
}

.custom-navmenu .custom-menu li a:hover {
  text-decoration: none;
}

.custom-navmenu .custom-menu li.active a {
  text-decoration: underline;
}

.custom-navmenu h3 {
  font-size: 20px;
  color: #fff;
}

.custom-navmenu p {
  color: rgba(255, 255, 255, 0.6);
}

.custom-navmenu a {
  color: rgba(255, 255, 255, 0.7);
}

.custom-navmenu a:hover {
  color: #fff;
}

/* Custom Navbar */
.custom-navbar {
  padding-top: 50px;
  width: 100%;
}

@media (max-width: 780px) {
  .custom-navbar>.container {
    padding-right: 0;
    padding-left: 0;
  }
}

.custom-navbar .navbar-brand {
  font-size: 1.7rem;
}

/* Burger */
.burger {
  width: 28px;
  height: 32px;
  cursor: pointer;
  position: relative;
}

.burger:before,
.burger span,
.burger:after {
  width: 100%;
  height: 2px;
  display: block;
  background: #000;
  border-radius: 2px;
  position: absolute;
  opacity: 1;
}

.burger:before,
.burger:after {
  transition: top 0.35s cubic-bezier(0.23, 1, 0.32, 1), transform 0.35s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.35s cubic-bezier(0.23, 1, 0.32, 1), background-color 1.15s cubic-bezier(0.86, 0, 0.07, 1);
  -webkit-transition: top 0.35s cubic-bezier(0.23, 1, 0.32, 1), -webkit-transform 0.35s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.35s cubic-bezier(0.23, 1, 0.32, 1), background-color 1.15s cubic-bezier(0.86, 0, 0.07, 1);
  content: "";
}

.burger:before {
  top: 4px;
}

.burger span {
  top: 15px;
}

.burger:after {
  top: 26px;
}

/* Hover */
.burger:hover:before {
  top: 7px;
}

.burger:hover:after {
  top: 23px;
}

/* Click */
.burger.active span {
  opacity: 0;
}

.burger.active:before,
.burger.active:after {
  top: 40%;
}

.burger.active:before {
  transform: rotate(45deg);
}

.burger.active:after {
  transform: rotate(-45deg);
}

.burger:focus {
  outline: none;
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.footer {
  padding: 0 0 4rem 0;
}

.footer a {
  color: #000;
}


/* Center images that appear inside project content (rendered HTML from TinyMCE) */
.project-content img,
.project-content picture,
.project-content figure img,
.project-content video {
  /* Make media responsive and prevent overflow */
  display: block;
  max-width: 100%; /* never larger than container */
  height: auto;
  margin: 1rem auto; /* space above/below and center horizontally */
  padding: 0.25rem; /* small inner padding so image doesn't touch edges */
  box-sizing: border-box;
  border-radius: 4px;
}

/* Figures (with captions) should be centered and captions styled */
.project-content figure {
  margin: 1rem auto;
  text-align: center;
}

.project-content figcaption {
  font-size: 0.9rem;
  color: #666;
  margin-top: 0.25rem;
}

/* Paragraph images should be block-level and centered so text does not flow beside them.
   If you intentionally want text to wrap around an image, use the utility classes
   `.align-left` or `.align-right` on the <img>. */
.project-content p img,
.project-content span img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1rem auto; /* vertical spacing + center horizontally */
}

/* Optional utility classes for left/right aligned images inside content */
.project-content img.align-left {
  float: left;
  margin-right: 1rem;
  margin-left: 0;
}

.project-content img.align-right {
  float: right;
  margin-left: 1rem;
  margin-right: 0;
}

/* Clearfix helper if floats are used inside article content */
.project-content:after {
  content: "";
  display: table;
  clear: both;
}

/* Image row: when multiple image-only blocks should appear side-by-side */
.project-content .image-row {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  margin: 1rem 0;
  flex-wrap: wrap; /* allow wrapping on small screens */
}

.project-content .image-row img {
  display: block;
  width: 100%;
  max-width: calc(50% - 0.5rem); /* two images per row by default */
  height: auto;
}

@media (max-width: 700px) {
  .project-content .image-row img {
    max-width: 100%; /* stack on small screens */
  }
}

/* About page hero with background image */
.about-hero{
  background-image: url("../img/cover_about.webp");
  background-size: cover;
  background-position: center;
  border-radius: 6px;
  min-height: 300px;
  display: flex;
    align-items: flex-start;
    /* stack heading and paragraph vertically */
    flex-direction: column;
  /* make full-bleed: span the full viewport width while remaining inside the flow */
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
  box-sizing: border-box; /* ensure padding doesn't cause overflow */
  padding: 2rem 1.5rem; /* keep interior spacing similar to container */
}
.about-hero h2, .about-hero p{
  color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

.about-image img{
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}
/* Carousel sizing: keep a fixed visual area and fit images inside it.
   Portrait images will have grey bars to the sides; landscape images will
   fit without stretching. Adjust --carousel-height to taste. */
/* Carousel sizing: fixed visual area with 'contain' fit so images don't
   stretch the carousel. Portrait images will show grey bars on the
   sides; landscape images will fit by height. Use the CSS variable to
   tune the height. */
#Details .carousel-inner {
  /* Fixed visual area for the carousel so images never extend the
     page height. The image will be contained inside this box and
     show the grey background for any empty space. */
  --carousel-height: 550px; /* desktop default - adjust to taste */
  background-color: #ffffff; /* light grey background for empty space */
  height: var(--carousel-height) !important;
  min-height: 320px;
  max-height: var(--carousel-height);
  overflow: hidden;
}

#Details .carousel-item {
  height: 100% !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Use object-fit: contain to ensure the whole image is visible without
   altering aspect ratio. Height is 100% so the carousel area remains
   constant. Width adjusts automatically and empty space shows the
   grey background. */
#Details .carousel-item img {
  /* Constrain images so they never exceed the carousel area in either
     dimension. Using max-width/max-height ensures the entire image is
     visible (no cropping) while preserving aspect ratio. */
  max-width: 100% !important;
  max-height: 100% !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

@media (max-width: 768px) {
  /* On small screens reduce carousel height */
  #Details .carousel-inner { --carousel-height: 45vh; }
}

/* Make carousel controls darker so they're visible on white background */
/* white arrow icon with a thin black stroke + circular border */
#Details .carousel-control-prev-icon,
#Details .carousel-control-next-icon {
  background-repeat: no-repeat;
  background-position: center;
  background-size: 1rem 1rem;
  background-color: transparent;
  /* SVG: white fill with black stroke for contrast */
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M11.354 1.646a.5.5 0 0 0 0 .708L6.707 8l4.647 5.646a.5.5 0 0 0-.708.708l-5-6a.5.5 0 0 0 0-.708l5-6a.5.5 0 0 0 .708 0z' fill='%23fff' stroke='%23000' stroke-width='0.8'/%3E%3C/svg%3E");

  /* circular container look */
  border: 1px solid rgba(0,0,0,0.85);
  border-radius: 50%;
  width: 2.2rem;
  height: 2.2rem;
  display: inline-block;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* flip the next icon horizontally (rotate 180deg) so both use the same SVG */
#Details .carousel-control-next-icon {
  transform: rotate(180deg);
}
.social a {
  display: inline-block;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #f8f9fa;
  position: relative;
  text-align: center;
  color: #0d1e2d;
}

.social a span {
  display: inline-block;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
}

.social a:hover {
  color: #000;
}

/* Instant switch for the #Details carousel: remove all transitions so
   slides change immediately with no fade or slide animation. Useful
   when you want a hard cut between images. */
#Details .carousel,
#Details .carousel .carousel-inner,
#Details .carousel .carousel-item,
#Details .carousel .carousel-item img,
#Details .carousel-fade .carousel-item,
#Details .carousel-fade .carousel-item.active,
#Details .carousel-item-next,
#Details .carousel-item-prev,
#Details .carousel-item-start,
#Details .carousel-item-end {
  transition: none !important;
  animation: none !important;
}

/* Ensure no delayed opacity changes from Bootstrap cause ghosting */
#Details .carousel-fade .active.carousel-item-start,
#Details .carousel-fade .active.carousel-item-end,
#Details .carousel-fade .carousel-item-next.carousel-item-start,
#Details .carousel-fade .carousel-item-prev.carousel-item-end {
  opacity: 0 !important;
  transition: none !important;
}

/* Active slide should be fully visible immediately */
#Details .carousel-fade .carousel-item.active {
  opacity: 1 !important;
  z-index: 2 !important;
}