/* Core Styles */

/* Contents
-------|| FONT IMPORT 
-------|| COLOURS 
-------|| TYPOGRAPHY 
-------|| NAVIGATION 
-------|| IMAGES 
-------|| CARDS 
-------|| BUTTONS 
-------|| OTHER PAGES
-------|| FONTS 
*/

/* || ------------------ FONT IMPORT ------------------*/

@import url('https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* || ------------------ TEMORARY HIDING TAG  ------------------*/


.hidden-temp {
  display: none;
}

.navbar-nav .hidden-temp {
  display: none !important;
}

/* || ------------------ COLOURS ------------------*/

 /* See sass variables in custom-theme.scss
 */

/* section colours */


.jumbo-bg {
  background-color: var(--bs-tertiary-bg);
}

.footer-bg {
  background-color: var(--bs-dark);
  opacity: 80%;
}

hr {
  border: 0;
  width: auto !important; /* Set width to auto */
  border-top: 4px solid var(--bs-secondary);
  opacity: 100% !important;
  border-radius: 4px;
}

.half-hr {
  width: 40% !important;
}

/* ------------------ TYPOGRAPHY ------------------ */

body {
  font-family: 'Figtree', sans-serif;
  font-display: swap;
}

p, ul li, ol li {
font-size: 1rem; 
font-family: 'Figtree', sans-serif;
/*font-weight: 300; */
line-height: 1.8;
letter-spacing: 0.2px;
-webkit-font-smoothing: antialiased;

}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Figtree', sans-serif;
  line-height: 1.8;
  letter-spacing: 0.2px;
}

h3 {
  font-size: 2.0rem;

}

/* Section summaries */
.small-title  {
  letter-spacing: 0.15rem;
  line-height: 3.0;
}


/* || ------------------ NAVIGATION ------------------ */

#combined-header {
  padding-top: 0; /* Remove top padding */
}

.nav-font li {
  font-family: 'Figtree', sans-serif;
  font-size: 1em !important;
  font-weight: normal;
  line-height: 1.2 !important;

}

/* Portfolio page nav collapse add bg*/
@media only screen and (max-width : 768px) {
  #port-nav .navbar-collapse {
    background: hsla(0, 0%, 16%, 0.87);
    z-index: 100;
  }
}

#port-nav.navbar-port {
 /*  background: linear-gradient(to bottom, hsla(0, 0%, 16%, 0.87) 0%, hsla(0, 0%, 16%, 0.859) 8.1%, hsla(0, 0%, 16%, 0.828) 15.5%, hsla(0, 0%, 16%, 0.78) 22.5%, hsla(0, 0%, 16%, 0.717) 29%, hsla(0, 0%, 16%, 0.644) 35.3%, hsla(0, 0%, 16%, 0.564) 41.2%, hsla(0, 0%, 16%, 0.478) 47.1%, hsla(0, 0%, 16%, 0.392) 52.9%, hsla(0, 0%, 16%, 0.306) 58.8%, hsla(0, 0%, 16%, 0.226) 64.7%, hsla(0, 0%, 16%, 0.153) 71%, hsla(0, 0%, 16%, 0.09) 77.5%, hsla(0, 0%, 16%, 0.042) 84.5%, hsla(0, 0%, 16%, 0.011) 91.9%, hsla(0, 0%, 16%, 0) 100%); */
  opacity: 0.8; 
 background-color: var(--bs-dark);
}

.footer .hover-line-animate, .navbar-dark .navbar-nav .nav-link {
  color: rgba(255, 255, 255, .83);
}

.footer .hover-line-animate:hover, .navbar-dark .navbar-nav .nav-link:hover {
  color: #fff;
}

/* Navigation animate underline */

.non-clickable {
  cursor: default; /* or cursor: auto; */
  pointer-events: none; /* Optional: disables click events */
}

.hover-line-animate {
  display: inline-block;
  position: relative;
  color: var(--bs-dark);
}

.hover-line-animate:after {
  content: '';
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--bs-primary);
  transform-origin: bottom right;
  transition: transform 0.3s ease-out;
}

.hover-line-animate:hover:after {
  transform: scaleX(1);
  transform-origin: bottom left;
}
 


/* || ------------------ IMAGES ------------------ */

.sharpen-img {
  image-rendering: -moz-crisp-edges;
  /* Firefox */
  image-rendering: -o-crisp-edges;
  /* Opera */
  image-rendering: -webkit-optimize-contrast;
  /* Webkit (non-standard naming) */
  image-rendering: crisp-edges;
  -ms-interpolation-mode: nearest-neighbor;
  /* IE (non-standard property) */
}

/* ------------------ BS CAROUSEL ------------------ */
.carousel-controls {
  position: absolute;
  top: 90%; 
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  z-index: 2;
  pointer-events: none; 
}

@media (max-width: 991px) {  /* Matches the lg breakpoint */
  .carousel-controls {
      top: 88%;  /* Move controls down on smaller screens */
  }
}
 @media (max-width: 767px) {  /* md breakpoint */
  .carousel-controls {
      top: 86%;  /* Move even lower on mobile */
  }
}

.prev-button-container {
  left: 10%; 
}

.next-button-container {
  right: 10%; 
}

.prev-button-container,
.next-button-container {
  position: absolute;
  top: 50%; /* Keep buttons vertically centered */
  transform: translateY(-50%);
  pointer-events: auto;
}

.prev-button, .next-button {
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0;
  position: relative;
  z-index: 3; /* Ensure buttons are on top */
}

.prev-button svg, .next-button svg {
  width: 40px;
  height: 40px;
  viewBox: "0 0 40 40";
}

.prev-button svg path, .next-button svg path {
  fill: var(--bs-primary);
}

/* For mobile and small screens - maximum width */
@media (max-width: 767px) {
    .prev-button-container {
        left: 0;  /* All the way to left edge */
    }

    .next-button-container {
        right: 0;  /* All the way to right edge */
    }
}

/* For medium screens */
@media (min-width: 768px) and (max-width: 991px) {
    .prev-button-container {
        left: 10%;
    }

    .next-button-container {
        right: 10%;
    }
}

/* For larger screens - keep your original spacing */
@media (min-width: 992px) {
    .prev-button-container {
        left: 15%;
    }

    .next-button-container {
        right: 15%;
    }
}

.caption-height {
  min-height: 4rem;  /* Adjust this value to match your two-line height */
  display: flex;
  align-items: center;
  justify-content: center;
}
 

@media (max-width: 768px) {
  /* Target all SVG animation classes */
  [class^="svg-RD-"],
  [class^="svg-WF"],
  [class^="svg-IC"],
  [class^="svg-UCD-"] {
      animation: none !important;
      transition: none !important;
      opacity: 1 !important;
      transform: none !important;
  }

  /* Target all animation containers */
  #RD-animation svg,
  #WF-animation svg,
  #IC-animation svg,
  #UCD-animation svg {
      will-change: auto !important;
      contain: none !important;
  }
}
/* ------------------ CARDS ------------------ */

/* Portfolio cards for recent projects */

/* Image Zoom within Confined Area */
.portfolio-card .portfolio-card-media {
  overflow: hidden;
}

.portfolio-card.with-hover .portfolio-card-media img {
  -webkit-transition: .3s all ease-in-out;
  transition: .3s all ease-in-out;
}

.portfolio-card.with-hover:hover .portfolio-card-media img {
  -webkit-transform: scale(1.1); /* Zoom effect within container */
  transform: scale(1.1);
}

/* Text Background Fade */
.portfolio-card.with-hover .portfolio-card-text {
  -webkit-transition: background-color .3s ease-in-out;
  transition: background-color .3s ease-in-out;
  position: relative;
}

.portfolio-card.with-hover:hover .portfolio-card-text {
  background-color: var(--bs-tertiary-bg); /* Fade to this background color */
}

/* Other styles */
.portfolio-card {
  margin-bottom: 30px;
  box-shadow: 0 6px 20px 0 rgba(21, 24, 23, 0.25);
  width: 100%;
  background-color: var(--bs-dark-bg-subtle);
}

.portfolio-card .portfolio-card-text .portfolio-card-heading {
  margin-top: 0;
  margin-bottom: 20px;
}

.portfolio-card .portfolio-card-text p:last-child {
  margin-bottom: 0;
}

.portfolio-card.with-hover:hover {
  background-color: var(--bs-dark);
}


/* 
.portfolio-card.with-hover:hover .portfolio-card-text a {
  color: #ffffff;
}
*/

/* || ------------------ BUTTONS ------------------ */

.btn-outline-primary {
  border-width: 2px; /* Adjust the thickness as needed */
}

/* JS additional CSS for Back to top button */
.top-arrow {
  background: url("../img/icons/totop.svg");
  height: 2rem;
  width: 2rem;
  display: block;
  background-size: contain;
  background-repeat: no-repeat;
}

#toTop {
  font-size: 3rem !important;
  overflow: hidden;
  z-index: 999;
  display: none;
  cursor: pointer;
  position: fixed;
  bottom: 20px;
  right: 20px;
  fill: #9f9f9f;
  text-align: center;
  text-decoration: none;
}

#toTop:hover {
  filter: invert(40%) sepia(92%) saturate(810%) hue-rotate(142deg) brightness(96%) contrast(101%);
}

/* ------------------ OTHER PAGES ------------------ */

/* Short contact pg add min height to prevent white space below footer*/
#contact-fm {
  min-height: calc(100vh - 183px);
}

/* ------------------ ICONS ------------------ */

.icon-fixed60 {
  width: 60px !important;
  height: 60px !important;
  display: block; /* Ensure the image is displayed as a block element */
  margin-left: auto; /* Auto margin for left and right to center the image horizontally */
  margin-right: auto;
}



/* ------------------iframe---------------------------*/

iframe.frame-height-800 {
  width: 100%;
  height: 800px;
}

/* ------------------bootstrap carousel---------------------------*/
/* home screen only */

.carousel-item {
  opacity: 0;
  transition: opacity 0.75s ease-in-out; 
}

.carousel-item-next, .carousel-item-prev, .carousel-item.active {
  opacity: 1;
}

 
/* ------------------gradient background---------------------------*/
 

.jumbo-gradient-text {
  background: linear-gradient(-45deg, #cdfecd, #cdfee5, #cdfefe, #cde6fe, #cdcdfe);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-animation 10s ease infinite;
  -webkit-animation: gradient-animation 10s ease infinite;

}

@keyframes gradient-animation {
  0% {
    background-position: 0% 0%;
  }
  50% {
    background-position: 100% 100%;
  }
  100% {
    background-position: 0% 0%;
  }
}

/* ------------------blog---------------------------*/


.blog-body img {
  max-width: 85%; /* narrower than full width */
  display: block;
  margin: 2rem auto; /* vertical + horizontal centering */
  border-radius: 0.5em;
}

/* Remove horizontal margin on small screens */
@media (max-width: 768px) {
  .blog-body img {
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;  
  }
}

