/*
Template Name: Tunis - Personal Portfolio
Author: celtano
Author URI: http://themeforest.net/user/celtano
Description: Tunis - Personal Portfolio
Version: 1.0
*/

/*------------------------------------------------------------------
[Table of contents]
	+ General
	    - Miscellaneous
		- Light Body
		- Buttons
		- Page Title
	+ Header
		- Desktop Navigation
		- Mobile Navigation
	+ Pages
		- Homepage
		+ About
		    - Personal Info List
			- Box Stats
			- Resume
			- Skills
		+ Portfolio
		    - Grid
		    + Slideshow
                - Embedded Videos
                - Carousel
                - Navigation
        + Contact
            - Left Side
            - Contact Form
		+ Blog
            - Latest Posts
            - Pagination
	- Responsive Design Styles
-------------------------------------------------------------------*/

/* [ GENERAL ] */
/*================================================== */

/*** Miscellaneous ***/

html {
  overflow-x: hidden;
  height: 100%;
}

body {
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  color: #fff;
  font-weight: 500;
  line-height: 1.6;
  position: relative;
  background-size: cover;
  background-position: center;
  height: 100%;
  width: 100%;
  background-color: black;
}

/*particless*/
#particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -1; /* Para nasa likod ng content */
}

.poppins-font {
  font-family: "Poppins", sans-serif;
}

.open-sans-font {
  font-family: "Open Sans", sans-serif;
}

hr.separator {
  border-top: 1px solid #252525;
  margin: 70px auto 55px;
  max-width: 40%;
}

.ft-wt-600 {
  font-weight: 600;
}

.mb-30 {
  margin-bottom: 30px;
}

.no-transform {
  transform: none !important;
}

/*** Light Body ***/

body.light {
  color: #666;
  background-color: #fff;
}

body.home-page.light .home-details h1 span {
  color: #666;
}

body.light .button .button-text {
  color: #666;
}

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

body.home-page.light .home-details h6 {
  color: #777;
}

body.light #preloader:before,
body.light #preloader:after {
  background-color: #eee;
}

body.light .title-section h2 {
  color: #666;
}

body.light .title-bg {
  color: rgba(30, 37, 48, 0.07);
}

body.light .about .box-stats {
  border: 1px solid #ddd;
}

body.light .about .c100,
body.light .about .resume-box .time {
  background-color: #eee;
}

body.light .about .resume-box .time,
body.light .about .resume-box p {
  color: #666;
}

body.light .about .resume-box .place:before {
  background-color: #666;
}

body.light .about .resume-box li:after {
  border-left: 1px solid #ddd;
}

body.light .about .c100 > span {
  color: #666;
}

body.light .about .c100:after {
  background-color: #fff;
}

body.light .portfolio .slideshow figure {
  background-color: #fff;
}

body.light .portfolio .slideshow ul > li:after {
  background: rgba(255, 255, 255, 0.77);
}

body.light .portfolio .slideshow {
  background: rgba(0, 0, 0, 0.7);
}

body.light .contact .contactform input[type="text"],
body.light .contact .contactform input[type="email"],
body.light .contact .contactform textarea {
  background-color: #fff;
  border: 1px solid #ddd;
  color: #666;
}

body.light .contact ul.social li a {
  color: #666;
  background: #eee;
}

body.light .contact ul.social li a:hover {
  color: #fff;
}

body.light .blog .post-content {
  background-color: #f2f2f2;
}

body.light .blog .post-content .entry-header h3 a {
  color: #666;
}

body.light .blog .page-link {
  color: #666;
  background-color: #eee;
  border: 1px solid #eee;
}

body.light.blog-post .meta {
  color: #888;
}

body.light .blog .page-item.active .page-link {
  color: #fff;
}

body.light hr.separator {
  border-top: 1px solid #ddd;
}

@media (min-width: 992px) {
  body.light .header ul.icon-menu li.icon-box {
    background-color: #eee;
  }

  body.light .header ul.icon-menu li.icon-box i {
    color: #666;
  }

  body.light .header ul.icon-menu li.icon-box.active,
  body.light .header ul.icon-menu li.icon-box:hover,
  body.light .header ul.icon-menu li.icon-box.active i,
  body.light .header ul.icon-menu li.icon-box:hover i {
    color: #fff;
  }
}

@media (max-width: 991px) {
  body.light .main-img-mobile {
    border: 4px solid #eee;
  }

  body.light #inputmobile .trigger-mobile,
  body.light #mobile-nav {
    background: #eee;
  }

  body.light #inputmobile .trigger-mobile > span {
    background: #666;
  }

  body.light #mobile-nav li a {
    color: #666;
  }

  body.light #mobile-nav li:after {
    background: #ddd;
  }

  body.light .portfolio .slideshow nav {
    background: #eee;
    border-bottom: 1px solid #ddd;
  }

  body.light .portfolio .slideshow nav span img {
    display: none;
  }

  body.light .portfolio .slideshow nav span.nav-next {
    background-image: url("../img/projects/navigation/right-arrow.png");
    background-size: cover;
  }

  body.light .portfolio .slideshow nav span.nav-prev {
    background-image: url("../img/projects/navigation/left-arrow.png");
    background-size: cover;
  }

  body.light .portfolio .slideshow nav span.nav-close {
    background-image: url("../img/projects/navigation/close-button.png");
    background-size: cover;
  }

  body.light .portfolio .slideshow nav span.nav-next,
  body.light .portfolio .slideshow nav span.nav-prev {
    top: 51px;
  }

  body.light .portfolio .slideshow {
    background: #fff;
  }

  #inputmobile .trigger-mobile {
    display: inline-block;
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 1000;
    user-select: none;
    padding: 19px 0 0 16px;
    width: 54px;
    height: 54px;
    border-radius: 5px;
    background: #252525;
    cursor: pointer;
  }

  #inputmobile .trigger-mobile.hide-trigger {
    z-index: -1;
  }

  #inputmobile .trigger-mobile span {
    display: flex;
    width: 23px;
    height: 2px;
    margin-bottom: 5px;
    position: relative;
    background: #ffffff;
    border-radius: 3px;
    z-index: 1;
    transform-origin: 5px 0;
    transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1),
      background 0.5s cubic-bezier(0.77, 0.2, 0.05, 1), opacity 0.55s ease;
  }

  #inputmobile .trigger-mobile span:first-child {
    transform-origin: 0 0;
  }

  #inputmobile .trigger-mobile span:nth-last-child(2) {
    transform-origin: 0 100%;
  }

  #inputmobile .trigger-mobile.show-menu span {
    opacity: 1;
    transform: rotate(45deg) translate(2px, -2px);
    background: #fff;
  }

  #inputmobile .trigger-mobile.show-menu span:nth-last-child(2) {
    opacity: 0;
    transform: rotate(0deg) scale(0.2, 0.2);
  }

  #inputmobile .trigger-mobile.show-menu span:nth-last-child(1) {
    transform: rotate(-45deg) translate(1px, -1px);
  }

  #mobile-nav {
    transform-origin: 0 0;
    transform: translate(-100%, 0);
    transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
  }

  #mobile-nav.hide-list {
    transform: none;
  }
}

@media (max-width: 576px) {
  body.light .title-section {
    background: #eee;
    border-bottom: 1px solid #ddd;
  }

  body.light #inputmobile {
    border: 0;
  }

  body.light .portfolio .slideshow nav span.nav-next,
  body.light .portfolio .slideshow nav span.nav-prev {
    top: 31px;
  }
}
/*** Preloader ***/

#preloader {
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  width: 100%;
  z-index: 99999;
  display: flex;
  pointer-events: none;
}

#preloader:before,
#preloader:after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 50%;
  height: 100%;
  z-index: -1;
  background-color: #222;
  -webkit-transition: all 0.3s ease 0s;
  -o-transition: all 0.3s ease 0s;
  transition: all 0.3s ease 0s;
}

#preloader:after {
  left: auto;
  right: 0;
}

#preloader .line {
  margin: auto;
  width: 3px;
  border-radius: 4px;
  height: 250px;
  position: relative;
  overflow: hidden;
  -webkit-transition: all 0.8s ease 0s;
  -o-transition: all 0.8s ease 0s;
  transition: all 0.8s ease 0s;
}

.line:before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 0;
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  -o-transform: translateY(-50%);
  transform: translateY(-50%);
  -webkit-animation: animateline 1000ms ease-in-out 0s forwards;
  -o-animation: animateline 1000ms ease-in-out 0s forwards;
  animation: animateline 1000ms ease-in-out 0s forwards;
}

.line:after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 100%;
  background-color: transparent;
  -webkit-transform: translateY(-100%);
  -ms-transform: translateY(-100%);
  -o-transform: translateY(-100%);
  transform: translateY(-100%);
  -webkit-animation: animatebgline 1200ms linear 0s infinite;
  -o-animation: animatebgline 1200ms linear 0s infinite;
  animation: animatebgline 1200ms linear 0s infinite;
  animation-delay: 2000ms;
}

@keyframes animateline {
  0% {
    height: 0;
  }

  100% {
    height: 100%;
  }
}

@keyframes animatebgline {
  0% {
    -webkit-transform: translateY(-100%);
    -ms-transform: translateY(-100%);
    -o-transform: translateY(-100%);
    transform: translateY(-100%);
  }

  100% {
    -webkit-transform: translateY(200%);
    -ms-transform: translateY(200%);
    -o-transform: translateY(200%);
    transform: translateY(200%);
  }
}

.preloaded .line:after {
  opacity: 0;
}

.preloaded .line {
  opacity: 0;
  height: 100% !important;
}

.preloaded:before,
.preloaded:after {
  -webkit-animation: finishanimation 500ms ease-in-out 500ms forwards;
  -o-animation: finishanimation 500ms ease-in-out 500ms forwards;
  animation: finishanimation 500ms ease-in-out 500ms forwards;
}

@keyframes finishanimation {
  0% {
    width: 50%;
  }

  100% {
    width: 0;
  }
}
/*** Buttons ***/
.button {
  overflow: hidden;
  display: inline-block;
  line-height: 1.4;
  border-radius: 35px;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-align: center;
  cursor: pointer;
  vertical-align: middle;
  user-select: none;
  transition: 250ms all ease-in-out;
  text-transform: uppercase;
  text-decoration: none !important;
  position: relative;
  z-index: 1;
  padding: 16px 70px 16px 35px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.15); /* Semi-transparent */
  backdrop-filter: blur(10px); /* Glass effect */
  -webkit-backdrop-filter: blur(10px);
  outline: none !important;
  box-shadow: 0 4px 6px rgba(255, 255, 255, 0.2), 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Media query for small screens */
@media (max-width: 576px) {
  .home .button {
    margin: 0 auto;
    display: table; /* Center the button on small screens */
  }
}

/* Media query for large screens */
@media (min-width: 992px) {
  .home .button {
    margin: 0; /* Reset margin for large screens */
    display: inline-block; /* Default display */
  }
}

/* Add glowing effect */
.button:hover {
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.3), 0 1px 3px rgba(0, 0, 0, 0.4);
  transform: scale(1.05);
}

.button .button-text {
  position: relative;
  z-index: 2;
  color: #fff;
  transition: 0.3s ease-out all;
}

/* Button background hover animation */
.button:before {
  z-index: -1;
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 35px;
  transform: translateX(100%);
  transition: 0.3s ease-out all;
}

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

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

/* Icon Style */
.button-icon {
  position: absolute;
  right: -1px;
  top: -1px;
  bottom: 0;
  width: 55px;
  height: 55px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 19px;
  color: #ffffff;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
  transition: 0.3s;
}

/* Make the icon glow on hover */
.button:hover .button-icon {
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
}

/*** Page Title ***/

.title-section {
  margin: 0 auto;
  width: 100%;
  position: relative;
  padding: 80px 0;
}

.title-section h2 {
  font-size: 56px;
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
  margin: 0;
}

.title-bg {
  font-size: 110px;
  left: 0;
  letter-spacing: 10px;
  line-height: 0.7;
  position: absolute;
  right: 0;
  top: 50%;
  text-transform: uppercase;
  font-weight: 800;
  -webkit-transform: translateY(-50%);
  -moz-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  -o-transform: translateY(-50%);
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.07);
  z-index: -1;
}

/* [ HEADER ] */
/*================================================== */

/*** Desktop Navigation ***/

@media (min-width: 992px) {
  /*** Navigation ***/

  .header {
    position: fixed;
    right: 30px;
    bottom: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    height: calc(100vh - 200px);
    top: 100px;
    opacity: 1;
    transition: opacity 0.3s;
    -webkit-transition: opacity 0.3s;
  }

  .header.hide-header {
    z-index: 0 !important;
    opacity: 0;
  }

  .header ul.icon-menu {
    margin: 0;
    padding: 0;
  }
  .header ul.icon-menu li.icon-box {
    width: 50px;
    height: 50px;
    list-style: none;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    margin: 20px 0;
    border-radius: 50%;
    background: linear-gradient(145deg, #3a3a3a, #202020);

    /* Permanent glow and shadow */
    box-shadow: 0 0 10px rgba(240, 35, 35, 0.5),
      0 0 20px rgba(255, 255, 255, 0.3), 0 0 30px rgba(255, 255, 255, 0.2),
      rgba(0, 0, 0, 0.25) 0px 54px 55px, rgba(0, 0, 0, 0.12) 0px -12px 30px,
      rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px,
      rgba(0, 0, 0, 0.09) 0px -3px 5px;

    cursor: pointer;
    padding: 10px;
    text-align: center;
    color: #ddd;

    /* Permanent glow effect */
    /* text-shadow: 0 0 10px rgba(255, 200, 200, 0.8), 
                 0 0 20px rgba(255, 255, 255, 0.5); */
  }

  /* Glow effect on hover (brighter) */
  .header ul.icon-menu li.icon-box:hover {
    background: linear-gradient(145deg, #505050, #2b2b2b);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.8),
      0 0 30px rgba(255, 255, 255, 0.5), 0 0 40px rgba(255, 255, 255, 0.4),
      rgba(255, 255, 255, 0.3) 0px 12px 13px,
      rgba(255, 255, 255, 0.2) 0px -3px 5px;
    transform: scale(1.1);
  }

  /* Text + Icon Glow Effect (Brighter on Hover) */
  .header ul.icon-menu li.icon-box:hover i,
  .header ul.icon-menu li.icon-box:hover h2 {
    text-shadow: 0 0 15px rgb(228, 28, 28), 0 0 25px rgba(223, 179, 36, 0.7);
    color: #fff;
  }

  .header .icon-box h2 {
    font-size: 15px;
    font-weight: 500;
  }

  .header .icon-box div {
    display: block;
    padding: 0;
    width: 50px;
    height: 50px;
  }

  .header .icon-box i.fa {
    position: absolute;
    pointer-events: none;
  }

  .header .icon-menu i {
    left: 0;
    right: 0;
    margin: 0 auto;
    display: block;
    text-align: center;
    font-size: 35px;
    top: 15px;
  }

  .header .icon-box h2 {
    z-index: -1;
    position: absolute;
    top: 0;
    right: 0;
    opacity: 0;
    color: #fff;
    line-height: 50px;
    font-weight: 500;
    transition: all 0.3s;
    border-radius: 30px;
    text-transform: uppercase;
    padding: 0 25px 0 30px;
    height: 50px;
  }

  .header .icon-box div:hover h2 {
    opacity: 1;
    right: 27px;
    margin: 0;
    text-align: center;
    border-radius: 30px 0 0 30px;
  }
}

/* [ Pages ] */
/*================================================== */

/*** Homepage ***/

/*------------lightmode and dark effect------*/

/* Theme Toggle Switch */
.theme-switch-wrapper {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 999;
  padding: 10px;
}

.theme-switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 26px;
}

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

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #1a1a1a;
  transition: .4s;
  border-radius: 34px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

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

.slider .fa {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  transition: .4s;
}

.slider .fa-sun-o {
  right: 6px;
  color: #f1c40f;
  opacity: 0;
}

.slider .fa-moon-o {
  left: 6px;
  color: #f1c40f;
}

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

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

input:checked + .slider .fa-sun-o {
  opacity: 1;
}

input:checked + .slider .fa-moon-o {
  opacity: 0;
}

/* Hover effect */
.slider:hover {
  box-shadow: 0 0 15px rgba(33, 150, 243, 0.4);
}

/* Responsive styles */
@media (max-width: 768px) {
  .theme-switch-wrapper {
    top: 15px;
    right: 15px;
    padding: 8px;
  }

  .theme-switch {
    width: 44px;
    height: 22px;
  }

  .slider:before {
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 1px;
  }

  .slider .fa {
    font-size: 10px;
  }

  .slider .fa-sun-o {
    right: 5px;
  }

  .slider .fa-moon-o {
    left: 5px;
  }

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

@media (max-width: 500px) {
  .theme-switch-wrapper {
    top: auto;
    bottom: 20px;
    right: 20px;
    padding: 6px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    backdrop-filter: blur(5px);
  }

  .theme-switch {
    width: 40px;
    height: 20px;
  }

  .slider:before {
    height: 14px;
    width: 14px;
    left: 2px;
    bottom: 1px;
  }

  .slider .fa {
    font-size: 9px;
  }

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

/* Dark mode styles */
[data-theme="dark"] {
  --bg-color: #111;
  --text-color: #fff;
  --border-color: #444;
}

/* Light mode styles */
[data-theme="light"] {
  --bg-color: #fff;
  --text-color: #111;
  --border-color: #ddd;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: background-color 0.3s ease, color 0.3s ease;
}

/*--------end mode--------*/

.home {
  position: relative;
  overflow: hidden;
  height: 100vh;
  min-height: 100%;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home .color-block {
  position: fixed;
  height: 100%;
  width: 100%;
  transform: rotate(-15deg);
  left: -83%;
  top: -50%;
}

.home-details-container > img {
  height: calc(100vh - 80px);
  z-index: 111;
  border-radius: 30px;
  left: 40px;
  top: 40px;
  object-fit: cover;
  padding: 0;

  /* Glow Effect */
  box-shadow: 0 0 20px rgba(28, 240, 255, 0.8),
    0 0 40px rgba(33, 244, 252, 0.856), 0 0 60px rgba(255, 255, 255, 0.3);

  /* Optional: Extra shadow under image */
  filter: drop-shadow(0px 10px 20px rgba(0, 0, 0, 0.5));

  /* Smooth transition */
  transition: 0.3s ease-in-out;
}

/* Glow effect on hover */
.home-details-container > img:hover {
  box-shadow: 0 0 30px rgb(120, 227, 241), 0 0 50px rgba(23, 243, 206, 0.7),
    0 0 70px rgba(255, 255, 255, 0.5);
}

.home .container-home {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  position: relative;
  padding: 0;
  max-width: 1200px;
  margin: 0 auto;
}

.home .home-details {
  text-align: center !important;
  width: 100%;
  max-width: 100%;
}

.home .home-details > div {
  max-width: 100%;
  margin: 0 auto;
  padding: 20px;
 
}

.home .home-details h1,
.home .home-details h2,
.home .home-details p {
  text-align: justify !important;
  max-width: 80%;
  margin-left: 50%;
  margin-right: 50%;
}

.home .home-details p {
  text-align: justify !important;
  text-justify: inter-word;
  hyphens: auto;
  padding: 0;
  margin: 0 auto;
  width: 100%;
  word-wrap: break-word;
  word-break: normal;
  line-height: 1.8;
  max-width: 100%; /* Ensure text doesn't overflow */
}

/* Media query for small screens */
@media (max-width: 576px) {
  .home .home-details > div {
    text-align: center !important;
  }
  
  .home .home-details h1,
  .home .home-details h2,
  .home .home-details p {
    text-align: center !important;
  }
}

/* Media query for large screens */
@media (min-width: 992px) {
  .home .home-details > div {
    text-align: left;
  }
  
  .home .home-details h1,
  .home .home-details h2,
  .home .home-details p {
    text-align: left;
  }
}

/* Mobile text alignment fixes */
@media (max-width: 768px) {
  .home .home-details h1,
  .home .home-details h2,
  .home .home-details p {
    text-align: center !important;
  }
  
  .home .home-details > div {
    text-align: center !important;
  }
  
  .home .button-wrapper {
    text-align: center !important;
  }
  
  .home .button {
    margin: 0 auto;
    display: inline-block;
  }
}

/*typewriter effect-------*/
/* Initial hidden state for fade-in effect */
/* Hide the text initially */
.hidden {
  opacity: 0;
  transform: translateY(20px); /* Slide up effect */
  transition: opacity 1s ease-in-out, transform 1s ease-in-out;
}

/* Show effect when the class is added */
.show {
  opacity: 1;
  transform: translateY(0);
}

/* Pulsating glow effect */
@keyframes glowing {
  0% {
    text-shadow: 0 0 5px rgba(35, 215, 228, 0.8),
      0 0 10px rgba(0, 238, 255, 0.932), 0 0 15px rgba(0, 255, 234, 0.801);
  }
  50% {
    text-shadow: 0 0 10px rgb(0, 183, 255), 0 0 20px rgba(0, 255, 255, 0.8),
      0 0 30px rgba(0, 238, 255, 0.726);
  }
  100% {
    text-shadow: 0 0 5px rgba(0, 225, 255, 0.8),
      0 0 10px rgba(0, 255, 255, 0.719), 0 0 15px rgba(0, 217, 255, 0.4);
  }
}

/* Apply glow effect */
.glowing {
  animation: glowing 1.5s infinite alternate;
}

/* Cursor blinking effect */
@keyframes blink-caret {
  50% {
    opacity: 0;
  }
}

.typing-animation::after {
  content: "|";
  display: inline-block;
  margin-left: 5px;
  opacity: 1;
  animation: blink-caret 0.7s infinite;
}

/*typewriter effect end---------*/

.home .home-details h6 {
  color: #eee;
  font-size: 22px;
  font-weight: 400;
  display: block;
}

.home .home-details p {
  margin: 15px 0 28px;
  font-size: 16px;
  line-height: 35px;
}

/***-------------------------- About---------------------------- ***/

/********** Personal Info List */
.custom-title {
  padding-bottom: 10px;
  font-size: 26px;
  color: cyan;
  text-align: left;
  display: block;
}
.about-me.content p {
  text-align: justify;
  padding-left: 10px;
}
.about-me.content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.about .col-12.mt-3 {
  display: flex;
  justify-content: center;
}

.col-12.mt-3 {
  padding-left: 0; /* Alisin ang default padding */
}

.about .col-12.mt-3 {
  text-align: left;
}

.about .main-content {
  padding-bottom: 20px;
}
.about .about-list li:not(:last-child) {
  padding-bottom: 20px;
}

.about .about-list .title {
  opacity: 0.8;
  text-transform: capitalize;
}

.about .about-list .value {
  font-weight: 600;
}
/********* Box Stats ****/

.about .box-stats {
  padding: 15px 20px;
  border-radius: 5px;
  border: 1px solid #883838;
  text-align: center;
  width: 100%; /* Ensures it stays within its grid */
  max-width: 300px; /* Adjust this if needed */
  height: 100px; /* Reduced height from 120px */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #000000; /* Default background color - black */
  transition: background-color 0.3s ease-in-out; /* Smooth hover transition */
  margin-bottom: 20px;
  overflow: hidden; /* Prevent content from overflowing */
}

.about .box-stats:hover {
  background-color: #00FFFF; /* Hover effect - cyan */
}

.tools {
  text-align: right;
}

.about .box-stats i {
  color: #fff;
  margin-bottom: 5px; /* Reduced from 10px */
}

.about .box-stats img {
  width: 70px; /* Reduced from 100px */
  height: 70px; /* Reduced from 100px */
  display: block;
  margin-bottom: 5px;
}

/********BOX ENDS*/


/* Resume exp and education */

.timeline {
  position: relative;
  max-width: 1000px;
  margin: auto;
  padding: 50px 0;
    }

.timeline ul {
  list-style: none;
  padding: 0;
  position: relative;
}

.timeline ul::before {
  content: "";
  position: absolute;
  width: 4px;
  background: #00ffff;
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
}

.timeline ul li {
  position: relative;
  width: 50%;
  padding: 20px 40px;
  box-sizing: border-box;
}
.timeline ul li:nth-child(odd) {
  left: 0; /* Align sa left side */
  text-align: right;
}

.timeline ul li:nth-child(even) {
  left: 50%; /* Align sa right side */
  text-align: left;
}

.timeline-content {
  background: #111;
  padding: 15px;
  border-radius: 10px;
  border: 1px solid cyan;
  box-shadow: 0 0 10px cyan;
  position: relative;
}

.timeline ul li.left {
  left: 20%;
  text-align: right;
}

.timeline ul li.right {
  left: 50% !important;
  text-align: left !important;
}

.icon {
  width: 40px;
  height: 40px;
  background: cyan;
  color: black;
  font-size: 20px;
  line-height: 40px;
  text-align: center;
  border-radius: 50%;
  position: absolute;
  top: 15px;
}

.timeline ul li:nth-child(odd) .icon {
  right: -20px;
}

.timeline ul li:nth-child(even) .icon {
  left: -20px;
}

.time {
  font-size: 14px;
  font-weight: bold;
  color: cyan;
}

h5 {
  margin: 10px 0;
  font-size: 18px;
  color: white;
}

.place {
  display: block;
  font-size: 14px;
  color: gray;
}

p {
  font-size: 14px;
  color: lightgray;
}

/* Timeline styles for mobile/responsive view */
@media (max-width: 768px) {
  .timeline {
    position: relative;
    max-width: 100%;
    padding: 20px;
  }

  .timeline ul::before {
    left: 50%;
    transform: translateX(-50%);
    background: cyan;
    box-shadow: 0 0 10px cyan, 0 0 20px cyan;
    width: 2px;
  }

  .timeline ul li {
    width: 50%;
    padding: 15px 30px;
    text-align: left;
  }

  .timeline ul li:nth-child(odd) {
    left: 0;
    text-align: right;
    padding-right: 50px;
  }

  .timeline ul li:nth-child(even) {
    left: 50%;
    text-align: left;
    padding-left: 50px;
  }

  .timeline-content {
    background: rgba(17, 17, 17, 0.9);
    border: 1px solid cyan;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
    margin-bottom: 20px;
    position: relative;
    padding: 15px;
    max-width: 100%;
  }

  /* Add cyber corners */
  .timeline-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 15px;
    height: 15px;
    border-top: 2px solid cyan;
    border-left: 2px solid cyan;
  }

  .timeline-content::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 15px;
    height: 15px;
    border-bottom: 2px solid cyan;
    border-right: 2px solid cyan;
  }

  /* Icon styling */
  .icon {
    width: 30px;
    height: 30px;
    background: black;
    border: 2px solid cyan;
    box-shadow: 0 0 10px cyan;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    position: absolute;
    top: 15px;
  }

  .timeline ul li:nth-child(odd) .icon {
    right: -15px;
  }

  .timeline ul li:nth-child(even) .icon {
    left: -15px;
  }

  .icon i {
    color: cyan;
    font-size: 14px;
  }

  /* Time period styling */
  .time {
    color: cyan;
    font-size: 14px;
    margin-bottom: 8px;
    display: block;
    text-shadow: 0 0 5px cyan;
  }

  /* Title styling */
  h5 {
    color: #fff;
    font-size: 16px;
    margin: 8px 0;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
  }

  .place {
    color: cyan;
    font-size: 14px;
    opacity: 0.8;
  }

  /* Description text */
  .timeline-content p {
    color: #ccc;
    font-size: 14px;
    line-height: 1.5;
    margin-top: 10px;
  }

  /* Add connecting lines from timeline to content */
  .timeline ul li:nth-child(odd) .timeline-content::before {
    content: "";
    position: absolute;
    right: -30px;
    top: 20px;
    width: 30px;
    height: 2px;
    background: cyan;
    box-shadow: 0 0 10px cyan;
  }

  .timeline ul li:nth-child(even) .timeline-content::before {
    content: "";
    position: absolute;
    left: -30px;
    top: 20px;
    width: 30px;
    height: 2px;
    background: cyan;
    box-shadow: 0 0 10px cyan;
  }

  /* Optional: Add cyber pattern background */
  .timeline::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        transparent 48%,
        cyan 49%,
        cyan 51%,
        transparent 52%
      ),
      linear-gradient(
        -45deg,
        transparent 48%,
        cyan 49%,
        cyan 51%,
        transparent 52%
      );
    background-size: 30px 30px;
    opacity: 0.1;
    pointer-events: none;
    z-index: -1;
  }
}

/* Additional styles for extra small devices */
@media (max-width: 480px) {
  .timeline {
    padding: 15px 5px;
  }

  .timeline ul li {
    padding: 10px 20px;
  }

  .timeline ul li:nth-child(odd) {
    padding-right: 35px;
  }

  .timeline ul li:nth-child(even) {
    padding-left: 35px;
  }

  .icon {
    width: 24px;
    height: 24px;
  }

  .icon i {
    font-size: 12px;
  }

  .timeline-content {
    padding: 10px;
  }

  .time {
    font-size: 12px;
  }

  h5 {
    font-size: 14px;
  }

  .timeline-content::before,
  .timeline-content::after {
    width: 12px;
    height: 12px;
  }
}

/* Skills */

.about .c100 {
  float: none;
  margin: 0 auto;
  transform-origin: center;
}

.about .c100 > span {
  color: #fff;
}

.about .c100:after {
  background-color: #111;
}


/*** Contact ***/
.contact .main-content {
  padding-bottom: 85px;
}
/* Left Side */

.contact .custom-span-contact {
  font-weight: 600;
  padding-left: 50px;
  line-height: 21px;
  padding-top: 5px;
}

.contact .custom-span-contact i {
  left: 0;
  top: 10px;
  font-size: 33px;
}

.contact .custom-span-contact i.fa-phone-square {
  font-size: 39px;
  top: 7px;
}

.contact .custom-span-contact span {
  text-transform: uppercase;
  opacity: 0.8;
  font-weight: 400;
}

.contact ul.social {
  margin-left: -5px;
}

.contact ul.social li {
  display: inline-block;
}

.contact ul.social li a {
  display: inline-block;
  height: 40px;
  width: 40px;
  line-height: 42px;
  text-align: center;
  color: #fff;
  transition: 0.3s;
  font-size: 17px;
  margin: 0 6px;
  background: #2b2a2a;
  border-radius: 50%;
}
/* Form */
.contact .contactform input[type="text"],
.contact .contactform input[type="email"] {
  border: 1px solid #111;
  width: 100%;
  background: #252525;
  color: #fff;
  padding: 11px 26px;
  margin-bottom: 30px;
  border-radius: 30px;
  outline: none !important;
  transition: 0.3s;
}

.contact .contactform textarea {
  border: 1px solid #111;
  background: #252525;
  color: #fff;
  width: 100%;
  padding: 12px 26px;
  margin-bottom: 20px;
  height: 160px;
  overflow: hidden;
  border-radius: 30px;
  outline: none !important;
  transition: 0.3s;
}

.contact .contactform .form-message {
  margin: 24px 0;
}

.contact .contactform .output_message {
  display: block;
  color: #fff;
  height: 46px;
  line-height: 46px;
  border-radius: 30px;
}

.contact .contactform .output_message.success {
  background: #28a745;
}

.contact .contactform .output_message.success:before {
  font-family: FontAwesome;
  content: "\f14a";
  padding-right: 10px;
}

.contact .contactform .output_message.error {
  background: #dc3545;
}

.contact .contactform .output_message.error:before {
  font-family: FontAwesome;
  content: "\f071";
  padding-right: 10px;
}

/*courosel exp*/

.certificate-carousel-container {
  position: relative;
  max-width: 90%; /* Increased for better visibility on mobile */
  margin: 20px auto;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  background-color: rgba(0, 0, 0, 0.2);
  padding: 10px;
}

.certificate-carousel {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease-in-out;
}

.certificate-image {
  min-width: 100%;
  height: auto;
  max-height: 70vh; /* Using viewport height for better responsiveness */
  object-fit: contain;
  display: none;
  margin: 0 auto;
}

.certificate-image.active {
  display: block;
  animation: fadeIn 0.5s ease-in-out;
}

/* Responsive styles */
@media (max-width: 1200px) {
  .certificate-carousel-container {
    max-width: 95%;
  }
  .certificate-image {
    max-height: 65vh;
  }
}

@media (max-width: 992px) {
  .certificate-carousel-container {
    max-width: 100%;
    margin: 15px auto;
  }
  .certificate-image {
    max-height: 60vh;
  }
  .carousel-control {
    padding: 12px 16px;
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .certificate-carousel-container {
    margin: 10px auto;
  }
  .certificate-image {
    max-height: 50vh;
  }
  .carousel-control {
    padding: 10px 14px;
    font-size: 14px;
    background: rgba(0, 0, 0, 0.8);
  }
  .indicator {
    width: 10px;
    height: 10px;
    margin: 0 4px;
  }
}

@media (max-width: 576px) {
  .certificate-image {
    max-height: 40vh;
  }
  .carousel-control {
    padding: 8px 12px;
    font-size: 12px;
  }
  .carousel-indicators {
    bottom: 10px;
  }
  .indicator {
    width: 8px;
    height: 8px;
    margin: 0 3px;
  }
}

/* Section Transition Animations */
/* Base animation styles */
.fade-in {
  opacity: 0;
  transition: opacity 2s ease, transform 2s ease;
}

.fade-in.active {
  opacity: 1;
  transform: translateX(0);
}

/* Left side animation */
.fade-in-left {
  transform: translateX(-100px);
}

/* Right side animation */
.fade-in-right {
  transform: translateX(100px);
}

/* Up animation */
.fade-in-up {
  transform: translateY(100px);
}

/* Down animation */
.fade-in-down {
  transform: translateY(-100px);
}

/* Zoom animation */
.fade-in-zoom {
  transform: scale(0.5);
}

/* Rotate animation */
.fade-in-rotate {
  transform: rotate(-10deg);
}

/* Staggered animations for children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 2s ease, transform 2s ease;
}

.stagger-children.active > *:nth-child(1) { transition-delay: 0.2s; }
.stagger-children.active > *:nth-child(2) { transition-delay: 0.4s; }
.stagger-children.active > *:nth-child(3) { transition-delay: 0.6s; }
.stagger-children.active > *:nth-child(4) { transition-delay: 0.8s; }
.stagger-children.active > *:nth-child(5) { transition-delay: 1.0s; }
.stagger-children.active > *:nth-child(6) { transition-delay: 1.2s; }
.stagger-children.active > *:nth-child(7) { transition-delay: 1.4s; }
.stagger-children.active > *:nth-child(8) { transition-delay: 1.6s; }
.stagger-children.active > *:nth-child(9) { transition-delay: 1.8s; }
.stagger-children.active > *:nth-child(10) { transition-delay: 2s; }

.stagger-children.active > * {
  opacity: 1;
  transform: translateY(0);
}

/* Page transition effect */
.page {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.5s ease, transform 1.5s ease;
}

.page--current {
  opacity: 1;
  transform: translateY(0);
}

.home .container-home {
  display: flex;
  align-items: center;
  min-height: 100%;
}

/* Button wrapper for alignment */
.button-wrapper {
  display: block;
  width: 100%;
}

@media (max-width: 576px) {
  .button-wrapper {
    text-align: center !important;
  }
}

@media (min-width: 992px) {
  .button-wrapper {
    text-align: left !important;
  }
}

/* Home section text alignment fixes */
.home .home-details {
  text-align: center !important;
}

.home .home-details h1,
.home .home-details h2,
.home .home-details p {
  text-align: right;
}

.home .button-wrapper {
  text-align: center !important;
}

.home .button {
  margin: 0 auto;
  display: inline-block;
}

/* Override any responsive text alignment */
@media (min-width: 992px) {
  .home .home-details {
    text-align: center !important;
  }
  
  .home .home-details h1,
  .home .home-details h2,
  .home .home-details p {
    text-align: justify !important;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 0;
  }
  
  .home .button-wrapper {
    text-align: center !important;
  }
}

/* Ensure the neon text effect is visible and centered */
.home .home-details h1.glowing {
  color: #fff;
  text-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff, 0 0 30px #00ffff, 0 0 40px #00ffff;
  animation: glowing 2s ease-in-out infinite alternate;
}

/* Fix for the home section layout */
.home .row.home-details-container {
  justify-content: center !important;
  text-align: justify !important;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

/* Ensure the text container is properly positioned */
@media (min-width: 1200px) {
  .home .home-details > div {
    width: 95%; /* Consistent width for larger screens */
  }
}

@media (max-width: 991px) {
  .home .home-details > div {
    max-width: 95%; /* Consistent width on mobile too */
    padding: 0;
    text-align: justify !important;
    margin: 0 auto;
  }
}

/* Enhanced neon text effect */
.glowing {
  color: #fff;
  text-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff, 0 0 30px #00ffff, 0 0 40px #00ffff;
  animation: glowing 2s ease-in-out infinite alternate;
  text-align: center !important;
  display: block;
  margin: 0 auto;
}

/* Project Cards Styling - Portfolio Section */
@keyframes cardGlow {
  0% {
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.4), 
                0 0 30px rgba(0, 170, 255, 0.2), 
                0 5px 15px rgba(0, 0, 0, 0.5);
  }
  50% {
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5), 
                0 0 35px rgba(0, 170, 255, 0.3), 
                0 5px 15px rgba(0, 0, 0, 0.5);
  }
  100% {
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.4), 
                0 0 30px rgba(0, 170, 255, 0.2), 
                0 5px 15px rgba(0, 0, 0, 0.5);
  }
}

.project-card {
  background: #111;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.4), 
              0 0 30px rgba(0, 170, 255, 0.2), 
              0 5px 15px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease;
  animation: cardGlow 3s infinite ease-in-out;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.6), 
              0 0 40px rgba(0, 170, 255, 0.3), 
              0 0 60px rgba(0, 89, 255, 0.2),
              0 10px 25px rgba(0, 0, 0, 0.6);
  animation: none;
}

.project-info {
  padding: 1rem;
}

.project-info h4 {
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 0 5px rgba(0, 210, 255, 0.5);
}

.project-info p {
  color: #ccc;
  font-size: 14px;
  margin-bottom: 1rem;
}

.view-project-btn {
  background-color: #00ffff;
  color: #000;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 0.25rem;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
  border: 1px solid rgba(0, 255, 255, 0.3);
}

.view-project-btn:hover {
  background-color: #00cccc;
  color: #000;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.8), 0 0 30px rgba(0, 210, 255, 0.4);
  transform: scale(1.05);
}

.project-links a {
  color: #fff;
  margin: 0 0.25rem;
  transition: all 0.3s;
  font-size: 16px;
  text-shadow: 0 0 5px rgba(0, 210, 255, 0.3);
}

.project-links a:hover {
  color: #00ffff;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.8), 0 0 20px rgba(0, 210, 255, 0.5);
  transform: scale(1.2);
}

.project-card img {
  transition: all 0.5s ease;
}

.project-card:hover img {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.portfolio h2 span.cyan {
  color: white;
}

/* Skills section styling */
.skill-image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100px;
  width: 100px; /* Make width equal to height for perfect circle */
  aspect-ratio: 1; /* Enforce 1:1 aspect ratio */
  background-color: black;
  border-radius: 100%;
  padding: 20px;
  transition: all 0.3s ease;
  border: 2px solid rgb(238, 8, 142);
  margin: 0 auto; /* Center the circle in its column */
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.8), 0 0 30px rgba(0, 210, 255, 0.4);
  
}

.skill-image {
  max-width: 100%;
  max-height: 100%;
  transition: transform 0.3s ease;
}

.skill-image-container:hover {
  background-color: #00FFFF;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.7), 0 0 40px rgba(0, 255, 255, 0.4);
  transform: translateY(-5px);
}

.skill-image-container:hover .skill-image {
  transform: scale(1.1);
  filter: brightness(1.1);
}
h6{
  color: cyan;
  text-shadow: #00cccc;
  font-weight: bold;
  
}

/* Responsive fixes added to improve mobile layout */
@media (max-width: 991px) {
  /* Make the large hero image flow with document on smaller screens */
  .home-details-container > img,
  .home .home-details-container > img {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    left: auto !important;
    top: auto !important;
    margin: 0 auto 20px auto !important;
    border-radius: 12px !important;
    object-fit: cover !important;
    z-index: 1 !important;
    box-shadow: 0 6px 18px rgba(0,0,0,0.5);
  }

  /* Ensure home text is centered and constrained */
  .home .home-details > div {
    padding: 18px 20px !important;
    max-width: 720px !important;
    margin: 0 auto !important;
  }

  .home .home-details h1,
  .home .home-details h2,
  .home .home-details p {
    text-align: center !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 0 8px !important;
  }

  /* Make the CTA button responsive */
  .home .button {
    padding: 12px 28px !important;
    width: auto !important;
    display: inline-block !important;
    margin: 12px auto !important;
  }

  /* Move the theme switcher so it doesn't overlap important elements */
  .theme-switch-wrapper {
    top: 12px !important;
    right: 12px !important;
  }

  /* Improve spacing for page container */
  .home .container-home,
  .home .main-container {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
}

/* Extra small devices: stack timeline entries vertically and simplify connectors */
@media (max-width: 576px) {
  .timeline {
    padding: 10px 8px !important;
  }

  .timeline ul::before {
    left: 8px !important;
    transform: none !important;
    width: 3px !important;
    top: 8px !important;
  }

  .timeline ul li,
  .timeline ul li:nth-child(odd),
  .timeline ul li:nth-child(even) {
    width: 100% !important;
    left: 0 !important;
    padding: 12px 40px 12px 28px !important;
    box-sizing: border-box !important;
    text-align: left !important;
  }

  .timeline ul li .timeline-content {
    margin-left: 12px !important;
    padding: 12px !important;
  }

  .timeline ul li .icon {
    left: 0 !important;
    right: auto !important;
    top: 8px !important;
    transform: translateX(-50%) !important;
  }

  /* Ensure icons don't overflow */
  .timeline ul li .icon i {
    font-size: 14px !important;
  }

  /* Make certificate images smaller on very small screens */
  .certificate-image {
    max-height: 38vh !important;
  }

  /* Make project cards take full width */
  .project-card {
    margin: 0 auto 18px auto !important;
    width: 100% !important;
  }

  .project-card img {
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
  }
}

/* Utility tweaks to prevent overflow on very narrow screens */
@media (max-width: 420px) {
  .title-section h2 {
    font-size: 28px !important;
  }

  .title-bg {
    font-size: 60px !important;
  }

  .button .button-text {
    font-size: 13px !important;
  }

  /* Reduce padding in contact form fields to fit screen */
  .contact .contactform input[type="text"],
  .contact .contactform input[type="email"],
  .contact .contactform textarea {
    padding: 10px 16px !important;
  }
}
