/**
* Template Name: DevFolio
* Template URL: https://bootstrapmade.com/devfolio-bootstrap-portfolio-html-template/
* Updated: Aug 07 2024 with Bootstrap v5.3.3
* Author: BootstrapMade.com
* License: https://bootstrapmade.com/license/
*/

/*--------------------------------------------------------------
# Font & Color Variables
# Help: https://bootstrapmade.com/color-system/
--------------------------------------------------------------*/
/* 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: #4e4e4e; /* Default color used for the majority of the text content across the entire website */
  --heading-color: #0a090f; /* Color for headings, subheadings and title throughout the website */
  --accent-color: #0078ff; /* 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: #ffffff;  /* 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: #ffffff; /* Used as the background color for mobile navigation menu */
  --nav-dropdown-background-color: #ffffff; /* Used as the background color for dropdown items that appear when hovering over primary navigation items */
  --nav-dropdown-color: #212529; /* Used for navigation links of the dropdown items in the navigation menu. */
  --nav-dropdown-hover-color: #0078ff; /* 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: #f9f9f9;
  --surface-color: #ffffff;
}

.dark-background {
  --background-color: #060606;
  --default-color: #ffffff;
  --heading-color: #ffffff;
  --surface-color: #252525;
  --contrast-color: #ffffff;
}

.accent-background {
  --background-color: #0078ff;
  --default-color: #ffffff;
  --heading-color: #ffffff;
  --accent-color: #ffffff;
  --surface-color: #3393ff;
  --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 {
  --background-color: #000000;
  --default-color: #ffffff;
  --heading-color: #ffffff;
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 20px 0;
  transition: all 0.5s;
  z-index: 997;
}

.header .logo {
  line-height: 1;
}

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

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

.scrolled .header {
  box-shadow: 0px 0 18px rgba(0, 0, 0, 0.1);
}

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
/* Desktop Navigation */
@media (min-width: 1200px) {
  .navmenu {
    padding: 0;
  }

  .navmenu ul {
    margin: 0;
    padding: 0;
    display: flex;
    list-style: none;
    align-items: center;
  }

  .navmenu li {
    position: relative;
  }

  .navmenu>ul>li {
    white-space: nowrap;
    padding: 15px 14px;
  }

  .navmenu>ul>li:last-child {
    padding-right: 0;
  }

  .navmenu a,
  .navmenu a:focus {
    color: var(--nav-color);
    font-size: 15px;
    padding: 0 2px;
    font-family: var(--nav-font);
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    transition: 0.3s;
    position: relative;
  }

  .navmenu a i,
  .navmenu a:focus i {
    font-size: 12px;
    line-height: 0;
    margin-left: 5px;
    transition: 0.3s;
  }

  .navmenu>ul>li>a:before {
    content: "";
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -6px;
    left: 0;
    background-color: var(--nav-hover-color);
    visibility: hidden;
    width: 0px;
    transition: all 0.3s ease-in-out 0s;
  }

  .navmenu a:hover:before,
  .navmenu li:hover>a:before,
  .navmenu .active:before {
    visibility: visible;
    width: 100%;
  }

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

  .navmenu .dropdown ul {
    margin: 0;
    padding: 10px 0;
    background: var(--nav-dropdown-background-color);
    display: block;
    position: absolute;
    visibility: hidden;
    left: 14px;
    top: 130%;
    opacity: 0;
    transition: 0.3s;
    border-radius: 4px;
    z-index: 99;
    box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.1);
  }

  .navmenu .dropdown ul li {
    min-width: 200px;
  }

  .navmenu .dropdown ul a {
    padding: 10px 20px;
    font-size: 15px;
    text-transform: none;
    color: var(--nav-dropdown-color);
  }

  .navmenu .dropdown ul a i {
    font-size: 12px;
  }

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

  .navmenu .dropdown:hover>ul {
    opacity: 1;
    top: 100%;
    visibility: visible;
  }

  .navmenu .dropdown .dropdown ul {
    top: 0;
    left: -90%;
    visibility: hidden;
  }

  .navmenu .dropdown .dropdown:hover>ul {
    opacity: 1;
    top: 0;
    left: -100%;
    visibility: visible;
  }
}

/* Mobile Navigation */
@media (max-width: 1199px) {
  .mobile-nav-toggle {
    color: var(--nav-color);
    font-size: 28px;
    line-height: 0;
    margin-right: 10px;
    cursor: pointer;
    transition: color 0.3s;
  }

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

  .navmenu ul {
    display: none;
    list-style: none;
    position: absolute;
    inset: 60px 20px 20px 20px;
    padding: 10px 0;
    margin: 0;
    border-radius: 6px;
    background-color: var(--nav-mobile-background-color);
    border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
    box-shadow: none;
    overflow-y: auto;
    transition: 0.3s;
    z-index: 9998;
  }

  .navmenu a,
  .navmenu a:focus {
    color: var(--nav-dropdown-color);
    padding: 10px 20px;
    font-family: var(--nav-font);
    font-size: 17px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    transition: 0.3s;
  }

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

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

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

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

  .navmenu .dropdown ul {
    position: static;
    display: none;
    z-index: 99;
    padding: 10px 0;
    margin: 10px 20px;
    background-color: var(--nav-dropdown-background-color);
    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);
  }

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

  .mobile-nav-active .mobile-nav-toggle {
    color: #fff;
    position: absolute;
    font-size: 32px;
    top: 15px;
    right: 15px;
    margin-right: 0;
    z-index: 9999;
  }

  .mobile-nav-active .navmenu {
    position: fixed;
    overflow: hidden;
    inset: 0;
    background: rgba(33, 37, 41, 0.8);
    transition: 0.3s;
  }

  .mobile-nav-active .navmenu>ul {
    display: block;
  }
}

/*--------------------------------------------------------------
# Global Footer
--------------------------------------------------------------*/
.footer {
  color: var(--default-color);
  background-color: var(--background-color);
  font-size: 14px;
  padding: 40px 0;
  position: relative;
}

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

.footer .social-links {
  margin-top: 20px;
}

.footer .social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 30%);
  font-size: 16px;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  margin: 0 5px;
  transition: 0.3s;
}

.footer .social-links a:hover {
  color: var(--default-color);
  border-color: var(--default-color);
}

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

.footer .credits a {
  color: color-mix(in srgb, var(--default-color), transparent 30%);
}

/*--------------------------------------------------------------
# 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 {
  --background-color: color-mix(in srgb, var(--default-color), transparent 96%);
  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;
  scroll-margin-top: 92px;
  overflow: clip;
}

@media (max-width: 1199px) {

  section,
  .section {
    scroll-margin-top: 76px;
  }
}

/*--------------------------------------------------------------
# Global Section Titles
--------------------------------------------------------------*/
/* ------- SKILLS heading: big + interactive ------- */
#skills h2.section-title {
  font-size: clamp(64px, 7.5vw, 112px) !important; /* beat template's 32px */
  font-weight: 900;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 44px;
  transition: transform .35s ease, letter-spacing .35s ease,
              text-shadow .35s ease, color .35s ease;
  display: inline-block;
}

#skills h2.section-title:hover {
  color: var(--accent-color);
  transform: scale(1.12);
  letter-spacing: 0.34em;
  text-shadow: 0 8px 28px rgba(0,0,0,.25);
}

#skills h2.section-title::after {
  content: "";
  display: block;
  width: 70px;
  height: 3px;
  background: var(--accent-color);
  margin: 14px auto 0;
  transition: width .35s ease;
}

#skills h2.section-title:hover::after {
  width: 140px;
}


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

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero {
  width: 100%;
  min-height: calc(100vh - 92px);
  position: relative;
  padding: 60px 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 30%);
  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: 36px;
  font-weight: 600;
}

.hero p span {
  letter-spacing: 1px;
}

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

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

/*--------------------------------------------------------------
# About Section
--------------------------------------------------------------*/
.about .container {
  background-color: var(--surface-color);
  box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
}

.about .skills-content h5 {
  font-size: 18px;
  font-weight: 700;
  margin: 30px 0 15px 0;
}

.about .progress {
  height: 36px;
  display: block;
  background: none;
  border-radius: 0;
  margin-top: 15px;
}

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

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

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

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

.about .about-me h4 {
  font-size: 28px;
  position: relative;
  padding-bottom: 10px;
  margin-bottom: 30px;
  font-weight: 700;
}

.about .about-me h4:after {
  content: "";
  position: absolute;
  display: block;
  width: 64px;
  height: 3px;
  background: var(--accent-color);
  left: 0;
  bottom: 0;
  margin: auto;
}

.about .about-me p {
  font-size: 18px;
}

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

/*--------------------------------------------------------------
# Services Section
--------------------------------------------------------------*/
.services .service-item {
  background-color: var(--surface-color);
  box-shadow: 0px 5px 90px 0px rgba(0, 0, 0, 0.1);
  padding: 60px 30px;
  transition: all ease-in-out 0.3s;
  border-radius: 18px;
  border-bottom: 5px solid var(--surface-color);
  height: 100%;
}

.services .service-item .icon {
  color: var(--contrast-color);
  background: var(--accent-color);
  margin: 0;
  width: 64px;
  height: 64px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 28px;
  transition: ease-in-out 0.3s;
}

.services .service-item h3 {
  font-weight: 700;
  margin: 10px 0 15px 0;
  font-size: 22px;
  transition: ease-in-out 0.3s;
}

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

@media (min-width: 1365px) {
  .services .service-item:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
  }

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

/*--------------------------------------------------------------
# Stats Section
--------------------------------------------------------------*/
.stats {
  position: relative;
  padding: 120px 0;
}

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

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

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

.stats .stats-item {
  padding: 30px;
  width: 100%;
}

.stats .stats-item span {
  font-size: 48px;
  display: block;
  color: var(--default-color);
  font-weight: 700;
}

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

/*--------------------------------------------------------------
# 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: 16px;
  font-weight: 600;
  margin: 0 10px;
  line-height: 1;
  text-transform: uppercase;
  margin-bottom: 5px;
  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-item {
  position: relative;
}

.portfolio .portfolio-item .portfolio-info {
  opacity: 0;
  position: absolute;
  left: 30px;
  right: 30px;
  bottom: 0;
  z-index: 3;
  transition: all ease-in-out 0.3s;
  background: color-mix(in srgb, var(--background-color), transparent 10%);
  padding: 15px;
}

.portfolio .portfolio-item .portfolio-info h4 {
  font-size: 18px;
  font-weight: 600;
  padding-right: 50px;
}

.portfolio .portfolio-item .portfolio-info p {
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  font-size: 14px;
  margin-bottom: 0;
  padding-right: 50px;
}

.portfolio .portfolio-item .portfolio-info .preview-link,
.portfolio .portfolio-item .portfolio-info .details-link {
  position: absolute;
  right: 50px;
  font-size: 24px;
  top: calc(50% - 14px);
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  transition: 0.3s;
  line-height: 0;
}

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

.portfolio .portfolio-item .portfolio-info .details-link {
  right: 14px;
  font-size: 28px;
}

.portfolio .portfolio-item:hover .portfolio-info {
  opacity: 1;
  bottom: 20px;
}

/*--------------------------------------------------------------
# Pricing Section
--------------------------------------------------------------*/
.pricing .pricing-item {
  border-bottom: 1px dashed color-mix(in srgb, var(--default-color), transparent 60%);
  width: 100%;
  height: 100%;
  padding: 0 0 15px 0;
}

.pricing .pricing-item h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

.pricing .pricing-item h4 {
  margin: 0;
  font-size: 18px;
  color: var(--accent-color);
}

/*--------------------------------------------------------------
# Faq Section
--------------------------------------------------------------*/
.faq .content h3 {
  font-weight: 400;
  font-size: 34px;
}

.faq .content p {
  font-size: 15px;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
}

.faq .faq-container .faq-item {
  background-color: var(--surface-color);
  position: relative;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0px 5px 25px 0px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.faq .faq-container .faq-item:last-child {
  margin-bottom: 0;
}

.faq .faq-container .faq-item h3 {
  font-weight: 600;
  font-size: 18px;
  line-height: 24px;
  margin: 0 30px 0 0;
  transition: 0.3s;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
}

.faq .faq-container .faq-item h3 .num {
  color: var(--accent-color);
  padding-right: 5px;
}

.faq .faq-container .faq-item h3:hover {
  color: var(--accent-color);
}

.faq .faq-container .faq-item .faq-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: 0.3s ease-in-out;
  visibility: hidden;
  opacity: 0;
}

.faq .faq-container .faq-item .faq-content p {
  margin-bottom: 0;
  overflow: hidden;
}

.faq .faq-container .faq-item .faq-toggle {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 16px;
  line-height: 0;
  transition: 0.3s;
  cursor: pointer;
}

.faq .faq-container .faq-item .faq-toggle:hover {
  color: var(--accent-color);
}

.faq .faq-container .faq-active h3 {
  color: var(--accent-color);
}

.faq .faq-container .faq-active .faq-content {
  grid-template-rows: 1fr;
  visibility: visible;
  opacity: 1;
  padding-top: 10px;
}

.faq .faq-container .faq-active .faq-toggle {
  transform: rotate(90deg);
  color: var(--accent-color);
}

/*--------------------------------------------------------------
# Testimonials Section
--------------------------------------------------------------*/
.testimonials {
  padding: 80px 0;
  position: relative;
}

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

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

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

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

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

.testimonials .testimonial-item .testimonial-img {
  width: 100px;
  border-radius: 50%;
  border: 6px solid color-mix(in srgb, var(--default-color), transparent 85%);
  margin: 0 auto;
}

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

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

.testimonials .testimonial-item .stars {
  margin-bottom: 15px;
}

.testimonials .testimonial-item .stars i {
  color: #ffc107;
  margin: 0 1px;
}

.testimonials .testimonial-item .quote-icon-left,
.testimonials .testimonial-item .quote-icon-right {
  color: color-mix(in srgb, var(--default-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 auto 15px auto;
}

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

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

.testimonials .swiper-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background-color: color-mix(in srgb, var(--default-color), transparent 50%);
  opacity: 0.5;
}

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

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

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

.contact .info-item i {
  font-size: 20px;
  color: var(--accent-color);
  width: 56px;
  height: 56px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease-in-out;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--accent-color), transparent 40%);
  margin-right: 15px;
}

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

.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);
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.1);
  padding: 30px;
}

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

/*--------------------------------------------------------------
# Portfolio Details Section
--------------------------------------------------------------*/
.portfolio-details .portfolio-details-slider img {
  width: 100%;
}

.portfolio-details .swiper-wrapper {
  height: auto;
}

.portfolio-details .swiper-button-prev,
.portfolio-details .swiper-button-next {
  width: 48px;
  height: 48px;
}

.portfolio-details .swiper-button-prev:after,
.portfolio-details .swiper-button-next:after {
  color: rgba(255, 255, 255, 0.8);
  background-color: rgba(0, 0, 0, 0.15);
  font-size: 24px;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}

.portfolio-details .swiper-button-prev:hover:after,
.portfolio-details .swiper-button-next:hover:after {
  background-color: rgba(0, 0, 0, 0.3);
}

@media (max-width: 575px) {

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

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

.portfolio-details .swiper-pagination .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background-color: color-mix(in srgb, var(--default-color), transparent 85%);
  opacity: 1;
}

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

.portfolio-details .portfolio-info h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 20px;
  position: relative;
}

.portfolio-details .portfolio-info h3:after {
  content: "";
  position: absolute;
  display: block;
  width: 50px;
  height: 3px;
  background: var(--accent-color);
  left: 0;
  bottom: 0;
}

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

.portfolio-details .portfolio-info ul li {
  display: flex;
  flex-direction: column;
  padding-bottom: 15px;
}

.portfolio-details .portfolio-info ul strong {
  text-transform: uppercase;
  font-weight: 400;
  color: color-mix(in srgb, var(--default-color), transparent 50%);
  font-size: 14px;
}

.portfolio-details .portfolio-info .btn-visit {
  padding: 8px 40px;
  background: var(--accent-color);
  color: var(--contrast-color);
  border-radius: 50px;
  transition: 0.3s;
}

.portfolio-details .portfolio-info .btn-visit:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 20%);
}

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

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

.portfolio-details .portfolio-description .testimonial-item {
  padding: 30px 30px 0 30px;
  position: relative;
  background: color-mix(in srgb, var(--default-color), transparent 97%);
  margin-bottom: 50px;
}

.portfolio-details .portfolio-description .testimonial-item .testimonial-img {
  width: 90px;
  border-radius: 50px;
  border: 6px solid var(--background-color);
  float: left;
  margin: 0 10px 0 0;
}

.portfolio-details .portfolio-description .testimonial-item h3 {
  font-size: 18px;
  font-weight: bold;
  margin: 15px 0 5px 0;
  padding-top: 20px;
}

.portfolio-details .portfolio-description .testimonial-item h4 {
  font-size: 14px;
  color: #6c757d;
  margin: 0;
}

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

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

.portfolio-details .portfolio-description .testimonial-item .quote-icon-right {
  display: inline-block;
  right: -5px;
  position: relative;
  top: 10px;
  transform: scale(-1, -1);
}

.portfolio-details .portfolio-description .testimonial-item p {
  font-style: italic;
  margin: 0 0 15px 0 0 0;
  padding: 0;
}

/*--------------------------------------------------------------
# Service Details Section
--------------------------------------------------------------*/
.service-details .services-list {
  background-color: var(--surface-color);
  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);
}
/* =============================================================
   SKILLS — big interactive heading, tighter layout, 8/row grid,
   stronger hover, enlarge matches when filtered
   ============================================================= */

/* ---------- Section title (support both markup variants) ---------- */
#skills h2.section-title,
#skills .section-title h2 {
  font-size: clamp(36px, 4vw, 56px) !important;
  font-weight: 900;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 28px;                     /* tighter to fit more on screen */
  transition: transform .35s ease, letter-spacing .35s ease,
              text-shadow .35s ease, color .35s ease;
  display: inline-block;
}
#skills h2.section-title:hover,
#skills .section-title h2:hover {
  color: var(--accent-color);
  transform: scale(1.12);
  letter-spacing: 0.34em;
  text-shadow: 0 8px 28px rgba(0,0,0,.25);
}
#skills h2.section-title::after,
#skills .section-title h2::after {
  content: "";
  display: block;
  width: 70px;
  height: 3px;
  background: var(--accent-color);
  margin: 14px auto 0;
  transition: width .35s ease;
}
#skills h2.section-title:hover::after,
#skills .section-title h2:hover::after {
  width: 140px;
}

/* ---------- Category pills ---------- */
#skills .skills-categories {
  gap: 12px 16px;               /* tighter */
  margin-bottom: 18px;          /* tighter */
  justify-content: center;
  flex-wrap: wrap;
}
#skills .skill-category {
  cursor: pointer;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid #e2e2e2;
  background: #fff;
  color: #333;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .02em;
  box-shadow: 0 1px 6px rgba(0,0,0,.05);
  transition: transform .2s ease, box-shadow .2s ease,
              border-color .2s ease, background .2s ease;
  user-select: none;
}
#skills .skill-category:hover {
  background: #f7f7f7;
  border-color: #999;
  box-shadow: 0 3px 10px rgba(0,0,0,.12);
  transform: translateY(-1px) scale(1.04);
}
#skills .skill-category.active {
  background: #efefef;
  color: #000;
  border-color: #999;
  box-shadow: 0 3px 10px rgba(0,0,0,.12);
}

/* ---------- Grid layout (fits on screen better) ---------- */
#skills #skillsGrid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);  /* desktop: 8 per row */
  gap: 18px 22px;                         /* row-gap, column-gap */
  justify-items: center;
  align-items: start;
  padding-inline: 6px;
}
/* neutralize Bootstrap column sizing inside the grid */
#skills #skillsGrid > [class*="col-"] {
  width: auto !important;
  max-width: none !important;
  flex: 0 0 auto !important;
}

/* ---------- Skill cards ---------- */
#skills .skill-card {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid #e2e2e2;
  background: #fff;
  box-shadow: 0 1px 6px rgba(0,0,0,.06);
  transition: transform .22s ease, box-shadow .22s ease,
              border-color .22s ease, filter .22s ease;
  margin: 0;                      /* grid controls spacing */
  text-align: center;
  padding: 6px;
  will-change: transform;
}
#skills .skill-card:hover {
  border-color: #9a9a9a;          /* gray outline */
  box-shadow: 0 10px 22px rgba(0,0,0,.18);
  transform: scale(1.16);         /* stronger hover enlarge */
}
#skills .skill-card img,
#skills .skill-logo {
  width: 30px;
  height: 30px;
  object-fit: contain;
  margin-bottom: 6px;
}
#skills .skill-card span {
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.2;
}

/* When filtering: auto-enlarge all matching (non-dimmed) cards */
#skills:has(.skill-category.active:not([data-category="all"])) .skill-card:not(.dimmed) {
  transform: scale(1.10);
  box-shadow: 0 6px 16px rgba(0,0,0,.12);
  border-color: #d0d0d0;
}
/* And let hover stack on top of that */
#skills:has(.skill-category.active:not([data-category="all"])) .skill-card:not(.dimmed):hover {
  transform: scale(1.20);
}

/* Fade non-matching */
#skills .skill-card.dimmed {
  filter: grayscale(100%) opacity(.45);
  box-shadow: none;
  transform: none;
}

/* ---------- Responsive grid ---------- */
@media (min-width: 1400px) {
  /* Optional: pack more on ultra-wide screens */
  #skills #skillsGrid { grid-template-columns: repeat(9, 1fr); }
}
@media (max-width: 1199.98px) {
  #skills #skillsGrid { grid-template-columns: repeat(7, 1fr); }
}
@media (max-width: 991.98px) {
  #skills #skillsGrid { grid-template-columns: repeat(6, 1fr); }
}
@media (max-width: 767.98px) {
  #skills #skillsGrid { grid-template-columns: repeat(4, 1fr); gap: 16px 18px; }
  #skills .skill-card { width: 72px; height: 72px; }
}
@media (max-width: 479.98px) {
  #skills #skillsGrid { grid-template-columns: repeat(3, 1fr); gap: 14px 16px; }
  #skills .skill-card { width: 68px; height: 68px; }
}

/* =============================================================
   ABOUT — image + info side-by-side, polished typography,
   subtle highlight on hover, responsive stacking
   ============================================================= */

/* Subtle section highlight on hover */
#about:hover .container {
  box-shadow: 0 16px 44px rgba(0,0,0,.10);
  transition: box-shadow .3s ease;
  border-radius: 18px;
}

/* Center the two main columns vertically */
#about .row.gy-4,
#about .row.justify-content-between.gy-4 {
  align-items: center;
}

/* Image: fill its column nicely, keep aspect */
#about .col-lg-5 img.img-fluid {
  width: 100%;
  height: auto;
  max-height: 460px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
}

/* Info block spacing & typography */
#about .about-info p {
  margin-bottom: 10px;
  font-size: 17px;
  line-height: 1.4;
}
#about .about-info strong {
  color: var(--heading-color);
  font-weight: 800;
}

/* Tidy the container after removing progress bars */
#about .container {
  padding: 32px 28px;
}

/* Desktop width balance (without touching your HTML) */
@media (min-width: 992px) {
  #about .col-lg-5 { flex: 0 0 42%; max-width: 42%; }
  #about .col-lg-7 { flex: 0 0 58%; max-width: 58%; }
}

/* Tablet: stack with nice spacing */
@media (max-width: 991.98px) {
  #about .col-lg-5,
  #about .col-lg-7 { max-width: 100%; flex: 0 0 100%; }
  #about .col-lg-5 { margin-bottom: 16px; }
  #about .col-lg-5 img.img-fluid { max-height: 360px; }
}

/* Small phones */
@media (max-width: 575.98px) {
  #about .container { padding: 24px 18px; }
  #about .about-info p { font-size: 16px; }
  #about .col-lg-5 img.img-fluid {
    max-height: 300px;
    border-radius: 12px;
  }
}

/* -----------------------------
   ABOUT — layout + polish
   ----------------------------- */

/* Align the two main columns nicely */
#about .row.gy-4 { align-items: center; }

/* Image styling */
#about img.img-fluid {
  width: 100%;
  height: auto;
  max-height: 460px;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
}

/* Contact/info text tweaks */
#about .about-info p {
  margin-bottom: 10px;
  font-size: 17px;
  line-height: 1.45;
}
#about .about-info strong {
  font-weight: 800;
  color: var(--heading-color);
}

/* About me card */
#about .about-me {
  background: var(--surface-color);
  border: 1px solid #eee;
  border-radius: 16px;
  padding: 24px 22px;
  box-shadow: 0 8px 22px rgba(0,0,0,.06);
}
#about .about-me h4 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 12px;
  position: relative;
}
#about .about-me h4::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent-color);
  margin-top: 8px;
}
#about .about-me p {
  font-size: 16.5px;
  line-height: 1.65;
  margin-bottom: 12px;
}

/* Section hover highlight */
#about .container {
  transition: background-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
#about:hover .container {
  background-color: color-mix(in srgb, var(--accent-color), transparent 96%);
  box-shadow: 0 18px 38px rgba(0,0,0,.12);
  transform: translateY(-2px);
}

/* Desktop: balance image/info split a bit */
@media (min-width: 992px) {
  #about .col-lg-5 { flex: 0 0 42%; max-width: 42%; }
  #about .col-lg-7 { flex: 0 0 58%; max-width: 58%; }
}

/* Tablet/phone stack */
@media (max-width: 991.98px) {
  #about img.img-fluid { max-height: 360px; }
  #about .about-me { margin-top: 6px; }
}
@media (max-width: 575.98px) {
  #about img.img-fluid { max-height: 300px; border-radius: 12px; }
  #about .about-info p { font-size: 16px; }
}

/* Hero buttons (bigger + more visible) */
.hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 28px;
}

.hero-buttons .hero-btn {
  padding: 14px 34px;              /* bigger size */
  font-size: 1.1rem;               /* larger text */
  font-weight: 700;                /* bolder text */
  border-radius: 50px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
}

/* Resume button */
.hero-buttons .resume-btn {
  background: var(--accent-color);
  border: none;
  color: #fff;
}
.hero-buttons .resume-btn:hover {
  background: #3393ff;
  transform: scale(1.1);
  box-shadow: 0 0 18px rgba(0,120,255,0.6);
}

/* LinkedIn button */
.hero-buttons .linkedin-btn {
  background: #0a66c2;
  border: none;
  color: #fff;
}
.hero-buttons .linkedin-btn:hover {
  background: #004182;
  transform: scale(1.1);
  box-shadow: 0 0 18px rgba(10,102,194,0.6);
}

/* Contact button */
.hero-buttons .contact-btn {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
}
.hero-buttons .contact-btn:hover {
  background: #fff;
  color: #000;
  transform: scale(1.1);
  box-shadow: 0 0 18px rgba(255,255,255,0.5);
}

/* ==========================================================
   PROJECTS — full CSS (text left, image right, consistent spacing)
   ========================================================== */

/* Section width + spacing */
.projects .container { max-width: 1040px; }
.projects .section-title { margin-bottom: 18px; }

/* Card base */
.project-card {
  display: flex !important;                 /* enforce flex */
  align-items: center;
  justify-content: flex-start;              /* remove big left gap */
  gap: 32px;                                /* space between text and image */
  padding: 24px 28px;
  margin: 0 0 28px 0;
  background: var(--surface-color);
  color: inherit;
  text-decoration: none;
  border-radius: 24px;                      /* pill rectangle */
  border: 2px solid color-mix(in srgb, var(--default-color), transparent 80%);
  box-shadow: 0 6px 20px rgba(0,0,0,.06);
  position: relative;                       /* for ::before ring */
  transform: translateY(0) scale(1);
  transition:
    transform .20s ease,
    box-shadow .20s ease,
    border-color .20s ease,
    background .20s ease;
  will-change: transform, box-shadow, border-color, background;
}

/* Decorative focus/hover outline */
.project-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 26px;
  pointer-events: none;
  border: 2px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.project-card:hover,
.project-card:focus-visible {
  transform: translateY(-3px) scale(1.02);
  border-color: color-mix(in srgb, var(--accent-color), transparent 50%);
  box-shadow: 0 14px 30px rgba(0,0,0,.12);
  background: color-mix(in srgb, var(--accent-color), transparent 96%);
  text-decoration: none;
}
.project-card:hover::before,
.project-card:focus-visible::before {
  border-color: color-mix(in srgb, var(--accent-color), transparent 28%);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent-color), transparent 88%);
}
.project-card:focus-visible { outline: none; }

/* ---------- Force visual order: text left, image right ---------- */
.project-card__body  { order: 1; flex: 1 1 auto; min-width: 0; }
.project-card__media { order: 2; flex: 0 0 240px; width: 240px; height: 160px; }

/* ----- Left: text block ----- */
.project-card__title {
  margin: 0 0 10px 0;
  font-weight: 800;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.28;
  color: var(--heading-color);
}
.project-card__desc {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.6;
  color: color-mix(in srgb, var(--default-color), transparent 15%);
}

/* ----- Right: image block (standardized size) ----- */
.project-card__media {
  border-radius: 16px;
  overflow: hidden;
  background: #f5f7fb;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  transition: box-shadow .25s ease, transform .25s ease;
}
.project-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;                         /* uniform crop */
  transform: scale(1);
  transition: transform .35s ease;
}
.project-card:hover .project-card__media,
.project-card:focus-visible .project-card__media {
  box-shadow: 0 10px 24px rgba(0,0,0,.12);
}
.project-card:hover .project-card__media img,
.project-card:focus-visible .project-card__media img {
  transform: scale(1.06);                    /* subtle image zoom */
}

/* First card spacing safeguard (prevents subtitle overlap) */
.projects .container { padding-top: 6px; }
.projects .container .project-card:first-child { margin-top: 10px; }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .project-card { gap: 24px; padding: 22px 24px; }
  .project-card__media { flex-basis: 220px; width: 220px; height: 146px; }
}
@media (max-width: 767.98px) {
  .project-card { flex-direction: column; text-align: center; gap: 16px; }
  .project-card__body  { order: 1; }
  .project-card__media { order: 2; width: min(100%, 340px); height: auto; aspect-ratio: 16/10; }
}

/* ---------- Motion preference ---------- */
@media (prefers-reduced-motion: reduce) {
  .project-card,
  .project-card__media,
  .project-card__media img,
  .project-card::before {
    transition: none !important;
  }
}

/* ===== Project tech tags ===== */
.project-card__tags {
  margin: 10px 0 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.project-tag {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  line-height: 1;
  font-weight: 600;
  background: color-mix(in srgb, var(--accent-color), transparent 92%);
  border: 1px solid color-mix(in srgb, var(--accent-color), transparent 70%);
  color: color-mix(in srgb, var(--heading-color), transparent 10%);
  white-space: nowrap;
}
/* --- Project tech stack line --- */
.project-card__stack {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.4;
  color: color-mix(in srgb, var(--default-color), transparent 15%);
}
.project-card__stack strong { font-weight: 800; }

/* --- Project meta row (stack + chips) --- */
.project-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 10px;
}

/* Keep your bold stack line but allow it to sit in the meta row */
.project-card__stack {
  margin: 0;                  /* we’ll control spacing via the meta row */
  font-size: 14px;
  line-height: 1.5;
  color: color-mix(in srgb, var(--default-color), transparent 15%);
}
.project-card__stack strong { font-weight: 800; }

/* GitHub chip (not a nested link; the whole card is already an <a>) */
.gh-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #0d1117;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .01em;
  box-shadow: 0 2px 10px rgba(0,0,0,.18);
  user-select: none;
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}
.gh-chip i { font-size: 16px; line-height: 0; }
.project-card:hover .gh-chip {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0,0,0,.22);
}

/* Stack above/below gracefully on small screens */
@media (max-width: 575.98px) {
  .project-card__meta { flex-direction: column; align-items: flex-start; }
}

.hero-buttons .mail-btn {
  background: #25a244; /* green */
  border: none;
  color: #fff;
}
.hero-buttons .mail-btn:hover {
  background: #1f7d36;
  transform: scale(1.1);
  box-shadow: 0 0 18px rgba(37,162,68,0.5);
}

/* Compact layout modifier */
.hero-buttons--compact {
  gap: 14px;                    /* less space between buttons */
  flex-wrap: wrap;              /* wrap nicely if needed */
}

/* Compact button sizing */
.hero-buttons--compact .hero-btn {
  padding: 10px 20px;           /* smaller */
  font-size: 0.98rem;           /* slightly smaller text */
  gap: 8px;                     /* icon/text gap */
  border-radius: 42px;          /* still pill-ish, a bit tighter */
  transform: none;              /* reset scale by default */
}

/* Softer hover (less jumpy to avoid crowding) */
.hero-buttons--compact .hero-btn:hover {
  transform: translateY(-1px) scale(1.06);
  box-shadow: 0 6px 16px rgba(0,0,0,.18);
}

/* GitHub button style */
.hero-buttons .github-btn {
  background: #24292e;          /* GitHub dark */
  border: none;
  color: #fff;
}
.hero-buttons .github-btn:hover {
  background: #1f2328;
}

/* Keep your existing button color schemes working */
.hero-buttons .resume-btn { /* already in your CSS */ }
.hero-buttons .linkedin-btn { /* already in your CSS */ }
.hero-buttons .contact-btn { /* already in your CSS */ }
.hero-buttons .mail-btn {    /* from earlier reply, or keep your green scheme */ }

/* Responsive: make them a touch smaller on narrow screens */
@media (max-width: 480px) {
  .hero-buttons--compact { gap: 10px; }
  .hero-buttons--compact .hero-btn {
    padding: 9px 16px;
    font-size: 0.95rem;
  }
}

/* Make footer dark like hero */
#footer {
  --background-color: #060606;
  --default-color: #ffffff;
  --heading-color: #ffffff;
  --surface-color: #252525;
  --contrast-color: #ffffff;
  background-color: var(--background-color);
  color: var(--default-color);
}

/* Make footer links/icons pop a bit more on dark */
#footer .social-links a {
  border-color: color-mix(in srgb, var(--default-color), transparent 30%);
  color: color-mix(in srgb, var(--default-color), transparent 35%);
}
#footer .social-links a:hover {
  color: var(--default-color);
  border-color: var(--default-color);
}
#footer .credits a {
  color: color-mix(in srgb, var(--default-color), transparent 20%);
}
#footer .credits a:hover {
  color: var(--default-color);
}

/* Balanced layout (slightly bigger than compact, tidy spacing) */
.hero-buttons--balanced {
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Button sizing tuned to your site scale */
.hero-buttons--balanced .hero-btn {
  padding: 12px 26px;       /* a touch bigger */
  font-size: 1.02rem;       /* slightly larger text */
  font-weight: 700;
  border-radius: 48px;
  gap: 10px;
  line-height: 1.1;
}

/* Subtle hover so the row stays tidy */
.hero-buttons--balanced .hero-btn:hover {
  transform: translateY(-1px) scale(1.05);
  box-shadow: 0 8px 18px rgba(0,0,0,.18);
}

/* GitHub style */
.hero-buttons .github-btn {
  background: #24292e;
  border: none;
  color: #fff;
}
.hero-buttons .github-btn:hover {
  background: #1f2328;
}

/* Keep your existing resume/linkedin/contact color schemes working */
.hero-buttons .resume-btn { /* already defined elsewhere */ }
.hero-buttons .linkedin-btn { /* already defined elsewhere */ }
.hero-buttons .contact-btn { /* already defined elsewhere */ }

/* Optional: equal visual width on large screens for perfect alignment */
@media (min-width: 992px) {
  .hero-buttons--balanced .hero-btn {
    min-width: 160px;        /* align edges nicely */
    text-align: center;
    justify-content: center;
  }
}

/* Small screens: prevent crowding */
@media (max-width: 480px) {
  .hero-buttons--balanced { gap: 12px; }
  .hero-buttons--balanced .hero-btn { padding: 11px 20px; font-size: 0.98rem; }
}

/* Big, bold, reusable heading */
.bold-head {
  font-size: clamp(44px, 6.5vw, 80px);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.08;
  text-align: center;
  margin: 0 0 14px 0;
  color: var(--heading-color); /* honors your theme */
  position: relative;
}

/* Accent underline */
.bold-head::after {
  content: "";
  display: block;
  width: 120px;
  height: 4px;
  background: var(--accent-color);
  margin: 12px auto 0;
  border-radius: 2px;
  transition: width .25s ease, background .25s ease;
}

/* Optional hover pop (matches your Skills vibe) */
.bold-head:hover {
  color: var(--accent-color);
  transform: scale(1.04);
  transition: transform .25s ease, color .25s ease;
}
.bold-head:hover::after {
  width: 160px;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .bold-head,
  .bold-head::after {
    transition: none !important;
  }
}
