/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/
:root {
  --yellow-color: #f4d03f;
  --yellow-color2: #f3e3a4;
  --dark-yellow-color: #d4b639;
  --blue-color: #149ddd;
  --dark-gray: #272829;
}

body {
  font-family: "Open Sans", sans-serif;
  color: --dark-gray;
}

a {
  color: #149ddd;
}

a:hover {
  color: --yellow-color;
  text-decoration: none;
}

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

/*--------------------------------------------------------------
# Back to top button
--------------------------------------------------------------*/
.back-to-top {
  position: fixed;
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 50px;
  right: 15px;
  bottom: 15px;
  background: var(--blue-color);
  color: #fff;
  transition: display 0.5s ease-in-out;
  z-index: 99999;
  transition: background 0.2s ease-in-out;
}

.back-to-top i {
  font-size: 24px;
  position: absolute;
  top: 7px;
  left: 8px;
}

.back-to-top:hover {
  color: #fff;
  background: var(--yellow-color);
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
#header {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 300px;
  transition: all ease-in-out 0.5s;
  z-index: 9997;
  transition: all 0.5s;
  padding: 0 15px;
  background: #000000;
  overflow-y: auto;
}

#header .profile .header-img {
  margin: 10px auto;
  display: block;
  width: 140px;
  /* border: 8px solid #2c2f3f; */
}

#header .profile h1 {
  font-size: 24px;
  margin: 0;
  padding: 0;
  font-weight: 600;
  -moz-text-align-last: center;
  text-align-last: center;
  font-family: "Poppins", sans-serif;
}

#header .profile h1 a,
#header .profile h1 a:hover {
  color: #fff;
  text-decoration: none;
}

/* #header .profile .social-links .a-tag {
  font-size: 18px;
  display: inline-block;
  background: #212431;
  color: #fff;
  line-height: 1;
  padding: 8px 0;
  margin-right: 4px;
  border-radius: 50%;
  text-align: center;
  width: 36px;
  height: 36px;
  transition: 0.3s;
} */

#header .profile .social-links a img {
  display: inline-block;
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 50%;
  border: 8px solid #272829;
  background: #272829;
  margin: 2px;
  transition: 0.4s ease;
}

#header .profile .social-links a img:hover {
  transform: scale(1.2);
}

/* #header .profile .social-links a:hover {
  background: #149ddd;
  color: #fff;
  text-decoration: none;
} */

#main {
  margin-left: 300px;
}

@media (max-width: 1199px) {
  #header {
    left: -300px;
  }
  #main {
    margin-left: 0;
  }
}

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
/* Desktop Navigation */
.nav-menu {
  padding-top: 20px;
}

.nav-menu * {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-menu > ul > li {
  position: relative;
  white-space: nowrap;
}

.nav-menu a {
  display: flex;
  align-items: center;
  color: #a8a9b4;
  padding: 12px 15px;
  margin-bottom: 4px;
  transition: 0.3s;
  font-size: 15px;
}

.nav-menu a i {
  font-size: 24px;
  padding-right: 8px;
  color: #6f7180;
}

.nav-menu a:hover,
.nav-menu .active > a,
.nav-menu li:hover > a {
  text-decoration: none;
  color: var(--dark-yellow-color);
}

.nav-menu a:hover i,
.nav-menu .active > a i,
.nav-menu li:hover > a i {
  color: var(--dark-yellow-color);
}

/* Mobile Navigation */
.mobile-nav-toggle {
  position: fixed;
  right: 15px;
  top: 15px;
  z-index: 9998;
  border: 0;
  background: none;
  font-size: 35px;
  transition: all 0.4s;
  outline: none !important;
  line-height: 1;
  cursor: pointer;
  text-align: right;
}

.mobile-nav-toggle i {
  color: var(--yellow-color);
}

.mobile-nav-active {
  overflow: hidden;
}

.mobile-nav-active #header {
  left: 0;
}

.mobile-nav-active .mobile-nav-toggle i {
  color: var(--dark-yellow-color);
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
#hero {
  width: 100%; /* Full width */
  height: 100vh; /* Full viewport height */
  background: url("../img/home/cover1.webp") center; /* Center the background image */
  background-size: cover; /* Cover the entire area, maintaining aspect ratio */
  background-repeat: no-repeat; /* Prevent background image from repeating */
}

@media (max-width: 756px) {
  #hero {
    background: url("../img/home/cover1.webp") center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 100vh; /* Set a full viewport height */
    width: 100%;
    position: relative; /* Ensure the :before pseudo-element is positioned relative to this */
  }
}

#hero:before {
  content: "";
  background: rgba(5, 13, 24, 0.3);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0; /* Ensure it covers the full height */
  z-index: 1;
}

#hero .hero-container {
  position: relative;
  z-index: 2;
  min-width: 300px;
}

#hero h1 {
  margin: 0 0 10px 0;
  font-size: 60px;
  font-weight: 700;
  line-height: 56px;
  color: #fff;
}

#hero p {
  color: #fff;
  margin-bottom: 50px;
  font-size: 26px;
  font-family: "Poppins", sans-serif;
}

#hero p span {
  color: #fff;
  padding-bottom: 4px;
  letter-spacing: 1px;
  border-bottom: 3px solid #f4d03f;
}

@media (min-width: 1024px) {
  #hero {
    background-attachment: fixed;
  }
}

@media (max-width: 768px) {
  #hero h1 {
    font-size: 28px;
    line-height: 36px;
  }
  #hero h2 {
    font-size: 18px;
    line-height: 24px;
    margin-bottom: 30px;
  }
}

/*--------------------------------------------------------------
# Sections General
--------------------------------------------------------------*/
section {
  padding: 40px 0;
  overflow: hidden;
}

.section-bg {
  background: #f5f8fd;
}

.section-title {
  margin-bottom: 4px;
}

.section-title h2 {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 20px;
  padding-bottom: 10px;
  position: relative;
  color: #173b6c;
}

.section-title h2::after {
  content: "";
  position: absolute;
  display: block;
  width: 50px;
  height: 3px;
  background: #149ddd;
  bottom: 0;
  left: 0;
}

.section-title p {
  margin-bottom: 0;
}

/*--------------------------------------------------------------
# About
--------------------------------------------------------------*/
.about .content h3 {
  font-weight: 700;
  font-size: 26px;
  color: #173b6c;
}

.about .content ul {
  list-style: none;
  padding: 0;
}

.about .content ul li {
  padding-bottom: 10px;
}

.about .content ul i {
  font-size: 20px;
  padding-right: 2px;
  color: #149ddd;
}

.about .content p:last-child {
  margin-bottom: 0;
}

.about .img-fluid {
  width: 100%; /* Set width to 100% of the container */
  height: 400px; /* Set a fixed height */
  object-fit: cover; /* Cover the area while maintaining aspect ratio */
  transition: 0.6s ease;
  position: absolute; /* Position the images absolutely */
  top: 0; /* Align to the top */
  left: 0; /* Align to the left */
}

.about .third {
  height: 370px; /* Change to relative positioning */
}

@media (max-width: 768px) {
  .about .img-fluid {
    object-fit: contain; /* Maintain aspect ratio */
  }
  .about .third {
    position: relative; /* Change to relative positioning */
  }
}

.image-container {
  position: relative; /* Position relative for the absolute images */
  height: 400px; /* Ensure it has the same height */
  overflow: hidden; /* Hide overflow */
}

.default-image {
  z-index: 1; /* Default image below hover image */
}

.hover-image {
  opacity: 0; /* Start hidden */
  z-index: 2; /* Hover image above default image */
  transition: opacity 0.6s ease; /* Smooth transition for opacity */
}

.image-container:hover .hover-image {
  opacity: 1; /* Show hover image on hover */
}

.image-container:hover .default-image {
  opacity: 0; /* Hide default image on hover */
}

.about .mb {
  margin-bottom: 40px;
}

/*--------------------------------------------------------------
# Facts
--------------------------------------------------------------*/
.facts {
  padding-bottom: 30px;
}

.facts .count-box {
  padding: 30px;
  width: 100%;
}

.facts .count-box i {
  display: block;
  font-size: 44px;
  color: var(--color-blue);
  float: left;
}

.facts .count-box span {
  font-size: 48px;
  line-height: 40px;
  display: block;
  font-weight: 700;
  color: #050d18;
  margin-left: 60px;
}

.facts .count-box p {
  padding: 15px 0 0 0;
  margin: 0 0 0 60px;
  font-family: "Raleway", sans-serif;
  font-size: 14px;
  color: #122f57;
}

.facts .count-box a {
  font-weight: 600;
  display: block;
  margin-top: 20px;
  color: #122f57;
  font-size: 15px;
  font-family: "Poppins", sans-serif;
  transition: ease-in-out 0.3s;
}

.facts .count-box a:hover {
  color: #1f5297;
}

/*--------------------------------------------------------------
# Skills
--------------------------------------------------------------*/
.skills .progress {
  height: 50px;
  display: block;
  background: none;
}

.skills .progress .skill {
  padding: 10px 0;
  margin: 0 0 6px 0;
  text-transform: uppercase;
  display: block;
  font-weight: 600;
  font-family: "Poppins", sans-serif;
  color: #050d18;
}

.skills .progress .skill .val {
  float: right;
  font-style: normal;
}

.skills .progress-bar-wrap {
  background: #dce8f8;
}

.skills .progress-bar {
  width: 1px;
  height: 10px;
  transition: 0.9s;
  background-color: var(--color-blue);
}

/*--------------------------------------------------------------
# Resume
--------------------------------------------------------------*/
/* General styles for the resume section */
.resume {
  background: #f8f9fa; /* Light background for contrast */
  padding: 60px 0;
  color: #333; /* Text color */
  position: relative; /* Position for the pseudo-element */
}

.resume-title {
  font-size: 20px;
}

/* Styling the resume items */
.resume-item {
  background: rgba(255, 255, 255, 0.9); /* Semi-transparent white */
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
  position: relative; /* Position for line connection */
  z-index: 1; /* Ensure it is above the line */
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  flex-direction: column;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.resume-icon {
  width: 50px; /* Adjust width */
  height: 50px; /* Adjust height */
  /* vertical-align: middle; Align with text */
  /* display: inline-block; Ensure it behaves like an inline element */
  transition: transform 0.2s; /* Smooth transition */
}

/* Optional: Adding hover effect for the icon */
.resume-icon:hover {
  transform: scale(1.1); /* Slightly enlarge on hover */
}

.resume-item h4 {
  font-size: 20px;
  margin: 0;
  color: #007bff; /* Blue color for titles */
}

/* Adding icons before each title */
.resume-item h4::before {
  font-size: 24px;
  margin-right: 10px;
  color: #28a745; /* Green color */
}

/* Highlighting active items */
.resume-item h5 span {
  font-weight: bold;
  color: var(--dark-yellow-color); /* Red color for 'Active' status */
}

/* Connecting line */
.resume-item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 50%; /* Center the line */
  top: 100%; /* Position below the item */
  transform: translateX(-50%);
  width: 2px; /* Line width */
  height: 30px; /* Line height */
  background: var(--yellow-color); /* Green color */
  z-index: 0; /* Place behind items */
}

/* Add space between the line and next item */
.resume-item:last-child::after {
  display: none; /* Remove line for the last item */
}

/*--------------------------------------------------------------
# Videos
--------------------------------------------------------------*/

.videos {
  padding: 10px;
}

.video-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center; 
  margin-top: 15px;
}

.video-item {
  width: calc(33.333% - 10px); /* Adjust the width as needed */
  box-sizing: border-box;
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth transition for transform and box-shadow */
}

.video-item:hover {
  transform: scale(1.02); /* Scale up the video item on hover */
}

.video-item video {
  width: 100%; /* Make video take full width of the item */
  height: 200px; /* Set the desired height for videos */
  border-radius: 5px; /* Optional: Rounded corners */
}

@media (max-width: 768px) {
  .video-item {
      width: calc(50% - 10px); /* Adjust width for tablets */
  }
}

@media (max-width: 480px) {
  .video-item {
      width: 100%; /* Full width for mobile */
  }
}

.follow-us {
  text-align: center; /* Center the follow us section */
}

.follow-us p{
  margin-top: 10px;
  font-size: 16px; 
}

.follow-us span{
  color: var(--yellow-color); 
}

.follow-us ul {
  position: relative; /* Change to relative positioning */
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center; /* Center the list items */
}

.follow-us ul li {
  list-style: none;
}

.follow-us ul li a {
  display: block;
  position: relative;
  width: 40px;
  height: 40px;
  line-height: 45px;
  font-size: 30px;
  text-align: center;
  text-decoration: none;
  color: #404040;
  margin: 0 20px;
  transition: 0.5s;
}

.follow-us ul li a span {
  position: absolute;
  transition: transform 0.5s;
}

.follow-us ul li a span:nth-child(1),
.follow-us ul li a span:nth-child(3) {
  width: 100%;
  height: 3px;
  background: #404040;
}

.follow-us ul li a span:nth-child(1) {
  top: 0;
  left: 0;
  transform-origin: right;
}

.follow-us ul li a:hover span:nth-child(1) {
  transform: scaleX(0);
  transform-origin: left;
}

.follow-us ul li a span:nth-child(3) {
  bottom: 0;
  left: 0;
  transform-origin: left;
}

.follow-us ul li a:hover span:nth-child(3) {
  transform: scaleX(0);
  transform-origin: right;
}

.follow-us ul li a span:nth-child(2),
.follow-us ul li a span:nth-child(4) {
  width: 3px;
  height: 100%;
  background: #404040;
}

.follow-us ul li a span:nth-child(2) {
  top: 0;
  left: 0;
  transform: scale(0);
  transform-origin: bottom;
}

.follow-us ul li a:hover span:nth-child(2) {
  transform: scale(1);
  transform-origin: top;
}

.follow-us ul li a span:nth-child(4) {
  top: 0;
  right: 0;
  transform: scale(0);
  transform-origin: top;
}

.follow-us ul li a:hover span:nth-child(4) {
  transform: scale(1);
  transform-origin: bottom;
}

.follow-us ul li a.facebook:hover {
  color: #3b5998;
}

.follow-us ul li a.facebook:hover span {
  background: #3b5998;
}

.follow-us ul li a.instagram:hover {
  color: #FD1D1D;
}

.follow-us ul li a.instagram:hover span {
  background: #FD1D1D;
}



/*--------------------------------------------------------------
# Portfolio
--------------------------------------------------------------*/

.portfolio {
  padding: 10px;
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px;
}

.gallery-item {
  width: calc(33.333% - 10px);
  box-sizing: border-box;
  opacity: 0; /* Initially hidden */
  transition: opacity 0.5s ease; /* Smooth transition for opacity */
  overflow: hidden; /* Ensures that the image doesn't overflow */
  position: relative; /* Positioning context for overlay */
  transition:  0.3s ease;
}

.gallery-item.show {
  opacity: 1; /* Fully visible when the class is added */
}

.gallery-item img {
  width: 100%;
  height: 280px; /* Set your desired fixed height */
  object-fit: cover; /* Ensures the image covers the space without distortion */
  display: block;
  transition: transform 0.3s ease; /* Smooth transition for scale effect */
}

/* Hover effect */
.gallery-item:hover img {
  transform: scale(1.05); /* Scale up the image on hover */
}

.gallery-item:hover::after {
  content: ''; /* Overlay effect */
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay */
  transition: opacity 0.3s ease;
  opacity: 0; /* Initially hidden */
}

.gallery-item:hover::after {
  opacity: 1; /* Show overlay on hover */
}

.filter-buttons {
  margin-bottom: 15px;
  text-align: center;
  
}

.filter-btn {
  padding: 10px 20px;
  cursor: pointer;
  border: none;
  background-color: #ddd;
  margin: 5px 5px;
  border-radius: 5px; /* Rounded corners */
  transition: background-color 0.3s ease, transform 0.2s ease; /* Smooth transition for background color and scale */
}

/* Active button styling */
.filter-btn.active {
  background-color: var(--yellow-color);
  color: #fff;
  font-weight: bold; /* Make the active button bold */
}

/* Hover effect */
.filter-btn:hover {
  background-color: var(--dark-yellow-color); /* Change background on hover */
  color: #fff;
  transform: scale(1.05); /* Slightly enlarge button on hover */
}


.pagination {
  text-align: center;
  margin-top: 20px;
  justify-content: center;
}

.pagination-btn {
  padding: 10px 15px;
  margin: 0 5px;
  cursor: pointer;
  background-color: #ddd;
  border: none;
  border-radius: 5px; /* Rounded corners */
  transition: background-color 0.3s ease, transform 0.2s ease; /* Smooth transition for background color and scale */
}

/* Active button styling */
.pagination-btn.active {
  background-color: #333;
  color: #fff;
  font-weight: bold; /* Make the active button bold */
}

/* Hover effect */
.pagination-btn:hover {
  background-color: var(--dark-yellow-color); /* Change background on hover */
  color: #fff;
  transform: scale(1.05); /* Slightly enlarge button on hover */
}

/* Disable button styling */
.pagination-btn:disabled {
  background-color: #ccc; /* Change background for disabled state */
  cursor: not-allowed; /* Show not-allowed cursor */
  color: #666; /* Lighten text color for disabled state */
}


@media (max-width: 768px) {
  .gallery-item {
      width: calc(50% - 10px);
  }
  .gallery-item img {
    height: 210px; /* Set your desired fixed height */
  }
}

@media (max-width: 480px) {
  .gallery-item {
      width: 100%;
  }
}

/*--------------------------------------------------------------
# Services
--------------------------------------------------------------*/
.services .icon-box {
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}
.services .icon-box:hover {
  transform: translateY(-5px) rotate(5deg);
}

.services .icon {
  float: left;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: var(--yellow-color);
  border-radius: 50%;
  transition: 0.5s;
  border: 1px solid var(--yellow-color);
}

.services .icon i {
  color: #fff;
  font-size: 24px;
}

.services .icon-box:hover .icon {
  background: #fff;
}

.services .icon-box:hover .icon i {
  color: var(--yellow-color);
}

.services .title {
  margin-left: 80px;
  font-weight: 700;
  font-size: 18px;
  margin-top: 17px;
}

.card-container {
  display: flex; /* Use flexbox for alignment */
  justify-content: center; /* Center-align the cards */
  flex-wrap: wrap; /* Allow cards to wrap */
  gap: 10px; /* Space between cards */
}

.card {
  width: 320px;
  border: none;
  height: 260px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.85);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: scale(1.03); /* Scale effect on hover */
}

.card .img {
  width: 100%;
  height: 100%;
  background-size: cover; /* Ensure the image covers the div */
  transition: transform 0.5s; /* Add transition for movement */
}

.card .content {
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  color: white;
  padding: 20px;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  background-color: rgba(
    92,
    92,
    92,
    0.5
  ); /* Optional: background for content */
  transition: 0.4s ease;
  text-align: center;
}

.card .content:hover {
  background-color: rgba(
    19,
    19,
    19,
    0.5
  ); /* Optional: background for content */
}

.content h2 {
  font-size: 24px;
  color: var(--yellow-color);
}

.content p {
  font-size: 14px;
}

/*--------------------------------------------------------------
# Testimonials
--------------------------------------------------------------*/
.testimonials .testimonial-item {
  box-sizing: content-box;
  text-align: center;
  min-height: 320px;
}

.testimonials .testimonial-item .testimonial-img {
  width: 90px;
  border-radius: 50%;
  margin: 0 auto;
}

.testimonials .testimonial-item h3 {
  font-size: 18px;
  font-weight: bold;
  margin: 10px 0 5px 0;
  color: #111;
}

.testimonials .testimonial-item h4 {
  font-size: 14px;
  color: #999;
  margin: 0;
}

.testimonials .testimonial-item .quote-icon-left,
.testimonials .testimonial-item .quote-icon-right {
  color: #c3e8fa;
  font-size: 26px;
}

.testimonials .testimonial-item .quote-icon-left {
  display: inline-block;
  left: -5px;
  position: relative;
}

.testimonials .testimonial-item .quote-icon-right {
  display: inline-block;
  right: -5px;
  position: relative;
  top: 10px;
}

.testimonials .testimonial-item p {
  font-style: italic;
  margin: 0 15px 15px 15px;
  padding: 20px;
  background: #fff;
  position: relative;
  margin-bottom: 35px;
  border-radius: 6px;
  box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.1);
}

.testimonials .testimonial-item p::after {
  content: "";
  width: 0;
  height: 0;
  border-top: 20px solid #fff;
  border-right: 20px solid transparent;
  border-left: 20px solid transparent;
  position: absolute;
  bottom: -20px;
  left: calc(50% - 20px);
}

.testimonials .owl-nav,
.testimonials .owl-dots {
  margin-top: 5px;
  text-align: center;
}

.testimonials .owl-dot {
  display: inline-block;
  margin: 0 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #ddd !important;
}

.testimonials .owl-dot.active {
  background-color: var(--color-blue) !important;
}

@media (max-width: 767px) {
  .testimonials {
    margin: 30px 10px;
  }
}


/*--------------------------------------------------------------
# Breadcrumbs
--------------------------------------------------------------*/
.breadcrumbs {
  padding: 20px 0;
  background: #f9f9f9;
}

.breadcrumbs h2 {
  font-size: 26px;
  font-weight: 300;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 15px;
}

.breadcrumbs ol li + li {
  padding-left: 10px;
}

.breadcrumbs ol li + li::before {
  display: inline-block;
  padding-right: 10px;
  color: #0e2442;
  content: "/";
}

@media (max-width: 768px) {
  .breadcrumbs .d-flex {
    display: block !important;
  }
  .breadcrumbs ol {
    display: block;
  }
  .breadcrumbs ol li {
    display: inline-block;
  }
}


/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
#footer {
  padding: 15px;
  color: #f4f6fd;
  font-size: 14px;
  position: fixed;
  left: 0;
  bottom: 0;
  width: 300px;
  z-index: 9999;
  background: #524101;
}

#footer .copyright {
  text-align: center;
}

#footer .credits {
  padding-top: 5px;
  text-align: center;
  font-size: 13px;
  color: #eaebf0;
}

@media (max-width: 1199px) {
  #footer {
    position: static;
    width: auto;
    padding-right: 20px 15px;
  }
}
