/**
* Template Name: iPortfolio
* Template URL: https://bootstrapmade.com/iportfolio-bootstrap-portfolio-websites-template/
* Updated: Jun 29 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;
}

/* Earthtone Color Palette - Default colors from the provided palette */
:root {
  /* Earthtone Base Colors */
  --earthtone-almond: #E3D5C5;      /* Lightest - for backgrounds and light text */
  --earthtone-khaki: #9E9B88;       /* Light neutral - for secondary text and subtle elements */
  --earthtone-ebony: #59614B;       /* Medium green - for accents and interactive elements */
  --earthtone-blackolive: #2D3126;  /* Dark green - for headings and strong contrast */
  --earthtone-black: #000000;       /* Darkest - for high contrast text */
  
  /* Global Colors - Using earthtone palette as defaults (customizable via WordPress Customizer) */
  --background-color: var(--earthtone-almond); /* Light earthtone background */
  --default-color: var(--earthtone-blackolive); /* Dark earthtone for main text */
  --heading-color: var(--earthtone-black); /* Black for strong headings */
  --accent-color: var(--earthtone-ebony); /* Medium earthtone for accents */
  --surface-color: #ffffff; /* White for cards and surfaces */
  --contrast-color: var(--earthtone-almond); /* Light earthtone for contrast text */
  --secondary-text: var(--earthtone-khaki); /* Neutral earthtone for secondary text */
  --border-color: rgba(158, 155, 136, 0.3); /* Khaki with transparency for borders */
  --shadow-color: rgba(45, 49, 38, 0.1); /* Blackolive with transparency for shadows */
}

/* Nav Menu Colors - Using earthtone palette as defaults (customizable via WordPress Customizer) */
:root {
  --nav-color: var(--earthtone-khaki);  /* Khaki earthtone for nav links */
  --nav-hover-color: var(--earthtone-almond); /* Light earthtone for hover state */
  --nav-mobile-background-color: var(--earthtone-blackolive); /* Dark earthtone for mobile menu background */
  --nav-dropdown-background-color: var(--earthtone-blackolive); /* Dark earthtone for dropdown background */
  --nav-dropdown-color: var(--earthtone-khaki); /* Khaki earthtone for dropdown text */
  --nav-dropdown-hover-color: var(--earthtone-almond); /* Light earthtone for dropdown hover */
}

/* 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: var(--earthtone-almond);
  --surface-color: #ffffff;
  --default-color: var(--earthtone-blackolive);
  --heading-color: var(--earthtone-black);
}

.dark-background {
  --background-color: var(--earthtone-blackolive);
  --default-color: var(--earthtone-almond);
  --heading-color: var(--earthtone-almond);
  --surface-color: var(--earthtone-ebony);
  --contrast-color: var(--earthtone-almond);
}

.earthtone-light {
  --background-color: var(--earthtone-almond);
  --default-color: var(--earthtone-blackolive);
  --heading-color: var(--earthtone-black);
  --surface-color: #ffffff;
  --accent-color: var(--earthtone-ebony);
}

.earthtone-medium {
  --background-color: var(--earthtone-khaki);
  --default-color: var(--earthtone-blackolive);
  --heading-color: var(--earthtone-black);
  --surface-color: var(--earthtone-almond);
  --accent-color: var(--earthtone-ebony);
}

.earthtone-dark {
  --background-color: var(--earthtone-ebony);
  --default-color: var(--earthtone-almond);
  --heading-color: var(--earthtone-almond);
  --surface-color: var(--earthtone-khaki);
  --accent-color: var(--earthtone-almond);
}

/* 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);
  margin-top: 70px; /* Account for fixed top header */
}

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

/*--------------------------------------------------------------
# Top Header - Contact Us styling updated
--------------------------------------------------------------*/

/* Services - Lively hover effects for service icons/cards */
.services-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

/* Responsive services grid */
@media (max-width: 768px) {
  .services-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 576px) {
  .services-container {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.service-item .services-item {
  background: var(--surface-color);
  border: 1px solid rgba(20, 157, 221, 0.15);
  border-radius: 14px;
  padding: 24px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-item .services-item i {
  /* Bigger, vibrant, and accessible icon style */
  --icon-size: 56px;
  --icon-grad: linear-gradient(135deg, #149ddd 0%, #0d8abc 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--icon-size);
  height: var(--icon-size);
  border-radius: 50%;
  background: var(--icon-grad);
  color: #ffffff;
  font-size: 1.6rem;
  box-shadow: 0 10px 25px rgba(20, 157, 221, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  backface-visibility: hidden;
}

.service-item .services-item i::after {
  /* Ripple ring on hover */
  content: '';
  position: absolute;
  width: calc(var(--icon-size) + 10px);
  height: calc(var(--icon-size) + 10px);
  border-radius: 50%;
  border: 2px solid rgba(20, 157, 221, 0.25);
  transform: scale(0.8);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.service-item:hover .services-item i {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 16px 40px rgba(20, 157, 221, 0.35);
}

.service-item:hover .services-item i::after {
  opacity: 1;
  transform: scale(1.05);
}

@media (prefers-reduced-motion: reduce) {
  .service-item .services-item i,
  .service-item .services-item i::after {
    transition: none;
  }
}

.service-item .services-item .title {
  margin-top: 12px;
  margin-bottom: 8px;
}

.service-item .services-item .description {
  color: color-mix(in srgb, var(--default-color), transparent 25%);
}

.service-item:hover .services-item {
  transform: translateY(-6px);
  box-shadow: 0 16px 45px rgba(20, 157, 221, 0.25);
  border-color: rgba(20, 157, 221, 0.35);
}

.service-item:hover .services-item i {
  transform: translateY(-2px) scale(1.08);
}

/* Subtle ambient glow using ::after */
.service-item .services-item::after {
  content: '';
  position: absolute;
  inset: -40% -40% auto -40%;
  height: 60%;
  background: radial-gradient(60% 60% at 50% 50%, rgba(20,157,221,0.18), transparent 60%);
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
  transform: translateY(30%);
}

.service-item:hover .services-item::after {
  opacity: 1;
  transform: translateY(0%);
}

@media (prefers-reduced-motion: reduce) {
  .service-item .services-item,
  .service-item .services-item i,
  .service-item .services-item::after {
    transition: none;
  }
}

/* Contact cards (reuse services styling) */
.contact .info-wrap {
  display: block;
}

.contact .contact-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

/* Make contact card wrappers block-level and clickable; remove link decoration if anchor */
.contact .contact-card {
  display: block;
}
.contact a.contact-card {
  text-decoration: none !important;
  color: inherit !important;
}

/* Ensure inner services-item fills clickable area */
.contact .contact-card .services-item {
  cursor: pointer;
}

/* Adjust icon size for contact cards to match services */
.contact .contact-card .services-item i {
  --icon-size: 52px;
}

/* Responsive: two-up layout on wider columns if needed */
@media (min-width: 576px) and (max-width: 991.98px) {
  .contact .contact-cards {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 575.98px) {
  .contact .contact-cards {
    grid-template-columns: 1fr;
  }
}

.contact .info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.contact .info-item i {
  width: 36px;
  min-width: 36px;
  text-align: center;
  font-size: 1.25rem;
  line-height: 1;
  margin-top: 2px; /* small nudge so first letters line up nicely */
  color: var(--accent-color);
}

.contact .info-item > div {
  flex: 1;
}

.contact .info-item h3 {
  margin: 0 0 4px 0;
  text-align: left;
}

.contact .info-item p {
  margin: 0;
  text-align: left;
}

.top-header {
  background-color: var(--background-color);
  border-bottom: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 15px 0;
}

.top-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  flex-wrap: nowrap; /* Prevent wrapping which could cause vertical layout */
  min-height: 60px; /* Ensure consistent height */
}

.top-header .logo-section {
  flex-shrink: 0;
}

.top-header .top-logo {
  color: var(--heading-color);
  text-decoration: none;
}

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

.top-header .top-logo img {
  max-height: 40px;
  width: auto;
}

/* Logo wrapper with social icons - Enhanced horizontal layout */
.logo-wrapper {
  display: flex !important;
  align-items: center !important;
  gap: 15px;
  width: auto; /* Changed from fit-content to auto for better flexibility */
  flex-wrap: nowrap; /* Ensure items stay on same line */
  min-width: 0; /* Allow flexibility in small spaces */
  flex-direction: row !important; /* Force horizontal layout */
}

.header-social-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-direction: row; /* Explicitly set horizontal direction */
  flex-wrap: nowrap; /* Prevent wrapping */
  flex-shrink: 0; /* Prevent shrinking */
}

.header-social-links .social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--default-color);
  text-decoration: none;
  border-radius: 50%;
  transition: all 0.3s ease;
  font-size: 16px;
}

.header-social-links .social-icon:hover {
  color: var(--accent-color);
  background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
  transform: translateY(-2px);
}

/* Sample social media icons styling for debugging */
.header-social-links.sample-social {
  border: 1px dashed rgba(255, 255, 255, 0.3) !important;
  padding: 5px !important;
  background: rgba(255, 0, 0, 0.1) !important; /* Temporary red background for visibility */
}

.sample-social .social-icon {
  background: rgba(20, 157, 221, 0.2) !important;
  color: #149ddd !important;
  border: 1px solid #149ddd !important;
}

/* Force visibility for debugging */
.header-social-links {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Desktop-only styles for social icons and logo wrapper */
@media (min-width: 769px) {
  .header-social-links .social-icon {
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
  }
  
  .logo-wrapper {
    justify-content: left;
    width: fit-content;
    display: flex;
  }
  
  /* Hide social media icons from top navigation on desktop only */
  .top-nav-menu .social-icon,
  .top-navigation .social-icon,
  .top-nav-menu li[class*="twitter"],
  .top-nav-menu li[class*="facebook"],
  .top-nav-menu li[class*="instagram"],
  .top-nav-menu li[class*="linkedin"],
  .top-nav-menu li[class*="github"],
  .top-nav-menu a[href*="twitter.com"],
  .top-nav-menu a[href*="x.com"],
  .top-nav-menu a[href*="facebook.com"],
  .top-nav-menu a[href*="instagram.com"],
  .top-nav-menu a[href*="linkedin.com"],
  .top-nav-menu a[href*="github.com"] {
    display: none !important;
  }
  
}

/* Top Navigation */
.top-navigation {
  flex: 1;
  display: flex;
  justify-content: center;
}

.top-nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 30px;
}

.top-nav-menu li {
  position: relative;
}

.top-nav-menu a {
  color: var(--default-color);
  text-decoration: none;
  font-family: var(--nav-font);
  font-size: 16px;
  font-weight: 500;
  padding: 10px 0;
  transition: color 0.3s ease;
  position: relative;
}

.top-nav-menu a:hover,
.top-nav-menu a.active {
  color: var(--accent-color);
}

.top-nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}

.top-nav-menu a:hover::after,
.top-nav-menu a.active::after {
  width: 100%;
}

/* Mobile Menu Toggle */
.top-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.top-menu-toggle:hover {
  background-color: color-mix(in srgb, var(--default-color), transparent 90%);
}

@media (max-width: 576px) {
  .top-menu-toggle {
    width: 40px;
    height: 40px;
    min-width: 40px;
    padding: 6px;
  }
}

.hamburger {
  width: 24px;
  height: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--default-color);
  transition: all 0.3s ease;
}

/* Mobile Menu Toggle Animation */
.top-menu-toggle.active .hamburger span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.top-menu-toggle.active .hamburger span:nth-child(2) {
  opacity: 0;
}

.top-menu-toggle.active .hamburger span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Sidebar elements hidden on desktop */
.sidebar-header {
  display: none;
}

.sidebar-close {
  display: none;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 9998;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Mobile responsive logo wrapper - Enhanced horizontal layout */
@media (max-width: 768px) {
  .logo-wrapper {
    gap: 10px;
    display: flex; /* Explicitly ensure flex display */
    align-items: center;
    flex-direction: row; /* Explicitly set horizontal direction */
    width: auto;
  }
  
  .top-header .top-logo h1 {
    font-size: 20px;
    white-space: nowrap; /* Prevent text wrapping that could cause vertical layout */
  }
  
  .header-social-links {
    display: flex;
    flex-direction: row; /* Ensure social icons stay horizontal */
    gap: 8px; /* Reduced gap for mobile */
  }
  
  .header-social-links .social-icon {
    width: 28px;
    height: 28px;
    font-size: 14px;
    flex-shrink: 0; /* Prevent icons from shrinking */
  }
}

/* Extra small screens - maintain horizontal layout */
@media (max-width: 480px) {
  .logo-wrapper {
    gap: 8px; /* Even smaller gap for very small screens */
    max-width: 100%; /* Ensure it doesn't overflow */
  }
  
  .top-header .top-logo h1 {
    font-size: 18px; /* Smaller font size */
  }
  
  .header-social-links {
    gap: 6px; /* Smaller gap between icons */
  }
  
  .header-social-links .social-icon {
    width: 26px;
    height: 26px;
    font-size: 13px;
  }
  
  .top-header-content {
    padding: 0 15px; /* Reduce padding for very small screens */
  }
}

/* Mobile Navigation - Sidebar from right */
@media (max-width: 768px) {
  .top-menu-toggle {
    display: flex;
    z-index: 10000;
  }
  
  .top-navigation {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background-color: var(--background-color);
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    transition: all 0.3s ease;
    justify-content: flex-start;
    padding: 80px 20px 20px;
    overflow-y: auto;
    z-index: 9999;
  }
  
  .top-navigation.active {
    right: 0;
    transform: translateX(0);
  }
  
  .sidebar-header {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 15px 20px;
    background-color: var(--accent-color);
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .sidebar-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: white;
  }
  
  .sidebar-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
  }
  
  .sidebar-close:hover {
    background-color: rgba(255, 255, 255, 0.1);
  }
  
  .top-nav-menu {
    flex-direction: column;
    gap: 0;
    width: 100%;
    margin-top: 20px;
  }
  
  .top-nav-menu li {
    border-bottom: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  }
  
  .top-nav-menu li:last-child {
    border-bottom: none;
  }
  
  .top-nav-menu a {
    padding: 18px 15px;
    color: var(--default-color);
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    border-radius: 6px;
    margin: 2px 0;
  }
  
  .top-nav-menu a:hover {
    background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
    color: var(--accent-color);
    padding-left: 20px;
  }
  
  .top-nav-menu a::after {
    display: none;
  }
}

/* Tablet responsiveness */
@media (max-width: 992px) and (min-width: 769px) {
  .top-menu-toggle {
    display: flex;
    z-index: 10000;
  }
  
  .top-navigation {
    position: fixed;
    top: 0;
    right: -350px;
    width: 350px;
    height: 100vh;
    background-color: var(--background-color);
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    justify-content: flex-start;
    padding: 80px 30px 20px;
    overflow-y: auto;
    z-index: 9999;
  }
  
  .top-navigation.active {
    right: 0;
  }
  
  .top-nav-menu {
    flex-direction: column;
    gap: 5px;
    width: 100%;
  }
  
  .top-nav-menu a {
    padding: 20px 15px;
    font-size: 18px;
  }
}


/*--------------------------------------------------------------
# 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: #ffffff;
  background-color: #040b14;
  padding: 25px 0;
  position: relative;
}

/* When a banner image is set from Customizer */
.page-title.has-banner {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.page-title.has-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--background-color), transparent 70%);
}
.page-title.has-banner .container {
  position: relative;
  z-index: 1;
}

/* Make page-title full width regardless of parent container */
.page-title,
.page-title.dark-background {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.page-title .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  position: relative;
  width: auto;
}

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

/* Responsive container sizes */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (max-width: 1200px) {
  .container {
    max-width: 960px;
    padding: 0 15px;
  }
}

@media (max-width: 992px) {
  .container {
    max-width: 720px;
    padding: 0 15px;
  }
}

@media (max-width: 768px) {
  .container {
    max-width: 540px;
    padding: 0 15px;
  }
}

@media (max-width: 576px) {
  .container {
    padding: 0 12px;
  }
}

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

/*--------------------------------------------------------------
# Stats Section - Single line layout with auto-sizing
--------------------------------------------------------------*/
.stats .stats-container {
  display: flex;
  flex-wrap: nowrap;
  gap: 24px;
  align-items: stretch;
  justify-content: space-between;
}

.stats .stat-item {
  flex: 1 1 0;
  min-width: 0;
}

.stats .stats-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 24px 16px;
  text-align: center;
  white-space: nowrap;
}

.stats .stats-item i {
  color: var(--accent-color);
  font-size: clamp(24px, 2.2vw, 44px);
  line-height: 1;
}

.stats .stats-item .purecounter {
  color: var(--heading-color);
  font-size: clamp(22px, 2.6vw, 48px);
  line-height: 1;
  display: inline-block;
  font-weight: 700;
  margin: 0;
}

.stats .stats-item p {
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  padding: 0;
  margin: 0;
  font-family: var(--heading-font);
  font-size: clamp(12px, 1.1vw, 14px);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}


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

/*--------------------------------------------------------------
# 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 - Updated to match stats layout
--------------------------------------------------------------*/
.services .services-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  align-items: start;
}

@media (max-width: 768px) {
  .services .services-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

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

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

.services .services-item .title {
  color: var(--heading-color);
  font-size: 18px;
  font-weight: 700;
  line-height: 40px;
  display: block;
  margin-left: 50px;
  margin-bottom: 10px;
}

.services .services-item .description {
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  padding: 5px 0 0 0;
  margin: 0 0 0 50px;
  font-family: var(--heading-font);
  font-size: 14px;
  line-height: 24px;
  /* Hidden by default for click-to-reveal */
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.2s ease;
}

/* Show description when card is active */
.services .service-item.active .services-item .description,
.services .service-item[aria-expanded="true"] .services-item .description {
  max-height: 300px;
  opacity: 1;
  margin-top: 8px;
}

/* Make whole services card clickable */
.services .service-item { cursor: pointer; }

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

@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);
  padding: 30px;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12), 0 0 0 1px color-mix(in srgb, var(--default-color), transparent 90%);
}

/* Ensure only one visible box - make inner structures transparent */
.contact .php-email-form form,
.contact .php-email-form .nf-form-cont,
.contact .php-email-form .nf-form-layout,
.contact .php-email-form .nf-form-content {
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  border: 0 !important;
}

/* Field colors inside Ninja Forms */
.contact .php-email-form .nf-field-label label,
.contact .php-email-form .nf-field-element input,
.contact .php-email-form .nf-field-element textarea,
.contact .php-email-form .nf-error-wrap,
.contact .php-email-form .nf-response-msg {
  color: var(--default-color);
}

/* Layout for Ninja Forms: name + email side by side, then subject, message, submit */
 .contact .php-email-form .nf-form-content .nf-fields-wrap {
  display: grid !important;
  grid-template-columns: 1fr 1fr; /* Always 2 columns so name and email stay same line */
  gap: 0 !important; /* no space between fields */
}
/* Use data-field-key when available */
.contact .php-email-form .nf-form-content [data-field-key="name"] { grid-column: 1; }
.contact .php-email-form .nf-form-content [data-field-key="email"] { grid-column: 2; }
.contact .php-email-form .nf-form-content [data-field-key="subject"] { grid-column: 1 / -1; }
.contact .php-email-form .nf-form-content [data-field-key="message"] { grid-column: 1 / -1; }
.contact .php-email-form .nf-form-content [data-field-type="submit"],
.contact .php-email-form .nf-form-content .nf-submit-wrap { grid-column: 1 / -1; }

/* Fallback ordering if data-field-key is not present */
.contact .php-email-form .nf-form-content .nf-field-container:nth-child(1) { grid-column: 1; }
.contact .php-email-form .nf-form-content .nf-field-container:nth-child(2) { grid-column: 2; }
.contact .php-email-form .nf-form-content .nf-field-container:nth-child(3) { grid-column: 1 / -1; }
.contact .php-email-form .nf-form-content .nf-field-container:nth-child(4) { grid-column: 1 / -1; }

/* Spacing and inputs */
.contact .php-email-form .nf-field-label { margin-bottom: 0 !important; }
.contact .php-email-form .nf-form-content .nf-field-container { margin: 0 !important; padding: 0 !important; }
.contact .php-email-form .nf-field-element input,
.contact .php-email-form .nf-field-element textarea,
.contact .php-email-form input[type="text"],
.contact .php-email-form input[type="email"],
.contact .php-email-form textarea {
  width: 100%;
  border-color: color-mix(in srgb, var(--default-color), transparent 85%);
  background-color: var(--surface-color);
  border-radius: 14px;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--default-color), transparent 88%), 0 12px 24px rgba(0,0,0,0.08);
}

/* Explicitly round Ninja Forms inputs by id prefix */
.contact .php-email-form input[id^="nf-field-"],
.contact .php-email-form textarea[id^="nf-field-"],
.contact .php-email-form select[id^="nf-field-"] {
  border-radius: 14px !important;
  margin: 0 !important;
}
/* Remove padding-bottom from labels (e.g., .pb-2) inside the form */
.contact .php-email-form .pb-2 { padding-bottom: 0 !important; }
/* Remove general input/textarea/select margins just in case */
.contact .php-email-form input,
.contact .php-email-form textarea,
.contact .php-email-form select { margin: 0 !important; }

/* Inputs focus state: accent colored blurry outline */
.contact .php-email-form .nf-field-element input:focus,
.contact .php-email-form .nf-field-element textarea:focus,
.contact .php-email-form input[type="text"]:focus,
.contact .php-email-form input[type="email"]:focus,
.contact .php-email-form textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-color), transparent 80%), 0 10px 24px rgba(0,0,0,0.10);
}

/* Rounded button with soft shadow */
.contact .php-email-form button,
.contact .php-email-form input[type="submit"],
.contact .php-email-form .nf-form-content .nf-field-element button,
.contact .php-email-form .nf-form-content .nf-submit-wrap input[type="button"],
.contact .php-email-form .nf-form-content .nf-submit-wrap input[type="submit"] {
  border-radius: 9999px !important;
  box-shadow: 0 10px 24px color-mix(in srgb, var(--accent-color), transparent 68%);
}

/* Center the submit button and adjust size */
.contact .php-email-form .nf-form-content .nf-submit-wrap {
  display: flex !important;
  justify-content: center !important;
  margin: 0 !important;
}
.contact .php-email-form .nf-form-content .nf-submit-wrap input[type="button"],
.contact .php-email-form .nf-form-content .nf-submit-wrap input[type="submit"],
.contact .php-email-form .nf-form-content .nf-field-element button,
.contact .php-email-form #nf-field-4 {
  padding: 14px 22px !important; /* more height, moderate width */
  width: auto !important;
  min-width: unset !important;
}
/* Desktop: ensure at least 250px width */
@media (min-width: 992px) {
  #nf-field-4 { min-width: 250px !important; }
}
/* Tablet and smaller: center submit button */
@media (max-width: 991.98px) {
  .contact .php-email-form .nf-form-content .nf-submit-wrap {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    text-align: center !important;
  }
  .contact .php-email-form .nf-form-content .nf-submit-wrap input[type="submit"],
  .contact .php-email-form .nf-form-content .nf-field-element button,
  .contact .php-email-form #nf-field-4 {
    display: inline-flex !important;
    width: auto !important;
    margin-left: auto !important;
    margin-right: auto !important;
    align-self: center !important;
  }
  /* Explicit mobile/tablet centering using shorthand */
  #nf-field-4 { margin: 0 auto !important; }
}

/* Explicit user rule for submit button */
.contact .php-email-form #nf-field-4 {
  font-weight: 700;
  padding: 14px 70px !important;
  width: auto !important;
  min-width: unset !important;
}

/* Built-in fallback form layout: grid with Name/Email side-by-side, others full width */
.contact .php-email-form .row.gy-4 {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 0 !important; /* no space between fields */
}
.contact .php-email-form .row.gy-4 > .col-md-6 { grid-column: auto; padding: 0 !important; }
.contact .php-email-form .row.gy-4 > .col-md-12 { grid-column: 1 / -1; padding: 0 !important; }

/* Desktop and larger: switch to flex so Name & Email share the same row */
@media (min-width: 992px) {
  /* Ninja Forms wrapper uses flex on desktop */
  .contact .php-email-form .nf-form-content .nf-fields-wrap {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0 !important;
  }
  /* Default each container full width ... */
  .contact .php-email-form .nf-form-content .nf-fields-wrap > .nf-field-container {
    width: 100% !important;
  }
  /* ... except Name and Email which share the row */
  .contact .php-email-form .nf-form-content .nf-fields-wrap > .nf-field-container:has(#nf-field-1),
  .contact .php-email-form .nf-form-content .nf-fields-wrap > .nf-field-container:has(#nf-field-2) {
    width: 50% !important;
    display: flex;
    gap: 0 !important;
  }

  /* Built-in fallback form also uses flex */
  .contact .php-email-form .row.gy-4 {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0 !important;
  }
  .contact .php-email-form .row.gy-4 > .col-md-6 { width: 50% !important; }
  .contact .php-email-form .row.gy-4 > .col-md-12 { width: 100% !important; }
}

/* Required asterisk styling for Name*, Email*, Subject* */
.contact .php-email-form label .required,
.contact .php-email-form .nf-field-label .ninja-forms-req,
.contact .php-email-form .nf-field-label .req,
.contact .php-email-form .wpcf7-form-control-wrap .wpcf7-form-control[aria-required="true"] + .required {
  color: var(--accent-color);
  font-weight: 700;
  margin-left: 2px;
}

/* Keep original rule for backward compatibility */
.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%);
}

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

/*--------------------------------------------------------------
# Footer Social Links - Default Styling
--------------------------------------------------------------*/
.footer-social-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1rem;
}

.footer-social-links .social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--theme-accent-bg, var(--earthtone-ebony));
  border: 1px solid var(--theme-accent-bg, var(--earthtone-ebony));
  border-radius: 50%;
  color: var(--theme-light-text, var(--earthtone-almond));
  font-size: 1.2rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-social-links .social-link:hover {
  background: var(--theme-dark-bg, var(--earthtone-blackolive));
  border-color: var(--theme-dark-bg, var(--earthtone-blackolive));
  color: var(--theme-light-text, var(--earthtone-almond));
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(89, 97, 75, 0.3);
  text-decoration: none;
}

/* Responsive footer social links */
@media (max-width: 768px) {
  .footer-social-links {
    gap: 0.75rem;
  }
  
  .footer-social-links .social-link {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .footer-social-links {
    gap: 0.5rem;
  }
  
  .footer-social-links .social-link {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }
}

/*--------------------------------------------------------------
# Starter Section Section
--------------------------------------------------------------*/
.starter-section {
  /* Add your styles here */
}

/*--------------------------------------------------------------
# Stats - One-line enforcement overrides
# Ensures horizontal single-line layout with adaptive sizing
--------------------------------------------------------------*/
.stats .stats-container {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: clamp(12px, 2vw, 24px) !important;
  overflow-x: auto; /* keep one line without wrapping */
}

.stats .stats-container > .stat-item {
  flex: 1 1 0 !important;
  min-width: 0 !important;
}

.stats .stats-container > .stat-item .stats-item {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: clamp(8px, 1.2vw, 16px) !important;
  width: 100% !important;
  padding: clamp(8px, 1.5vw, 24px) clamp(8px, 1vw, 16px) !important;
  white-space: nowrap !important;
}

.stats .stats-container .stats-item i {
  color: var(--accent-color);
  font-size: clamp(20px, 2.2vw, 42px) !important;
  line-height: 1 !important;
}

.stats .stats-container .stats-item .purecounter {
  color: var(--heading-color);
  font-size: clamp(20px, 2.4vw, 46px) !important;
  line-height: 1 !important;
  font-weight: 700 !important;
  margin: 0 !important;
}

.stats .stats-container .stats-item p {
  display: inline-flex !important;
  align-items: baseline !important;
  gap: clamp(4px, 0.6vw, 8px) !important;
  margin: 0 !important;
  padding: 0 !important;
  font-family: var(--heading-font) !important;
  font-size: clamp(12px, 1.1vw, 14px) !important;
  color: color-mix(in srgb, var(--default-color), transparent 40%) !important;
  white-space: nowrap !important;
}

.stats .stats-container .stats-item p strong,
.stats .stats-container .stats-item p span {
  white-space: nowrap !important;
}

/* Mobile/Tablet: make contact form submit buttons full-width */
@media (max-width: 991.98px) {
  .contact .php-email-form .nf-form-content .nf-submit-wrap input[type="submit"],
  .contact .php-email-form .nf-form-content .nf-field-element button,
  .contact .php-email-form #nf-field-4,
  .contact .php-email-form button[type="submit"],
  .contact .php-email-form input[type="submit"] {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    align-self: stretch !important;
  }
}
