/* ===========================
   LOADER CAPTIVANT
   =========================== */
#loader {
  position: fixed;
  z-index: 999999;
  inset: 0;
  background: #030b18;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  overflow: hidden;
  transition: opacity 0.8s cubic-bezier(.4,0,.2,1), visibility 0.8s, transform 0.8s cubic-bezier(.4,0,.2,1);
}
#loader.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(1.06);
}
/* Ambient glow orbs */
#loader::before,
#loader::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
#loader::before {
  width: 600px; height: 600px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(20,157,221,0.10) 0%, transparent 60%);
  animation: ld-orb 4s ease-in-out infinite alternate;
}
#loader::after {
  width: 350px; height: 350px;
  top: 35%; left: 65%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(4,76,170,0.18) 0%, transparent 60%);
  animation: ld-orb 3s ease-in-out infinite alternate-reverse;
}
@keyframes ld-orb {
  from { transform: translate(-50%,-50%) scale(0.8); }
  to   { transform: translate(-50%,-50%) scale(1.3); }
}
/* Floating particles */
.ld-particles { position: absolute; inset: 0; pointer-events: none; }
.ld-particles span {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  animation: ld-float linear infinite;
}
.ld-particles span:nth-child(1) { left:8%;  top:72%; width:4px; height:4px; background:#149ddd; animation-duration:7s;   animation-delay:0s;   }
.ld-particles span:nth-child(2) { left:22%; top:55%; width:3px; height:3px; background:#ffd740; animation-duration:9.5s; animation-delay:1.2s; }
.ld-particles span:nth-child(3) { left:78%; top:78%; width:5px; height:5px; background:#149ddd; animation-duration:6.5s; animation-delay:0.6s; }
.ld-particles span:nth-child(4) { left:88%; top:18%; width:3px; height:3px; background:#ffd740; animation-duration:8s;   animation-delay:2.1s; }
.ld-particles span:nth-child(5) { left:52%; top:12%; width:6px; height:6px; background:#ffd740; animation-duration:10s;  animation-delay:1.7s; }
.ld-particles span:nth-child(6) { left:38%; top:88%; width:3px; height:3px; background:#149ddd; animation-duration:7.5s; animation-delay:3.2s; }
.ld-particles span:nth-child(7) { left:92%; top:62%; width:4px; height:4px; background:#ffd740; animation-duration:5.5s; animation-delay:0.4s; }
.ld-particles span:nth-child(8) { left:4%;  top:32%; width:5px; height:5px; background:#ffd740; animation-duration:8.5s; animation-delay:2.8s; }
@keyframes ld-float {
  0%   { transform: translateY(0)      scale(1);   opacity: 0; }
  12%  { opacity: 0.75; }
  88%  { opacity: 0.75; }
  100% { transform: translateY(-130px) scale(0.2); opacity: 0; }
}
/* Center container */
.ld-center {
  position: relative;
  width: 160px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
/* Spinning ring wrapper (delayed until arc is drawn) */
.ld-ring {
  position: absolute;
  inset: 0;
  animation: ld-ring-spin 2.5s linear 2s infinite;
}
@keyframes ld-ring-spin {
  to { transform: rotate(360deg); }
}
.ld-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.ld-track {
  fill: none;
  stroke: rgba(255,255,255,0.06);
  stroke-width: 2.5;
}
.ld-arc {
  fill: none;
  stroke: url(#ldg);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 440;
  stroke-dashoffset: 440;
  animation: ld-draw 1.6s cubic-bezier(.4,0,.2,1) 0.3s forwards;
}
@keyframes ld-draw {
  to { stroke-dashoffset: 0; }
}
/* Inner glow disk */
.ld-inner-glow {
  position: absolute;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20,157,221,0.12) 0%, transparent 70%);
  animation: ld-glow 2s ease-in-out infinite alternate;
}
@keyframes ld-glow {
  from { transform: scale(0.9); opacity: 0.6; }
  to   { transform: scale(1.15); opacity: 1; }
}
/* Monogram */
.ld-monogram {
  display: flex;
  align-items: center;
  gap: 2px;
  z-index: 2;
  position: relative;
}
.ld-monogram span {
  font-family: 'Raleway', 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 40px;
  line-height: 1;
  animation: ld-monogram-pop 0.6s cubic-bezier(.175,.885,.32,1.275) both,
             ld-monogram-glow 2s ease-in-out 1.5s infinite alternate;
}
.ld-monogram span:nth-child(1) { color: #149ddd; animation-delay: 0.7s, 1.5s; }
.ld-monogram span:nth-child(2) { color: #ffd740; animation-delay: 0.9s, 1.7s; }
@keyframes ld-monogram-pop {
  from { opacity: 0; transform: scale(0.3); filter: blur(8px); }
  to   { opacity: 1; transform: scale(1);   filter: blur(0); }
}
@keyframes ld-monogram-glow {
  from { text-shadow: 0 0 10px currentColor; }
  to   { text-shadow: 0 0 28px currentColor, 0 0 55px currentColor; }
}
/* Name — letters staggered */
.ld-name {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  z-index: 1;
}
.ld-name span {
  font-family: 'Raleway', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  display: inline-block;
  opacity: 0;
  animation: ld-letter 0.35s ease forwards;
}
@keyframes ld-letter {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* Progress bar with shimmer */
.ld-bar {
  width: 130px;
  height: 2px;
  background: rgba(255,255,255,0.08);
  border-radius: 10px;
  overflow: hidden;
  z-index: 1;
}
.ld-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #149ddd, #ffd740);
  border-radius: 10px;
  position: relative;
  transition: width 0.35s cubic-bezier(.4,0,.2,1);
}
.ld-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.7) 50%, transparent 100%);
  animation: ld-shimmer 1.5s ease-in-out 0.8s infinite;
}
@keyframes ld-shimmer {
  from { transform: translateX(-150%); }
  to   { transform: translateX(250%); }
}

:root {
  --bg: #ffffff;
  --primary: #149ddd;
  --primary-600: #0b83bb;
  --accent: #173b6c;
  --muted: #d7d8df;
  --text: #272829;
  --panel: #f5f8fd;
  --card-shadow: rgba(0, 0, 0, 0.08);
  --header-bg: #044caa;
  --radius: 6px;
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  font-family: "Open Sans", sans-serif;
  color: var(--text);
}

/* Skip to content link (accessibility) */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 100000;
  padding: 8px 16px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
}

/* Global focus style */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

a {
  color: var(--primary);
}

a:hover {
  color: #37b3ed;
  text-decoration: none;
}

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

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

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

.back-to-top:hover {
  color: #fff;
  background: var(--primary-600);
  transition: background 0.2s ease-in-out;
}

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

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

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

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

#header .profile .social-links a:hover {
  background: var(--primary);
  color: #fff;
  text-decoration: none;
}

#main {
  margin-left: 300px;
}

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

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

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

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

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

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

.nav-menu a:hover, .nav-menu .active > a, .nav-menu li:hover > a {
  text-decoration: none;
  color: #fff;
}

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

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

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

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

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

.mobile-nav-active .mobile-nav-toggle i {
  color: #fff;
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
#hero {
  width: 100%;
  height: 100vh;
  background: url("../img/hero-bg.jpg") top center;
  background-size: cover;
}

#hero:before {
  content: "";
  background: rgba(5, 13, 24, 0.3);
  position: absolute;
  bottom: 0;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1;
}

#hero .hero-container {
  position: relative;
  z-index: 2;
}

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

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

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

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

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

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

.section-bg {
  background: var(--panel);
}

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

.section-title h2 {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 20px;
  padding-bottom: 20px;
  position: relative;
  color: var(--accent);
}

.section-title h2::after {
  content: '';
  position: absolute;
  display: block;
  width: 50px;
  height: 3px;
  background: var(--primary);
  bottom: 0;
  left: 0;
}

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

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

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

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

.about .content ul i {
  font-size: 20px;
  padding-right: 2px;
  color: var(--primary);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

/*--------------------------------------------------------------
# Resume
--------------------------------------------------------------*/
.resume .resume-title {
  font-size: 26px;
  font-weight: 700;
  margin-top: 20px;
  margin-bottom: 20px;
  color: #050d18;
}

.resume .resume-item {
  padding: 0 0 20px 20px;
  margin-top: -2px;
  border-left: 2px solid #1f5297;
  position: relative;
}

.resume .resume-item h4 {
  line-height: 18px;
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  font-family: "Poppins", sans-serif;
  color: #050d18;
  margin-bottom: 10px;
}

.resume .resume-item h5 {
  font-size: 16px;
  background: #e4edf9;
  padding: 5px 15px;
  display: inline-block;
  font-weight: 600;
  margin-bottom: 10px;
}

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

.resume .resume-item ul li {
  padding-bottom: 10px;
}

.resume .resume-item:last-child {
  padding-bottom: 0;
}

.resume .resume-item::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50px;
  left: -9px;
  top: 0;
  background: #fff;
  border: 2px solid #1f5297;
}

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

.portfolio #portfolio-flters {
  padding: 0;
  margin: 0 auto 35px 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 8px 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: var(--primary);
}

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

.portfolio .portfolio-wrap {
  transition: 0.3s;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

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

.portfolio .portfolio-wrap .portfolio-links {
  opacity: 1;
  left: 0;
  right: 0;
  bottom: -60px;
  z-index: 3;
  position: absolute;
  transition: all ease-in-out 0.3s;
  display: flex;
  justify-content: center;
}

.portfolio .portfolio-wrap .portfolio-links a {
  color: #fff;
  font-size: 28px;
  text-align: center;
  background: rgba(20, 157, 221, 0.75);
  transition: 0.3s;
  width: 50%;
}

.portfolio .portfolio-wrap .portfolio-links a:hover {
  background: rgba(20, 157, 221, 0.95);
}

.portfolio .portfolio-wrap .portfolio-links a + a {
  border-left: 1px solid #37b3ed;
}

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

.portfolio .portfolio-wrap:hover .portfolio-links {
  opacity: 1;
  bottom: 0;
}

/*--------------------------------------------------------------
# Services
--------------------------------------------------------------*/
.services .icon-box {
  margin-bottom: 20px;
}

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

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

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

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

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

.services .title a {
  color: #343a40;
}

.services .title a:hover {
  color: var(--primary);
}

.services .description {
  margin-left: 80px;
  line-height: 24px;
  font-size: 14px;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

/*--------------------------------------------------------------
# Contact
--------------------------------------------------------------*/
.contact {
  padding-bottom: 130px;
}

.contact .info {
  padding: 30px;
  background: #fff;
  width: 100%;
  box-shadow: 0 0 24px 0 rgba(0, 0, 0, 0.12);
}

.contact .info i {
  font-size: 20px;
  color: var(--primary);
  float: left;
  width: 44px;
  height: 44px;
  background: #dff3fc;
  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: #050d18;
}

.contact .info p {
  padding: 0 0 10px 60px;
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--accent);
}

.contact .info .email p {
  padding-top: 5px;
}

.contact .info .social-links {
  padding-left: 60px;
}

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

.contact .info .social-links a:hover {
  background: var(--primary);
  color: #fff;
}

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

.contact .php-email-form {
  width: 100%;
  padding: 30px;
  background: #fff;
  box-shadow: 0 0 24px 0 rgba(0, 0, 0, 0.12);
}

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

.contact .php-email-form .validate {
  display: none;
  color: red;
  margin: 0 0 15px 0;
  font-weight: 400;
  font-size: 13px;
}

.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;
  -webkit-animation: animate-loading 1s linear infinite;
  animation: animate-loading 1s linear infinite;
}

.contact .php-email-form input, .contact .php-email-form textarea {
  border-radius: 0;
  box-shadow: none;
  font-size: 14px;
}

.contact .php-email-form input {
  height: 44px;
}

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

.contact .php-email-form button[type="submit"] {
  background: var(--primary);
  border: 0;
  padding: 10px 24px;
  color: #fff;
  transition: 0.4s;
  border-radius: 4px;
}

.contact .php-email-form button[type="submit"]:hover {
  background: #37b3ed;
}

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

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

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

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

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

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

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

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

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

.portfolio-details .portfolio-details-container {
  position: relative;
}

.portfolio-details .portfolio-details-carousel {
  position: relative;
  z-index: 1;
}

.portfolio-details .portfolio-details-carousel .owl-nav, .portfolio-details .portfolio-details-carousel .owl-dots {
  margin-top: 5px;
  text-align: left;
}

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

.portfolio-details .portfolio-details-carousel .owl-dot.active {
  background-color: var(--primary) !important;
}

.portfolio-details .portfolio-info {
  padding: 30px;
  position: absolute;
  right: 0;
  bottom: -70px;
  background: #fff;
  box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.1);
  z-index: 2;
}

.portfolio-details .portfolio-info h3 {
  font-size: 22px;
  font-weight: 400;
  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: 50px;
}

/*--------------------------------------------------------------
# Mini Game
--------------------------------------------------------------*/
.game .game-wrapper {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 6px 32px rgba(0, 0, 0, 0.25);
  background: #1a1a2e;
}

.game .game-hud {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: linear-gradient(135deg, #16213e 0%, #0f3460 100%);
  color: #e0e0e0;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 13px;
  gap: 8px;
}

.game .game-hud-left,
.game .game-hud-center,
.game .game-hud-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.game .game-hud-center {
  flex-direction: column;
  gap: 2px;
}

.game .game-lives i {
  color: #e53935;
  font-size: 16px;
  margin-right: 2px;
  transition: opacity 0.3s;
}

.game .game-lives i.lost {
  opacity: 0.2;
}

.game .game-coins i {
  color: #ffd740;
  font-size: 16px;
}

.game .game-coins span,
.game .game-score span,
.game .game-best span {
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}

.game .game-best i {
  color: #ffd740;
  font-size: 14px;
}

.game .game-level {
  color: #76ff03;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.game .game-combo {
  color: #ffd740;
  font-size: 12px;
  font-weight: 700;
  animation: comboPulse 0.4s ease-in-out;
}

@keyframes comboPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.3); }
}

.game .game-powerup-bar {
  height: 4px;
  background: #16213e;
  position: relative;
  overflow: hidden;
}

.game .game-powerup-bar.hidden {
  display: none;
}

.game .game-powerup-fill {
  height: 100%;
  background: linear-gradient(90deg, #76ff03, #ffd740);
  transition: width 0.1s linear;
  border-radius: 0 2px 2px 0;
}

.game .game-powerup-bar span {
  position: absolute;
  right: 8px;
  top: -14px;
  font-size: 10px;
  color: #76ff03;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
}

.game #gameCanvas {
  display: block;
  width: 100%;
  height: auto;
  cursor: pointer;
  background: #1a1a2e;
}

.game .game-overlay {
  position: absolute;
  inset: 0;
  background: rgba(22, 33, 62, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: opacity 0.3s;
  backdrop-filter: blur(4px);
}

.game .game-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.game .game-overlay-content {
  text-align: center;
  color: #fff;
}

.game .game-overlay-content i {
  font-size: 64px;
  color: var(--primary);
  display: block;
  margin-bottom: 12px;
}

.game .game-overlay-content p {
  font-size: 20px;
  margin-bottom: 8px;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
}

.game .game-overlay-stats {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 14px;
  color: #b0bec5;
  font-family: "Poppins", sans-serif;
}

.game .game-overlay-stats.hidden {
  display: none;
}

.game .game-overlay-stats i {
  font-size: 16px;
  display: inline;
  margin-bottom: 0;
  color: #ffd740;
}


.game .game-btn {
  background: #2e7d32;
  color: #fff;
  border: none;
  padding: 12px 40px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
  font-family: "Poppins", sans-serif;
  box-shadow: 0 4px 16px rgba(46, 125, 50, 0.4);
}

.game .game-btn:hover {
  background: #1b5e20;
  transform: scale(1.05);
  box-shadow: 0 6px 24px rgba(46, 125, 50, 0.55);
}

.game .game-overlay-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 8px;
}


.game .game-btn-share {
  background: #1565c0;
  color: #fff;
  box-shadow: 0 4px 16px rgba(21, 101, 192, 0.4);
  padding: 12px 28px;
}

.game .game-btn-share i {
  color: #fff;
}
.game .game-overlay-content > .bx-game#gameOverlayIcon {
  color: #149ddd;
  font-size: 3.2rem;
  filter: drop-shadow(0 2px 8px #149ddd44);
  margin-bottom: 8px;
}

.game .game-btn-share:hover {
  background: #0d47a1;
  box-shadow: 0 6px 24px rgba(21, 101, 192, 0.55);
}

.game .game-fullscreen-btn {
  background: none;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  color: #e0e0e0;
  font-size: 18px;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
  padding: 0;
  margin-left: 4px;
}

.game .game-fullscreen-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary);
  color: #fff;
}

.game .game-wrapper:fullscreen,
.game .game-wrapper:-webkit-full-screen {
  background: #1a1a2e;
  display: flex;
  flex-direction: column;
  max-width: 100%;
}

.game .game-wrapper:fullscreen canvas,
.game .game-wrapper:-webkit-full-screen canvas {
  flex: 1;
  width: 100%;
  height: auto;
  max-height: calc(100vh - 80px);
  object-fit: contain;
}

.game .game-controls-mobile {
  display: none;
  padding: 10px 16px;
  background: #16213e;
  gap: 10px;
}

.game .game-touch-btn {
  flex: 1;
  padding: 14px;
  font-size: 15px;
  font-weight: 600;
  border: 2px solid var(--primary);
  background: transparent;
  color: var(--primary);
  border-radius: 50px;
  cursor: pointer;
  font-family: "Poppins", sans-serif;
  transition: background 0.15s, color 0.15s;
}

.game .game-touch-btn:active {
  background: var(--primary);
  color: #fff;
}

.game .game-touch-slide {
  border-color: #ffd740;
  color: #ffd740;
}

.game .game-touch-slide:active {
  background: #ffd740;
  color: #1a1a2e;
}

@media (max-width: 768px) {
  .game .game-controls-mobile {
    display: flex;
  }
}

@media (max-width: 575px) {
  .game .game-hud {
    font-size: 11px;
    padding: 8px 10px;
    gap: 4px;
  }
  .game .game-lives i { font-size: 13px; }
  .game .game-overlay-content i { font-size: 48px; }
  .game .game-overlay-content p { font-size: 16px; }
  .game .game-overlay-stats { font-size: 12px; gap: 12px; }
}

.portfolio-details .portfolio-description h2 {
  width: 50%;
  font-size: 26px;
  font-weight: 400;
  margin-bottom: 20px;
}

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

@media (max-width: 768px) {
  .portfolio-details .portfolio-description h2 {
    width: 100%;
  }
  .portfolio-details .portfolio-info {
    position: static;
    margin-top: 30px;
  }
}

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

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

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

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

/*--------------------------------------------------------------
# Improved Responsive
--------------------------------------------------------------*/

/* Better mobile hero */
@media (max-width: 575px) {
  #hero h1 {
    font-size: 24px;
    line-height: 30px;
  }
  #hero p {
    font-size: 18px;
  }
  section {
    padding: 40px 0;
  }
  .section-title h2 {
    font-size: 24px;
  }
  .facts .count-box span {
    font-size: 36px;
  }
  .contact .info {
    padding: 20px;
  }
  .contact .php-email-form {
    padding: 20px;
  }
}

/* Tablet tweaks */
@media (min-width: 576px) and (max-width: 991px) {
  .services .icon-box {
    margin-bottom: 30px;
  }
}

/* Portfolio images fill width */
.portfolio .portfolio-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

/* Testimonials card polish */
.testimonials .testimonial-item p {
  border-radius: var(--radius);
}

/* Contact form input focus */
.contact .php-email-form input:focus,
.contact .php-email-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(20, 157, 221, 0.15);
}

/* Submit button polish */
.contact .php-email-form button[type="submit"] {
  border-radius: var(--radius);
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
}

/* Services hover card lift */
.services .icon-box {
  padding: 20px;
  border-radius: var(--radius);
  transition: box-shadow 0.3s, transform 0.3s;
}

.services .icon-box:hover {
  box-shadow: 0 4px 20px var(--card-shadow);
  transform: translateY(-4px);
}

/* Contact info card border radius */
.contact .info {
  border-radius: var(--radius);
}

.contact .php-email-form {
  border-radius: var(--radius);
}

/* Portfolio filter pills */
.portfolio #portfolio-flters li {
  border-radius: 50px;
  transition: background 0.3s, color 0.3s;
}

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

/* Smooth image reveal */
.portfolio .portfolio-wrap img {
  transition: transform 0.4s;
}

.portfolio .portfolio-wrap:hover img {
  transform: scale(1.05);
}

/* Resume timeline bullet */
.resume .resume-item::before {
  border: 2px solid var(--primary);
}

/* Better selection color */
::selection {
  background: var(--primary);
  color: #fff;
}
