/********** Template CSS **********/
body{
    background-color: var(--light);
}
:root {
    --primary: #6244C5;
    --secondary: #FFC448;
    --light: #FAFAFB;
    --dark: #12141D;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    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 .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

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


/*** Button ***/
.btn {
    font-weight: 500;
    transition: .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;
}


/*** Magic Navbar ***/
.navbar {
  background: linear-gradient(-45deg, #6a00f4, #ff6ec4, #4facfe, #38f9d7);
  background-size: 400% 400%;
  animation: gradientShift 10s ease infinite;
  transition: 0.5s;
  padding: 0.5rem 1rem;
  z-index: 1000;
}

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

.navbar .navbar-nav .nav-link {
  padding: 20px 15px;
  color: #ffffffdd; /* match footer text color */
  font-size: 18px;
  font-weight: 600;
  transition: 0.3s;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
  color: #fff;
  text-shadow: 0 0 5px #fff, 0 0 10px #ff6ec4;
}

@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(--light);
}

.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;
    }
}

.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;
}

/* .my-tooltip{
  position: absolute;
  background-color: var(--primary);
  color: var(--light);
  padding: 10px;
  border-radius: 10px;
  text-align: center;
  top: 50px;
  left: 30px;
} */


.profile-img{
    margin-top: 100px;
    background-color: var(--secondary);
     border-radius: 50%;
}

.toggle-blur {
  transition: filter 0.4s ease, transform 0.4s ease;
  cursor: pointer;
}

.toggle-blur.blurred {
  filter: blur(20px) brightness(0.7);
  transform: scale(1.01);
}



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

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


/*** 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(--primary);
}

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

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

 .skills-portion {
      margin: 0;
      display: flex;
      flex-wrap: wrap;
      gap: 30px;
      justify-content: center;
      align-items: center;
      width: 100%;
      perspective: 1000px;
    } 

    .scene {
      width: 70px;
      height: 70px;
      perspective: 800px;
    }

    .cube {
      width: 100%;
      height: 100%;
      position: relative;
      transform-style: preserve-3d;
      transform: rotateX(-20deg) rotateY(20deg);
      transition: transform 1s ease;
    }

    .scene:hover .cube {
      transform: rotateX(180deg) rotateY(180deg);
    }

    .face {
      position: absolute;
      width: 70px;
      height: 70px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      font-size: 14px;
      background: rgba(255, 255, 255, 0.1);
      /* border: 1px solid #444; */
      backface-visibility: hidden;
    }
    .face img{
      width: 100%;
    }

    .front  { transform: translateZ(35px);  background: #000000; }
    .back   { transform: rotateY(180deg) translateZ(35px); background: #000000; }
    .right  { transform: rotateY(90deg) translateZ(35px);  background: #000000; }
    .left   { transform: rotateY(-90deg) translateZ(35px); background: #000000; }
    .top    { transform: rotateX(90deg) translateZ(35px);  background: #000000; }
    .bottom { transform: rotateX(-90deg) translateZ(35px); background: #000000; }


/*** Service ***/
/* .service-item .bg-icon {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url(../img/bg-icon.png) center center no-repeat;
    background-size: cover;
} */


/*** Project Portfolio ***/
#portfolio-flters li {
    display: inline-block;
    font-weight: 500;
    cursor: pointer;
    transition: .5s;
    border-bottom: 2px solid transparent;
}

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

.portfolio-item {
    
    display: flex;
    justify-content: center;
}
.portfolio-img{
  position: relative;
  width: 22rem;
}

.portfolio-btn {
    position: absolute;
    width: 22rem;

    height: 100%;
    top: 0;
    left: 0;
    background: rgba(98, 68, 197, .9);
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 30px;
    padding-bottom: 100px;
    opacity:0;
    transition: 0.5s;
}

.portfolio-item:hover .portfolio-btn {
    opacity: 1;
    padding-bottom: 30px ;
}


  .copy-link, .view-link{
    position: relative;
    display: inline-block;
    text-align: center;
    cursor: pointer;
    text-decoration: underline;
  }
  .view-link i{
    margin-top: 12px;
  }

  .copy-link::after , .view-link::after {
    content: "Copy link";
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    font-size: 12px;
    padding: 4px 6px;
    border-radius: 4px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    white-space: nowrap;
    animation: float 1s infinite alternate ease-in-out;
   
  }
  .view-link::after{
    content: "live preview";
  }
  .copy-link:hover::after , .view-link:hover::after {
  opacity: 1;
}

/* .copy-link:hover::after,
.view-link:hover::after {
  opacity: 1;
  animation: float 1s infinite alternate ease-in-out;
} */


@keyframes float {
  0% {
    transform: translateX(-50%) translateY(0px);
  }
  100% {
    transform: translateX(-50%) translateY(-5px);
  }
}

  



@media only screen and (max-width: 900px) {


 .portfolio-btn{
  opacity: 1;
  width: 100%;
  justify-content: space-between;
  padding: 20px;
  background: rgba(255, 255, 255, 0.5);

 }
 .portfolio-btn button{
  background-color: var(--secondary);
}
.portfolio-btn .btn{
  color: rgb(0, 0, 0);
  background-color: var(--secondary);
}
 .portfolio-item .portfolio-btn{
   opacity: 1;
 }
 .copy-link::after , .view-link::after{
  /* display: none; */
  opacity: 1;
 }
 


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

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


}


/*** Team ***/
/* .team-item img {
    transition: .5s;
}

.team-item:hover img {
    opacity: .7;
}

.team-item .team-text {
    position: absolute;
    left: 0;
    right: 60px;
    bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    opacity: 0;
    transition: .5s;
}

.team-item:hover .team-text {
    right: 30px;
    opacity: 1;
}

.team-item .team-text div {
    transition: .5s;
}

.team-item:hover .team-text div {
    margin-left: 30px;
} */


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

.testimonial-left img,
.testimonial-right img {
    position: absolute;
    padding: 5px;
    border: 2px 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: .5s;
}

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

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

 /* Magical gradient animation - footer */
    .magic-footer {
      background: linear-gradient(-45deg, #6a00f4, #ff6ec4, #4facfe, #38f9d7);
      background-size: 400% 400%;
      animation: gradientShift 10s ease infinite;
      color: white;
      padding: 2rem 1rem;
      position: relative;
      overflow: hidden;
    }

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

    .magic-footer h5 {
      font-weight: bold;
    }

    .magic-footer a {
      color: #ffffffdd;
      text-decoration: none;
    }

    .magic-footer a:hover {
      color: #fff;
      text-shadow: 0 0 5px #fff, 0 0 10px #ff6ec4;
    }

    .footer-bottom {
      text-align: center;
      padding-top: 1rem;
      border-top: 1px solid rgba(255, 255, 255, 0.2);
      font-size: 0.9rem;
    }



/* toggle dark mode */

/* .text-light{
    color: var(--light);
}

#text-primary{
    color:var(--primary)
} */

/* Dark Mode Body Background */
body.dark-mode {
  background-color: var(--dark) !important;
  transition: background 0.5s ease;
}
.text-toggle {
  color: #222; /* default (light mode) */
  transition: color 0.3s ease;
}

body.dark-mode .text-toggle {
  color: #fff; /* dark mode text color */
}
/* Toggle Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
  margin-left: 15px;

  /* vertical-align: middle; */
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0;
  right: 0; bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px; width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #222;
}

input:checked + .slider:before {
  transform: translateX(24px);
}


/* chat with ai */



.chat-container {
    /* width: 90%; */
    /* max-width: 800px; */
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    height: 23rem;
}

/* .chat-header {
    background-color: #2c3e50;
    color: white;
    padding: 20px;
    border-radius: 10px 10px 0 0;
}

.chat-header h2 {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
} */

.chat-messages {
    flex-grow: 1;
    padding: 5px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.message {
    display: flex;
    align-items: flex-start;
    margin-bottom: 5px;
}

.message-content {
    padding: 12px 16px;
    border-radius: 15px;
    max-width: 70%;
    word-wrap: break-word;
}

.user-message {
    justify-content: flex-end;
}

.user-message .message-content {
    background-color: #007bff;
    color: white;
    border-radius: 15px 15px 0 15px;
}

.bot-message .message-content {
    background-color: #e9ecef;
    color: #212529;
    border-radius: 15px 15px 15px 0;
}

.chat-input-container {
    padding: 10px;
    border-top: 1px solid #dee2e6;
    display: flex;
    gap: 5px;
}

#userInput {
    flex-grow: 1;
    padding: 7px;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    outline: none;
    font-size: 1rem;
}

#userInput:focus {
    border-color: #007bff;
}

#sendButton {
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

#sendButton:hover {
    background-color: #0056b3;
}

/* Loading animation */
.typing-indicator {
    display: flex;
    gap: 5px;
    padding: 8px 12px;
    background-color: #e9ecef;
    border-radius: 15px;
    width: fit-content;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background-color: #6c757d;
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
    0%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-8px); }
}
