/**
* Template Name: MyResume
* Updated: Jan 09 2024 with Bootstrap v5.3.2
* Template URL: https://bootstrapmade.com/free-html-bootstrap-template-my-resume/
* Author: BootstrapMade.com
* License: https://bootstrapmade.com/license/
*/

/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/
:root {
  --primary-color: #0563bb;
  --bg-color: #ffffff;
  --text-color: #272829;
  --subtitle-color: #45505b;
  --section-bg: #f7f8f9;
  --card-bg: #ffffff;
  --card-border: rgba(0, 0, 0, 0.08);
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.4);
  --glass-blur: 15px;
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --highlight-bg: linear-gradient(135deg, #fffdf1 0%, #ffffff 100%);
  --form-status-bg: #eef7ff;
}

/*--------------------------------------------------------------
# Custom Cursor
--------------------------------------------------------------*/
* { cursor: none !important; }

#cursor-dot,
#cursor-glow {
  display: none; /* shown by JS only on desktop */
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 99999;
  border-radius: 50%;
  will-change: transform;
  transition: opacity 0.3s ease;
}

/* The precise dot */
#cursor-dot {
  width: 8px;
  height: 8px;
  background: #0563bb;
  margin-left: -4px;
  margin-top: -4px;
  transition: width 0.2s ease, height 0.2s ease,
              margin 0.2s ease, background 0.2s ease,
              opacity 0.3s ease;
}

/* The trailing glow ring */
#cursor-glow {
  width: 40px;
  height: 40px;
  border: 2px solid rgba(5, 99, 187, 0.5);
  background: rgba(5, 99, 187, 0.07);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  margin-left: -20px;
  margin-top: -20px;
  transition: width 0.25s ease, height 0.25s ease,
              margin 0.25s ease, border-color 0.25s ease,
              background 0.25s ease, opacity 0.3s ease;
}

/* Grow state on interactive elements */
#cursor-dot.cursor-grow {
  width: 14px;
  height: 14px;
  margin-left: -7px;
  margin-top: -7px;
  background: #ffbb2c;
}

#cursor-glow.cursor-grow {
  width: 60px;
  height: 60px;
  margin-left: -30px;
  margin-top: -30px;
  border-color: rgba(255, 187, 44, 0.6);
  background: rgba(255, 187, 44, 0.08);
}

/* Restore default cursor on iframes (maps, etc.) */
iframe { cursor: auto !important; }

/*--------------------------------------------------------------
# Film Grain Overlay
--------------------------------------------------------------*/
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 99998; /* just below the cursor (99999) */
  width: 100%;
  height: 100%;
  /* Inline SVG noise filter — no external image needed */
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 180px 180px;
  opacity: 0.032;
  animation: grain 0.4s steps(1) infinite;
  mix-blend-mode: overlay;
}

@keyframes grain {
  0%   { transform: translate(0px,   0px);   }
  10%  { transform: translate(-2%,  -3%);    }
  20%  { transform: translate(3%,    2%);    }
  30%  { transform: translate(-1%,   4%);    }
  40%  { transform: translate(4%,   -1%);    }
  50%  { transform: translate(-3%,   1%);    }
  60%  { transform: translate(1%,   -4%);    }
  70%  { transform: translate(-4%,   2%);    }
  80%  { transform: translate(2%,    3%);    }
  90%  { transform: translate(-1%,  -2%);    }
  100% { transform: translate(0px,   0px);   }
}

/* Magnetic icon base — needed for translate to not shift layout */
#hero .social-links a,
#footer .social-links a {
  position: relative;
  will-change: transform;
  display: inline-block;
}

[data-theme="dark"] {
  --bg-color: #111111;
  --text-color: #f1f1f1;
  --subtitle-color: #cccccc;
  --section-bg: #1a1a1a;
  --card-bg: #222222;
  --card-border: rgba(255, 255, 255, 0.08);
  --glass-bg: rgba(20, 20, 20, 0.7);
  --glass-border: rgba(255, 255, 255, 0.1);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
  --highlight-bg: linear-gradient(135deg, #2a2a1a 0%, #222222 100%);
  --form-status-bg: #1a2a3a;
}

.resume-item--highlight {
  border-left: 3px solid #f7b731 !important;
  background: var(--highlight-bg) !important;
  border-radius: 0 8px 8px 0;
  padding: 16px 18px !important;
}

body {
  font-family: "Open Sans", sans-serif;
  color: var(--text-color);
  background-color: var(--bg-color);
  transition: background-color 0.4s ease, color 0.4s ease;
}

a {
  color: #0563bb;
  text-decoration: none;
}

a:hover {
  color: #067ded;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Raleway", sans-serif;
  color: var(--subtitle-color);
}

/*--------------------------------------------------------------
# Theme & Language Toggles
--------------------------------------------------------------*/
.theme-toggle,
.lang-toggle {
  position: fixed;
  top: 15px;
  z-index: 9999;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  color: var(--text-color);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  font-weight: 700;
  font-size: 14px;
  user-select: none;
}

.theme-toggle {
  right: 20px;
}

.lang-toggle {
  right: 75px;
}

.theme-toggle:hover,
.lang-toggle:hover {
  transform: scale(1.1);
  background: var(--primary-color);
  color: #fff;
}

.theme-toggle i {
  font-size: 20px;
}

[data-theme="dark"] .bi-moon-stars-fill::before {
  content: "\f494"; /* sun icon using bootstrap icons */
}



/*--------------------------------------------------------------
# Back to top button
--------------------------------------------------------------*/
.back-to-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 85px;
  z-index: 996;
  background: #0563bb;
  width: 40px;
  height: 40px;
  border-radius: 50px;
  transition: all 0.4s;
}

.back-to-top i {
  font-size: 28px;
  color: #fff;
  line-height: 0;
}

.back-to-top:hover {
  background: #0678e3;
  color: #fff;
}

.back-to-top.active {
  visibility: visible;
  opacity: 1;
}

/* Mobile-specific override */
@media (max-width: 768px) {
  .back-to-top.active {
    visibility: visible;
    opacity: 0.4;
  }
}

/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  overflow: hidden;
  background: #fff;
}

#preloader:before {
  content: "";
  position: fixed;
  top: calc(50% - 30px);
  left: calc(50% - 30px);
  border: 6px solid #0563bb;
  border-top-color: #fff;
  border-bottom-color: #fff;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: animate-preloader 1s linear infinite;
}

@keyframes animate-preloader {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/*--------------------------------------------------------------
# Disable aos animation delay on mobile devices
--------------------------------------------------------------*/
@media screen and (max-width: 768px) {
  [data-aos-delay] {
    transition-delay: 0 !important;
  }
}

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

@media (max-width: 991px) {
  #header {
    width: 300px;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-right: 1px solid var(--glass-border);
    left: -300px;
  }

  /* Fix 1: Move hamburger to LEFT so it never overlaps the theme/lang toggles on the right */
  .mobile-nav-toggle {
    left: 15px;
    right: auto;
    top: 12px;
  }
}

@media (min-width: 991px) {
  #main {
    margin-left: 100px;
  }
}

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
/**
* Desktop Navigation 
*/
.nav-menu {
  padding: 0;
  display: block;
}

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

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

.nav-menu a,
.nav-menu a:focus {
  display: flex;
  align-items: center;
  color: #45505b;
  padding: 10px 18px;
  margin-bottom: 8px;
  transition: 0.3s;
  font-size: 15px;
  border-radius: 50px;
  background: #f2f3f5;
  height: 56px;
  width: 100%;
  overflow: hidden;
  transition: 0.3s;
}

.nav-menu a i,
.nav-menu a:focus i {
  font-size: 20px;
}

.nav-menu a span,
.nav-menu a:focus span {
  padding: 0 5px 0 7px;
  color: #45505b;
}

@media (min-width: 992px) {

  .nav-menu a,
  .nav-menu a:focus {
    width: 56px;
  }

  .nav-menu a span,
  .nav-menu a:focus span {
    display: none;
    color: #fff;
  }
}

.nav-menu a:hover,
.nav-menu .active,
.nav-menu .active:focus,
.nav-menu li:hover>a {
  color: #fff;
  background: #0563bb;
}

.nav-menu a:hover span,
.nav-menu .active span,
.nav-menu .active:focus span,
.nav-menu li:hover>a span {
  color: #fff;
}

.nav-menu a:hover,
.nav-menu li:hover>a {
  width: 100%;
  color: #fff;
}

.nav-menu a:hover span,
.nav-menu li:hover>a span {
  display: block;
  animation: fadeInRight 0.3s ease;
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}

/**
* Mobile Navigation 
*/
.mobile-nav-toggle {
  position: fixed;
  right: 10px;
  top: 10px;
  z-index: 9998;
  border: 0;
  background: none;
  font-size: 28px;
  transition: all 0.4s;
  outline: none !important;
  line-height: 0;
  cursor: pointer;
  border-radius: 50px;
  padding: 5px;
}

.mobile-nav-toggle i {
  color: #45505b;
}

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

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

.mobile-nav-active .mobile-nav-toggle {
  color: #fff;
  background-color: #0563bb;
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
#hero {
  width: 100%;
  height: 100vh;
  background-color: var(--bg-color); /* Fallback before WebGL loads / theme respects */
  position: relative;
  z-index: 1;
}

@media (min-width: 992px) {
  #hero {
    padding-left: 160px;
  }
}

#hero:before {
  content: "";
  background: var(--glass-bg);
  position: absolute;
  bottom: 0;
  top: 0;
  left: 0;
  right: 0;
  transition: background 0.4s ease;
}

#hero h1 {
  margin: 0;
  font-size: 64px;
  font-weight: 700;
  line-height: 56px;
  color: #45505b;
}

#hero p {
  color: #45505b;
  margin: 15px 0 0 0;
  font-size: 26px;
  font-family: "Poppins", sans-serif;
}

#hero p span {
  color: #0563bb;
  letter-spacing: 1px;
}

#hero .social-links {
  margin-top: 30px;
}

#hero .social-links a {
  font-size: 24px;
  display: inline-block;
  color: #45505b;
  line-height: 1;
  margin-right: 20px;
  transition: 0.3s;
}

#hero .social-links a:hover {
  color: #0563bb;
}

/* Feature #6: Intro Sequence Initial States */
.hero-intro-elem {
  opacity: 0;
  transform: translateY(30px);
  /* Default smooth transition */
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), 
              transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.hero-intro-ready .hero-name {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.1s;
}

.hero-intro-ready .hero-role {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.4s;
}

.hero-intro-ready .hero-socials {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.7s;
}

@media (max-width: 992px) {
  #hero {
    text-align: center;
  }

  #hero h1 {
    font-size: 32px;
    line-height: 36px;
  }

  #hero p {
    margin-top: 10px;
    font-size: 20px;
    line-height: 24px;
  }
}

/*--------------------------------------------------------------
# Sections General
--------------------------------------------------------------*/
section {
  padding: 60px 0;
  overflow: hidden;
  background-color: var(--bg-color);
  position: relative;
}

section .container {
  position: relative;
  z-index: 1; /* Content above kinetic text */
}

.section-title {
  text-align: center;
  padding-bottom: 30px;
}

.section-title h2 {
  font-size: 32px;
  font-weight: bold;
  text-transform: uppercase;
  perspective: 800px; /* enables 3D depth for GSAP rotateX on .char children */
  margin-bottom: 20px;
  padding-bottom: 20px;
  position: relative;
  color: var(--subtitle-color);
}

.section-title h2::before {
  content: "";
  position: absolute;
  display: block;
  width: 120px;
  height: 1px;
  background: #ddd;
  bottom: 1px;
  left: calc(50% - 60px);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1) 0.25s;
}

.section-title h2::after {
  content: "";
  position: absolute;
  display: block;
  width: 40px;
  height: 3px;
  background: #0563bb;
  bottom: 0;
  left: calc(50% - 20px);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1) 0.7s;
}

/* Triggered by IntersectionObserver via JS */
.section-title.title-visible h2::before {
  transform: scaleX(1);
}

.section-title.title-visible h2::after {
  transform: scaleX(1);
}

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

/* GSAP Split Text — individual character spans injected by JS */
.section-title h2 .char {
  display: inline-block;
  will-change: transform, opacity;
}

.section-title h2 .char--space {
  width: 0.35em;
}

/*--------------------------------------------------------------
# Kinetic Background Typography (Feature #11)
--------------------------------------------------------------*/
.kinetic-text {
  position: absolute;
  top: 15%;
  left: -5%; /* Start slightly off-screen */
  font-size: clamp(8rem, 15vw, 20rem);
  font-weight: 900;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 2px var(--subtitle-color);
  opacity: 0.05;
  white-space: nowrap;
  pointer-events: none;
  z-index: 0; /* Place behind section content */
  will-change: transform; /* Hinting for performance */
}

/*--------------------------------------------------------------
# Flashlight Mask Reveal (Feature #12)
--------------------------------------------------------------*/
@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.flashlight-section {
  position: relative;
}

.flashlight-layer {
  position: absolute;
  inset: 0;
  z-index: 0; /* Behind the main content, but shines through */
  background: linear-gradient(45deg, #0563bb, #00FFCC, #FF0055, #0563bb);
  background-size: 400% 400%;
  animation: gradientFlow 10s ease infinite;
  
  /* Mask tracked dynamically by JS */
  mask-image: radial-gradient(circle 250px at var(--mouse-x, -500px) var(--mouse-y, -500px), black 10%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle 250px at var(--mouse-x, -500px) var(--mouse-y, -500px), black 10%, transparent 80%);
  
  opacity: 0.15; /* Subtly illuminates the background */
  pointer-events: none;
}

/*--------------------------------------------------------------
# Cinematic RGB Glitch (Feature #13)
--------------------------------------------------------------*/
@keyframes textGlitch {
  0%   { text-shadow:  2px 0 0 rgba(255,0,85, 0.8), -2px 0 0 rgba(0,255,204,0.8); transform: skewX(-2deg); }
  25%  { text-shadow: -2px 1px 0 rgba(255,0,85, 0.8),  2px -1px 0 rgba(0,255,204,0.8); transform: skewX(1deg); }
  50%  { text-shadow:  3px -2px 0 rgba(255,0,85, 0.8), -3px 2px 0 rgba(0,255,204,0.8); transform: skewX(-1deg); }
  75%  { text-shadow: -1px -1px 0 rgba(255,0,85, 0.8),  1px 1px 0 rgba(0,255,204,0.8); transform: skewX(2deg); }
  100% { text-shadow:  2px 0 0 rgba(255,0,85, 0.8), -2px 0 0 rgba(0,255,204,0.8); transform: skewX(0deg); }
}

.glitch-hover {
  transition: all 0.1s ease;
  display: inline-block;
}

.glitch-hover:hover {
  animation: textGlitch 0.2s steps(4) infinite;
  color: #fff; /* Ensures vivid glitching against background */
}

/*--------------------------------------------------------------
# Velocity-Based Fluid Divider (Feature #14)
--------------------------------------------------------------*/
.fluid-divider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  transform: translateY(-90%); /* Pull it up specifically into the Hero section visually */
  z-index: 10;
  pointer-events: none;
}

.fluid-divider path {
  transition: d 0.1s;
}

/*--------------------------------------------------------------
# About
--------------------------------------------------------------*/
.about .content h3 {
  font-weight: 700;
  font-size: 26px;
  color: var(--subtitle-color); 
  margin-bottom: 20px;
}

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

.about .content ul li {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.about .content ul strong {
  margin-right: 10px;
  color: var(--subtitle-color);
}

.about .content ul i {
  font-size: 18px;
  margin-right: 15px;
  color: #0563bb;
  transition: 0.3s;
}

.about .content ul li:hover {
  border-left: 2px dashed #0563bb;
  background: rgba(5, 99, 187, 0.02);
  transform: translateX(5px);
}

.about .content ul li:hover i {
  color: #ffbb2c; 
}


/*--------------------------------------------------------------
# Facts
--------------------------------------------------------------*/
.facts .count-box {
  padding: 30px 30px 25px 30px;
  margin-top: 30px;
  width: 100%;
  position: relative;
  text-align: center;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.facts .count-box:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.facts .count-box i {
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 24px;
  background: #0563bb;
  color: #fff;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
}

.facts .count-box span {
  font-size: 36px;
  display: block;
  font-weight: 600;
  color: #011426;
}

.facts .count-box p {
  padding: 0;
  margin: 0;
  font-family: "Raleway", sans-serif;
  font-size: 14px;
}

/*--------------------------------------------------------------
# skills
--------------------------------------------------------------*/
.skills .progress {
  height: 60px;
  display: block;
  background: none;
  border-radius: 0;
}

.skills .progress .skill {
  padding: 10px 0;
  margin: 0;
  text-transform: uppercase;
  display: block;
  font-weight: 600;
  font-family: "Poppins", sans-serif;
  color: var(--subtitle-color);
}

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

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

.skills .progress-bar {
  width: 1px;
  height: 10px;
  transition: 0.9s;
  background-color: #0563bb;
}

/*--------------------------------------------------------------
# Resume 
--------------------------------------------------------------*/
.resume .resume-title {
  font-size: 26px;
  font-weight: 700;
  margin-top: 20px;
  margin-bottom: 25px;
  color: var(--subtitle-color);
  display: flex;
  align-items: center;
}

.resume .resume-title i {
  font-size: 24px;
  margin-right: 15px;
  color: #0563bb;
}

.resume .resume-item {
  padding: 0 0 35px 30px;
  margin-top: -2px;
  border-left: 2px dashed #0563bb;
  position: relative;
  transition: all 0.3s ease-in-out;
}

.resume .resume-item h4 {
  line-height: 18px;
  font-size: 19px;
  font-weight: 700;
  text-transform: uppercase;
  font-family: "Poppins", sans-serif;
  color: #0563bb;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.resume .resume-item h5 {
  font-size: 13px;
  background: rgba(5, 99, 187, 0.06);
  padding: 4px 16px;
  display: inline-block;
  font-weight: 700;
  margin-bottom: 15px;
  color: #0563bb;
  border-radius: 4px;
  border: 1px solid rgba(5, 99, 187, 0.1);
  text-transform: uppercase;
}

.resume .resume-item ul {
  padding-left: 20px;
  list-style: none;
}

.resume .resume-item ul li {
  padding-bottom: 12px;
  position: relative;
}

.resume .resume-item ul li::before {
  content: "▹";
  position: absolute;
  left: -20px;
  color: #0563bb;
  font-weight: bold;
}

.resume .resume-item:last-child {
  padding-bottom: 0;
  border-left: 2px dashed transparent; 
}

.resume .resume-item::before {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50px;
  left: -8px;
  top: 0;
  background: #0563bb;
  border: 3px solid #fff;
  box-shadow: 0 0 0 3px rgba(5, 99, 187, 0.2);
  transition: all 0.3s ease;
}

.resume .resume-item:hover::before {
  background: #ffbb2c; 
  transform: scale(1.3);
  box-shadow: 0 0 15px rgba(5, 99, 187, 0.5);
}

.resume .resume-item a {
  color: #0563bb;
  font-weight: 700;
  transition: 0.3s;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.resume .resume-item a:hover {
  border-bottom: 1px solid #0563bb;
  color: #ffbb2c;
}

.resume .badge {
  background-color: #0563bb !important;
  font-weight: 500;
  padding: 8px 15px;
  border-radius: 4px;
  margin-right: 5px;
  margin-bottom: 5px;
}

.asyst-tech {
  color: #0563bb;
  font-weight: 700;
  border-bottom: 2px solid #ffbb2c;
}

/*--------------------------------------------------------------
# Portfolio
--------------------------------------------------------------*/
.portfolio .portfolio-item {
  margin-bottom: 30px;
}

.portfolio #portfolio-flters {
  padding: 0;
  margin: 0 auto 25px auto;
  list-style: none;
  text-align: center;
  background: #fff;
  border-radius: 50px;
  padding: 2px 15px;
}

.portfolio #portfolio-flters li {
  cursor: pointer;
  display: inline-block;
  padding: 10px 15px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
  color: #272829;
  margin-bottom: 5px;
  transition: all 0.3s ease-in-out;
}

.portfolio #portfolio-flters li:hover,
.portfolio #portfolio-flters li.filter-active {
  color: #0563bb;
}

.portfolio #portfolio-flters li:last-child {
  margin-right: 0;
}

.portfolio .portfolio-wrap {
  transition: 0.3s;
  position: relative;
  overflow: hidden;
  z-index: 1;
  background: rgba(69, 80, 91, 0.8);
}

.portfolio .portfolio-wrap::before {
  content: "";
  background: rgba(255, 255, 255, 0.7);
  position: absolute;
  left: 30px;
  right: 30px;
  top: 30px;
  bottom: 30px;
  transition: all ease-in-out 0.3s;
  z-index: 2;
  opacity: 0;
}

.portfolio .portfolio-wrap .portfolio-info {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  text-align: center;
  z-index: 3;
  transition: all ease-in-out 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.portfolio .portfolio-wrap .portfolio-info::before {
  display: block;
  content: "";
  width: 48px;
  height: 48px;
  position: absolute;
  top: 35px;
  left: 35px;
  border-top: 3px solid #d7dce1;
  border-left: 3px solid #d7dce1;
  transition: all 0.5s ease 0s;
  z-index: 9994;
}

.portfolio .portfolio-wrap .portfolio-info::after {
  display: block;
  content: "";
  width: 48px;
  height: 48px;
  position: absolute;
  bottom: 35px;
  right: 35px;
  border-bottom: 3px solid #d7dce1;
  border-right: 3px solid #d7dce1;
  transition: all 0.5s ease 0s;
  z-index: 9994;
}

.portfolio .portfolio-wrap .portfolio-info h4 {
  font-size: 20px;
  color: #45505b;
  font-weight: 600;
}

.portfolio .portfolio-item .portfolio-info h4 {
  font-size: 14px;
  color: #fff;
  font-weight: 600;
}

.portfolio .portfolio-item.filter-card .portfolio-wrap img {
  max-height: 300px;
  width: 100%;
  object-fit: cover;
  object-position: top;
}

.portfolio .portfolio-wrap .portfolio-info p {
  color: #45505b;
  font-size: 14px;
  text-transform: uppercase;
  padding: 0;
  margin: 0;
}

.portfolio .portfolio-wrap .portfolio-links {
  text-align: center;
  z-index: 4;
}

.portfolio .portfolio-wrap .portfolio-links a {
  color: #45505b;
  margin: 0 2px;
  font-size: 28px;
  display: inline-block;
  transition: 0.3s;
}

.portfolio .portfolio-wrap .portfolio-links a:hover {
  color: #148af9;
}

.portfolio .portfolio-wrap:hover::before {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 1;
}

.portfolio .portfolio-wrap:hover .portfolio-info {
  opacity: 1;
}

.portfolio .portfolio-wrap:hover .portfolio-info::before {
  top: 15px;
  left: 15px;
}

/* #projects styles are now in featured.css */

.portfolio .portfolio-wrap:hover .portfolio-info::after {
  bottom: 15px;
  right: 15px;
}

/*--------------------------------------------------------------
# Portfolio Details
--------------------------------------------------------------*/
.portfolio-details {
  padding-top: 40px;
}

.portfolio-details .portfolio-details-slider img {
  width: 100%;
}

.portfolio-details .portfolio-details-slider .swiper-pagination {
  margin-top: 20px;
  position: relative;
}

.portfolio-details .portfolio-details-slider .swiper-slide img {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
}

.portfolio-details .portfolio-details-slider .swiper-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background-color: #fff;
  opacity: 1;
  border: 1px solid #0563bb;
}

.portfolio-details .portfolio-details-slider .swiper-pagination .swiper-pagination-bullet-active {
  background-color: #0563bb;
}

.portfolio-details .swiper-slide .portfolio-item {
  width: 100%;
  margin-bottom: 0; /* Remove bottom margin inside slider */
}

/* Custom styles for portfolio info inside the details slider */
.portfolio-details .portfolio-item .portfolio-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.portfolio-details .portfolio-item .portfolio-info h4 {
  font-size: 1.2rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.portfolio-details .portfolio-item .portfolio-links a {
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  background-color: rgba(5, 99, 187, 0.8);
  border-radius: 50%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.3s;
}

.portfolio-details .portfolio-item .portfolio-links a:hover {
  background-color: #0563bb;
}

.portfolio-details .portfolio-info {
  padding: 30px;
  box-shadow: 0px 0 30px rgba(69, 80, 91, 0.08);
}

.portfolio-details .portfolio-info h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.portfolio-details .portfolio-info ul {
  list-style: none;
  padding: 0;
  font-size: 15px;
}

.portfolio-details .portfolio-info ul li+li {
  margin-top: 10px;
}

.portfolio-details .portfolio-description {
  padding-top: 30px;
}

.portfolio-details .portfolio-description h2 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 20px;
}

.portfolio-details .portfolio-description p {
  padding: 0;
}

/*--------------------------------------------------------------
# Services
--------------------------------------------------------------*/
.services .icon-box {
  text-align: center;
  padding: 70px 20px 80px 20px;
  transition: var(--transition);
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
  border-radius: 15px;
}

.services .icon-box .icon {
  margin: 0 auto;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: ease-in-out 0.3s;
  position: relative;
}

.services .icon-box .icon i {
  font-size: 36px;
  transition: 0.5s;
  position: relative;
}

.services .icon-box .icon svg {
  position: absolute;
  top: 0;
  left: 0;
}

.services .icon-box .icon svg path {
  transition: 0.5s;
  fill: #f5f5f5;
}

.services .icon-box h4 {
  font-weight: 600;
  margin: 10px 0 15px 0;
  font-size: 22px;
}

.services .icon-box h4 a {
  color: #45505b;
  transition: ease-in-out 0.3s;
}

.services .icon-box p {
  line-height: 24px;
  font-size: 14px;
  margin-bottom: 0;
}

.services .icon-box:hover {
  transform: translateY(-8px);
  border-color: var(--primary-color);
  box-shadow: var(--shadow-md);
  background: var(--card-bg);
}

.services .iconbox-blue i {
  color: #47aeff;
}

.services .iconbox-blue:hover .icon i {
  color: #fff;
}

.services .iconbox-blue:hover .icon path {
  fill: #47aeff;
}

.services .iconbox-orange i {
  color: #ffa76e;
}

.services .iconbox-orange:hover .icon i {
  color: #fff;
}

.services .iconbox-orange:hover .icon path {
  fill: #ffa76e;
}

.services .iconbox-pink i {
  color: #e80368;
}

.services .iconbox-pink:hover .icon i {
  color: #fff;
}

.services .iconbox-pink:hover .icon path {
  fill: #e80368;
}

.services .iconbox-yellow i {
  color: #ffbb2c;
}

.services .iconbox-yellow:hover .icon i {
  color: #fff;
}

.services .iconbox-yellow:hover .icon path {
  fill: #ffbb2c;
}

.services .iconbox-red i {
  color: #ff5828;
}

.services .iconbox-red:hover .icon i {
  color: #fff;
}

.services .iconbox-red:hover .icon path {
  fill: #ff5828;
}

.services .iconbox-teal i {
  color: #11dbcf;
}

.services .iconbox-teal:hover .icon i {
  color: #fff;
}

.services .iconbox-teal:hover .icon path {
  fill: #11dbcf;
}

/*--------------------------------------------------------------
# System Architecture
--------------------------------------------------------------*/
.architecture {
  padding: 60px 0;
}

.architecture .card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 12px;
}

.architecture .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1) !important;
}

.architecture .architecture-placeholder {
  transition: border-color 0.3s ease;
}

.architecture .card:hover .architecture-placeholder {
  border-color: #0563bb !important;
}

/*--------------------------------------------------------------
# Testimonials
--------------------------------------------------------------*/
.testimonials .section-header {
  margin-bottom: 40px;
}

.testimonials .testimonials-carousel,
.testimonials .testimonials-slider {
  overflow: hidden;
}

.testimonials .testimonial-item {
  text-align: center;
}

.testimonials .testimonial-item .testimonial-img {
  width: 120px;
  border-radius: 50%;
  border: 4px solid #fff;
  margin: 0 auto;
}

.testimonials .testimonial-item h3 {
  font-size: 20px;
  font-weight: bold;
  margin: 10px 0 5px 0;
  color: var(--text-color);
}

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

.testimonials .testimonial-item .quote-icon-left,
.testimonials .testimonial-item .quote-icon-right {
  color: #90c8fc;
  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 auto 15px auto;
}

.testimonials .swiper-pagination {
  margin-top: 20px;
  position: relative;
}

.testimonials .swiper-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background-color: #fff;
  opacity: 1;
  border: 1px solid #0563bb;
}

.testimonials .swiper-pagination .swiper-pagination-bullet-active {
  background-color: #0563bb;
}

@media (min-width: 992px) {
  .testimonials .testimonial-item p {
    width: 80%;
  }
}

/*--------------------------------------------------------------
# Contact
--------------------------------------------------------------*/
.contact .info {
  width: 100%;
  background: var(--card-bg);
  padding: 30px;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-sm);
}

.contact .info i {
  font-size: 20px;
  color: #0563bb;
  float: left;
  width: 44px;
  height: 44px;
  background: var(--form-status-bg);
  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: var(--subtitle-color);
}

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

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

.contact .info .email:hover i,
.contact .info .address:hover i,
.contact .info .phone:hover i {
  background: #0563bb;
  color: #fff;
}

.contact .php-email-form {
  width: 100%;
  background: var(--card-bg);
  padding: 30px;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-sm);
}

.contact .php-email-form .form-group {
  padding-bottom: 8px;
}

.contact .php-email-form .error-message {
  display: none;
  color: #fff;
  background: #ed3c0d;
  text-align: left;
  padding: 15px;
  font-weight: 600;
}

.contact .php-email-form .error-message br+br {
  margin-top: 25px;
}

.contact .php-email-form .sent-message {
  display: none;
  color: #fff;
  background: #18d26e;
  text-align: center;
  padding: 15px;
  font-weight: 600;
}

.contact .php-email-form .loading {
  display: none;
  background: #fff;
  text-align: center;
  padding: 15px;
}

.contact .php-email-form .loading:before {
  content: "";
  display: inline-block;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  margin: 0 10px -6px 0;
  border: 3px solid #18d26e;
  border-top-color: #eee;
  animation: animate-loading 1s linear infinite;
}

.contact .php-email-form input,
.contact .php-email-form textarea {
  border-radius: 4px;
  box-shadow: none;
  font-size: 14px;
  background: var(--bg-color);
  border: 1px solid var(--card-border);
  color: var(--text-color);
}

.contact .php-email-form input[type=text],
.contact .php-email-form input[type=email] {
  height: 44px;
}

.contact .php-email-form input::placeholder,
.contact .php-email-form textarea::placeholder {
  color: var(--text-color);
  opacity: 0.6;
}


.contact .php-email-form textarea {
  padding: 10px 12px;
}

.contact .php-email-form button[type=submit] {
  background: #0563bb;
  border: 0;
  padding: 10px 35px;
  color: #fff;
  transition: 0.4s;
  border-radius: 50px;
}

.contact .php-email-form button[type=submit]:hover {
  background: #0678e3;
}

#form-status {
  color: var(--primary-color);
  text-align: center;
  padding: 15px;
  font-weight: 600;
  background: var(--form-status-bg);
  border-radius: 4px;
  transition: var(--transition);
}

.typedDatas {
  color: #0563bb;
  font-weight: 600;
}

@keyframes animate-loading {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
#footer {
  background: var(--section-bg);
  color: var(--text-color);
  font-size: 14px;
  text-align: center;
  padding: 30px 0;
  border-top: 1px solid var(--card-border);
}

#footer h3 {
  font-size: 36px;
  font-weight: 700;
  position: relative;
  font-family: "Poppins", sans-serif;
  padding: 0;
  margin: 0 0 15px 0;
}

#footer p {
  font-size: 15;
  font-style: italic;
  padding: 0;
  margin: 0 0 40px 0;
}

#footer .social-links {
  margin: 0 0 40px 0;
}

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

#footer .social-links a:hover {
  background: #ffbb2c;
  color: #fff;
  box-shadow: 0 0 10px rgba(255, 187, 44, 0.5);
  transform: translateY(-3px);
}

#footer .copyright {
  margin: 0 0 5px 0;
}

#footer .credits {
  font-size: 13px;
}
/* Featured Project styles moved to featured.css */

/*--------------------------------------------------------------
# Live Counter Loading Pulse
--------------------------------------------------------------*/
.live-counter.is-loading {
  display: inline-block;
  width: 50px;
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, #e0e7ef 25%, #f0f4f8 50%, #e0e7ef 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
  vertical-align: middle;
  margin: 10px 0;
}

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/*--------------------------------------------------------------
# CV Download Badges
--------------------------------------------------------------*/
.cv-downloads {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 18px;
}

.cv-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
  border: 2px solid transparent;
}

.cv-badge i {
  font-size: 16px;
}

.cv-badge--primary {
  background: #0563bb;
  color: #fff;
  border-color: #0563bb;
}

.cv-badge--primary:hover {
  background: #0452a0;
  border-color: #0452a0;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(5, 99, 187, 0.35);
}

.cv-badge--outline {
  background: transparent;
  color: #0563bb;
  border-color: #0563bb;
}

.cv-badge--outline:hover {
  background: #0563bb;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(5, 99, 187, 0.35);
}

/*--------------------------------------------------------------
# Thinking Section
--------------------------------------------------------------*/
.thinking {
  padding: 60px 0;
}

.thinking .section-title {
  padding-bottom: 20px;
}

/*--------------------------------------------------------------
# GitHub Activity Dashboard
--------------------------------------------------------------*/
.github-dashboard {
  margin-top: 50px;
}

.github-dashboard h5 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 25px;
  color: var(--primary-color);
}

.github-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.github-card-item {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 10px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.github-card-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.github-card-item img {
  max-width: 100%;
  height: auto;
}

/* Live Repositories List */
.github-live-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 15px;
  text-align: left;
}

.repo-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 20px;
  border-radius: 12px;
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.repo-item:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-sm);
}

.repo-item h6 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--subtitle-color);
}

.repo-item h6 i {
  color: var(--primary-color);
  margin-right: 8px;
}

.repo-item p {
  margin: 0;
  font-size: 13px;
  color: var(--text-color);
  opacity: 0.8;
  line-height: 1.4;
  flex-grow: 1;
}

.repo-meta {
  display: flex;
  gap: 12px;
  font-size: 11px;
  font-weight: 600;
  color: var(--primary-color);
  margin-top: 5px;
}

.repo-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/*--------------------------------------------------------------
# Responsive Fixes — Mobile-First Audit (2026)
--------------------------------------------------------------*/

/* Fix 3 — Section padding too large on mobile */
@media (max-width: 767px) {
  section {
    padding: 40px 0;
  }
}

/* Fix 4 — Hero font sizes: add small-phone breakpoint */
@media (max-width: 576px) {
  #hero h1 {
    font-size: 26px;
    line-height: 32px;
  }

  #hero p {
    font-size: 16px;
    line-height: 22px;
  }
}

/* Fix 5 — Resume timeline left padding crushes content on mobile */
@media (max-width: 767px) {
  .resume .resume-item {
    padding: 0 0 25px 18px;
  }
}

/* Fix 6 — Back-to-top button too high on mobile (85px → 25px from bottom) */
@media (max-width: 767px) {
  .back-to-top {
    bottom: 25px;
  }
}

/* Fix 7 — Services icon box too large + excessive padding on mobile */
@media (max-width: 767px) {
  .services .icon-box {
    padding: 40px 20px 50px 20px;
  }

  .services .icon-box .icon {
    width: 70px;
    height: 70px;
  }

  .services .icon-box .icon i {
    font-size: 28px;
  }
}

/* Fix 8 — CV modal max-width: prevent horizontal scroll on small phones */
.cv-modal__inner {
  max-width: min(900px, calc(100vw - 32px)) !important;
}

/* Fix 9 — Project card Swiper: add intermediate width for 480px–767px phones */
@media (min-width: 480px) and (max-width: 767px) {
  .projects-slider .swiper-slide {
    width: 380px;
  }
}

/* Fix 10 — Skills badges: tighter padding on very small screens */
@media (max-width: 576px) {
  .badge {
    padding: 0.3rem 0.5rem !important;
    font-size: 0.7rem !important;
  }
}


