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

: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 {
  --background-color: #f4fafd;
  --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;
}

/*--------------------------------------------------------------
# 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;
}

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

.header .profile-img img {
  margin: 15px auto;
  display: block;
  width: 120px;
  border: 8px solid color-mix(in srgb, var(--default-color), transparent 85%);
}

.header .logo {
  line-height: 1;
  margin-bottom: 15px;
}

.header .logo img {
  max-height: 32px;
  margin-right: 8px;
}

.header .logo h1 {
  font-size: 24px;
  margin: 0;
  font-weight: 700;
  color: var(--heading-color);
}

.header .social-links {
  margin: 0 0 20px 0;
}

.header .social-links a {
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--default-color), transparent 90%);
  color: var(--default-color);
  margin: 0 2px;
  border-radius: 50%;
  text-align: center;
  width: 40px;
  height: 40px;
  transition: 0.3s;
}

.header .social-links a:hover {
  color: var(--contrast-color);
  background: var(--accent-color);
}

@media (min-width: 1200px) {

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

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

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

.header .header-toggle {
  color: var(--contrast-color);
  background-color: var(--accent-color);
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  position: fixed;
  top: 15px;
  right: 15px;
  z-index: 9999;
  transition: background-color 0.3s;
}

.header .header-toggle:hover {
  color: var(--contrast-color);
  background-color: color-mix(in srgb, var(--accent-color) 90%, white 15%);
}

/*--------------------------------------------------------------
# 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: var(--nav-color);
  padding: 15px 10px;
  font-family: var(--nav-font);
  font-size: 16px;
  font-weight: 400;
  display: flex;
  align-items: center;
  white-space: nowrap;
  transition: 0.3s;
  width: 100%;
}

.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: var(--nav-hover-color);
}

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

.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: var(--nav-dropdown-background-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  box-shadow: none;
  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(33, 37, 41, 0.03);
}

/*--------------------------------------------------------------
# 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;
  background: var(--background-color);
  transition: all 0.6s ease-out;
}

#preloader:before {
  content: "";
  position: fixed;
  top: calc(50% - 30px);
  left: calc(50% - 30px);
  border: 6px solid #ffffff;
  border-color: var(--accent-color) transparent var(--accent-color) transparent;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: animate-preloader 1.5s linear infinite;
}

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

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

/*--------------------------------------------------------------
# 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: transparent !important;
  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: rgba(0,0,0,0.25) !important;
  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: 0.3s;
}

.hero .social-links a:hover {
  color: 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;
}

/* View CV Button */
.view-cv-btn {
  background: linear-gradient(135deg,#0dd6b8,#1da2c6);
  color: #fff !important;
  border-radius: 8px;
  font-weight: 600;
  border: none;
}

.view-cv-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  transition: 0.3s;
}

/* Download CV Button */
.download-cv-btn {
  background: linear-gradient(135deg,#1cbf50,#0aa43a);
  color: #fff !important;
  border-radius: 8px;
  font-weight: 600;
  border: none;
}

.download-cv-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  transition: 0.3s;
}

/*--------------------------------------------------------------
# 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-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 18px;
  margin-top: 30px;
}

.skill-card {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 14px;
  padding: 18px 10px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.25);
  transition: transform .3s ease, box-shadow .3s ease;
  cursor: pointer;
  animation: fadeUp .6s ease forwards;
  opacity: 0;
  object-fit: contain;
}

.skill-card img {
  width: 42px;
  height: 42px;
  margin-bottom: 8px;
  transition: transform .25s;
}

.skill-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.13);
}

.skill-card:hover img {
  transform: scale(1.15);
}

.skill-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 25px;
}


.skill-tabs .tab {
  padding: 10px 22px;
  margin: 4px;
  font-weight: 600;
  font-size: 15px;
  background: #f1f1f1;
  border-radius: 25px;
  border: none !important;
  outline: none !important;
  box-shadow: 0 0 0 rgba(0,0,0,0) !important;
  transition: all 0.25s ease;
}

.skill-tabs .tab.active {
  background: linear-gradient(135deg, #007bff, #00d4ff);
  color: white !important;
  box-shadow: 0 4px 12px rgba(0, 128, 255, 0.3);
}

.skill-tabs .tab:hover {
  background: #e1e1e1;
  transform: translateY(-2px);
}

@keyframes fadeUp {
  from {opacity:0; transform: translateY(12px);}
  to {opacity:1; transform: translateY(0);}
}

/* ✅ Mobile improvements */
/* Mobile improvements */
@media (max-width: 768px) {
  .skill-tabs .tab {
    padding: 8px 18px;
    font-size: 14px;
  }
}

/*--------------------------------------------------------------
# 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;
}

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

/*--------------------------------------------------------------
# Project Section — FINAL CLEAN VERSION
--------------------------------------------------------------*/


/* ===== Project Card ===== */
.project-card {
  background: #fff;
  border-radius: 16px;
  padding: 14px;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 8px 22px rgba(0,0,0,0.06);
  transition: 0.25s ease;
  overflow: hidden;
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.12);
}

/* ===== Card Image ===== */
.project-img {
  width: 100%;
  height: 210px !important; /* bigger image */
  object-fit: cover;
  border-radius: 12px;
  transition: 0.3s ease;
}

.project-card:hover .project-img {
  transform: scale(1.045);
  opacity: 0.92;
}

/* ===== Card Content ===== */
.project-content {
  padding: 15px 10px;
}

.project-content h4 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 8px;
}

.project-content p {
  font-size: 14px;
  color: #333;
  margin-bottom: 12px;
  line-height: 1.45;
}

/* ===== Tech Tags ===== */
.tech-tags span {
  background: #eaf6ef;
  color: #187445;
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 14px;
  display: inline-block;
  margin-right: 6px;
  margin-bottom: 6px;
  font-weight: 500;
}

/* ===== View Details Link ===== */
.project-link {
  font-size: 13px;
  font-weight: 600;
  color: #17723e;
  text-decoration: none;
}

.project-link:hover {
  color: #0b4b26;
  text-decoration: underline;
}


/* Fix project card responsiveness */
.project-card {
  background: #fff;
  border-radius: 20px;
  padding: 15px;
  width: 100%;
  height: auto;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Make images scalable */
.project-img {
  width: 100%;
  height: auto;
  border-radius: 15px;
  object-fit: cover;
}

/* Ensure spacing works in Isotope */
.isotope-layout .col-lg-4,
.isotope-layout .col-md-6 {
  padding: 0 10px !important;
}

/* REMOVE horizontal scrolling */
html, body {
  overflow-x: hidden !important;
}

/* Mobile responsive fixes */
@media (max-width: 768px) {

  .project-card {
    width: 100% !important;
    max-width: 100% !important;
  }

  #portfolio .col-lg-4,
  #portfolio .col-md-6 {
    width: 100% !important;
    max-width: 100% !important;
  }

  .isotope-layout {
    width: 100% !important;
  }
}


/* Desktop column spacing */
#portfolio .col-lg-4,
#portfolio .col-md-6 {
  margin-bottom: 20px;
  padding: 0 10px;
}

/* Mobile: Full width columns */
@media (max-width: 768px) {
  #portfolio .col-lg-4,
  #portfolio .col-md-6 {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
  }
}

/* ============================
   ✅ Modal Styles
============================ */
.project-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(4px);
  z-index: 5000;
  align-items: center;
  justify-content: center;
}

/* Modal box */
.project-modal-content {
  width: 90%;
  max-width: 800px;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  animation: modalIn .25s ease;
}

/* Modal Close Button */
.project-close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 26px;
  font-weight: 700;
  border: none;
  background: #fff;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  line-height: 34px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.22);
}

.project-close:hover {
  background: #ef5350;
  color: #fff;
}

/* Modal image */
.project-modal-img img {
  width: 100%;
  height: 350px;
  object-fit: cover;
}

/* Modal content */
.project-modal-body {
  padding: 25px;
}

/* Modal tags */
.project-modal-body .tech-tags span {
  padding: 6px 12px;
  margin-right: 8px;
}

/* Live Demo Button */
.live-demo-btn {
  display: inline-block;
  margin-top: 14px;
  background: #2e7d32;
  padding: 10px 18px;
  border-radius: 8px;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.live-demo-btn:hover {
  background: #1d5b23;
}

/* ===== Animations ===== */
@keyframes modalIn {
  from {opacity: 0; transform: scale(.92);}
  to   {opacity: 1; transform: scale(1);}
}

.project-modal.show {
  display: flex;
  animation: fadeInBG .25s ease;
}

.project-modal.hide {
  animation: fadeOutBG .25s ease forwards;
}

@keyframes fadeInBG {
  from {opacity: 0;}
  to   {opacity: 1;}
}

@keyframes fadeOutBG {
  from {opacity: 1;}
  to   {opacity: 0;}
}

.project-modal-content.hide {
  animation: modalOut .25s ease forwards;
}

@keyframes modalOut {
  from {opacity: 1; transform: scale(1);}
  to   {opacity: 0; transform: scale(.92);}
}

/* Ensure the card content fills height */
.project-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Push the link to the bottom */
.project-link {
  margin-top: auto; /* pushes link to bottom */
  font-size: 13px;
  font-weight: 600;
  color: #17723e;
  text-decoration: none;
  align-self: flex-end; /* moves to right */
}

.project-link:hover {
  color: #0b4b26;
  text-decoration: underline;
}


/* ============================
   ✅ Certificate Section
============================ */
.certificate-card {
  background: #fff;
  border-radius: 16px;
  padding: 14px;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 8px 22px rgba(0,0,0,0.06);
  transition: 0.25s ease;
  overflow: hidden;
}

.certificate-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.12);
}

.certificate-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
}

.certificate-content {
  padding: 12px 8px;
}

.certificate-content h4 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
}

.certificate-content p {
  font-size: 14px;
  color: #444;
  margin-bottom: 12px;
}

.view-cert-btn {
  display: inline-block;
  padding: 8px 14px;
  background: #1a7bda;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
}



.view-cert-btn:hover {
  background: #1461aa;
}

/* Mobile fix */
@media (max-width: 768px) {
  .certificate-img {
    height: auto;
  }
}


/*--------------------------------------------------------------
# Contact Section
--------------------------------------------------------------*/
.contact .info-wrap {
  background-color: var(--surface-color);
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.1);
  padding: 30px;
}

@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.3s ease-in-out;
  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);
}

.contact .php-email-form {
  background-color: var(--surface-color);
  height: 100%;
  padding: 30px;
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.1);
}

@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: 0;
  color: var(--default-color);
  background-color: var(--surface-color);
  border-color: color-mix(in srgb, var(--default-color), transparent 80%);
}

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

.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: 0.4s;
  border-radius: 50px;
}

.contact .php-email-form button[type=submit]:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 25%);
}

/*--------------------------------------------------------------
# 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%);
}


/* ==========================================================
   ✅ FUTURISTIC RESPONSIVE BACKGROUND (DESKTOP + MOBILE)
   ========================================================== */

.gradient-bg {
  position: fixed;
  top: 0;

  /* ✅ Desktop layout (sidebar 300px) */
  left: 300px;
  width: calc(100vw - 300px);
  height: 100vh;

  z-index: -1 !important;
  pointer-events: none;
  overflow: hidden;

  /* ✅ Main gradient layer */
  background:
    radial-gradient(circle at 20% 30%, rgba(45,136,255,0.45), transparent 60%),
    radial-gradient(circle at 80% 70%, rgba(255,80,220,0.45), transparent 60%),
    linear-gradient(135deg, #0a2cf0, #1579ff, #00eaff, #6a00ff, #b300ff);
  
  background-size: 200% 200%;
  animation: gradientShift 18s ease infinite;

  opacity: 0.15;
  filter: blur(2px);
}

/* ✅ Mobile: full screen background */
@media (max-width: 1199px) {
  .gradient-bg {
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    filter: blur(1px);
    opacity: 0.18;
  }
}

/* ==========================================================
   ✅ LAYERS (mobile-compatible using ::before & ::after)
   ========================================================== */

/* ✅ GLOW BLOBS + PARTICLES (layer 1) */
.gradient-bg::before {
  content: "";
  position: absolute;
  inset: 0;

  background:
    /* Glow blobs */
    radial-gradient(circle at 15% 20%, rgba(255,255,255,0.20), transparent 60%),
    radial-gradient(circle at 85% 80%, rgba(0,255,240,0.25), transparent 60%),

    /* Soft particles */
    radial-gradient(circle, rgba(255,255,255,0.5) 2px, transparent 2px),
    radial-gradient(circle, rgba(255,255,255,0.35) 2px, transparent 2px),
    radial-gradient(circle, rgba(255,255,255,0.25) 2px, transparent 2px);

  background-size:
    600px 600px,
    600px 600px,
    4px 4px,
    5px 5px,
    6px 6px;

  background-position:
    10% 20%,
    90% 80%,
    0 0,
    60px 120px,
    120px 60px;

  filter: blur(1px);
  opacity: 0.35;

  animation: particleFloat 22s linear infinite;
}

/* ✅ GRID + LIGHT BEAM (layer 2) */
.gradient-bg::after {
  content: "";
  position: absolute;
  inset: 0;

  background:
    /* Neon Grid */
    linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px),

    /* Light Beam */
    linear-gradient(
      120deg,
      transparent 0%,
      rgba(255,255,255,0.15) 50%,
      transparent 100%
    );

  background-size:
    60px 60px,
    60px 60px,
    200% 200%;

  background-repeat: repeat;

  mix-blend-mode: screen;
  opacity: 0.15;

  animation:
    gridMove 26s linear infinite,
    beamSweep 14s ease-in-out infinite;
}

/* ==========================================================
   ✅ ANIMATIONS
   ========================================================== */

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

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

@keyframes gridMove {
  0%   { transform: translateY(0px); }
  100% { transform: translateY(-120px); }
}

@keyframes beamSweep {
  0%   { transform: translateX(-100%) skewX(-20deg); }
  60%  { transform: translateX(100%)  skewX(-20deg); }
  100% { transform: translateX(100%)  skewX(-20deg); }
}

/* ==========================================================
   ✅ Ensure content stays above background
   ========================================================== */

body, main, section, .section, .page-title {
  background: transparent !important;
}

main, section, .section {
  position: relative;
  z-index: 10 !important;
}

:root {
  --background-color: transparent !important;
}

/* ✅ Force transparent backgrounds for ALL sections on mobile */
@media (max-width: 1199px) {

  body, main, section, .section, .page-title,
  .stats, .about, .skills, .resume, .contact,
  #about, #skills, #resume, #contact {
    background: transparent !important;
    background-color: transparent !important;
  }
}
