/* Fonts */
:root {
  --default-font: "Roboto",  system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --heading-font: "Raleway",  sans-serif;
  --nav-font: "Poppins",  sans-serif;
}

/* Global Colors - The following color variables are used throughout the website. Updating them here will change the color scheme of the entire website */
:root { 
  --background-color: #ffffff; /* Background color for the entire website, including individual sections */
  --default-color: #272829; /* Default color used for the majority of the text content across the entire website */
  --heading-color: #050d18; /* Color for headings, subheadings and title throughout the website */
  --accent-color: #149ddd; /* Accent color that represents your brand on the website. It's used for buttons, links, and other elements that need to stand out */
  --surface-color: #ffffff; /* The surface color is used as a background of boxed elements within sections, such as cards, icon boxes, or other elements that require a visual separation from the global background. */
  --contrast-color: #ffffff; /* Contrast color for text, ensuring readability against backgrounds of accent, heading, or default colors. */
}

/* Nav Menu Colors - The following color variables are used specifically for the navigation menu. They are separate from the global colors to allow for more customization options */
:root {
  --nav-color: #a8a9b4;  /* The default color of the main navmenu links */
  --nav-hover-color: #ffffff; /* Applied to main navmenu links when they are hovered over or active */
  --nav-mobile-background-color: #040b14; /* Used as the background color for mobile navigation menu */
  --nav-dropdown-background-color: #040b14; /* Used as the background color for dropdown items that appear when hovering over primary navigation items */
  --nav-dropdown-color: #a8a9b4; /* Used for navigation links of the dropdown items in the navigation menu. */
  --nav-dropdown-hover-color: #ffffff; /* Similar to --nav-hover-color, this color is applied to dropdown navigation links when they are hovered over. */
}

/* Color Presets - These classes override global colors when applied to any section or element, providing reuse of the sam color scheme. */

.light-background {
  --surface-color: #ffffff;
}

.dark-background {
  --background-color: #040b14;
  --default-color: #ffffff;
  --heading-color: #ffffff;
  --surface-color: #151f2b;
  --contrast-color: #ffffff;
}

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

/* Dark Mode */
body.dark-mode {
  --background-color: #121212;
  --default-color: #ffffff;
  --heading-color: #ffffff;
  --surface-color: #1e1e1e;
  --contrast-color: #ffffff;
  --nav-color: #a8a9b4;
  --nav-hover-color: #ffffff;
  --nav-mobile-background-color: #040b14;
  --nav-dropdown-background-color: #040b14;
  --nav-dropdown-color: #a8a9b4;
  --nav-dropdown-hover-color: #ffffff;
}

/*--------------------------------------------------------------
# General Styling & Shared Classes
--------------------------------------------------------------*/
body {
  color: var(--default-color);
  background-color: var(--background-color);
  font-family: var(--default-font);
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  color: color-mix(in srgb, var(--accent-color), transparent 25%);
  text-decoration: none;
  transform: translateY(-2px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--heading-color);
  font-family: var(--heading-font);
}

/* PHP Email Form Messages
------------------------------*/
.php-email-form .error-message {
  display: none;
  background: #df1529;
  color: #ffffff;
  text-align: left;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
}

.php-email-form .sent-message {
  display: none;
  color: #ffffff;
  background: #059652;
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
}

.php-email-form .loading {
  display: none;
  background: var(--surface-color);
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
}

.php-email-form .loading:before {
  content: "";
  display: inline-block;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  margin: 0 10px -6px 0;
  border: 3px solid var(--accent-color);
  border-top-color: var(--surface-color);
  animation: php-email-form-loading 1s linear infinite;
}

@keyframes php-email-form-loading {
  0% {
    transform: rotate(0deg);
  }

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

/*--------------------------------------------------------------
# Global Header
--------------------------------------------------------------*/
.header {
  color: var(--default-color);
  background:
    linear-gradient(180deg, rgba(6, 12, 22, 0.96), rgba(10, 18, 32, 0.94)),
    radial-gradient(circle at top, rgba(25, 167, 255, 0.18), transparent 42%);
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  padding: 0 15px;
  width: 300px;
  transition: all ease-in-out 0.3s;
  overflow-y: auto;
  z-index: 997;
  border-right: 1px solid rgba(130, 193, 255, 0.14);
  box-shadow: 12px 0 40px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
}

.header .profile-img img {
  margin: 15px auto;
  display: block;
  width: 120px;
  border: 8px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.24);
  transition: all 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.header .profile-img img:hover {
  border-color: rgba(25, 167, 255, 0.5);
  box-shadow: 0 0 0 1px rgba(25, 167, 255, 0.2), 0 20px 40px rgba(25, 167, 255, 0.12);
  transform: scale(1.03) rotate(2deg);
  filter: brightness(1.05);
}

.header .logo {
  line-height: 1;
  margin-bottom: 15px;
  padding: 8px 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.header .logo img {
  max-height: 2em; /* Use relative units */
  margin-right: 8px;
}

.header .logo h1 {
  font-size: 24px;
  margin: 0;
  font-weight: 700;
  color: #f7fbff;
}

.header .logo .sitename {
  letter-spacing: 0.02em;
}

.header .social-links {
  margin: 0 0 20px 0;
  padding: 10px 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.header .social-links a {
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  color: #eef4ff;
  margin: 0 2px;
  border-radius: 50%;
  text-align: center;
  width: 40px;
  height: 40px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.header .social-links a:hover {
  color: #ffffff;
  background: linear-gradient(135deg, #19a7ff, #1479db);
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 10px 22px rgba(20, 121, 219, 0.26);
}

@media (min-width: 1200px) {

  .header~main,
  .header~#footer {
    margin-left: 300px;
  }
}

@media (max-width: 1199px) {
  .header {
    left: -100%;
  }
}

.header.header-show {
  left: 0;
}

.header-toggle,
.header .header-toggle {
  color: #ffffff;
  background: linear-gradient(135deg, #19a7ff, #1479db);
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  position: fixed;
  top: 16px;
  right: 16px;
  left: auto;
  z-index: 10020;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 24px rgba(20, 121, 219, 0.2);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.header-toggle:hover,
.header .header-toggle:hover {
  color: #ffffff;
  transform: scale(1.06);
  box-shadow: 0 16px 30px rgba(20, 121, 219, 0.28);
}

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
.mobile-nav-toggle {
  display: none;
}

.navmenu {
  padding: 0;
  z-index: 9997;
}

.navmenu ul {
  list-style: none;
  padding: 0 0 20px 0;
  margin: 0;
}

.navmenu a,
.navmenu a:focus {
  color: rgba(235, 243, 255, 0.72);
  padding: 14px 14px;
  font-family: var(--nav-font);
  font-size: 16px;
  font-weight: 500;
  display: flex;
  align-items: center;
  white-space: nowrap;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
}

.navmenu a:hover {
  border-color: rgba(25, 167, 255, 0.22);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.16);
  transform: translateX(6px);
  background: linear-gradient(135deg, rgba(25, 167, 255, 0.12), rgba(20, 184, 125, 0.08));
}

.navmenu a .navicon,
.navmenu a:focus .navicon {
  font-size: 20px;
  margin-right: 10px;
}

.navmenu a .toggle-dropdown,
.navmenu a:focus .toggle-dropdown {
  font-size: 12px;
  line-height: 0;
  margin-left: auto;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: 0.3s;
  flex-shrink: 0;
  background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
}

.navmenu a .toggle-dropdown:hover,
.navmenu a:focus .toggle-dropdown:hover {
  background-color: var(--accent-color);
  color: var(--contrast-color);
}

.navmenu a:hover,
.navmenu .active,
.navmenu .active:focus {
  color: #ffffff;
}

.navmenu a:hover .navicon,
.navmenu .active .navicon,
.navmenu .active:focus .navicon {
  color: #79c7ff;
}

.navmenu .active,
.navmenu .active:focus {
  background: linear-gradient(135deg, rgba(25, 167, 255, 0.18), rgba(20, 184, 125, 0.1));
  border-color: rgba(25, 167, 255, 0.22);
}

.navmenu .active .toggle-dropdown,
.navmenu .active:focus .toggle-dropdown {
  background-color: var(--accent-color);
  color: var(--contrast-color);
  transform: rotate(180deg);
}

.navmenu .dropdown {
  display: block;
}

.navmenu .dropdown a,
.navmenu .dropdown a:focus {
  color: --nav-dropdown-color;
}

.navmenu .dropdown a:hover,
.navmenu .dropdown .active,
.navmenu .dropdown .active:focus {
  color: var(--nav-dropdown-hover-color);
}

.navmenu .dropdown ul {
  position: static;
  display: none;
  z-index: 99;
  padding: 5px 10px;
  margin: 5px 10px;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
  transition: all 0.5s ease-in-out;
}

.navmenu .dropdown ul ul {
  background-color: rgba(33, 37, 41, 0.1);
}

.navmenu .dropdown>.dropdown-active {
  display: block;
  background-color: rgba(255, 255, 255, 0.03);
}

body.light-mode .header {
  background:
    linear-gradient(180deg, rgba(8, 18, 33, 0.96), rgba(13, 26, 44, 0.94)),
    radial-gradient(circle at top, rgba(25, 167, 255, 0.14), transparent 42%);
}

body.light-mode .navmenu a,
body.light-mode .navmenu a:focus {
  color: rgba(235, 243, 255, 0.72);
}

body.light-mode .header .logo,
body.light-mode .header .social-links {
  background: rgba(255, 255, 255, 0.04);
}

body.light-mode .header .logo h1,
body.light-mode .header .social-links a,
body.light-mode .navmenu a,
body.light-mode .navmenu a:focus {
  color: #eef4ff;
}

body.dark-mode .header {
  background:
    linear-gradient(180deg, rgba(6, 12, 22, 0.98), rgba(10, 18, 32, 0.96)),
    radial-gradient(circle at top, rgba(25, 167, 255, 0.2), transparent 42%);
}

body.dark-mode .navmenu a,
body.dark-mode .navmenu a:focus {
  color: rgba(235, 243, 255, 0.78);
}

/*--------------------------------------------------------------
# Global Footer
--------------------------------------------------------------*/
.footer {
  color: var(--default-color);
  background-color: var(--background-color);
  font-size: 14px;
  padding: 40px 0;
  position: relative;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.footer .copyright p {
  margin-bottom: 0;
}

.footer .credits {
  margin-top: 4px;
  font-size: 13px;
  text-align: center;
}

/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/
#preloader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  overflow: hidden;
}

/*--------------------------------------------------------------
# Scroll Top Button
--------------------------------------------------------------*/
.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: -15px;
  z-index: 99999;
  background-color: var(--accent-color);
  width: 44px;
  height: 44px;
  border-radius: 50px;
  transition: all 0.4s;
}

.scroll-top i {
  font-size: 24px;
  color: var(--contrast-color);
  line-height: 0;
}

.scroll-top:hover {
  background-color: color-mix(in srgb, var(--accent-color), transparent 20%);
  color: var(--contrast-color);
}

.scroll-top.active {
  visibility: visible;
  opacity: 1;
  bottom: 15px;
}

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

/*--------------------------------------------------------------
# Global Page Titles & Breadcrumbs
--------------------------------------------------------------*/
.page-title {
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 25px 0;
  position: relative;
}

.page-title h1 {
  font-size: 24px;
  font-weight: 700;
}

.page-title .breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
  font-weight: 400;
}

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

.page-title .breadcrumbs ol li+li::before {
  content: "/";
  display: inline-block;
  padding-right: 10px;
  color: color-mix(in srgb, var(--default-color), transparent 70%);
}

/*--------------------------------------------------------------
# Global Sections
--------------------------------------------------------------*/
section,
.section {
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 60px 0;
  overflow: clip;
}

/*--------------------------------------------------------------
# Global Section Titles
--------------------------------------------------------------*/
.section-title {
  padding-bottom: 60px;
  position: relative;
}

.section-title h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 20px;
  position: relative;
}

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

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

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero {
  width: 100%;
  min-height: 100vh;
  position: relative;
  padding: 80px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero:before {
  content: "";
  background: color-mix(in srgb, var(--background-color), transparent 70%);
  position: absolute;
  inset: 0;
  z-index: 2;
}

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

.hero h2 {
  margin: 0;
  font-size: 64px;
  font-weight: 700;
}

.hero p {
  margin: 5px 0 0 0;
  font-size: 26px;
}

.hero p span {
  letter-spacing: 1px;
  border-bottom: 2px solid var(--accent-color);
}

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

.hero .social-links a {
  font-size: 24px;
  display: inline-block;
  color: color-mix(in srgb, var(--default-color), transparent 50%);
  line-height: 1;
  margin-right: 20px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero .social-links a:hover {
  color: var(--accent-color);
  transform: translateY(-5px) scale(1.2);
  text-shadow: 0 0 15px var(--accent-color);
}

@media (max-width: 768px) {
  .hero h2 {
    font-size: 32px;
  }

  .hero p {
    font-size: 20px;
  }
}

/*--------------------------------------------------------------
# About Section
--------------------------------------------------------------*/
.about .content h2 {
  font-weight: 700;
  font-size: 24px;
}

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

.about .content ul li {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

.about .content ul strong {
  margin-right: 10px;
}

.about .content ul i {
  font-size: 16px;
  margin-right: 5px;
  color: var(--accent-color);
  line-height: 0;
}

.about .content {
  border: 2px solid transparent; /* Initial border */
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 15px;
  padding: 20px;
}

.about .content:hover {
  border-color: #0ff; /* Neon border color */
  box-shadow: 0 0 20px #0ff, 0 0 30px #0ff, 0 0 40px #0ff; /* Neon glow effect */
  transform: translateY(-5px);
  background: linear-gradient(135deg, rgba(0, 255, 255, 0.05), rgba(20, 157, 221, 0.05));
}

/* About Section Image */
.about .content img {
  border: 2px solid transparent; /* Initial border */
  transition: 0.3s;
}
.about .content img:hover {
  border-color: #0ff; /* Neon border color */
  box-shadow: 0 0 20px #0ff, 0 0 30px #0ff, 0 0 40px #0ff; /* Neon glow effect */
}

/* About Section Image */
.about .about-img {
  border: 2px solid transparent; /* Initial border */
  transition: 0.3s;
}

.about .about-img:hover {
  border-color: #0ff; /* Neon border color */
  box-shadow: 0 0 20px #0ff, 0 0 30px #0ff, 0 0 40px #0ff; /* Neon glow effect */
}

/*--------------------------------------------------------------
# Stats Section
--------------------------------------------------------------*/
.stats .stats-item {
  padding: 30px;
  width: 100%;
}

.stats .stats-item i {
  color: var(--accent-color);
  display: block;
  font-size: 44px;
  float: left;
  line-height: 0;
}

.stats .stats-item .purecounter {
  color: var(--heading-color);
  font-size: 48px;
  line-height: 40px;
  display: block;
  font-weight: 700;
  margin-left: 60px;
}

.stats .stats-item p {
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  padding: 15px 0 0 0;
  margin: 0 0 0 60px;
  font-family: var(--heading-font);
  font-size: 14px;
}

/*--------------------------------------------------------------
# Skills Section
--------------------------------------------------------------*/
.skills .progress {
  height: 60px;
  display: block;
  background: none;
  border-radius: 10px;
  border: 2px solid transparent; /* Initial border */
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.skills .progress:hover {
  border-color: #0ff; /* Neon border color */
  box-shadow: 0 0 20px #0ff, 0 0 30px #0ff, 0 0 40px #0ff; /* Neon glow effect */
  transform: scale(1.02);
}

.skills .progress .skill {
  color: var(--heading-color);
  padding: 0;
  margin: 0 0 6px 0;
  text-transform: uppercase;
  display: block;
  font-weight: 600;
  font-family: var(--heading-font);
}

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

.skills .progress-bar-wrap {
  background: color-mix(in srgb, var(--default-color), transparent 90%);
  height: 10px;
}

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

/*--------------------------------------------------------------
# Resume Section
--------------------------------------------------------------*/
.resume .resume-title {
  color: var(--heading-color);
  font-size: 26px;
  font-weight: 700;
  margin-top: 20px;
  margin-bottom: 20px;
}

.resume .resume-item {
  padding: 0 0 20px 20px;
  margin-top: -2px;
  border-left: 2px solid var(--accent-color);
  position: relative;
  border: 2px solid transparent; /* Initial border */
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 15px;
  margin-bottom: 20px;
}

.resume .resume-item:hover {
  border-color: #0ff; /* Neon border color */
  box-shadow: 0 0 20px #0ff, 0 0 30px #0ff, 0 0 40px #0ff; /* Neon glow effect */
  transform: translateX(10px);
  background: linear-gradient(135deg, rgba(0, 255, 255, 0.05), rgba(20, 157, 221, 0.05));
}

.resume .resume-item h4 {
  line-height: 18px;
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  margin-bottom: 10px;
}

.resume .resume-item h5 {
  font-size: 16px;
  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: var(--background-color);
  border: 2px solid var(--accent-color);
}

.resume-download-icon {
  font-size: 24px;
  color: var(--accent-color);
  margin-left: 10px;
  transition: color 0.3s ease;
}

.resume-download-icon:hover {
  color: var(--nav-hover-color);
}

.resume-download-btn {
  font-size: 16px;
  color: var(--contrast-color);
  background-color: var(--accent-color);
  border: none;
  padding: 10px 20px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.resume-download-btn i {
  margin-right: 8px;
}

.resume-download-btn:hover {
  background-color: color-mix(in srgb, var(--accent-color), transparent 25%);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 25px rgba(20, 157, 221, 0.4);
}

/*--------------------------------------------------------------
# Portfolio Section
--------------------------------------------------------------*/
.portfolio .portfolio-filters {
  padding: 0;
  margin: 0 auto 20px auto;
  list-style: none;
  text-align: center;
}

.portfolio .portfolio-filters li {
  cursor: pointer;
  display: inline-block;
  padding: 0;
  font-size: 14px;
  font-weight: 400;
  margin: 0 10px;
  line-height: 1;
  text-transform: uppercase;
  margin-bottom: 10px;
  transition: all 0.3s ease-in-out;
}

.portfolio .portfolio-filters li:hover,
.portfolio .portfolio-filters li.filter-active {
  color: var(--accent-color);
}

.portfolio .portfolio-filters li:first-child {
  margin-left: 0;
}

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

@media (max-width: 575px) {
  .portfolio .portfolio-filters li {
    font-size: 14px;
    margin: 0 5px;
  }
}

.portfolio .portfolio-content {
  position: relative;
  overflow: hidden;
}

.portfolio .portfolio-content img {
  transition: 0.3s;
}

.portfolio .portfolio-content .portfolio-info {
  opacity: 0;
  position: absolute;
  inset: 0;
  z-index: 3;
  transition: all ease-in-out 0.3s;
  background: rgba(0, 0, 0, 0.6);
  padding: 15px;
}

.portfolio .portfolio-content .portfolio-info h4 {
  font-size: 14px;
  padding: 5px 10px;
  font-weight: 400;
  color: #ffffff;
  display: inline-block;
  background-color: var(--accent-color);
}

.portfolio .portfolio-content .portfolio-info p {
  position: absolute;
  bottom: 10px;
  text-align: center;
  display: inline-block;
  left: 0;
  right: 0;
  font-size: 16px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
}

.portfolio .portfolio-content .portfolio-info .preview-link,
.portfolio .portfolio-content .portfolio-info .details-link {
  position: absolute;
  left: calc(50% - 40px);
  font-size: 26px;
  top: calc(50% - 14px);
  color: #fff;
  transition: 0.3s;
  line-height: 1.2;
}

.portfolio .portfolio-content .portfolio-info .preview-link:hover,
.portfolio .portfolio-content .portfolio-info .details-link:hover {
  color: var(--accent-color);
}

.portfolio .portfolio-content .portfolio-info .details-link {
  left: 50%;
  font-size: 34px;
  line-height: 0;
}

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

.portfolio .portfolio-content:hover img {
  transform: scale(1.1);
}

/*--------------------------------------------------------------
# Services Section
--------------------------------------------------------------*/
.services .service-item {
  position: relative;
  background-color: var(--surface-color);
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.1);
  padding: 20px;
  border-radius: 15px;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 30px; /* Add gap between service items */
  border: 2px solid transparent; /* Initial border */
}

.services .service-item:hover {
  transform: translateY(-15px) scale(1.02);
  border-color: #0ff; /* Neon border color */
  box-shadow: 0 0 20px #0ff, 0 0 30px #0ff, 0 0 40px #0ff; /* Neon glow effect */
}

.services .service-item .icon {
  background: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  transition: 0.5s;
  border: 1px solid var(--accent-color);
  margin-right: 20px;
}

.services .service-item .icon i {
  color: var(--contrast-color);
  font-size: 24px;
  line-height: 0;
}

.services .service-item:hover .icon {
  background: var(--surface-color);
}

.services .service-item:hover .icon i {
  color: var (--accent-color);
}

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

.services .service-item .title a {
  color: var(--heading-color);
}

.services .service-item .title a:hover {
  color: var(--accent-color);
}

.services .service-item .description {
  line-height: 24px;
  font-size: 14px;
}

/* Limit to 2 items per row */
@media (min-width: 768px) {
  .services .service-item {
    flex: 0 0 48%;
    margin-right: 4%;
  }
  .services .service-item:nth-child(2n) {
    margin-right: 0;
  }
}

/*--------------------------------------------------------------
# Testimonials Section
--------------------------------------------------------------*/
.testimonials .testimonials-carousel,
.testimonials .testimonials-slider {
  overflow: hidden;
}

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

.testimonials .testimonial-item h4 {
  font-size: 14px;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  margin: 0;
}

.testimonials .testimonial-item .quote-icon-left,
.testimonials .testimonial-item .quote-icon-right {
  color: color-mix(in srgb, var(--accent-color), transparent 40%);
  font-size: 26px;
  line-height: 0;
}

.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;
  transform: scale(-1, -1);
}

.testimonials .testimonial-item p {
  font-style: italic;
  margin: 0 15px 15px 15px;
  padding: 20px;
  background-color: var(--surface-color);
  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 var(--surface-color);
  border-right: 20px solid transparent;
  border-left: 20px solid transparent;
  position: absolute;
  bottom: -20px;
  left: calc(50% - 20px);
}

.testimonials .swiper-wrapper {
  height: auto;
}

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

.testimonials .swiper-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background-color: var(--background-color);
  opacity: 1;
  border: 1px solid var(--accent-color);
}

.testimonials .swiper-pagination .swiper-pagination-bullet-active {
  background-color: var(--accent-color);
}

/*--------------------------------------------------------------
# Contact Section
--------------------------------------------------------------*/
.contact .info-wrap {
  background-color: var(--surface-color);
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.1);
  padding: 30px;
  border: 2px solid transparent; /* Initial border */
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 15px;
}

.contact .info-wrap:hover {
  border-color: #0ff; /* Neon border color */
  box-shadow: 0 0 20px #0ff, 0 0 30px #0ff, 0 0 40px #0ff; /* Neon glow effect */
  transform: translateY(-10px);
}

@media (max-width: 575px) {
  .contact .info-wrap {
    padding: 20px;
  }
}

.contact .info-item {
  margin-bottom: 40px;
}

.contact .info-item i {
  font-size: 20px;
  color: var(--accent-color);
  background: color-mix(in srgb, var(--accent-color), transparent 92%);
  width: 44px;
  height: 44px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  margin-right: 15px;
}

.contact .info-item h3 {
  padding: 0;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 5px;
}

.contact .info-item p {
  padding: 0;
  margin-bottom: 0;
  font-size: 14px;
}

.contact .info-item:hover i {
  background: var(--accent-color);
  color: var(--contrast-color);
  transform: scale(1.1) rotate(360deg);
  box-shadow: 0 5px 15px rgba(20, 157, 221, 0.3);
}

.contact .php-email-form {
  background-color: var(--surface-color);
  height: 100%;
  padding: 30px;
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.1);
  border-radius: 15px;
  border: 2px solid transparent;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact .php-email-form:hover {
  border-color: rgba(20, 157, 221, 0.3);
  box-shadow: 0 0 30px rgba(20, 157, 221, 0.2);
  transform: translateY(-3px);
}

@media (max-width: 575px) {
  .contact .php-email-form {
    padding: 20px;
  }
}

.contact .php-email-form input[type=text],
.contact .php-email-form input[type=email],
.contact .php-email-form textarea {
  font-size: 14px;
  padding: 10px 15px;
  box-shadow: none;
  border-radius: 8px;
  color: var(--default-color);
  background-color: var(--surface-color);
  border: 2px solid color-mix(in srgb, var(--default-color), transparent 80%);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact .php-email-form input[type=text]:hover,
.contact .php-email-form input[type=email]:hover,
.contact .php-email-form textarea:hover {
  border-color: var(--accent-color);
  box-shadow: 0 0 15px rgba(20, 157, 221, 0.2);
  transform: translateY(-2px);
}

.contact .php-email-form input[type=text]:focus,
.contact .php-email-form input[type=email]:focus,
.contact .php-email-form textarea:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 20px rgba(20, 157, 221, 0.3);
  transform: translateY(-3px);
  outline: none;
}

.contact .php-email-form input[type=text]::placeholder,
.contact .php-email-form input[type=email]::placeholder,
.contact .php-email-form textarea::placeholder {
  color: color-mix(in srgb, var(--default-color), transparent 70%);
}

.contact .php-email-form button[type=submit] {
  color: var(--contrast-color);
  background: var(--accent-color);
  border: 0;
  padding: 10px 30px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50px;
  position: relative;
  overflow: hidden;
}

.contact .php-email-form button[type=submit]:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 25%);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 25px rgba(20, 157, 221, 0.4);
}

.contact .php-email-form button[type=submit]:active {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 5px 15px rgba(20, 157, 221, 0.3);
}

/* Contact Section Map */
.contact .map {
  border: 2px solid transparent; /* Initial border */
  transition: 0.3s;
}

.contact .map:hover {
  border-color: #0ff; /* Neon border color */
  box-shadow: 0 0 20px #0ff, 0 0 30px #0ff, 0 0 40px #0ff; /* Neon glow effect */
}

/*--------------------------------------------------------------
# Portfolio Details Section
--------------------------------------------------------------*/
.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-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background-color: color-mix(in srgb, var(--default-color), transparent 85%);
  opacity: 1;
}

.portfolio-details .portfolio-details-slider .swiper-pagination .swiper-pagination-bullet-active {
  background-color: var(--accent-color);
}

.portfolio-details .portfolio-info {
  padding: 30px;
  box-shadow: 0px 0 30px rgba(0, 0, 0, 0.1);
}

.portfolio-details .portfolio-info h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
}

.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;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
}

/*--------------------------------------------------------------
# Service Details Section
--------------------------------------------------------------*/
.service-details .services-list {
  padding: 10px 30px;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  margin-bottom: 20px;
}

.service-details .services-list a {
  display: block;
  line-height: 1;
  padding: 8px 0 8px 15px;
  border-left: 3px solid color-mix(in srgb, var(--default-color), transparent 70%);
  margin: 20px 0;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  transition: 0.3s;
}

.service-details .services-list a.active {
  color: var(--heading-color);
  font-weight: 700;
  border-color: var(--accent-color);
}

.service-details .services-list a:hover {
  border-color: var(--accent-color);
}

.service-details .services-img {
  margin-bottom: 20px;
}

.service-details h3 {
  font-size: 26px;
  font-weight: 700;
}

.service-details h4 {
  font-size: 20px;
  font-weight: 700;
}

.service-details p {
  font-size: 15px;
}

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

.service-details ul li {
  padding: 5px 0;
  display: flex;
  align-items: center;
}

.service-details ul i {
  font-size: 20px;
  margin-right: 8px;
  color: var(--accent-color);
}

/*--------------------------------------------------------------
# Projects Section
--------------------------------------------------------------*/
.projects {
  position: relative;
  background:
    radial-gradient(circle at top left, rgba(20, 157, 221, 0.16), transparent 30%),
    radial-gradient(circle at top right, rgba(17, 185, 129, 0.12), transparent 26%),
    radial-gradient(circle at center bottom, rgba(245, 199, 66, 0.12), transparent 30%),
    linear-gradient(180deg, #07111f 0%, #081522 42%, #050b14 100%);
}

.projects::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 92%);
  pointer-events: none;
}

.projects > .container {
  position: relative;
  z-index: 1;
}

.projects .section-title h2,
.projects .section-title p {
  color: #f4f7fb;
}

.projects .section-title h2:after {
  background: linear-gradient(90deg, #f6c34a, #19a7ff);
}

.projects .section-title p {
  max-width: 860px;
  color: rgba(234, 242, 255, 0.78);
}

.project-flagship {
  position: relative;
  overflow: hidden;
  padding: 34px;
  border-radius: 32px;
  background: linear-gradient(145deg, rgba(10, 20, 36, 0.95), rgba(12, 28, 50, 0.82));
  border: 1px solid rgba(130, 193, 255, 0.2);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(18px);
}

.project-flagship::before,
.project-flagship::after {
  content: "";
  position: absolute;
  inset: auto;
  border-radius: 50%;
  pointer-events: none;
}

.project-flagship::before {
  width: 320px;
  height: 320px;
  right: -120px;
  top: -120px;
  background: radial-gradient(circle, rgba(246, 195, 74, 0.2), transparent 68%);
  animation: qafasFloat 10s ease-in-out infinite;
}

.project-flagship::after {
  width: 380px;
  height: 380px;
  left: -150px;
  bottom: -170px;
  background: radial-gradient(circle, rgba(25, 167, 255, 0.16), transparent 70%);
}

.project-flagship__glow {
  position: absolute;
  inset: auto 18% 14% auto;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(25, 167, 255, 0.2), transparent 68%);
  filter: blur(10px);
  animation: qafasPulse 8s ease-in-out infinite;
}

.project-flagship__top,
.project-flagship__grid,
.project-feature-grid,
.project-tech-grid,
.project-highlights-grid,
.project-impact-box,
.project-archive-heading {
  position: relative;
  z-index: 1;
}

.project-flagship__top {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 22px;
}

.project-flagship__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  margin-bottom: 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f9d879;
  background: rgba(246, 195, 74, 0.1);
  border: 1px solid rgba(246, 195, 74, 0.25);
}

.project-flagship__eyebrow i {
  color: #f6c34a;
}

.project-flagship h3 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.04;
  color: #ffffff;
}

.project-flagship__lead {
  max-width: 860px;
  margin: 0;
  font-size: 1.05rem;
  color: rgba(235, 242, 255, 0.84);
}

.project-flagship__link,
.project-flagship__primary,
.project-flagship__ghost {
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 700;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.project-flagship__link,
.project-flagship__primary {
  background: linear-gradient(135deg, #f6c34a, #d79d12);
  color: #06111d;
  box-shadow: 0 16px 30px rgba(246, 195, 74, 0.22);
}

.project-flagship__ghost {
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #eef4ff;
  background: rgba(255, 255, 255, 0.03);
}

.project-flagship__link:hover,
.project-flagship__primary:hover,
.project-flagship__ghost:hover {
  transform: translateY(-2px);
}

.project-flagship__intro {
  margin-bottom: 28px;
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.project-flagship__intro p {
  margin: 0;
  color: rgba(237, 243, 255, 0.88);
  font-size: 1rem;
  line-height: 1.8;
}

.project-flagship__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 24px;
  align-items: stretch;
  margin-bottom: 24px;
}

.project-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.project-pill-row span,
.project-tech-grid span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #edf3ff;
  font-weight: 600;
}

.project-pill-row i,
.project-tech-grid i,
.project-feature-card i,
.project-highlight-card i,
.project-callout i,
.project-dashboard__footer i {
  color: #65c6ff;
}

.project-counter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.project-counter-card,
.project-callout,
.project-dashboard,
.project-feature-card,
.project-highlight-card,
.project-impact-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(16px);
}

.project-counter-card {
  padding: 18px;
  border-radius: 20px;
}

.project-counter-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  color: #ffffff;
}

.project-counter-card span {
  color: rgba(236, 243, 255, 0.76);
  font-size: 0.95rem;
}

.project-callout {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 20px;
  border-radius: 24px;
  margin-bottom: 18px;
}

.project-callout i {
  font-size: 1.8rem;
  line-height: 1;
}

.project-callout strong {
  display: block;
  margin-bottom: 6px;
  color: #ffffff;
}

.project-callout p {
  margin: 0;
  color: rgba(236, 243, 255, 0.78);
}

.project-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.project-dashboard {
  padding: 22px;
  border-radius: 28px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.project-dashboard__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
}

.project-dashboard__header span,
.project-dashboard__panel-row span,
.project-dashboard__footer span,
.project-archive-heading span,
.project-section-heading span,
.project-impact-box span {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(199, 220, 255, 0.72);
}

.project-dashboard__header strong {
  color: #ffffff;
  font-size: 1.05rem;
}

.project-dashboard__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.project-dashboard__stats div,
.project-dashboard__panel,
.project-dashboard__footer {
  border-radius: 20px;
  background: rgba(8, 15, 26, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.project-dashboard__stats div {
  padding: 16px;
}

.project-dashboard__stats span {
  display: block;
  margin-bottom: 8px;
  color: rgba(234, 241, 255, 0.68);
  font-size: 0.86rem;
}

.project-dashboard__stats strong {
  color: #ffffff;
  font-size: 1.6rem;
}

.project-dashboard__panel {
  padding: 18px;
  margin-bottom: 14px;
}

.project-dashboard__panel-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.project-dashboard__panel-row strong {
  color: #f6c34a;
  font-size: 0.9rem;
}

.project-dashboard__bar {
  width: 100%;
  height: 10px;
  margin-bottom: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.project-dashboard__bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #19a7ff, #14b87d, #f6c34a);
  box-shadow: 0 0 20px rgba(25, 167, 255, 0.35);
}

.project-dashboard__footer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
}

.project-dashboard__footer div {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #edf3ff;
}

.project-dashboard__footer i {
  font-size: 1.1rem;
}

.project-section-heading {
  margin: 10px 0 16px;
}

.project-section-heading h4,
.project-archive-heading h3 {
  margin: 8px 0 0;
  color: #ffffff;
  font-size: clamp(1.3rem, 2.2vw, 1.9rem);
}

.project-section-heading--spaced {
  margin-top: 30px;
}

.project-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.project-feature-card,
.project-highlight-card {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 18px;
  border-radius: 20px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.project-feature-card i,
.project-highlight-card i {
  flex-shrink: 0;
  font-size: 1.15rem;
}

.project-feature-card span,
.project-highlight-card strong {
  color: #eef4ff;
  font-weight: 600;
  line-height: 1.45;
}

.project-feature-card:hover,
.project-highlight-card:hover,
.projects .project-item:hover {
  transform: translateY(-6px);
  border-color: rgba(105, 198, 255, 0.35);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(105, 198, 255, 0.12);
}

.project-tech-grid,
.project-highlights-grid {
  display: grid;
  gap: 12px;
}

.project-tech-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.project-highlights-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 22px;
}

.project-impact-box {
  margin-top: 22px;
  padding: 22px;
  border-radius: 24px;
}

.project-impact-box h4 {
  margin: 8px 0 10px;
  color: #ffffff;
  font-size: 1.35rem;
}

.project-impact-box p {
  margin: 0;
  color: rgba(236, 243, 255, 0.82);
  line-height: 1.8;
}

.project-archive-heading {
  margin: 46px 0 18px;
}

.project-archive-heading span {
  color: #f6c34a;
}

.projects-secondary .project-item,
.projects .project-item {
  position: relative;
  overflow: hidden;
  height: 100%;
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(14px);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  margin-bottom: 0;
}

.projects .project-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 24%);
  pointer-events: none;
}

.projects .project-img img {
  width: 100%;
  border-radius: 18px;
}

.projects .project-info {
  padding-top: 18px;
}

.projects .project-info h3 {
  margin-bottom: 12px;
  color: #ffffff;
  font-size: 1.45rem;
}

.projects .project-info .section-desc {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #9ed4ff;
  background: rgba(25, 167, 255, 0.08);
  border: 1px solid rgba(25, 167, 255, 0.18);
}

.projects .project-info p {
  margin-bottom: 16px;
  color: rgba(236, 243, 255, 0.78);
  line-height: 1.75;
}

.projects .project-info .btn {
  margin-right: 10px;
  margin-bottom: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #19a7ff, #1479db);
  color: #ffffff;
  border: 1px solid transparent;
  box-shadow: 0 12px 22px rgba(20, 121, 219, 0.2);
}

.projects .project-info .btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.18);
}

.project-item--wide {
  margin-top: 4px;
}

.projects .project-item--featured .project-feature-shell {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 24px;
  align-items: stretch;
}

.projects .project-item--featured .project-qafas-gallery {
  display: grid;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 14px;
  min-height: 100%;
}

.projects .project-item--featured .project-qafas-shot {
  position: relative;
  overflow: hidden;
  margin: 0;
  border-radius: 20px;
  border: 1px solid rgba(246, 195, 74, 0.16);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 14px 28px rgba(3, 8, 18, 0.16);
}

.projects .project-item--featured .project-qafas-shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 30%);
  pointer-events: none;
}

.projects .project-item--featured .project-qafas-shot img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.projects .project-item--featured .project-qafas-shot--admin {
  min-height: 220px;
}

.projects .project-item--featured .project-qafas-shot--login {
  min-height: 220px;
}

.projects .project-item--featured .project-qafas-shot--brand {
  min-height: 180px;
}

.projects .project-item--featured .project-info {
  padding-top: 0;
}

.projects .project-item--featured .project-pill-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.projects .project-item--featured .project-pill-row span:last-child {
  grid-column: 1 / -1;
}

.projects .project-item--featured {
  background:
    radial-gradient(circle at top right, rgba(246, 195, 74, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(10, 20, 36, 0.9), rgba(7, 13, 24, 0.96));
  border-color: rgba(246, 195, 74, 0.22);
  box-shadow: 0 26px 55px rgba(3, 8, 18, 0.32), 0 0 0 1px rgba(246, 195, 74, 0.08);
}

.projects .project-item--featured::after {
  content: "";
  position: absolute;
  inset: auto 10% 12px;
  height: 60px;
  background: radial-gradient(circle, rgba(246, 195, 74, 0.24), transparent 70%);
  filter: blur(18px);
  pointer-events: none;
}

.projects .project-item--featured:hover {
  transform: translateY(-8px);
  border-color: rgba(246, 195, 74, 0.35);
  box-shadow: 0 34px 70px rgba(3, 8, 18, 0.38), 0 0 0 1px rgba(246, 195, 74, 0.12);
}

.projects .project-item--featured .project-img {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(246, 195, 74, 0.16);
}

.projects .project-item--featured .project-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 30%);
  pointer-events: none;
}

.projects .project-item--featured .project-img img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transform: scale(1.01);
}

.projects .project-item--featured .project-flagship__eyebrow {
  margin-bottom: 14px;
}

.projects .project-item--featured .project-info .section-desc {
  color: #f7d472;
  background: rgba(246, 195, 74, 0.11);
  border-color: rgba(246, 195, 74, 0.22);
}

.projects .project-item--featured .project-pill-row,
.projects .project-item--featured .project-tech-grid {
  gap: 10px;
}

.projects .project-item--featured .project-tech-grid span {
  border-color: rgba(246, 195, 74, 0.16);
}

.projects .project-item--featured .project-tech-grid i,
.projects .project-item--featured .project-pill-row i {
  color: #f6c34a;
}

body.light-mode .projects .project-item {
  background:
    radial-gradient(circle at top right, rgba(25, 167, 255, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 250, 255, 0.94));
  border-color: rgba(16, 32, 51, 0.08);
  box-shadow: 0 18px 40px rgba(16, 34, 61, 0.08);
}

body.light-mode .projects .project-item::before {
  background: linear-gradient(180deg, rgba(25, 167, 255, 0.08), transparent 26%);
}

body.light-mode .projects .project-item .project-info h3 {
  color: #102033;
}

body.light-mode .projects .project-item .project-info .section-desc {
  color: #0f5c94;
  background: rgba(25, 167, 255, 0.09);
  border-color: rgba(25, 167, 255, 0.16);
}

body.light-mode .projects .project-item .project-info p {
  color: color-mix(in srgb, #243246, transparent 12%);
}

body.light-mode .projects .project-item--featured {
  background:
    radial-gradient(circle at top right, rgba(246, 195, 74, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.96));
  border-color: rgba(246, 195, 74, 0.28);
}

body.light-mode .projects .project-item--featured .project-info .section-desc {
  color: #9a6b00;
  background: rgba(246, 195, 74, 0.12);
  border-color: rgba(246, 195, 74, 0.22);
}

body.light-mode .projects .project-item--featured .project-tech-grid span,
body.light-mode .projects .project-item--featured .project-pill-row span {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(16, 32, 51, 0.08);
}

body.light-mode .projects .project-item--featured .project-tech-grid i,
body.light-mode .projects .project-item--featured .project-pill-row i {
  color: #d79d12;
}

body.light-mode .header-toggle,
body.light-mode .header .header-toggle {
  color: #102033;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(232, 240, 250, 0.96));
  border-color: rgba(16, 32, 51, 0.12);
  box-shadow: 0 12px 24px rgba(16, 34, 61, 0.14);
}

body.dark-mode .projects .project-item {
  background:
    radial-gradient(circle at top right, rgba(25, 167, 255, 0.1), transparent 34%),
    linear-gradient(180deg, rgba(10, 20, 36, 0.92), rgba(7, 13, 24, 0.98));
  border-color: rgba(130, 193, 255, 0.14);
}

body.dark-mode .projects .project-item--featured {
  background:
    radial-gradient(circle at top right, rgba(246, 195, 74, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(12, 22, 40, 0.94), rgba(7, 13, 24, 0.98));
  border-color: rgba(246, 195, 74, 0.2);
}

body.dark-mode .projects .project-item--featured .project-info .section-desc {
  color: #f7d472;
  background: rgba(246, 195, 74, 0.1);
  border-color: rgba(246, 195, 74, 0.18);
}

body.dark-mode .projects .project-item--featured .project-tech-grid span,
body.dark-mode .projects .project-item--featured .project-pill-row span {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(246, 195, 74, 0.12);
}

body.dark-mode .projects .project-item--featured .project-tech-grid i,
body.dark-mode .projects .project-item--featured .project-pill-row i {
  color: #f6c34a;
}

@media (max-width: 1199px) {
  .projects .project-item--featured .project-feature-shell {
    grid-template-columns: 1fr;
  }

  .projects .project-item--featured .project-qafas-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
  }

  .projects .project-item--featured .project-qafas-shot--admin,
  .projects .project-item--featured .project-qafas-shot--login,
  .projects .project-item--featured .project-qafas-shot--brand {
    min-height: 220px;
  }

  .projects .project-item--featured .project-qafas-shot--brand {
    grid-column: 1 / -1;
  }

  .projects .project-item--featured .project-pill-row {
    grid-template-columns: 1fr;
  }

  .projects .project-item--featured .project-pill-row span:last-child {
    grid-column: auto;
  }

  .header-toggle,
  .header .header-toggle {
    display: flex !important;
    opacity: 1;
    visibility: visible;
    z-index: 10020;
    pointer-events: auto;
    top: 16px;
    right: 16px;
    left: auto;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    box-shadow: 0 16px 34px rgba(3, 8, 18, 0.34), 0 0 0 1px rgba(255, 255, 255, 0.12);
  }
}

@media (max-width: 767px) {
  .projects .project-item--featured .project-qafas-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .projects .project-item--featured .project-qafas-shot--admin,
  .projects .project-item--featured .project-qafas-shot--login,
  .projects .project-item--featured .project-qafas-shot--brand {
    min-height: 140px;
  }

  .projects .project-item--featured .project-qafas-shot--admin {
    grid-column: 1 / -1;
  }

  .projects .project-item--featured .project-qafas-shot--brand {
    grid-column: 1 / -1;
  }

  .header-toggle,
  .header .header-toggle {
    top: 12px;
    right: 12px;
    left: auto;
    width: 46px;
    height: 46px;
  }
}

@keyframes qafasFloat {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-10px) scale(1.05);
  }
}

@keyframes qafasPulse {
  0%,
  100% {
    opacity: 0.7;
    transform: scale(0.98);
  }
  50% {
    opacity: 1;
    transform: scale(1.04);
  }
}

@media (max-width: 1199px) {
  .project-flagship__top,
  .project-flagship__grid {
    grid-template-columns: 1fr;
    display: grid;
  }

  .project-flagship__top {
    gap: 14px;
  }

  .project-feature-grid,
  .project-tech-grid,
  .project-highlights-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-dashboard__footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .project-flagship,
  .projects .project-item {
    padding: 20px;
    border-radius: 22px;
  }

  .project-counter-grid,
  .project-dashboard__stats,
  .project-feature-grid,
  .project-tech-grid,
  .project-highlights-grid {
    grid-template-columns: 1fr;
  }

  .project-flagship__top,
  .project-dashboard__header,
  .project-callout,
  .project-dashboard__footer,
  .project-action-row {
    grid-template-columns: 1fr;
    display: grid;
  }

  .project-action-row {
    gap: 10px;
  }
}

/*--------------------------------------------------------------
# Certificates Section
--------------------------------------------------------------*/
.certificates .certificate-item {
  position: relative;
  background-color: var(--surface-color);
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.1);
  padding: 20px;
  border-radius: 15px;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 30px; /* Add gap between certificate items */
  border: 2px solid transparent; /* Initial border */
}

body.dark-mode .certificates .certificate-item {
  background-color: #2a2a2a;
  color: #ffffff;
}

.certificates .certificate-item:hover {
  transform: translateY(-15px) scale(1.02);
  border-color: #0ff; /* Neon border color */
  box-shadow: 0 0 20px #0ff, 0 0 30px #0ff, 0 0 40px #0ff; /* Neon glow effect */
}

.certificates .certificate-img img {
  width: 100%;
  border-radius: 8px;
}

.certificates .certificate-info {
  padding-top: 15px;
}

.certificates .certificate-info h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.certificates .certificate-info p {
  font-size: 14px;
  color: var(--default-color); /* Change the color of the text in the certificate description */
  margin-bottom: 15px;
}

body.dark-mode .certificates .certificate-info p {
  color: #cccccc;
}

.certificates .certificate-info .btn {
  background-color: var(--accent-color);
  color: var(--contrast-color);
  border-radius: 50px;
  padding: 10px 20px;
  transition: 0.3s;
}

.certificates .certificate-info .btn:hover {
  background-color: color-mix(in srgb, var(--accent-color), transparent 25%);
}

/* Limit to 2 items per row */
@media (min-width: 768px) {
  .certificates .certificate-item {
    flex: 0 0 48%;
    margin-right: 4%;
  }
  .certificates .certificate-item:nth-child(2n) {
    margin-right: 0;
  }
}

.certificates .certificates-content {
  max-height: 600px;
  overflow: hidden;
  transition: max-height 0.5s ease;
}

.certificates .see-more-btn,
.certificates .see-less-btn {
  margin-top: 20px;
  background-color: var(--accent-color);
  color: var(--contrast-color);
  border: none;
  padding: 10px 20px;
  border-radius: 50px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.certificates .see-more-btn:hover,
.certificates .see-less-btn:hover {
  background-color: color-mix(in srgb, var(--accent-color), transparent 25%);
}

/*--------------------------------------------------------------
# Badges Section
--------------------------------------------------------------*/
.badges .badge-item {
  position: relative;
  background-color: var(--surface-color);
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.1);
  padding: 20px;
  border-radius: 15px;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 30px; /* Add gap between badge items */
  border: 2px solid transparent; /* Initial border */
}

body.dark-mode .badges .badge-item {
  background-color: #2a2a2a;
  color: #ffffff;
}

.badges .badge-item:hover {
  transform: translateY(-15px) scale(1.02);
  border-color: #0ff; /* Neon border color */
  box-shadow: 0 0 20px #0ff, 0 0 30px #0ff, 0 0 40px #0ff; /* Neon glow effect */
}

.badges .badge-img img {
  width: 100%;
  border-radius: 8px;
}

.badges .badge-info {
  padding-top: 15px;
}

.badges .badge-info h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.badges .badge-info p {
  font-size: 14px;
  color: var(--default-color); /* Change the color of the text in the badge description */
  margin-bottom: 15px;
}

body.dark-mode .badges .badge-info p {
  color: #cccccc;
}

.badges .see-more-btn {
  margin-top: 20px;
  background-color: var(--accent-color);
  color: var(--contrast-color);
  border: none;
  padding: 10px 20px;
  border-radius: 50px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.badges .see-more-btn:hover {
  background-color: color-mix(in srgb, var(--accent-color), transparent 25%);
}

/* Limit to 2 items per row */
@media (min-width: 768px) {
  .badges .badge-item {
    flex: 0 0 32%;
    margin-right: 2%;
  }
  .badges .badge-item:nth-child(3n) {
    margin-right: 0;
  }
}

/*--------------------------------------------------------------
# Blogs Section
--------------------------------------------------------------*/
.blogs .blog-item {
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: var(--surface-color);
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.1);
  padding: 20px;
  border-radius: 15px;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 30px; /* Add gap between blog items */
  border: 2px solid transparent; /* Initial border */
}

.blogs .blog-item:hover {
  transform: translateY(-15px) scale(1.02);
  border-color: #0ff; /* Neon border color */
  box-shadow: 0 0 20px #0ff, 0 0 30px #0ff, 0 0 40px #0ff; /* Neon glow effect */
}

.blogs .blog-img {
  width: 100%;
  border-radius: 8px;
  flex-shrink: 0;
}

.blogs .blog-info {
  padding-top: 15px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.blogs .blog-info h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.blogs .blog-info p {
  font-size: 14px;
  color: var(--default-color); /* Change the color of the text in the blog description */
  margin-bottom: 15px;
}

.blogs .blog-info .btn {
  background-color: var(--accent-color);
  color: var(--contrast-color);
  border-radius: 50px;
  padding: 10px 20px;
  transition: 0.3s;
}

.blogs .blog-info .btn:hover {
  background-color: color-mix(in srgb, var(--accent-color), transparent 25%);
}

/* Light Mode for Blog Items */
body.light-mode .blogs .blog-item {
  background-color: var(--surface-color);
  color: var(--default-color);
}

body.light-mode .blogs .blog-item:hover {
  background-color: color-mix(in srgb, var(--surface-color), transparent 10%);
}

/* Dark Mode for Blog Items */
body.dark-mode .blogs .blog-item {
  background-color: #2a2a2a;
  color: #ffffff;
}

body.dark-mode .blogs .blog-item:hover {
  background-color: color-mix(in srgb, #2a2a2a, transparent 10%);
}

/* Limit to 2 items per row */
@media (min-width: 768px) {
  .blogs .blog-item {
    flex: 0 0 48%;
    margin-right: 4%;
  }
  .blogs .blog-item:nth-child(2n) {
    margin-right: 0;
  }
}

.blogs .swiper-button-next,
.blogs .swiper-button-prev {
  display: none;
}

.blogs .swiper-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background-color: var(--background-color);
  opacity: 1;
  border: none; /* Remove the border */
}

.blogs .swiper-pagination .swiper-pagination-bullet-active {
  background-color: var(--accent-color);
}

/* Skills Section Technology Icons */
.skills-content .fab.fa-html5 {
  color: #e44d26;
}

.skills-content .fab.fa-css3-alt {
  color: #1572b6;
}

.skills-content .fab.fa-js {
  color: #f7df1e;
}

.skills-content .fab.fa-react {
  color: #61dafb;
}

.skills-content .fab.fa-node-js {
  color: #68a063;
}

.skills-content .fab.fa-python {
  color: #3776ab;
}

.skills-content .fab.fa-github {
  color: #333;
}

.skills-content .fas.fa-database {
  color: #17a2b8;
}

.skills-content .fas.fa-shield-alt {
  color: #dc3545;
}

.skills-content .fas.fa-brain {
  color: #28a745;
}

/* Contact Section Map */
.contact .map {
  border: 0;
  width: 100%;
  height: 325px;
  border-radius: 10px;
}

/* Enhanced Contact Form */
.contact .form-header {
  text-align: center;
  margin-bottom: 25px;
}

.contact .form-title {
  color: #149ddd;
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 10px;
}

.contact .form-subtitle {
  color: #666;
  font-size: 14px;
  margin-bottom: 0;
}

.contact .form-group {
  margin-bottom: 20px;
}

.contact .form-label {
  display: block;
  margin-bottom: 5px;
  color: #333;
  font-weight: 500;
  font-size: 14px;
}

.contact .form-control {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact .form-control:hover {
  border-color: rgba(20, 157, 221, 0.5);
  box-shadow: 0 0 15px rgba(20, 157, 221, 0.2);
  transform: translateY(-2px);
}

.contact .form-control:focus {
  outline: none;
  border-color: #149ddd;
  box-shadow: 0 0 0 3px rgba(20, 157, 221, 0.1);
  transform: translateY(-3px);
}

.contact .btn-submit {
  padding: 12px 30px;
  background: linear-gradient(45deg, #149ddd, #0d8bf0);
  color: #fff;
  border: none;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.contact .btn-submit:hover {
  background: linear-gradient(45deg, #0d8bf0, #149ddd);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 25px rgba(20, 157, 221, 0.4);
}

.contact .btn-submit:active {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 5px 15px rgba(20, 157, 221, 0.3);
}

.contact .char-counter {
  font-size: 12px;
  color: #999;
  text-align: right;
  margin-top: 5px;
}

/* Contact Section Enhancements */
.contact-enhancements {
  margin-top: 40px;
}

.contact-stats {
  display: flex;
  justify-content: space-around;
  text-align: center;
  margin-bottom: 30px;
}

.contact-stat {
  flex: 1;
  padding: 20px;
}

.contact-stat .stat-number {
  font-size: 32px;
  font-weight: 700;
  color: #149ddd;
  display: block;
}

.contact-stat .stat-label {
  font-size: 14px;
  color: #666;
  margin-top: 5px;
}

.contact-cta {
  text-align: center;
  background: linear-gradient(135deg, #149ddd, #0d8bf0);
  color: #fff;
  padding: 30px;
  border-radius: 15px;
  margin-top: 30px;
}

.contact-cta h3 {
  color: #fff;
  margin-bottom: 15px;
}

.contact-cta p {
  margin-bottom: 20px;
  opacity: 0.9;
}

.contact-cta .btn {
  background: #fff;
  color: #149ddd;
  padding: 12px 30px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.contact-cta .btn:hover {
  background: #f8f9fa;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .contact-stats {
    flex-direction: column;
  }
  
  .contact-stat {
    margin-bottom: 20px;
  }
}

/*--------------------------------------------------------------
# Enhanced Button Hover Effects
--------------------------------------------------------------*/
.btn, button, input[type="submit"] {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.btn:hover, button:hover, input[type="submit"]:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Enhanced Portfolio Filter Animation */
.portfolio .portfolio-filters li {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio .portfolio-filters li:hover {
  transform: translateY(-3px);
  text-shadow: 0 0 10px var(--accent-color);
}

/* Enhanced Stats Section Animation */
.stats .stats-item {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.stats .stats-item:hover {
  transform: translateY(-5px);
  background: linear-gradient(135deg, rgba(20, 157, 221, 0.1), rgba(0, 255, 255, 0.05));
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(20, 157, 221, 0.2);
}

/* Enhanced Image Hover Effects */
img {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

img:hover {
  transform: scale(1.02);
  filter: brightness(1.1) contrast(1.1);
}

/* Enhanced Scroll Top Button */
.scroll-top {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-top:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 10px 25px rgba(20, 157, 221, 0.4);
}

/* Enhanced Header Toggle */
.header-toggle,
.header .header-toggle {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-toggle:hover,
.header .header-toggle:hover {
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 5px 15px rgba(20, 157, 221, 0.3);
}

/* Enhanced Service Icon Animation */
.services .service-item .icon {
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.services .service-item:hover .icon {
  transform: scale(1.1) rotate(360deg);
}

/*--------------------------------------------------------------
# Enhanced Form Hover Effects
--------------------------------------------------------------*/
/* Form Group Hover Effects */
.contact .form-group {
  position: relative;
  transition: all 0.3s ease;
}

.contact .form-group:hover {
  transform: translateY(-2px);
}

/* Form Label Hover Effects */
.contact .form-label {
  transition: all 0.3s ease;
}

.contact .form-group:hover .form-label {
  color: var(--accent-color);
  transform: translateY(-2px);
}

/* Universal Form Elements Hover Effects */
input, textarea, select {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

input:hover, textarea:hover, select:hover {
  box-shadow: 0 2px 10px rgba(20, 157, 221, 0.15);
}

/* Enhanced Placeholder Animation */
.contact .php-email-form input::placeholder,
.contact .php-email-form textarea::placeholder {
  transition: all 0.3s ease;
}

.contact .php-email-form input:hover::placeholder,
.contact .php-email-form textarea:hover::placeholder {
  color: var(--accent-color);
  opacity: 0.7;
}

/* Form Focus States */
.contact .php-email-form input:focus::placeholder,
.contact .php-email-form textarea:focus::placeholder {
  transform: translateY(-20px);
  font-size: 12px;
  color: var(--accent-color);
}

/* Enhanced Submit Button Animation */
.contact .btn-submit::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.6s ease;
}

.contact .btn-submit:hover::before {
  width: 300px;
  height: 300px;
}

/* Form Error States with Hover */
.contact .php-email-form .error-message {
  transition: all 0.3s ease;
  border-radius: 8px;
}

.contact .php-email-form .error-message:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(223, 21, 41, 0.3);
}

/* Form Success States with Hover */
.contact .php-email-form .sent-message {
  transition: all 0.3s ease;
  border-radius: 8px;
}

.contact .php-email-form .sent-message:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(5, 150, 82, 0.3);
}

/* Loading State Animation */
.contact .php-email-form .loading {
  transition: all 0.3s ease;
  border-radius: 8px;
}

.contact .php-email-form .loading:hover {
  transform: scale(1.02);
  box-shadow: 0 5px 15px rgba(20, 157, 221, 0.2);
}

/* Enhanced Character Counter */
.contact .char-counter {
  transition: all 0.3s ease;
}

.contact .form-group:hover .char-counter {
  color: var(--accent-color);
  transform: translateY(-2px);
}

/* Form Field Focus Glow Effect */
.contact .form-control:focus,
.contact .php-email-form input:focus,
.contact .php-email-form textarea:focus {
  position: relative;
}

.contact .form-control:focus::after,
.contact .php-email-form input:focus::after,
.contact .php-email-form textarea:focus::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--accent-color), #0ff);
  border-radius: 8px;
  z-index: -1;
  filter: blur(10px);
  opacity: 0.7;
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from {
    filter: blur(10px);
    opacity: 0.7;
  }
  to {
    filter: blur(15px);
    opacity: 0.4;
  }
}

/*--------------------------------------------------------------
# Premium Portfolio Theme Overrides
--------------------------------------------------------------*/
body.light-mode {
  --background-color: #f4f8fc;
  --default-color: #243246;
  --heading-color: #102033;
  --surface-color: rgba(255, 255, 255, 0.88);
  --contrast-color: #ffffff;
  --nav-color: #475d78;
  --nav-hover-color: #102033;
  --nav-mobile-background-color: #ffffff;
  --nav-dropdown-background-color: #ffffff;
  --nav-dropdown-color: #475d78;
  --nav-dropdown-hover-color: #102033;
}

body.dark-mode {
  --background-color: #0b1220;
  --default-color: #eaf2ff;
  --heading-color: #ffffff;
  --surface-color: rgba(12, 20, 34, 0.9);
  --contrast-color: #ffffff;
  --nav-color: #dce7f7;
  --nav-hover-color: #ffffff;
  --nav-mobile-background-color: #09111d;
  --nav-dropdown-background-color: #09111d;
  --nav-dropdown-color: #dce7f7;
  --nav-dropdown-hover-color: #ffffff;
}

section:not(.hero),
.section:not(.hero) {
  color: var(--default-color);
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--accent-color), transparent 88%), transparent 30%),
    linear-gradient(180deg, color-mix(in srgb, var(--background-color), white 4%), var(--background-color));
}

section:not(.hero) .section-title h2,
.section:not(.hero) .section-title h2,
section:not(.hero) .section-title p,
.section:not(.hero) .section-title p {
  color: var(--heading-color);
}

section:not(.hero) .section-title h2:after,
.section:not(.hero) .section-title h2:after {
  background: linear-gradient(90deg, #19a7ff, #14b87d, #f6c34a);
}

section:not(.hero) .section-title p,
.section:not(.hero) .section-title p {
  max-width: 880px;
  color: color-mix(in srgb, var(--default-color), transparent 18%);
}

section:not(.hero) .btn,
.section:not(.hero) .btn {
  border: 0;
  background: linear-gradient(135deg, #19a7ff 0%, #1479db 55%, #0f5db3 100%);
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(20, 121, 219, 0.18);
}

section:not(.hero) .btn:hover,
.section:not(.hero) .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(20, 121, 219, 0.24);
}

.about .content,
.resume .resume-item,
.services .service-item,
.certificates .certificate-item,
.badges .badge-item,
.blogs .blog-item,
.contact .info-wrap,
.contact .php-email-form,
.projects .project-item,
.testimonials .testimonial-item p,
.skills .skills-overview .overview-card,
.skill-card {
  background: var(--surface-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 88%);
  box-shadow: 0 18px 40px rgba(16, 34, 61, 0.09);
  backdrop-filter: blur(16px);
}

.about .content:hover,
.resume .resume-item:hover,
.services .service-item:hover,
.certificates .certificate-item:hover,
.badges .badge-item:hover,
.blogs .blog-item:hover,
.contact .info-wrap:hover,
.contact .php-email-form:hover,
.projects .project-item:hover,
.testimonials .testimonial-item p:hover,
.skills .skills-overview .overview-card:hover,
.flip-card:hover .flip-card-front {
  border-color: color-mix(in srgb, var(--accent-color), transparent 70%);
  box-shadow: 0 24px 48px rgba(16, 34, 61, 0.12), 0 0 0 1px rgba(25, 167, 255, 0.08);
  transform: translateY(-6px);
}

.about .content h2,
.resume .resume-title,
.services .service-item .title,
.contact .info-item h3,
.contact .form-title,
.blogs .blog-info h3,
.blogs .blog-info h4,
.certificates .certificate-info h4,
.badges .badge-info h3,
.projects .project-info h3,
.testimonials .testimonial-item h3,
.project-section-heading h4,
.project-archive-heading h3,
.project-impact-box h4,
.skills .skills-overview .overview-card strong,
.skill-card .small,
.project-flagship h3,
.project-dashboard__header strong,
.project-dashboard__stats strong,
.project-dashboard__panel-row strong,
.project-feature-card span,
.project-highlight-card strong,
.project-tech-grid span,
.project-pill-row span {
  color: var(--heading-color);
}

.about .content ul i,
.stats .stats-item i,
.skills .progress .skill,
.skills .progress .skill .val,
.services .service-item .icon i,
.contact .info-item i,
.project-pill-row i,
.project-tech-grid i,
.project-feature-card i,
.project-highlight-card i,
.project-callout i,
.project-dashboard__footer i {
  color: var(--accent-color);
}

.skills .progress,
.skills .progress-bar-wrap,
.contact .form-control,
.contact .php-email-form input[type=text],
.contact .php-email-form input[type=email],
.contact .php-email-form textarea {
  background: var(--surface-color);
  border-color: color-mix(in srgb, var(--default-color), transparent 82%);
}

.skills .progress-bar {
  background: linear-gradient(90deg, #19a7ff, #14b87d);
}

.stats .stats-item,
.project-counter-card,
.project-dashboard,
.project-feature-card,
.project-highlight-card,
.project-tech-grid span,
.project-pill-row span,
.project-callout,
.project-impact-box,
.project-dashboard__stats div,
.project-dashboard__panel,
.project-dashboard__footer {
  background: var(--surface-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 88%);
  box-shadow: 0 16px 34px rgba(16, 34, 61, 0.08);
}

.stats .stats-item p,
.about .content p,
.resume .resume-item p,
.services .service-item .description,
.certificates .certificate-info p,
.badges .badge-info p,
.blogs .blog-info p,
.contact .info-item p,
.contact .form-subtitle,
.project-flagship__lead,
.project-flagship__intro p,
.project-callout p,
.project-impact-box p,
.projects .project-info p,
.testimonials .testimonial-item p,
.project-counter-card span,
.project-dashboard__header span,
.project-dashboard__panel-row span,
.project-dashboard__footer span,
.skills .section-title p {
  color: color-mix(in srgb, var(--default-color), transparent 20%);
}

.project-flagship {
  background: linear-gradient(145deg, color-mix(in srgb, var(--surface-color), white 6%), var(--surface-color));
  border-color: color-mix(in srgb, var(--default-color), transparent 88%);
  box-shadow: 0 28px 60px rgba(16, 34, 61, 0.12);
}

.project-flagship__eyebrow {
  color: color-mix(in srgb, var(--accent-color), black 10%);
  background: color-mix(in srgb, var(--accent-color), transparent 92%);
  border-color: color-mix(in srgb, var(--accent-color), transparent 82%);
}

.project-flagship__eyebrow i {
  color: var(--accent-color);
}

.project-flagship__link,
.project-flagship__primary {
  color: #ffffff;
  background: linear-gradient(135deg, #19a7ff, #1479db);
}

.project-flagship__ghost {
  color: var(--heading-color);
  background: color-mix(in srgb, var(--surface-color), white 12%);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 84%);
}

.project-dashboard__bar {
  background: color-mix(in srgb, var(--default-color), transparent 90%);
}

.project-dashboard__bar span {
  background: linear-gradient(90deg, #19a7ff, #14b87d, #f6c34a);
}

.services .service-item .title a,
.blogs .blog-info .btn,
.certificates .certificate-info .btn,
.badges .see-more-btn,
.certificates .see-more-btn,
.certificates .see-less-btn,
.contact .btn-submit,
.contact .php-email-form button[type=submit],
.resume-download-btn {
  background: linear-gradient(135deg, #19a7ff, #1479db);
  color: #ffffff;
}

.testimonials .swiper-pagination .swiper-pagination-bullet {
  background-color: color-mix(in srgb, var(--default-color), transparent 80%);
}

.testimonials .swiper-pagination .swiper-pagination-bullet-active {
  background-color: var(--accent-color);
}

body.light-mode .header {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(241, 246, 252, 0.96)),
    radial-gradient(circle at top, rgba(25, 167, 255, 0.1), transparent 42%);
  border-right: 1px solid rgba(16, 32, 51, 0.08);
  box-shadow: 12px 0 34px rgba(16, 34, 61, 0.08);
}

body.light-mode .header .logo,
body.light-mode .header .social-links {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(16, 32, 51, 0.08);
}

body.light-mode .header .logo h1,
body.light-mode .navmenu a,
body.light-mode .navmenu a:focus,
body.light-mode .header .social-links a {
  color: #102033;
}

body.light-mode .header .social-links a {
  background: rgba(16, 32, 51, 0.05);
}

body.dark-mode .header {
  background:
    linear-gradient(180deg, rgba(6, 12, 22, 0.98), rgba(10, 18, 32, 0.96)),
    radial-gradient(circle at top, rgba(25, 167, 255, 0.18), transparent 42%);
  border-right: 1px solid rgba(130, 193, 255, 0.14);
}

body.dark-mode .header .logo,
body.dark-mode .header .social-links {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .navmenu a,
body.dark-mode .navmenu a:focus,
body.dark-mode .header .social-links a {
  color: rgba(235, 243, 255, 0.78);
}

body.dark-mode .header .social-links a {
  background: rgba(255, 255, 255, 0.06);
}

body.dark-mode .skills .skills-overview .overview-card,
body.dark-mode .skill-card {
  background: linear-gradient(145deg, rgba(10, 20, 36, 0.94), rgba(15, 25, 41, 0.92));
  border-color: rgba(130, 193, 255, 0.12);
}

body.dark-mode .skills .skills-overview .overview-card p,
body.dark-mode .skill-card .small,
body.dark-mode .project-flagship__lead,
body.dark-mode .project-flagship__intro p,
body.dark-mode .project-callout p,
body.dark-mode .project-impact-box p,
body.dark-mode .projects .project-info p,
body.dark-mode .project-counter-card span,
body.dark-mode .project-dashboard__header span,
body.dark-mode .project-dashboard__panel-row span,
body.dark-mode .project-dashboard__footer span,
body.dark-mode .skills .section-title p {
  color: rgba(234, 242, 255, 0.76);
}

body.dark-mode .project-flagship {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(10, 20, 36, 0.88));
}

body.dark-mode .project-flagship__ghost {
  background: rgba(255, 255, 255, 0.05);
  color: #edf5ff;
  border-color: rgba(130, 193, 255, 0.14);
}

body.dark-mode .project-dashboard__bar {
  background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 767px) {
  .about .content,
  .resume .resume-item,
  .services .service-item,
  .certificates .certificate-item,
  .badges .badge-item,
  .blogs .blog-item,
  .contact .info-wrap,
  .contact .php-email-form,
  .projects .project-item,
  .testimonials .testimonial-item p,
  .skills .skills-overview .overview-card,
  .skill-card {
    transform: none;
  }
}