
/*--------------------------------------------------------------
# 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: #000000; /* Dark page background */
  --default-color: #ffffff; /* Primary body/text color (white) */
  --heading-color: #ffffff; /* Headings in white */
  --accent-color: #3b82f6; /* Accent color (blue) */
  --surface-color: #0f0f0f; /* Card/surface backgrounds (dark) */
  --contrast-color: #ffffff; /* Contrast color for text on accent/dark elements */
}

/* 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 {
  /* Navigation colors (dark-theme tuned) */
  --nav-color: #9CA3AF; /* Neutral grey for inactive nav text on dark backgrounds */
  --nav-hover-color: color-mix(in srgb, #ffffff 28%, #9CA3AF 72%); /* gently transitions toward white on hover */
  --nav-active-color: #ffffff; /* active nav item color (pure white) */
  --nav-mobile-background-color: #f8fafc; /* Mobile nav background (light) */
  --nav-dropdown-background-color: #ffffff; /* Dropdown background */
  --nav-dropdown-color: #374151; /* Dropdown link color */
  --nav-dropdown-hover-color: #6b7280; /* Dropdown hover accent */
  /* Navbar glass variables (default / dark) */
  --nav-glass-bg: rgba(12, 14, 18, 0.50);
  --nav-glass-border: rgba(255, 255, 255, 0.04);
  --nav-glass-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}

/* 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: #ffffff;
  --default-color: #374151;
  --heading-color: #111827;
  --accent-color: #6b7280;
  --surface-color: #f3f4f6;
  --contrast-color: #ffffff;
  /* nav color overrides for light theme so components (filters, nav links) adapt */
  --nav-color: ##111827; /* nav text should be white in light mode per request */
  --nav-active-color: var(--heading-color);
  --nav-hover-color: var(--accent-color);
  /* Navbar glass variables (light theme overrides for white glass) */
  --nav-glass-bg: rgba(255, 255, 255, 0.70);
  --nav-glass-border: rgba(16, 24, 40, 0.08);
  --nav-glass-shadow: 0 6px 18px rgba(2, 6, 10, 0.08);
}

.dark-background {
  --background-color: #000000;
  --default-color: #ffffff;
  --heading-color: #ffffff;
  --surface-color: #252525;
  --contrast-color: #ffffff;
  /* nav color overrides for dark theme */
  --nav-color: #9CA3AF;
  --nav-active-color: #ffffff;
  --nav-hover-color: color-mix(in srgb, #ffffff 28%, #9CA3AF 72%);
}

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

/* Theme transition helpers — smooth color swaps for header/nav/controls */
:root,
body,
.header,
.header .logo h1,
.navmenu a,
.navmenu a:focus,
.photography-gallery .filter-btn,
.footer .social-links a {
  transition: color 220ms ease, background-color 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.header::before {
  transition: background-color 260ms ease, box-shadow 260ms ease;
}

/*--------------------------------------------------------------
# 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 {
  /* Glass navbar container (dark UI friendly)
     Keep z-index low so mobile/menu overlays remain above. */
  --header-offset: 80px; /* fallback spacing for page content */
  color: var(--default-color);
  background-color: transparent; /* actual visual comes from ::before */
  padding: 15px 0;
  transition: background-color 0.35s ease, box-shadow 0.35s ease;
  z-index: 997;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  -webkit-backface-visibility: hidden;
}

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



/* Glass surface applied through a pointer-events-free pseudo element */
.header::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: 0;
  border-radius: 0;
  /* subtle dark tint so underlying content shows through */
  background-color: rgba(10, 14, 20, 0.45);
  /* glass effect */
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  /* soft border + minimal glow */
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: 0 6px 18px rgba(2, 6, 10, 0.6);
  pointer-events: none;
  z-index: -1; /* keep behind header content */
}

/* provide page content spacing so fixed header doesn't cover it */
.main {
  padding-top: var(--header-offset, 80px);
}

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

/* Mobile site name shown in header (keeps layout intact on desktop) */
.mobile-site-name {
  display: none;
}

/* Ensure the header logo (used in header-name and .logo) is consistently sized */


.header .header-social-links {
  padding-right: 15px;
}

.header .header-social-links a {
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  padding-left: 6px;
  display: inline-block;
  transition: 0.3s;
  font-size: 16px;
}

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

.header .header-social-links a i {
  line-height: 0px;
}

/* Show site name on mobile instead of individual social icons */
.header .header-social-links .header-name {
  display: none;
  color: var(--default-color);
  font-weight: 600;
  text-decoration: none;
  padding-left: 6px;
}

@media (max-width: 1200px) {
  .header .logo {
    order: 1;
  }

  .header .header-social-links {
    order: 2;
  }

  .header .navmenu {
    order: 3;
  }
}

@media (max-width: 1199px) {
  .header .header-social-links a {
    display: none;
  }

  .header .header-social-links .header-name {
    display: inline-block;
  }
}

/* Hide header and footer social icons on the homepage */
body.index-page .header-social-links a:not(.header-name) {
  display: none !important;
}

body.index-page .header-social-links {
  padding-right: 0;
}

body.index-page .footer .social-links {
  display: none !important;
}

/* Desktop: replace header social icons with the site logo */
@media (min-width: 1200px) {
  .header .header-social-links a:not(.header-name) {
    display: none !important;
  }

  .header .header-social-links .header-name {
    display: inline-block;
  }

  

  .header .header-social-links {
    padding-right: 12px;
  }
}

/* Global Header on Scroll
------------------------------*/
.scrolled .header {
  --background-color: #ffffff; /* white header on scroll */
  /* Navigation colors intentionally inherited from :root to preserve contrast */
  --nav-mobile-background-color: #f8fafc;
}

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

.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 50%);
  font-size: 16px;
  color: color-mix(in srgb, var(--default-color), transparent 50%);
  margin: 0 5px;
  transition: 0.3s;
}

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

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

/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  overflow: hidden;
  background-color: var(--background-color);
  transition: all 0.6s ease-out;
  width: 100%;
  height: 100vh;
}

#preloader:before,
#preloader:after {
  content: "";
  position: absolute;
  border: 4px solid var(--accent-color);
  border-radius: 50%;
  animation: animate-preloader 2s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

#preloader:after {
  animation-delay: -0.5s;
}

@keyframes animate-preloader {
  0% {
    width: 10px;
    height: 10px;
    top: calc(50% - 5px);
    left: calc(50% - 5px);
    opacity: 1;
  }

  100% {
    width: 72px;
    height: 72px;
    top: calc(50% - 36px);
    left: calc(50% - 36px);
    opacity: 0;
  }
}

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

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

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

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

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

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

.page-title .heading {
  padding: 80px 0;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

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

.page-title nav {
  background-color: color-mix(in srgb, var(--default-color), transparent 96%);
  padding: 20px 0;
}

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

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

.page-title nav 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: 100px;
  overflow: clip;
}

@media (max-width: 1199px) {

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

/*--------------------------------------------------------------
# Global Section Titles
--------------------------------------------------------------*/

.section-title {
  text-align: center;
  padding-bottom: 60px;
  position: relative;
}

/* Clients marquee title tweaks */
.marquee-title {
padding-bottom: 1px;
}

.section-title h2 {
  font-size: 3.5rem;
  font-weight: 400;
  line-height: 1.2;
  color: var(--heading-color);
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}

@media (max-width: 768px) {
  .section-title h2 {
    font-size: 2.5rem;
  }
}

.section-title p {
  font-size: 1.125rem;
  line-height: 1.8;
  color: color-mix(in srgb, var(--default-color), transparent 25%);
  max-width: 900px;
  margin: 0 auto;
  text-wrap: balance;
}

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

.hero .hero-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero .hero-content h1 .highlight {
  color: var(--accent-color);
  position: relative;
}

.hero .hero-content h1 .highlight::after {
  display: none;
}

@media (max-width: 768px) {
  .hero .hero-content h1 {
    font-size: 2.5rem;
  }
}

.hero .hero-content h2 {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 2rem;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
}

.hero .hero-content h2 .typed {
  color: var(--accent-color);
  font-weight: 600;
}

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

.hero .hero-content p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2.5rem;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
}

.hero .hero-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero .hero-actions .btn {
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid;
}

.hero .hero-actions .btn.btn-primary {
  background: var(--accent-color);
  color: var(--contrast-color);
  border-color: var(--accent-color);
}

.hero .hero-actions .btn.btn-primary:hover {
  background: color-mix(in srgb, var(--accent-color), black 15%);
  border-color: color-mix(in srgb, var(--accent-color), black 15%);
  transform: translateY(-2px);
}

.hero .hero-actions .btn.btn-outline {
  background: transparent;
  color: var(--accent-color);
  border-color: var(--accent-color);
}

.hero .hero-actions .btn.btn-outline:hover {
  transform: translateY(-2px);
}

@media (max-width: 576px) {
  .hero .hero-actions {
    flex-direction: column;
  }

  .hero .hero-actions .btn {
    text-align: center;
  }
}

.hero .social-links {
  display: flex;
  gap: 1rem;
}

.hero .social-links a {
  width: 45px;
  height: 45px;
  background: var(--surface-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--default-color);
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.hero .social-links a:hover {
  background: var(--accent-color);
  color: var(--contrast-color);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px color-mix(in srgb, var(--accent-color), transparent 70%);
}

.hero .hero-image {
  position: relative;
}

.hero .hero-image .image-wrapper {
  position: relative;
  max-width: 450px;
  margin: 0 auto;
}

.hero .hero-image .image-wrapper img {
  border-radius: 20px;
  box-shadow: 0 5px 15px color-mix(in srgb, var(--default-color), transparent 95%);
  transition: transform 0.3s ease;
}

.hero .hero-image .image-wrapper img:hover {
  transform: scale(1.02);
}

.hero .hero-image .floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.hero .hero-image .floating-elements .floating-card {
  position: absolute;

  /* GLASS EFFECT — MATCH NAVBAR */
  background: rgba(12, 14, 18, 0.45);
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);

  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);

  padding: 15px 20px;
  border-radius: 15px;

  display: flex;
  align-items: center;
  gap: 10px;

  font-weight: 600;
  color: #ffffff;

  animation: float 3s ease-in-out infinite;
}

.hero .hero-image .floating-elements .floating-card i {
  font-size: 1.5rem;
  color: var(--accent-color);
}

.hero .hero-image .floating-elements .floating-card.design {
  top: 10%;
  right: -10%;
  animation-delay: 0s;
}

.hero .hero-image .floating-elements .floating-card.code {
  bottom: 30%;
  left: -15%;
  animation-delay: 1s;
}

.hero .hero-image .floating-elements .floating-card.creativity {
  top: 60%;
  right: -5%;
  animation-delay: 2s;
}

@media (max-width: 992px) {
  .hero .hero-image .floating-elements .floating-card {
    display: none;
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }
}

@media (max-width: 992px) {
  .hero .hero-content {
    text-align: center;
    margin-bottom: 3rem;
  }
}

/*--------------------------------------------------------------
# About Section
--------------------------------------------------------------*/
.about .intro-content .eyebrow {
  display: inline-block;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  margin-bottom: 16px;
}

.about .intro-content .headline {
  font-family: var(--heading-font);
  font-weight: 300;
  line-height: 1.2;
  font-size: clamp(28px, 4vw, 44px);
  margin: 0 0 24px 0;
}

.about .intro-content .lead {
  font-size: 18px;
  line-height: 1.8;
  color: color-mix(in srgb, var(--default-color), transparent 10%);
  margin-bottom: 24px;
}

.about .intro-content p {
  line-height: 1.8;
  margin-bottom: 24px;
  color: color-mix(in srgb, var(--default-color), transparent 5%);
}

.about .intro-content .cta-group {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-top: 24px;
}

.about .intro-content .cta-group .btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 6px;
  color: var(--accent-color);
  background: color-mix(in srgb, var(--accent-color), transparent 92%);
  border: 1px solid color-mix(in srgb, var(--accent-color), transparent 70%);
  transition: 0.3s ease-in-out;
}

.about .intro-content .cta-group .btn-ghost:hover,
.about .intro-content .cta-group .btn-ghost:focus {
  color: var(--contrast-color);
  background: var(--accent-color);
  border-color: var(--accent-color);
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-color), transparent 70%);
}

.about .intro-content .cta-group .link-underline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  color: var(--accent-color);
  padding-bottom: 4px;
  transition: 0.3s ease-in-out;
}

.about .intro-content .cta-group .link-underline::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: color-mix(in srgb, var(--accent-color), transparent 40%);
  transform: scaleX(0.4);
  transform-origin: left;
  transition: 0.3s ease-in-out;
}

.about .intro-content .cta-group .link-underline:hover,
.about .intro-content .cta-group .link-underline:focus {
  color: color-mix(in srgb, var(--accent-color), transparent 10%);
  outline: none;
}

.about .intro-content .cta-group .link-underline:hover::after,
.about .intro-content .cta-group .link-underline:focus::after {
  transform: scaleX(1);
}

.about .profile-figure {
  margin: 0;
}

.about .profile-figure .profile-photo {
  width: 88%;
  max-width: 440px;
  border-radius: 18px;
  box-shadow: 0 10px 30px color-mix(in srgb, var(--default-color), transparent 92%);
  transform: translateY(0);
  transition: transform 0.3s ease-in-out;
}

.about .profile-figure .profile-caption {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about .profile-figure .profile-caption .meta {
  font-size: 14px;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
}

.about .profile-figure .profile-caption .meta .funfact {
  font-size: 13px;
  margin-top: 4px;
  color: color-mix(in srgb, var(--default-color), transparent 35%);
}

.about .profile-figure:hover .profile-photo {
  transform: translateY(-4px);
}

.about .skill-item {
  padding: 24px;
  border-radius: 6px;
  transition: 0.3s ease-in-out;
  background: color-mix(in srgb, var(--surface-color), var(--accent-color) 2%);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 88%);
  height: 100%;
}

.about .skill-item i {
  font-size: 24px;
  color: var(--accent-color);
  margin-bottom: 16px;
  display: inline-block;
}

.about .skill-item h3 {
  font-size: 16px;
  margin-bottom: 6px;
  font-weight: 500;
}

.about .skill-item p {
  margin: 0;
  font-size: 14px;
  color: color-mix(in srgb, var(--default-color), transparent 25%);
}

.about .skill-item:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent-color), transparent 60%);
  box-shadow: 0 10px 30px color-mix(in srgb, var(--default-color), transparent 92%);
}

.about .timeline-item {
  position: relative;
  padding-left: 26px;
}

.about .timeline-item time {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--default-color), transparent 45%);
  margin-bottom: 6px;
}

.about .timeline-item h4 {
  font-size: 18px;
  font-weight: 400;
  margin: 0 0 6px;
}

.about .timeline-item p {
  font-size: 14px;
  color: color-mix(in srgb, var(--default-color), transparent 25%);
  margin: 0;
}

.about .timeline-item .dot {
  position: absolute;
  left: 0;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-color);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent-color), transparent 80%);
}

.about .personal-quote {
  padding: 24px 0;
}

.about .personal-quote p {
  font-family: var(--heading-font);
  font-weight: 300;
  font-size: clamp(20px, 3vw, 28px);
  line-height: 1.5;
  color: color-mix(in srgb, var(--default-color), transparent 5%);
  margin: 0 auto;
  max-width: 800px;
}

.about .fact-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
  background: var(--surface-color);
  color: color-mix(in srgb, var(--default-color), transparent 10%);
  transition: 0.3s ease-in-out;
}

.about .fact-pill i {
  color: var(--accent-color);
}

.about .fact-pill span {
  font-size: 14px;
}

.about .fact-pill:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent-color), transparent 60%);
  box-shadow: 0 10px 30px color-mix(in srgb, var(--default-color), transparent 92%);
}

.about .fact-pill:focus-within {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-color), transparent 70%);
}

@media (max-width: 992px) {
  .about .profile-figure {
    text-align: center !important;
  }

  .about .profile-figure .profile-photo {
    width: 72%;
  }

  .about .intro-content .cta-group {
    flex-wrap: wrap;
  }
}

@media (max-width: 576px) {
  .about .profile-figure .profile-photo {
    width: 100%;
  }
}

/*--------------------------------------------------------------
# Skills Section
--------------------------------------------------------------*/
.skills .skill-box {
  background-color: var(--surface-color);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
}

.skills .skill-box h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.skills .skill-box p {
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
  opacity: 0.6;
}

.skills .skill-box .progress {
  background-color: color-mix(in srgb, var(--accent-color), transparent 85%);
  border-radius: 50px;
  height: 8px;
  margin-top: 5px;
  overflow: hidden;
}

.skills .skill-box .progress .progress-bar {
  background-color: var(--accent-color);
  height: 100%;
  position: relative;
  border-radius: 50px;
  transition: 0.9s;
  width: 1px;
}

/*--------------------------------------------------------------
# Stats Section
--------------------------------------------------------------*/
.stats .avatars {
  position: relative;
}

.stats .avatars img {
  width: 60px;
  height: 60px;
  border: 3px solid var(--accent-color);
  margin-right: -15px;
  transition: transform 0.3s ease;
}

.stats .avatars img:hover {
  transform: translateY(-5px);
  z-index: 2;
}

.stats .counters h2 {
  color: var(--heading-color);
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 10px;
}

.stats .counters h2 span {
  display: inline-block;
}

.stats .counters p {
  color: var(--default-color);
  font-size: 18px;
  margin: 0;
  opacity: 0.9;
}

@media (max-width: 991px) {
  .stats .row {
    text-align: center;
  }

  .stats .avatars {
    justify-content: center;
    margin-bottom: 40px;
  }

  .stats .counters h2 {
    font-size: 36px;
  }

  .stats .counters p {
    font-size: 16px;
  }

  .stats .counters .col-md-4 {
    margin-bottom: 30px;
  }

  .stats .counters .col-md-4:last-child {
    margin-bottom: 0;
  }
}

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

  .stats .avatars {
    flex-wrap: wrap;
    justify-content: center;
  }

  .stats .avatars img {
    margin: 0 -8px;
  }
}

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

.testimonials .testimonial-item .testimonial-content {
  border-left: 3px solid var(--accent-color);
  padding-left: 30px;
}

.testimonials .testimonial-item .testimonial-img {
  border-radius: 50%;
  border: 4px solid var(--background-color);
  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;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  margin: 0 0 10px 0;
}

.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(--accent-color), transparent 50%);
  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;
}

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

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

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

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

/*--------------------------------------------------------------
# Resume Section
--------------------------------------------------------------*/
.resume .resume-item {
  margin-bottom: 3rem;
}

.resume .resume-item .resume-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  position: relative;
  color: var(--heading-color);
}

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

.resume .resume-item .resume-content {
  padding-left: 1.25rem;
  border-left: 2px solid color-mix(in srgb, var(--accent-color), transparent 85%);
}

.resume .resume-item article {
  position: relative;
  margin-bottom: 2.5rem;
}

.resume .resume-item article::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  left: -1.8rem;
  top: 0.25rem;
  background: var(--background-color);
  border: 2px solid var(--accent-color);
}

.resume .resume-item article h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--heading-color);
}

.resume .resume-item article h5 {
  font-size: 1rem;
  background: color-mix(in srgb, var(--accent-color), transparent 92%);
  padding: 0.375rem 0.75rem;
  display: inline-block;
  font-weight: 600;
  margin: 0.5rem 0;
  color: var(--accent-color);
  border-radius: 4px;
}

.resume .resume-item article .institution,
.resume .resume-item article .company {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: color-mix(in srgb, var(--default-color), transparent 25%);
}

.resume .resume-item article p {
  margin-bottom: 1rem;
}

.resume .resume-item article ul {
  padding-left: 1.25rem;
  margin-bottom: 0;
}

.resume .resume-item article ul li {
  padding-bottom: 0.75rem;
  position: relative;
}

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

.resume .skill-item {
  margin-bottom: 2rem;
}

.resume .skill-item h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--heading-color);
}

.resume .skill-item .progress {
  height: 0.75rem;
  background-color: color-mix(in srgb, var(--accent-color), transparent 92%);
  border-radius: 1rem;
  overflow: visible;
}

.resume .skill-item .progress .progress-bar {
  background-color: var(--accent-color);
  position: relative;
  border-radius: 1rem;
  width: 0;
  transition: width 1s ease;
}

.resume .skill-item .progress .progress-bar::after {
  content: attr(aria-valuenow) "%";
  position: absolute;
  right: 0;
  top: -1.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-color);
}

@media (max-width: 991.98px) {
  .resume .resume-item {
    margin-bottom: 2rem;
  }
}

@media (max-width: 767.98px) {
  .resume .resume-content {
    padding-left: 1rem !important;
  }

  .resume article::before {
    left: -2rem !important;
  }
}

/*--------------------------------------------------------------
# Services Section
--------------------------------------------------------------*/
.services .service-item {
  display: flex;
  background-color: var(--surface-color);
  border-radius: 12px;
  padding: 2rem;
  height: 100%;
  position: relative;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
  transition: all 0.4s ease;
}

.services .service-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background-color: var(--accent-color);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}

.services .service-item:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transform: translateY(-5px);
}

.services .service-item:hover::before {
  transform: scaleY(1);
}

.services .service-item:hover .service-icon {
  background-color: var(--accent-color);
  color: var(--contrast-color);
  transform: rotateY(180deg);
}

.services .service-item:hover .service-icon i {
  transform: rotateY(180deg);
}

.services .service-item:hover .service-link i {
  transform: translateX(5px);
}

.services .service-icon {
  flex-shrink: 0;
  width: 70px;
  height: 70px;
  border-radius: 12px;
  background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
  color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1.5rem;
  transition: all 0.5s ease;
}

.services .service-icon i {
  font-size: 2rem;
  transition: transform 0.5s ease;
}

.services .service-content {
  flex-grow: 1;
}

.services .service-content h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  font-weight: 700;
  color: var(--heading-color);
}

.services .service-content p {
  margin-bottom: 1.25rem;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
}

.services .service-link {
  display: inline-flex;
  align-items: center;
  color: var(--accent-color);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.services .service-link span {
  margin-right: 0.5rem;
}

.services .service-link i {
  transition: transform 0.3s ease;
}

.services .service-link:hover {
  color: color-mix(in srgb, var(--accent-color), transparent 25%);
}

@media (max-width: 767.98px) {
  .services .service-item {
    padding: 1.5rem;
    margin-bottom: 1rem;
  }

  .services .service-icon {
    width: 60px;
    height: 60px;
    margin-right: 1rem;
  }

  .services .service-icon i {
    font-size: 1.5rem;
  }

  .services .service-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
  }

  .services .service-content p {
    margin-bottom: 1rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 575.98px) {
  .services .service-item {
    flex-direction: column;
    text-align: center;
  }

  .services .service-item::before {
    width: 100%;
    height: 4px;
    transform: scaleX(0);
    transform-origin: left;
  }

  .services .service-item:hover::before {
    transform: scaleX(1);
  }

  .services .service-icon {
    margin-right: 0;
    margin-bottom: 1.25rem;
  }

  .services .service-link {
    justify-content: center;
  }
}

/*--------------------------------------------------------------
# Service Details Section
--------------------------------------------------------------*/
.service-details .service-hero {
  margin-bottom: 4rem;
}

.service-details .service-hero .service-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.service-details .service-hero .service-meta .service-category {
  background: color-mix(in srgb, var(--accent-color), transparent 85%);
  color: var(--accent-color);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.service-details .service-hero .service-meta .reading-time {
  color: color-mix(in srgb, var(--default-color), transparent 50%);
  font-size: 0.9rem;
  font-weight: 300;
}

.service-details .service-hero h1 {
  font-size: 3.5rem;
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--heading-color);
  letter-spacing: -0.02em;
}

.service-details .service-hero .service-description {
  font-size: 1.25rem;
  line-height: 1.7;
  color: color-mix(in srgb, var(--default-color), transparent 25%);
  font-weight: 300;
  margin: 0;
}

.service-details .service-visual {
  margin-bottom: 4rem;
  overflow: hidden;
  border-radius: 4px;
}

.service-details .service-visual img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-details .service-visual img:hover {
  transform: scale(1.02);
}

.service-details .service-narrative {
  margin-bottom: 5rem;
}

.service-details .service-narrative h3 {
  font-size: 2rem;
  font-weight: 300;
  margin-bottom: 2rem;
  color: var(--heading-color);
  letter-spacing: -0.01em;
}

.service-details .service-narrative p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  color: var(--default-color);
  font-weight: 300;
}

.service-details .benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.service-details .benefits-grid .benefit-card {
  text-align: center;
  padding: 0;
}

.service-details .benefits-grid .benefit-card .benefit-icon {
  width: 60px;
  height: 60px;
  background: color-mix(in srgb, var(--accent-color), transparent 90%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  transition: all 0.3s ease;
}

.service-details .benefits-grid .benefit-card .benefit-icon i {
  font-size: 1.5rem;
  color: var(--accent-color);
}

.service-details .benefits-grid .benefit-card:hover .benefit-icon {
  background: var(--accent-color);
  transform: translateY(-2px);
}

.service-details .benefits-grid .benefit-card:hover .benefit-icon i {
  color: var(--contrast-color);
}

.service-details .benefits-grid .benefit-card h4 {
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 1rem;
  color: var(--heading-color);
}

.service-details .benefits-grid .benefit-card p {
  font-size: 1rem;
  line-height: 1.6;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  margin: 0;
}

.service-details .timeline-section {
  margin-bottom: 4rem;
}

.service-details .timeline-section h3 {
  font-size: 2rem;
  font-weight: 300;
  margin-bottom: 3rem;
  color: var(--heading-color);
  letter-spacing: -0.01em;
}

.service-details .timeline-section .timeline {
  position: relative;
}

.service-details .timeline-section .timeline::before {
  content: "";
  position: absolute;
  left: 30px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: color-mix(in srgb, var(--default-color), transparent 85%);
}

.service-details .timeline-section .timeline .timeline-item {
  position: relative;
  padding-left: 80px;
  margin-bottom: 3rem;
}

.service-details .timeline-section .timeline .timeline-item:last-child {
  margin-bottom: 0;
}

.service-details .timeline-section .timeline .timeline-item .timeline-marker {
  position: absolute;
  left: 0;
  top: 0;
  width: 60px;
  height: 60px;
  background: var(--surface-color);
  border: 2px solid color-mix(in srgb, var(--accent-color), transparent 70%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.service-details .timeline-section .timeline .timeline-item .timeline-marker span {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--accent-color);
}

.service-details .timeline-section .timeline .timeline-item .timeline-content h4 {
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
  color: var(--heading-color);
}

.service-details .timeline-section .timeline .timeline-item .timeline-content p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 0.5rem;
  color: var(--default-color);
}

.service-details .timeline-section .timeline .timeline-item .timeline-content small {
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  font-size: 0.9rem;
  font-weight: 500;
}

.service-details .service-sidebar {
  padding-left: 2rem;
}

@media (max-width: 992px) {
  .service-details .service-sidebar {
    padding-left: 0;
    margin-top: 4rem;
  }
}

.service-details .overview-card,
.service-details .success-story,
.service-details .consultation-form {
  background: var(--surface-color);
  border-radius: 8px;
  padding: 2.5rem;
  margin-bottom: 2.5rem;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 93%);
  transition: all 0.3s ease;
}

.service-details .overview-card:hover,
.service-details .success-story:hover,
.service-details .consultation-form:hover {
  border-color: color-mix(in srgb, var(--accent-color), transparent 80%);
}

.service-details .overview-card .overview-header h4 {
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 2rem;
  color: var(--heading-color);
}

.service-details .overview-card .overview-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.service-details .overview-card .overview-stats .stat-item {
  text-align: center;
}

.service-details .overview-card .overview-stats .stat-item .stat-number {
  font-size: 2rem;
  font-weight: 300;
  color: var(--accent-color);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.service-details .overview-card .overview-stats .stat-item .stat-label {
  font-size: 0.85rem;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.service-details .overview-card .overview-details {
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  padding-top: 1.5rem;
}

.service-details .overview-card .overview-details .detail-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  align-items: start;
  gap: 24px;
  margin-bottom: 1rem;
}

.service-details .overview-card .overview-details .detail-row:last-child {
  margin-bottom: 0;
}

.service-details .overview-card .overview-details .detail-row .detail-label {
  font-size: 0.95rem;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  font-weight: 400;
}

.service-details .overview-card .overview-details .detail-row .detail-value {
  font-size: 0.95rem;
  color: var(--heading-color);
  font-weight: 500;
}

.service-details .success-story .story-quote p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  font-style: italic;
  margin-bottom: 2rem;
}

.service-details .success-story .story-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.service-details .success-story .story-author .author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.service-details .success-story .story-author .author-details h5 {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
  color: var(--heading-color);
}

.service-details .success-story .story-author .author-details span {
  display: block;
  font-size: 0.9rem;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  margin-bottom: 0.25rem;
}

.service-details .success-story .story-author .author-details small {
  font-size: 0.8rem;
  color: color-mix(in srgb, var(--default-color), transparent 50%);
}

.service-details .success-story .story-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.service-details .success-story .story-metrics .metric {
  text-align: center;
}

.service-details .success-story .story-metrics .metric .metric-value {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--accent-color);
  display: block;
  margin-bottom: 0.25rem;
}

.service-details .success-story .story-metrics .metric .metric-label {
  font-size: 0.8rem;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.service-details .consultation-form .form-header {
  margin-bottom: 2rem;
}

.service-details .consultation-form .form-header h4 {
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
  color: var(--heading-color);
}

.service-details .consultation-form .form-header p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  margin: 0;
}

.service-details .consultation-form .form-group {
  margin-bottom: 1.5rem;
}

.service-details .consultation-form .form-input {
  width: 100%;
  padding: 1rem;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
  border-radius: 4px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  background: transparent;
}

.service-details .consultation-form .form-input:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-color), transparent 90%);
}

.service-details .consultation-form input[type=text],
.service-details .consultation-form input[type=email],
.service-details .consultation-form input[type=tel],
.service-details .consultation-form select,
.service-details .consultation-form textarea {
  color: var(--default-color);
  background-color: var(--surface-color);
  font-size: 14px;
  border-color: color-mix(in srgb, var(--default-color), transparent 80%);
}

.service-details .consultation-form input[type=text]:focus,
.service-details .consultation-form input[type=email]:focus,
.service-details .consultation-form input[type=tel]:focus,
.service-details .consultation-form select:focus,
.service-details .consultation-form textarea:focus {
  border-color: var(--accent-color);
}

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

.service-details .consultation-form .btn-consultation {
  background: var(--accent-color);
  color: var(--contrast-color);
  border: none;
  padding: 1rem 2rem;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 500;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  text-transform: none;
}

.service-details .consultation-form .btn-consultation:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 10%);
  transform: translateY(-1px);
}

.service-details .consultation-form .btn-consultation i {
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .service-details .service-hero h1 {
    font-size: 2.5rem;
  }

  .service-details .service-hero .service-description {
    font-size: 1.1rem;
  }

  .service-details .service-visual img {
    height: 250px;
  }

  .service-details .benefits-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .service-details .timeline-section .timeline::before {
    left: 20px;
  }

  .service-details .timeline-section .timeline .timeline-item {
    padding-left: 60px;
  }

  .service-details .timeline-section .timeline .timeline-item .timeline-marker {
    width: 40px;
    height: 40px;
  }

  .service-details .timeline-section .timeline .timeline-item .timeline-marker span {
    font-size: 1rem;
  }

  .service-details .overview-card .overview-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}
/* =====================================
   Service Sidebar CTA Button
   (reuse portfolio button style — FINAL)
   ===================================== */

/* CTA wrapper */
.service-details .cta-buttons {
  display: flex;
  justify-content: center; /* center above form */
  margin-bottom: 2rem;     /* spacing before consultation card */
}

/* Button */
.service-details .cta-buttons .btn-view-project {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 12px 28px;
  background-color: var(--accent-color);
  color: var(--contrast-color);

  border-radius: 30px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;

  transition: all 0.3s ease;
}

/* Hover */
.service-details .cta-buttons .btn-view-project:hover {
  background-color: color-mix(in srgb, var(--accent-color), black 15%);
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.12);
}

/* Mobile behavior — match form CTA */
@media (max-width: 768px) {
  .service-details .cta-buttons {
    width: 100%;
  }

  .service-details .cta-buttons .btn-view-project {
    width: 100%;
    text-align: center;
  }
}
/*--------------------------------------------------------------
# Portfolio Section
--------------------------------------------------------------*/
.portfolio .portfolio-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
  padding: 0;
  list-style: none;
}

.portfolio .portfolio-filters li {
  padding: 8px 20px;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
  color: var(--accent-color);
}

.portfolio .portfolio-filters li:hover {
  background-color: color-mix(in srgb, var(--accent-color), transparent 80%);
}

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

.portfolio .portfolio-card {
  background-color: var(--surface-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
  transition: all 0.3s ease;
}

.portfolio .portfolio-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.portfolio .portfolio-card:hover .portfolio-img .portfolio-overlay {
  opacity: 1;
}

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

.portfolio .portfolio-card .portfolio-img {
  position: relative;
  overflow: hidden;
}

.portfolio .portfolio-card .portfolio-img img {
  width: 100%;
  height: auto;
  transition: transform 0.5s ease;
}

.portfolio .portfolio-card .portfolio-img .portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  opacity: 0;
  transition: all 0.3s ease;
}

.portfolio .portfolio-card .portfolio-img .portfolio-overlay a {
  width: 45px;
  height: 45px;
  background-color: var(--accent-color);
  color: var(--contrast-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.portfolio .portfolio-card .portfolio-img .portfolio-overlay a:hover {
  background-color: color-mix(in srgb, var(--accent-color), #fff 20%);
  transform: translateY(-5px);
}

.portfolio .portfolio-card .portfolio-info {
  padding: 20px;
}

.portfolio .portfolio-card .portfolio-info h4 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--heading-color);
}

.portfolio .portfolio-card .portfolio-info p {
  font-size: 0.9rem;
  color: var(--default-color);
  margin-bottom: 10px;
}

.portfolio .portfolio-card .portfolio-info .portfolio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  max-width: 100%;
  max-height: calc(2 * 1.6em); /* limit vertical growth */
  overflow: hidden;
}

.portfolio .portfolio-card .portfolio-info .portfolio-tags span {
  font-size: 0.8rem;
  padding: 4px 12px;
  border-radius: 20px;
  background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
  color: var(--accent-color);
}

.portfolio .btn-primary {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: var(--contrast-color);
  padding: 12px 30px;
  font-weight: 600;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.portfolio .btn-primary:hover {
  background-color: color-mix(in srgb, var(--accent-color), #000 10%);
  border-color: color-mix(in srgb, var(--accent-color), #000 10%);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/*--------------------------------------------------------------
# Portfolio Details Section
--------------------------------------------------------------*/
.portfolio-details {
  --section-spacing: 2.5rem;
}

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

.portfolio-details .portfolio-details-media .main-image {
  margin-bottom: 1rem;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.portfolio-details .portfolio-details-media .main-image .portfolio-details-slider {
  position: relative;
}

.portfolio-details .portfolio-details-media .main-image .portfolio-details-slider .swiper-wrapper {
  height: auto !important;
}

.portfolio-details .portfolio-details-media .main-image .portfolio-details-slider .swiper-slide img {
  aspect-ratio: 3/2;
  object-fit: cover;
  width: 100%;
}

.portfolio-details .portfolio-details-media .main-image .portfolio-details-slider .swiper-button-next,
.portfolio-details .portfolio-details-media .main-image .portfolio-details-slider .swiper-button-prev {
  background-color: var(--contrast-color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.portfolio-details .portfolio-details-media .main-image .portfolio-details-slider .swiper-button-next:after,
.portfolio-details .portfolio-details-media .main-image .portfolio-details-slider .swiper-button-prev:after {
  font-size: 16px;
  color: var(--accent-color);
  font-weight: bold;
}

.portfolio-details .portfolio-details-media .main-image .portfolio-details-slider .swiper-button-next:hover,
.portfolio-details .portfolio-details-media .main-image .portfolio-details-slider .swiper-button-prev:hover {
  background-color: var(--accent-color);
}

.portfolio-details .portfolio-details-media .main-image .portfolio-details-slider .swiper-button-next:hover:after,
.portfolio-details .portfolio-details-media .main-image .portfolio-details-slider .swiper-button-prev:hover:after {
  color: var(--contrast-color);
}

/* ==============================
   PORTFOLIO THUMBNAILS (SLIDER)
   ============================== */

.portfolio-details .portfolio-details-media .thumbnail-grid {
  margin: 16px auto 0;      /* center horizontally */
  width: fit-content;       /* hug thumbnails */
  overflow: visible;
}

.portfolio-details .portfolio-details-media .thumbnail-grid .swiper-wrapper {
  display: flex;
  overflow: visible;
}

.portfolio-details .portfolio-details-media .thumbnail-grid .swiper-slide {
  width: 96px; 
  aspect-ratio: 1 / 1;              /* square */
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.portfolio-details .portfolio-details-media .thumbnail-grid .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;                /* contained cleanly */
  display: block;
}

.portfolio-details .portfolio-details-media .thumbnail-grid .swiper-slide:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

.portfolio-details .portfolio-details-media .tech-stack-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 1.5rem;
}

.portfolio-details .portfolio-details-media .tech-stack-badges span {
  display: inline-block;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 20px;
  background-color: color-mix(in srgb, var(--heading-color), transparent 85%);
  color: var(--heading-color);
  transition: all 0.3s ease;
}

.portfolio-details .portfolio-details-media .tech-stack-badges span:hover {
  background-color: color-mix(in srgb, var(--heading-color), transparent 70%);
  transform: translateY(-2px);
}

.portfolio-details .portfolio-details-content {
  padding: 0 0 0 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.portfolio-details .portfolio-details-content .project-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.portfolio-details .portfolio-details-content .project-meta .badge-wrapper .project-badge {
  display: inline-block;
  padding: 8px 16px;
  background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
  color: var(--accent-color);
  border-radius: 30px;
  font-weight: 600;
  font-size: 14px;
}

.portfolio-details .portfolio-details-content .project-meta .date-client {
  display: flex;
  gap: 1.5rem;
}

.portfolio-details .portfolio-details-content .project-meta .date-client .meta-item {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
}

.portfolio-details .portfolio-details-content .project-meta .date-client .meta-item i {
  margin-right: 6px;
  color: var(--accent-color);
}

.portfolio-details .portfolio-details-content .project-title {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--heading-color);
}

.portfolio-details .portfolio-details-content .project-website {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.portfolio-details .portfolio-details-content .project-website i {
  font-size: 22px;
  color: var(--accent-color);
  margin-right: 8px;
}

.portfolio-details .portfolio-details-content .project-website a {
  font-weight: 500;
  transition: all 0.3s;
}

.portfolio-details .portfolio-details-content .project-website a:hover {
  letter-spacing: 0.5px;
}

.portfolio-details .portfolio-details-content .project-overview {
  margin-bottom: var(--section-spacing);
}

.portfolio-details .portfolio-details-content .project-overview .lead {
  font-size: 1.1rem;
  line-height: 1.7;
  color: color-mix(in srgb, var(--default-color), transparent 15%);
  margin-bottom: 1.5rem;
}

.portfolio-details .portfolio-details-content .project-overview .project-accordion .accordion-item {
  border: none;
  background: none;
  margin-bottom: 10px;
}

.portfolio-details .portfolio-details-content .project-overview .project-accordion .accordion-item .accordion-header .accordion-button {
  padding: 1rem;
  font-weight: 600;
  font-size: 1rem;
  color: var(--heading-color);
  background-color: color-mix(in srgb, var(--surface-color), transparent 70%);
  border-radius: 8px !important;
  box-shadow: none;
}

.portfolio-details .portfolio-details-content .project-overview .project-accordion .accordion-item .accordion-header .accordion-button:not(.collapsed) {
  background-color: var(--surface-color);
  color: var(--accent-color);
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.portfolio-details .portfolio-details-content .project-overview .project-accordion .accordion-item .accordion-header .accordion-button:not(.collapsed) i {
  color: var(--accent-color);
}

.portfolio-details .portfolio-details-content .project-overview .project-accordion .accordion-item .accordion-header .accordion-button::after {
  background-size: 14px;
  width: 14px;
  height: 14px;
}

.portfolio-details .portfolio-details-content .project-overview .project-accordion .accordion-item .accordion-header .accordion-button i {
  font-size: 1.1rem;
}

.portfolio-details .portfolio-details-content .project-overview .project-accordion .accordion-item .accordion-body {
  padding: 1rem;
  background-color: var(--surface-color);
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

.portfolio-details .portfolio-details-content .project-overview .project-accordion .accordion-item .accordion-body p {
  margin-bottom: 0;
  color: color-mix(in srgb, var(--default-color), transparent 25%);
  line-height: 1.6;
}

.portfolio-details .portfolio-details-content .project-features {
  margin-bottom: var(--section-spacing);
}

.portfolio-details .portfolio-details-content .project-features h3 {
  display: flex;
  align-items: center;
  font-size: 1.25rem;
  margin-bottom: 1.2rem;
}

.portfolio-details .portfolio-details-content .project-features h3 i {
  margin-right: 10px;
  color: var(--accent-color);
  font-size: 1.1em;
}

.portfolio-details .portfolio-details-content .project-features .feature-list {
  list-style: none;
  padding-left: 0;
}

.portfolio-details .portfolio-details-content .project-features .feature-list li {
  display: flex;
  align-items: center;
  padding: 8px 0;
  font-size: 15px;
  color: color-mix(in srgb, var(--default-color), transparent 15%);
}

.portfolio-details .portfolio-details-content .project-features .feature-list li i {
  color: var(--accent-color);
  margin-right: 10px;
  font-size: 1.1em;
}

.portfolio-details .portfolio-details-content .cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: auto;
}

.portfolio-details .portfolio-details-content .cta-buttons .btn-view-project {
  padding: 12px 28px;
  background-color: var(--accent-color);
  color: var(--contrast-color);
  border-radius: 30px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.portfolio-details .portfolio-details-content .cta-buttons .btn-view-project:hover {
  background-color: color-mix(in srgb, var(--accent-color), black 15%);
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.portfolio-details .portfolio-details-content .cta-buttons .btn-next-project {
  padding: 12px 28px;
  background-color: color-mix(in srgb, var(--heading-color), transparent 90%);
  color: var(--heading-color);
  border-radius: 30px;
  font-weight: 500;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.portfolio-details .portfolio-details-content .cta-buttons .btn-next-project i {
  transition: transform 0.3s ease;
}

.portfolio-details .portfolio-details-content .cta-buttons .btn-next-project:hover {
  background-color: color-mix(in srgb, var(--heading-color), transparent 80%);
}

.portfolio-details .portfolio-details-content .cta-buttons .btn-next-project:hover i {
  transform: translateX(3px);
}

@media (max-width: 1199.98px) {
  .portfolio-details .portfolio-details-content {
    padding-left: 1rem;
  }
}

@media (max-width: 991.98px) {
  .portfolio-details .portfolio-details-content {
    padding: 2rem 0 0 0;
  }

  .portfolio-details .portfolio-details-content .cta-buttons {
    margin-top: 2rem;
  }
}

@media (max-width: 767.98px) {
  .portfolio-details .project-meta {
    flex-direction: column;
    gap: 1rem;
  }

  @media (max-width: 767.98px) {
  .portfolio-details .project-meta .date-client {
    flex-direction: row;
    gap: 1rem;
    align-items: center;
  }
}

  .portfolio-details .cta-buttons {
    flex-direction: column;
    width: 100%;
  }

  .portfolio-details .cta-buttons a {
    width: 100%;
    text-align: center;
  }
}
@media (min-width: 992px) {

  /* space between text (left) and slider (right) */
  .portfolio-details .portfolio-details-media {
    padding-left: 2.5rem;
  }

}
/*--------------------------------------------------------------
# Contact Section
--------------------------------------------------------------*/
.contact .info-box {
  background-color: var(--surface-color);
  padding: 3rem;
  border-radius: 1rem;
  height: 100%;
}

.contact .info-box h3 {
  color: var(--header-color);
  font-size: 2rem;
  margin-bottom: 1rem;
}

@media (max-width: 767.98px) {
  .contact .info-box h3 {
    font-size: 1.75rem;
  }
}

.contact .info-box p {
  opacity: 0.8;
  margin-bottom: 2rem;
}

.contact .info-box a {
  color: var(--contrast-color);
}

@media (max-width: 992px) {
  .contact .info-box {
    padding: 1.5rem;
  }
}

.contact .info-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.contact .info-item:last-child {
  margin-bottom: 0;
}

.contact .info-item .icon-box {
  width: 3.5rem;
  height: 3.5rem;
  background-color: var(--surface-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: 0.3s;
}

.contact .info-item .icon-box i {
  font-size: 1.5rem;
  color: var(--header-color);
}

.contact .info-item:hover .icon-box {
  background-color: var(--accent-color);
}

.contact .info-item .content h4 {
  color: var(--header-color);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.contact .info-item .content p {
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}

.contact .info-item .content p:last-child {
  margin-bottom: 0;
}

.contact .contact-form {
  background-color: var(--surface-color);
  padding: 3rem;
  border-radius: 1rem;
  height: 100%;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.05);
}

@media (max-width: 992px) {
  .contact .contact-form {
    padding: 1.5rem;
  }
}

.contact .contact-form h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .contact .contact-form h3 {
    font-size: 1.75rem;
  }
}

.contact .contact-form p {
  color: color-mix(in srgb, var(--default-color), transparent 25%);
  margin-bottom: 2rem;
}

.contact .contact-form .form-control,
.contact .contact-form .form-select {
  padding: 0.875rem 1.25rem;
  border-color: color-mix(in srgb, var(--default-color), transparent 90%);
  border-radius: 0.5rem;
  background-color: transparent;
  color: var(--default-color);
}

.contact .contact-form .form-control:focus,
.contact .contact-form .form-select:focus {
  box-shadow: none;
  border-color: var(--accent-color);
}

.contact .contact-form .form-control::placeholder,
.contact .contact-form .form-select::placeholder {
  color: color-mix(in srgb, var(--default-color), transparent 50%);
}

.contact .contact-form .btn {
  background-color: color-mix(in srgb, var(--surface-color), transparent 80%);
  color: var(--header-color);
  padding: 1rem 2rem;
  border-radius: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: 0.3s;
}

.contact .contact-form .btn i {
  font-size: 1.25rem;
}

.contact .contact-form .btn:hover {
  background-color: color-mix(in srgb, var(--surface-color), transparent 70%);
}

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

.header.barista-nav {
  background: transparent;
}

.header.barista-nav .navbar {
  margin-top: 12px;
  padding: 14px 24px;
  border-radius: 14px;

  background: var(--nav-glass-bg);
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);

  border: 1px solid var(--nav-glass-border);
  box-shadow: var(--nav-glass-shadow);
}

/* Logo */


/* Links */
.barista-nav .nav-link {
  color: var(--nav-color, #9ca3af);
  font-family: var(--nav-font, "Poppins", sans-serif);
  font-size: 15px;
  font-weight: 400;
  padding: 7px 14px;
  transition: color 0.2s ease;
}

.barista-nav .nav-link:hover,
.barista-nav .nav-link.active {
  color: var(--accent-color);
}

/* Dropdown */
.barista-nav .dropdown-menu {
  background: rgba(12, 14, 18, 0.55);
  backdrop-filter: blur(6px) saturate(115%);
  -webkit-backdrop-filter: blur(6px) saturate(115%);

  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
  padding: 10px 0;
}

.barista-nav .dropdown-item {
  color: #e5e7eb;
  font-size: 14px;
  padding: 8px 20px;
}

.barista-nav .dropdown-item:hover {
  background: transparent;
  color: var(--accent-color);
}

/* Deep dropdown (right side) */
.barista-nav .dropdown-submenu {
  position: relative;
}

.barista-nav .dropdown-submenu > .dropdown-menu {
  top: 0;
  left: 100%;
  margin-left: 2px;
}

/* Mobile */
@media (max-width: 991px) {
  .header.barista-nav .navbar {
    border-radius: 12px;
  }

  .barista-nav .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    background: transparent;
    padding-left: 12px;
  }

  .barista-nav .dropdown-submenu > .dropdown-menu {
    margin-left: 0;
  }

  .barista-nav .navbar-toggler {
    border: none;
  }

    /* Dark mode (default) */
  .barista-nav .navbar-toggler-icon {
    filter: invert(1);
  }

  /* Light mode */
  .light-background .barista-nav .navbar-toggler-icon {
    filter: invert(0);
  }
}
/* Disable global header glass when using Barista navbar */
.header.barista-nav::before {
  display: none;
}


/* Keep Portfolio text white when dropdown is open */
.header.barista-nav .nav-link:focus,
.header.barista-nav .nav-link:active,
.header.barista-nav .dropdown-toggle:focus,
.header.barista-nav .dropdown-toggle.show {
  color: var(--accent-color) !important;
}

/* Optional: keep arrow white too */
.header.barista-nav .dropdown-toggle::after {
  filter: brightness(0) invert(1);
}


/* Remove Bootstrap focus/active blue box */
.header.barista-nav .nav-link:focus,
.header.barista-nav .nav-link:active,
.header.barista-nav .dropdown-toggle:focus,
.header.barista-nav .dropdown-toggle:active,
.header.barista-nav .dropdown-toggle.show {
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
}

/* Keep arrow white */
.header.barista-nav .dropdown-toggle::after {
  filter: brightness(0) invert(1);
}

/* Arrow spacing */
.header.barista-nav .dropdown-toggle-split {
  padding-left: 8px;
  padding-right: 8px;
}

/* MOBILE: dropdown under Portfolio */
@media (max-width: 991px) {
  .header.barista-nav .dropdown-menu {
    position: static;
    width: 100%;
    margin-top: 8px;
    background: rgba(12, 14, 18, 0.95);
    border-radius: 10px;
  }
}




.header.barista-nav .nav-link,
.header.barista-nav .dropdown-toggle {
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: 0.04em;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Mobile */
@media (max-width: 991px) {
  .header.barista-nav .nav-link,
  .header.barista-nav .dropdown-toggle {
    font-size: 14px;
    line-height: 1.5;
  }
}

/* =========================================================
   PHOTOGRAPHY GALLERY (MOVED FROM photography-projects.css)
   Scoped safely under .photography-gallery
   ========================================================= */

/* =========================================================
   PHOTOGRAPHY PAGE ONLY
   ========================================================= */

.photography-gallery .photography-gallery {
  padding-top: 0;
}

/* =========================================================
   FILTERS
   ========================================================= */

.photography-gallery .filter-btn {
  /* use portfolio filter color system (accent-based pills) */
  padding: 8px 20px;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
  color: var(--accent-color);
  border: none;
}

.photography-gallery .filter-btn:hover {
  background-color: color-mix(in srgb, var(--accent-color), transparent 80%);
}

.photography-gallery .filter-btn.active {
  background-color: var(--accent-color);
  color: var(--contrast-color);
}
.photography-gallery .filter-btn.active::after {
  width: 100%;
}

.photography-gallery .filter-btn.active,
.photography-gallery .filter-btn:hover {
  color: var(--nav-active-color);
}

/* =========================================================
   GALLERY CARDS
   ========================================================= */

.photography-gallery .project-card {
  position: relative;
  width: 100%;
  overflow: hidden;
  cursor: pointer;
}

.photography-gallery .project-card img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.photography-gallery .project-card:hover img {
  transform: scale(1.05);
}

/* =========================================================
   OVERLAY
   ========================================================= */

.photography-gallery .project-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 24px;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.65),
    rgba(0, 0, 0, 0) 60%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.photography-gallery .project-card:hover .project-overlay {
  opacity: 1;
}

.photography-gallery .project-title {
  color: #ffffff;
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 4px;
}

.photography-gallery .project-categories {
  color: #cccccc;
  font-size: 12px;
  letter-spacing: 0.08em;
  
}

/* =========================================================
   LIGHTGALLERY FIX (THIS IS THE KEY)
   ========================================================= */

/* Hidden gallery anchors */
.photography-gallery .lg-hidden {
  display: none;
}

/* Force LightGallery UI visibility */
.photography-gallery .lg-toolbar,
.photography-gallery .lg-actions,
.photography-gallery .lg-prev,
.photography-gallery .lg-next,
.photography-gallery .lg-close {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* Ensure icons are visible (SVG fix) */
.photography-gallery .lg-toolbar svg,
.photography-gallery .lg-actions svg {
  fill: #ffffff !important;
}

/* Improve contrast against dark bar */
.photography-gallery .lg-toolbar {
  background: rgba(0, 0, 0, 0.65) !important;
}

/* Arrow size */
.photography-gallery .lg-prev,
.photography-gallery .lg-next {
  font-size: 32px;
}

/* Mobile tuning */
@media (max-width: 768px) {
  .photography-gallery .lg-prev,
  .photography-gallery .lg-next {
    font-size: 26px;
  }
}

@media (max-width: 768px) {
  .photography-gallery .project-overlay {
    opacity: 1 !important;
    transform: none !important;
  }
}
/* =========================================================
   FIX: Hide Scroll-To-Top while LightGallery is open
   ========================================================= */

body.lg-overlay-open .scroll-top {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  z-index: 0 !important;
}

/* =========================================================
   BARISTA NAVBAR – SINGLE SOURCE OF TRUTH (FINAL)
   ========================================================= */

.header.barista-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 997;
  background: transparent;
}

.header.barista-nav .navbar {
  margin-top: 8px;
  padding: 18px 24px;
  border-radius: 14px;

  background: var(--nav-glass-bg);
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);

  border: 1px solid var(--nav-glass-border);
  box-shadow: var(--nav-glass-shadow);

  position: relative;
  z-index: 2;
}

/* LOGO SIZE – CHANGE HERE ONLY */
.header

/* NAV LINKS */
.header.barista-nav .nav-link {
  color: var(--nav-color);
  font-family: var(--nav-font);
  font-size: 15px;
  font-weight: 500;
  padding: 10px 14px;
  transition: color 0.2s ease;
}

.header.barista-nav .nav-link:hover,
.header.barista-nav .nav-link.active,
.header.barista-nav .dropdown-toggle.show {
  color: var(--accent-color);
}

.header.barista-nav .nav-link:focus,
.header.barista-nav .dropdown-toggle:focus {
  background: transparent;
  box-shadow: none;
  outline: none;
}

/* DROPDOWN */
.header.barista-nav .dropdown-menu {
  background: rgba(12, 14, 18, 0.55);
  backdrop-filter: blur(6px) saturate(115%);
  border-radius: 10px;
  padding: 10px 0;
}

/* MOBILE */
@media (max-width: 991px) {
  .header.barista-nav .navbar {
    border-radius: 12px;
  }

  .header
}



/* LOGO SOURCE & SIZE — SINGLE SOURCE (THEME AWARE) */

/* Default (dark mode) */
.header.barista-nav .navbar-brand-image {
  content: url("/assets/img/wg-logo.webp");
  max-height: 30px;
  width: auto;
}

/* Light mode */
.light-background .header.barista-nav .navbar-brand-image {
  content: url("/assets/img/wg-logo-dark.webp");
}

/* Mobile-only: center service icons */
@media (max-width: 767px) {

  .services .service-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .services .service-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
  }

}
/* ==============================
   PORTFOLIO — VIRTUAL TOUR
   ============================== */

.portfolio-virtual-tour {
  width: 100%;
}

.kuula-embed-wrapper {
  position: relative;
  width: 100%;
  height: 520px;          /* desktop */
  border-radius: 18px;
  overflow: hidden;

  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(10px);
}

/* Tablet & Mobile */
@media (max-width: 991px) {
  .kuula-embed-wrapper {
    height: 420px;
  }
}
/* MOBILE: tighten portfolio header spacing */
@media (max-width: 576px) {
  .portfolio-details .section-title {
    padding-bottom: 32px;
  }

  .portfolio-details .section-title h2 {
    margin-bottom: 12px;
  }

  .portfolio-details .section-title p {
    font-size: 0.95rem;
    line-height: 1.6;
  }
}
@media (max-width: 576px) {
  .kuula-embed-wrapper {
    height: 40vh;
    border-radius: 0;
  }
}
@media (max-width: 991px) {
  .header.barista-nav .navbar-collapse {
    margin-top: 24px; /* 👈 pushes menu links away from logo + hamburger */
  }
}
/* Match image slide dimensions */
.portfolio-details-slider .video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2; /* MUST match your image ratio */
  overflow: hidden;
  border-radius: 20px;
  background: #000;
}

.portfolio-details-slider .portfolio-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-article {
  max-width: 720px;
  line-height: 1.8;
}

.project-article p {
  margin-bottom: 1.3rem;
}

.project-article .article-footnote {
  margin-top: 2.5rem;
  font-style: italic;
  opacity: 0.85;
}

.portfolio-item.is-hidden {
  display: none;
}

/* =====================================
   Portfolio Card – Fixed 1024×683 Ratio
   ===================================== */

.portfolio-img.ratio-1024x683 {
  position: relative;
  width: 100%;
  aspect-ratio: 1024 / 683;
  overflow: hidden;
}

/* FORCE media to fill the ratio box */
.portfolio-img.ratio-1024x683 img,
.portfolio-img.ratio-1024x683 video {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;

  object-fit: cover;
  display: block;
}

/* =====================================
   Testimonials – smaller client photos (mobile only)
   ===================================== */
@media (max-width: 576px) {
  .testimonials .testimonial-item .testimonial-img {
    width: 100px;
    height: 100px;
    object-fit: cover;
  }
}
/* =====================================
   Testimonials – image above text (mobile only)
   ===================================== */
@media (max-width: 576px) {
  .testimonials .testimonial-item .row {
    flex-direction: column-reverse;
    align-items: center;
    text-align: center;
  }

  .testimonials .testimonial-item .testimonial-content {
    border-left: none;
    padding-left: 0;
  }

  .testimonials .testimonial-item .testimonial-img {
    margin-bottom: 12px;
  }
}
/* =====================================
   YouTube Video Overlay
   ===================================== */
.video-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}

.video-overlay.active {
  display: flex;
}

.video-overlay-content {
  position: relative;
  width: 90%;
  max-width: 960px;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
}

.video-overlay iframe {
  width: 100%;
  height: 100%;
}

.video-close {
  position: absolute;
  top: -44px;
  right: 0;
  background: none;
  border: none;
  font-size: 36px;
  color: #fff;
  cursor: pointer;
}

.is-hidden {
  display: none !important;
}

/* =========================================================
   GLOBAL EDITORIAL LAYOUT (Fixed Hero + Scroll Content)
   ========================================================= */

/* 1. The Fixed Hero Container - The Root */
.hero-fixed-wrapper {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh; /* Dynamic viewport height for mobile address bars */
  min-height: 100svh;
  z-index: 0;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

/* 2. THE FIX: Ensure all nested containers inherit the full height */
.hero-slider-container,
.hero-image-slider,
.hero-fixed-wrapper .swiper,
.hero-fixed-wrapper .swiper-wrapper,
.hero-fixed-wrapper .swiper-slide {
  height: 100% !important;
  width: 100% !important;
  margin: 0;
  padding: 0;
}

/* Force the actual image to cover the area without distortion */
.hero-fixed-wrapper img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* 3. The Dark Overlay */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.00) 0%,
    rgba(0,0,0,0.10) 35%,
    rgba(0,0,0,0.35) 60%,
    rgba(0,0,0,0.65) 100%
  );

}

/* 4. The Centered Text Layer */
.hero-content-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  pointer-events: none; /* Allows clicks to pass through to the arrow if needed */
}

.hero-title-styled {
  font-family: var(--heading-font);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
  text-shadow: 0 4px 12px rgba(0,0,0,0.4);
  line-height: 1.1;
  max-width: 900px;
}

.hero-subtitle-styled {
  font-family: var(--default-font);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.9);
  max-width: 700px;
  line-height: 1.6;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* 5. The Content Wrapper (Slides OVER the hero) */
.editorial-content-wrapper {
  position: relative;
  z-index: 10;
  margin-top: 0;
  background-color: var(--background-color);
  min-height: 100vh;
}

/* 6. Scroll Arrow Animation */
.scroll-down-arrow {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  cursor: pointer;
  color: #fff;
  font-size: 2rem;
  animation: bounce 2s infinite;
  transition: opacity 0.3s;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {transform: translateX(-50%) translateY(0);}
  40% {transform: translateX(-50%) translateY(-10px);}
  60% {transform: translateX(-50%) translateY(-5px);}
}


/* ============================================================
   PORTFOLIO ARTICLE PAGES (Left-Aligned Text Focus)
   ============================================================ */

.portfolio-article-page {
  background-color: var(--background-color) !important;
  color: var(--default-color);
}

.portfolio-article-page .portfolio-details.section {
  padding: 60px 0;
  background: transparent;
}

/* 1. Spine Alignment */
.portfolio-article-page .portfolio-details-content {
  max-width: 850px; 
  margin: 0 auto;
}

/* 2. Project Title - Remains Centered for visual hierarchy */
.portfolio-article-page .project-title {
  font-family: var(--heading-font);
  color: var(--heading-color);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  text-align: left; /* Centered */
}

/* 3. Meta & Badges - Remains Centered */
.portfolio-article-page .project-meta {
  display: flex;
  justify-content: center; /* Centered */
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  font-size: 15px;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
}

.portfolio-article-page .meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.portfolio-article-page .meta-item i {
  color: var(--accent-color);
  font-size: 18px;
}

/* 4. The Editorial Body Text - ALIGNED LEFT within the spine */
.portfolio-article-page .project-article {
  text-align: left; /* Aligned Left */
  line-height: 1.8;
  font-size: 16px;
  max-width: 700px;
  margin: 0 auto ; /* Aligned to the left of the container */
  color: color-mix(in srgb, var(--default-color), transparent 10%);
}

.portfolio-article-page .project-article p {
  margin-bottom: 1.5rem;
}

/* 5. Dropcap */
.portfolio-article-page .project-article p:first-of-type::first-letter {
  font-family: var(--heading-font);
  font-size: 4.5rem;
  float: left;
  line-height: 0.8;
  padding: 5px 12px 0 0;
  color: var(--accent-color);
  font-weight: 700;
}

/* 6. Pull Quote (The Footnote) - ALIGNED LEFT to match text */
.portfolio-article-page .article-footnote {
  margin: 50px 0; /* Removed 'auto' to align left */
  padding: 40px 0;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  border-bottom: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  font-family: var(--heading-font);
  font-size: 1.5rem;
  font-style: italic;
  font-weight: 300;
  line-height: 1.4;
  color: var(--heading-color);
  text-align: center; /* Aligned Left */
  max-width: 700px;
}

/* 7. Editorial Images with Captions (Left Aligned) */
.article-editorial-fig {
  margin: 2.5rem 0;
  text-align: left;
}

.article-editorial-fig figcaption {
  font-size: 0.8rem;
  font-style: italic;
  margin-top: 8px;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
}

/* 8. Bottom Buttons - Centered for closure */
.portfolio-article-page .cta-buttons {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .portfolio-article-page .project-article,
  .portfolio-article-page .article-footnote {
    max-width: 100%;
    text-align: left;
    padding: 0 10px;
  }
}

/* ============================================================
   EDITORIAL IMAGES (Inside Article - Centered & Contained)
   ============================================================ */

.article-editorial-fig {
  margin: 3.5rem 0; /* Breathing room */
  width: 100%;
  clear: both;
  text-align: center; /* Keeps the figcaption centered if it's short */
}

.article-editorial-fig img {
  display: block;
  margin: 0 auto 12px auto; /* Centers the image horizontally */
  
  /* Sizing Logic */
  width: auto;
  max-width: 100%;       /* Responsive width */
  max-height: 70vh;      /* The "Vertical Guard" */
  object-fit: contain;   /* Prevents distortion */
  
  border-radius: 8px;    /* Your standard UI curves */
  /* Your requested shadow using color-mix */
  box-shadow: 0 10px 30px color-mix(in srgb, var(--default-color), transparent 94%); 
}

.article-editorial-fig figcaption {
  font-family: var(--default-font);
  color: color-mix(in srgb, var(--default-color), transparent 45%); 
  font-size: 0.85rem;
  font-style: italic;
  line-height: 1.5;
  
  /* Caption alignment */
  text-align: left;      /* Standard editorial alignment */
  display: inline-block; /* Makes the caption follow the image width */
  max-width: 700px;      /* Keeps it aligned with your article text spine */
  padding-left: 10px;
  border-left: 2px solid var(--accent-color); 
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .article-editorial-fig {
    margin: 2rem 0;
  }
  .article-editorial-fig img {
    max-height: 60vh; /* Shorter limit for mobile screens */
  }
}

/* 8. Mobile Adjustments */
@media (max-width: 768px) {
  /* Aligns the badges and meta items to the left */
  .portfolio-article-page .project-meta {
    flex-direction: column;
    align-items: flex-start; /* Aligns items to the left */
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
  }

  /* Ensures the badges (Conceptual, AI Generated) also align left */
  .portfolio-article-page .badge-wrapper {
    justify-content: flex-start;
    width: 100%;
    margin-bottom: 10px;
  }

  /* Aligns the date and client info to the left */
  .portfolio-article-page .date-client {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }

  /* Aligns the main title and Instagram link to the left */
  .portfolio-article-page .project-title,
  .portfolio-article-page .project-website {
    text-align: left;
    justify-content: flex-start;
  }

  /* Ensures consistent left padding for the whole content block */
  .portfolio-article-page .portfolio-details-content {
    padding: 0 0px;
  }
}

/* ============================================================
   SEAMLESS INFINITE HERO ZOOM (No Jumps, No Pauses)
   ============================================================ */

.hero-image-slider {
  overflow: hidden;
  background-color: #000;

}

/* 1. The Animation: Very slow, very large, perfectly linear */
@keyframes infiniteZoom {
  0% { transform: scale(1); }
  50% { transform: scale(1.5); } /* Zoom in */
  100% { transform: scale(1); }  /* Zoom back out smoothly */
}

.hero-image-slider .swiper-slide img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;

  
  /* 2. THE KEY: Every image runs the SAME animation constantly */
  /* Using 60 seconds makes the movement nearly imperceptible but constant */
  animation: infiniteZoom 60s linear infinite;
  
  /* 3. The Fade: Slow cross-fade to hide the image swap */
  transition: opacity 3s ease-in-out;
}

/* Ensure the wrapper doesn't interfere with the zoom */
.hero-image-slider .swiper-wrapper {
  display: flex;
  align-items: center;
}

/* ============================================================
   EDITORIAL AUTHOR & CREDIT BLOCK
   ============================================================ */

.portfolio-article-page .author-meta {
  border-bottom: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  padding-bottom: 20px;
}

.portfolio-article-page .author-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  filter: grayscale(100%); /* Keeps it professional/minimal */
}

.portfolio-article-page .author-info {
  display: flex;
  flex-direction: column;
}

.portfolio-article-page .author-name {
  font-family: var(--nav-font);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--heading-color);
}

.portfolio-article-page .project-date {
  font-size: 0.85rem;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
}

.portfolio-article-page .project-category-tag {
  font-family: var(--heading-font);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-color);
  margin-top: 15px;
  font-weight: 700;
}

/* ============================================================
   HERO FLOATING META (No Glass Box, 70% Opacity)
   ============================================================ */
/* --- Desktop & Base Styles --- */
.hero-floating-meta {
  display: grid;
  /* Creates exactly 3 columns of equal width */
  grid-template-columns: repeat(3, auto); 
  gap: 100px;  /* This controls the space between all columns */
  /* Using margin-top relative to content to prevent overlaps */
  margin-top: 500px; 
  position: absolute; 
  z-index: 10;
  background: transparent; 
  border: none;
}

.hero-floating-meta .meta-item {
  display: flex;
  flex-direction: column;
}

.hero-floating-meta .meta-label {
  font-family: var(--nav-font);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #FFFFFF;
  font-weight: 700;
  margin-bottom: 5px;
  opacity: 0.7;
}

.hero-floating-meta .meta-value {
  font-family: var(--default-font);
  font-size: 15px;
  font-weight: 400;
  color: #ffffff;
  opacity: 0.7;
}

/* --- Mobile Optimization (Under 768px) --- */
@media (max-width: 768px) {
  .hero-floating-meta {
    /* Forces 3 columns even on small screens */
    grid-template-columns: repeat(3, 1fr); 
    gap: 1px; /* This controls the space between all columns */
    width: 100%;
    margin-top: 400px; 
  }
  
  .hero-floating-meta .meta-value {
    font-size: 12px; /* Slightly smaller to prevent text breaking on narrow phones */
    line-height: 1.2;
  }
}



/* Ensure the rest of the page sits on top and has a solid background */
#main-article {
    position: relative;
    z-index: 2;
    background-color: #fff; /* Prevents seeing 'through' the page at the bottom */
    margin-top: 0 !important;   /* This removes the big gap */
    padding-top: 20 !important;  /* Ensure no extra padding is added */
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none; /* prevents accidental interaction */
}