/********** Template CSS **********/
html,
body {
  overflow-x: hidden;
  max-width: 100%;
}
:root {
  --primary: #6244c5;
  --secondary: #ffc448;
  --light: #fafafb;
  --dark: #12141d;
}

.back-to-top {
  position: fixed;
  display: none;
  right: 25px;
  bottom: 45px;
  z-index: 99;
}

.my-6 {
  margin-top: 6rem;
  margin-bottom: 6rem;
}

.py-6 {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

/*** Spinner ***/
#spinner {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease-out, visibility 0s linear 0.5s;
  z-index: 99999;
}

#spinner.show {
  transition: opacity 0.5s ease-out, visibility 0s linear 0s;
  visibility: visible;
  opacity: 1;
}

/*** Button ***/
.btn {
  font-weight: 500;
  transition: 0.5s;
}

.btn.btn-primary,
.btn.btn-secondary {
  color: #ffffff;
}

.btn-square {
  width: 38px;
  height: 38px;
}

.btn-sm-square {
  width: 32px;
  height: 32px;
}

.btn-lg-square {
  width: 48px;
  height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: normal;
}

/*** Navbar ***/
.navbar.fixed-top {
  display: none;
  transition: 0.5s;
}

.navbar .navbar-nav .nav-link {
  padding: 20px 15px;
  color: var(--dark);
  font-size: 18px;
  font-weight: 600;
  outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
  color: var(--primary);
}

@media (max-width: 991.98px) {
  .navbar .navbar-nav .nav-link {
    padding: 10px 0;
  }
}

/*** Header ***/
#home {
  margin-bottom: 6rem;
  background: url(../img/bg-header.png) left top no-repeat;
}

.typed-cursor {
  font-size: 30px;
  color: var(--dark);
}

.btn-play {
  position: relative;
  display: block;
  box-sizing: content-box;
  width: 16px;
  height: 26px;
  border-radius: 100%;
  border: none;
  outline: none !important;
  padding: 18px 20px 20px 28px;
  background: var(--primary);
}

.btn-play:before {
  content: "";
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 50%;
  transform: translateX(-50%) translateY(-50%);
  display: block;
  width: 60px;
  height: 60px;
  background: var(--primary);
  border-radius: 100%;
  animation: pulse-border 1500ms ease-out infinite;
}

.btn-play:after {
  content: "";
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50%;
  transform: translateX(-50%) translateY(-50%);
  display: block;
  width: 60px;
  height: 60px;
  background: #ffffff;
  border-radius: 100%;
  transition: all 200ms;
}

.btn-play span {
  display: block;
  position: relative;
  z-index: 3;
  width: 0;
  height: 0;
  left: -1px;
  border-left: 16px solid var(--primary);
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
}
@keyframes pulse-border {
  0% {
    transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1);
    opacity: 1;
  }

  100% {
    transform: translateX(-50%) translateY(-50%) translateZ(0) scale(2);
    opacity: 0;
  }
}

/* Download cv Button*/
.buttonDownload {
  display: inline-block;
  position: relative;
  padding: 10px 25px;
  background-color: var(--primary);
  color: white;
  text-align: center;
  text-indent: 12px;
  border-radius: 4px;
}

.buttonDownload:hover {
  background-color: #45a21a;
  color: white;
}

.buttonDownload:before,
.buttonDownload:after {
  content: " ";
  display: block;
  position: absolute;
  left: 15px;
  top: 52%;
}

.buttonDownload:before {
  width: 10px;
  height: 2px;
  border-style: solid;
  border-width: 0 2px 2px;
}

.buttonDownload:after {
  width: 0;
  height: 0;
  margin-left: 3px;
  margin-top: -7px;
  border-style: solid;
  border-width: 4px 4px 0 4px;
  border-color: transparent;
  border-top-color: inherit;
  animation: downloadArrow 1s linear infinite;
  animation-play-state: paused;
}

.buttonDownload:hover:before {
  border-color: #cdefbd;
}

.buttonDownload:hover:after {
  border-top-color: #cdefbd;
  animation-play-state: running;
}

@keyframes downloadArrow {
  0% {
    margin-top: -7px;
    margin-left: 1px;
    opacity: 1;
  }

  0.001% {
    margin-top: -15px;
    margin-left: 1px;
    opacity: 0.4;
  }

  50% {
    opacity: 1;
  }

  100% {
    margin-top: 0;
    opacity: 0.4;
  }
}
/*End*/

.modal-video .modal-dialog {
  position: relative;
  max-width: 800px;
  margin: 60px auto 0 auto;
}

.modal-video .modal-body {
  position: relative;
  padding: 0px;
}

.modal-video .close {
  position: absolute;
  width: 30px;
  height: 30px;
  right: 0px;
  top: -30px;
  z-index: 999;
  font-size: 30px;
  font-weight: normal;
  color: #ffffff;
  background: #000000;
  opacity: 1;
}

/*---------------------------------------------------
** About **
-----------------------------------------------------*/
#about .years .display-1 {
  font-size: 10rem;
  line-height: 9rem;
}

#about .years h5 {
  letter-spacing: 30px;
  margin-right: -30px;
}

@media (max-width: 575px) {
  .same-size-image {
    width: 100%; /* Ensure images take full width */
    height: auto; /* Maintain aspect ratio */
  }
}

/*--------------------------------------------------
  Responsive styles for screens smaller than 576px 
  (e.g., mobile devices) 
  ---------------------------------------------------*/
@media (max-width: 575.98px) {
  #Subtitle {
    font-size: 1.2rem; /* Adjust the font size for smaller screens */
    line-height: 1.4; /* Adjust the line height for smaller screens */
  }
}

/*------ 
    Fun and Dynamic Tutor
  Default styles for all screens 
-------*/
#Tittle {
  letter-spacing: 5px;
}

/* Responsive styles for screens smaller than 576px (e.g., mobile devices) */
@media (max-width: 575.98px) {
  #Tittle {
    letter-spacing: 2px;
    font-size: medium;
  }
}

/* --------------------
  Learn More Button
  ---------------------*/
button {
  position: relative;
  display: inline-block;
  cursor: pointer;
  outline: none;
  border: 0;
  vertical-align: middle;
  text-decoration: none;
  background: transparent;
  padding: 0;
  font-size: inherit;
  font-family: inherit;
}

button.learn-more {
  width: 12rem;
  height: auto;
}

button.learn-more .circle {
  transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
  position: relative;
  display: block;
  margin: 0;
  width: 3rem;
  height: 3rem;
  background: #282936;
  border-radius: 1.625rem;
}

button.learn-more .circle .icon {
  transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
  position: absolute;
  top: 0;
  bottom: 0;
  margin: auto;
  background: #fff;
}

button.learn-more .circle .icon.arrow {
  transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
  left: 0.625rem;
  width: 1.125rem;
  height: 0.125rem;
  background: none;
}

button.learn-more .circle .icon.arrow::before {
  position: absolute;
  content: "";
  top: -0.29rem;
  right: 0.0625rem;
  width: 0.625rem;
  height: 0.625rem;
  border-top: 0.125rem solid #fff;
  border-right: 0.125rem solid #fff;
  transform: rotate(45deg);
}

button.learn-more .button-text {
  transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.75rem 0;
  margin: 0 0 0 1.85rem;
  color: #282936;
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
  text-transform: uppercase;
}

button:hover .circle {
  width: 100%;
}

button:hover .circle .icon.arrow {
  background: #fff;
  transform: translate(1rem, 0);
}

button:hover .button-text {
  color: #fff;
}

/*-------------------------------------------
Styles for the popup 
-------------------------------------------*/
.custom-popup {
  position: fixed;
  height: 80%;
  max-width: 50%;
  background-color: white;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.pop-text {
  font-size: smaller;
}

/* Add this style for checkmark icon */
.content-box ul i {
  color: #2eca29;
  margin-right: 5px;
}

/* Responsive styles for screens smaller than 576px (e.g., tablets devices) */
@media only screen and (min-width: 768px) and (max-width: 1024px) {
  .custom-popup {
    position: fixed;
    height: 50%;
    max-width: 75%;
    background-color: white;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
}

/* Responsive styles for screens smaller than 576px (e.g., mobile devices) */
@media (max-width: 575.98px) {
  .custom-popup {
    position: fixed;
    height: 70%;
    max-width: 75%;
    background-color: white;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  .modal-title {
    font-size: 12px;
    font-weight: bolder;
  }
  .pop-text {
    font-size: small;
  }
  .content-box h3 {
    font-size: large;
  }
  .content-box h5 {
    font-size: 15px;
  }
}

/*-----------------------
** Skills **
-------------------------*/
#skill .progress {
  height: 5px;
  border-radius: 5px;
}

#skill .progress .progress-bar {
  width: 0px;
  border-radius: 5px;
  transition: 3s;
}

#skill .nav-pills .nav-link {
  color: var(--dark);
}

#skill .nav-pills .nav-link.active {
  color: #ffffff;
}

#skill .tab-content hr {
  width: 30px;
}
/*** Service ***/

/*** Project Portfolio ***/
#portfolio-flters li {
  display: inline-block;
  font-weight: 500;
  color: var(--dark);
  cursor: pointer;
  transition: 0.5s;
  border-bottom: 2px solid transparent;
}

#portfolio-flters li:hover,
#portfolio-flters li.active {
  color: var(--primary);
  border-color: var(--primary);
}

/*---------------------------------------
      COURSES             
  -----------------------------------------*/

#courses .section-title {
  text-align: center;
}

#courses .owl-theme .owl-nav {
  margin-top: 5px;
}

#courses .owl-theme .owl-nav [class*="owl-"] {
  border-radius: 2px;
  font-size: 18px;
  width: 33px;
  height: 30px;
  line-height: 30px;
  text-align: center;
  padding: 0;
}

.courses-thumb {
  background: #f9f9f9;
  position: relative;
  width: 360px;
}

.courses-top {
  position: relative;
}

.courses-image {
  background: linear-gradient(to right, #202020, #101010);
}

.courses-date {
  background: linear-gradient(rgba(255, 0, 0, 0), rgba(0, 0, 0, 0.6));
  width: 100%;
  position: absolute;
  bottom: 0;
  padding: 20px 25px;
}

.courses-date span,
.courses-author span {
  font-size: 13.5px;
  font-weight: bold;
}

.courses-date span {
  color: #ffffff;
  display: inline-block;
  margin-right: 10px;
}

.courses-detail {
  padding: 25px 25px 15px 25px;
}

.courses-detail h3 {
  margin: 0 0 2px 0;
}

.courses-detail p {
  font-family: monospace;
  text-align: justify;
}
.courses-info {
  border-top: 1px solid rgb(119, 119, 119);
  position: relative;
  clear: both;
  padding: 15px 25px;
  margin-top: -10px;
}

.courses-author,
.courses-author span {
  display: inline-block;
  vertical-align: middle;
}

.courses-author img {
  display: inline-block !important;
  border-radius: 50px;
  width: 50px !important;
  height: 50px;
  margin-right: 10px;
}

.courses-price {
  float: right;
  margin-top: 10px;
}

.courses-price span {
  background: #29ca8e;
  border-radius: 2px;
  color: #ffffff;
  display: block;
  padding: 5px 10px;
}

.courses-price.free span {
  background: #3f51b5;
}

#services_image {
  height: 220px;
  width: 360px;
}

.portfolio-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* Center items horizontally */
  margin-left: auto; /* Align container to center */
  margin-right: auto; /* Align container to center */
}

@media (max-width: 991px) {
  .portfolio-item {
    flex: 0 0 calc(50% - 8px); /* Adjust width for smaller screens */
    max-width: calc(50% - 8px); /* Adjust maximum width */
    margin-left: -40px;
  }
}

@media (max-width: 575px) {
  .portfolio-container {
    flex-direction: column; /* Stack items vertically */
    align-items: center; /* Center items horizontally */
  }

  .portfolio-item {
    flex: 0 0 calc(100% - 8px); /* Full width on smaller screens */
    max-width: calc(100% - 8px); /* Adjust maximum width */
    margin-left: -10px; /* Remove left margin */
    margin-bottom: 20px; /* Add bottom margin for spacing */
  }
}

@media screen and (max-width: 375px) {
  .portfolio-container {
    justify-content: center; /* Center items horizontally */
    margin-left: auto; /* Align container to center */
    margin-right: auto; /* Align container to center */
  }

  .portfolio-item {
    flex: 0 0 calc(100% - 8px); /* Full width on smaller screens */
    max-width: calc(100% - 8px); /* Adjust maximum width */
    margin-left: -30px; /* Remove left margin */
  }

  #services_image {
    height: 200px; /* Adjust image height for smaller screens */
    width: 100%; /* Adjust image width for smaller screens */
  }
}

/* ------------------------
    Portrait mode for iPad 
  -------------------------  */
@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: portrait) {
  .courses-thumb {
    background: #f9f9f9;
    position: relative;
    width: 345px;
  }
}

/* Add this CSS for the hover effect */
.hover-text {
  display: none;
}

.courses-detail:hover .hover-text {
  display: block;
}

/*** Team ***/

/*----------------------------------------
** Testimonial **
------------------------------------------*/
.testimonial-left,
.testimonial-right {
  position: relative;
}

.testimonial-left img,
.testimonial-right img {
  position: absolute;
  padding: 5px;
  border: 1px solid var(--secondary);
  border-radius: 70px;
}

.testimonial-left img:nth-child(1),
.testimonial-right img:nth-child(3) {
  width: 70px;
  height: 70px;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
}

.testimonial-left img:nth-child(2),
.testimonial-right img:nth-child(2) {
  width: 60px;
  height: 60px;
  top: 50%;
  left: 10%;
  transform: translateY(-50%);
}

.testimonial-left img:nth-child(3),
.testimonial-right img:nth-child(1) {
  width: 50px;
  height: 50px;
  bottom: 10%;
  right: 10%;
}

.testimonial-carousel .owl-item img {
  width: 120px;
  height: 120px;
}

.testimonial-carousel .testimonial-icon {
  position: absolute;
  width: 40px;
  height: 40px;
  left: 50%;
  bottom: -15px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid var(--secondary);
  border-radius: 60px;
}

.testimonial-carousel .owl-dots {
  height: 40px;
  margin-top: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-carousel .owl-dot {
  position: relative;
  display: inline-block;
  margin: 0 5px;
  width: 30px;
  height: 30px;
  background: #ffffff;
  border: 2px solid var(--secondary);
  border-radius: 30px;
  transition: 0.5s;
}

.testimonial-carousel .owl-dot::after {
  position: absolute;
  content: "";
  width: 16px;
  height: 16px;
  top: 5px;
  left: 5px;
  border-radius: 16px;
  background: var(--secondary);
  transition: 0.5s;
}

.testimonial-carousel .owl-dot.active::after {
  background: var(--primary);
}

/*--------------------------------------------------------------
# Contact
--------------------------------------------------------------*/
/*Hover Button "Say Hi"*/

.button {
  display: flex;
}

.box {
  width: 35px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  transition: all 0.8s;
  cursor: pointer;
  position: relative;
  background: rgb(58, 165, 253);
  overflow: hidden;
}

.box:before {
  content: "L";
  position: absolute;
  top: 0;
  background: #0f0f0f;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(100%);
  transition: transform 0.4s;
}

.box:nth-child(2)::before {
  transform: translateY(-100%);
  content: "E";
}

.box:nth-child(3)::before {
  content: "T";
}

.box:nth-child(4)::before {
  transform: translateY(-100%);
  content: "S";
}

.box:nth-child(5)::before {
  content: "T";
}

.box:nth-child(6)::before {
  content: "A";
}

.box:nth-child(7)::before {
  content: "L";
}

.box:nth-child(8)::before {
  content: "K";
}

.button:hover .box:before {
  transform: translateY(0);
}

/*---End---*/
.contact .info i {
  font-size: 20px;
  color: var(--primary);
  float: left;
  width: 44px;
  height: 44px;
  background: #effbf9;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50px;
  transition: all 0.3s ease-in-out;
}

.contact .info h4 {
  padding: 0 0 0 60px;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 5px;
  color: #282828;
}

.contact .info p {
  padding: 0 0 0 60px;
  margin-bottom: 0;
  font-size: 14px;
  color: #555555;
}

.contact .info .email {
  margin-top: 40px;
}

.contact .info .phone {
  margin-top: -15px;
}
.contact .info .email:hover i,
.contact .info .address:hover i,
.contact .info .phone:hover i {
  background: var(--primary);
  color: #fff;
}

/* ------------------------------ */

.coolinput {
  margin-top: -15px;
}

.coolinput label.text {
  font-size: 0.75rem;
  color: black;
  font-weight: 700;
  position: relative;
  top: 0.6rem;
  margin: 0 0 0 7px;
  padding: 0 3px;
  background: white;
  width: fit-content;
}

.coolinput input.input,
.coolinput textarea.input {
  padding: 11px 10px;
  font-size: 0.75rem;
  border: 1px rgb(201, 199, 199) solid;
  border-radius: 3px;
  transition: box-shadow 0.3s ease; /* Add transition for a smooth effect */
}

.coolinput input.input:focus,
.coolinput textarea.input:focus {
  outline: none;
  border: 1px transparent solid; /* Hide default border */
  box-shadow: 0 0 20px #67d867; /* Add glowing effect */
}

/*------/ Socials Icons/------*/
.socials {
  padding: 2rem 0;
}

.socials ul li {
  display: inline-block;
}

.socials .ico-circle {
  height: 40px;
  width: 40px;
  font-size: 1.1rem;
  border-radius: 50%;
  line-height: 40px; /* Should match the height of the circle */
  margin: 0px 25px 0 0; /* Adjust margin-top to shift the icon upwards */
  box-shadow: 0 0 0 3px var(--primary);
  transition: all 500ms ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.socials .ico-circle:hover {
  background-color: var(--primary);
  color: #fff;
  box-shadow: 0 0 0 3px #927ed6;
  transition: all 500ms ease;
}

/*------/ Ul resect /------*/
.ul-resect,
.widget-tags ul,
.widget-sidebar .list-sidebar,
.box-comments .list-comments,
.blog-wrapper .post-meta ul,
.list-ico,
.socials ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

/*------/ Ico Circle /------*/
.ico-circle {
  height: 40px; /* Adjust this to match the height of your circle */
  width: 40px; /* Adjust this to match the width of your circle */
  border-radius: 50%;
  line-height: 40px; /* Should match the height of the circle */
  margin: 0 15px 0 0;
  box-shadow: 0 0 0 3px var(--primary);
  transition: all 500ms ease;
  text-align: center;
  display: inline-block;
}
.ico-circle i {
  line-height: initial;
}

/* Side icons (location, mail, phone) */
.address i,
.phone i,
.email i {
  font-size: xx-large;
  margin-top: 7px;
}
.address i:hover,
.phone i:hover,
.email i:hover {
  color: #25d366;
}
/*--------------------------------------------------------------
# Whatsapp
--------------------------------------------------------------*/
.btn-whatsapp-pulse {
  background: #25d366;
  color: white;
  position: fixed;
  font-size: 30px; /* Adjusted font size */
  display: flex;
  justify-content: center;
  align-items: center;
  width: 55px; /* Adjusted width */
  height: 55px; /* Adjusted height */
  padding: 12px; /* Adjusted padding */
  text-decoration: none;
  border-radius: 50%;
  animation-name: pulse;
  animation-duration: 1.5s;
  animation-timing-function: ease-out;
  animation-iteration-count: infinite;
  bottom: 100px; /* Adjusted position */
  right: 22px; /* Adjusted position */
  z-index: 99;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
  }
  80% {
    box-shadow: 0 0 0 14px rgba(37, 211, 102, 0);
  }
}
