/*
Theme Name: Parallax Portfolio
Theme URI: https://yourwebsite.com
Author: Your Name
Author URI: https://yourwebsite.com
Description: A stunning parallax portfolio theme with dark teal aesthetic, smooth scrolling effects, and dynamic project management.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: parallax-portfolio
Tags: portfolio, one-page, custom-background, custom-logo, custom-menu, featured-images, threaded-comments

Parallax Portfolio WordPress Theme
*/

/* ==========================================================================
   CSS Variables (matching Next.js design)
   ========================================================================== */
:root,
.theme-black {
  --background: #050505;
  --foreground: #ffffff;
  --card: #121212;
  --card-foreground: #ffffff;
  --primary: #3dd4c0;
  --primary-foreground: #000000;
  --secondary: #1a1a1a;
  --secondary-foreground: #e0e0e0;
  --muted: #1a1a1a;
  --muted-foreground: #a0a0a0;
  --accent: #3dd4c0;
  --accent-foreground: #000000;
  --border: #2a2a2a;
  --input: #1a1a1a;
  --ring: #3dd4c0;
  --radius: 0.625rem;
  --overlay-color: rgba(5, 5, 5, 0.9);
  --accent-color: var(--primary);
  --border-color: var(--border);
  --text-primary: var(--foreground);
  --text-secondary: var(--muted-foreground);
}

.theme-blue {
  --background: #0f172a;
  --foreground: #f8fafc;
  --card: #1e293b;
  --card-foreground: #f8fafc;
  --primary: #38bdf8;
  --primary-foreground: #0f172a;
  --secondary: #334155;
  --secondary-foreground: #e2e8f0;
  --muted: #1e293b;
  --muted-foreground: #94a3b8;
  --accent: #38bdf8;
  --accent-foreground: #0f172a;
  --border: #334155;
  --input: #1e293b;
  --ring: #38bdf8;
  --overlay-color: rgba(15, 23, 42, 0.9);
  --accent-color: var(--primary);
  --border-color: var(--border);
  --text-primary: var(--foreground);
  --text-secondary: var(--muted-foreground);
}

.theme-light {
  --background: #f8fafc;
  --foreground: #0f172a;
  --card: #ffffff;
  --card-foreground: #0f172a;
  --primary: #0891b2;
  --primary-foreground: #ffffff;
  --secondary: #f1f5f9;
  --secondary-foreground: #475569;
  --muted: #f1f5f9;
  --muted-foreground: #64748b;
  --accent: #0891b2;
  --accent-foreground: #ffffff;
  --border: #e2e8f0;
  --input: #ffffff;
  --ring: #0891b2;
  --overlay-color: rgba(248, 250, 252, 0.95);
  --accent-color: var(--primary);
  --border-color: var(--border);
  --text-primary: var(--foreground);
  --text-secondary: var(--muted-foreground);
}

.theme-purple {
  --background: #F2EAF7;
  --foreground: #2B0D3E;
  --card: #ffffff;
  --card-foreground: #2B0D3E;
  --primary: #7A3F91;
  --primary-foreground: #F2EAF7;
  --secondary: #C59DD9;
  --secondary-foreground: #2B0D3E;
  --muted: #E5D4F0;
  --muted-foreground: #7A3F91;
  --accent: #7A3F91;
  --accent-foreground: #F2EAF7;
  --border: #C59DD9;
  --input: #ffffff;
  --ring: #7A3F91;
  --overlay-color: rgba(242, 234, 247, 0.95);
  --accent-color: var(--primary);
  --border-color: var(--border);
  --text-primary: var(--foreground);
  --text-secondary: var(--muted-foreground);
}

/* ==========================================================================
   Theme Picker
   ========================================================================== */
.theme-picker-container {
  position: relative;
}

.theme-picker-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 1rem;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  width: max-content;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
  z-index: 1001;
}

.theme-picker-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.theme-swatch {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.theme-swatch::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(
    circle at center,
    transparent 40%,
    rgba(255, 255, 255, 0.1) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.theme-swatch:hover {
  transform: scale(1.15);
  filter: brightness(1.2);
}

.theme-swatch:hover::before {
  opacity: 1;
}

.theme-swatch.active {
  border-color: var(--text-primary) !important;
  transform: scale(1.15);
  box-shadow:
    0 0 0 3px var(--border-color),
    0 4px 12px rgba(0, 0, 0, 0.3);
}

.theme-swatch::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-5px);
  background-color: var(--card);
  color: var(--foreground);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
  pointer-events: none;
  border: 1px solid var(--border);
}

.theme-swatch:hover::after {
  opacity: 1;
  visibility: visible;
}

/* Swatch Colors - Clean & Professional */
.swatch-light {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border: 2px solid #94a3b8;
  box-shadow: inset 0 0 8px rgba(148, 163, 184, 0.3);
}
.swatch-black {
  background: linear-gradient(135deg, #0a0f0d 0%, #0d1714 100%);
  border: 2px solid #3dd4c0;
  box-shadow: inset 0 0 8px rgba(61, 212, 192, 0.3);
}
.swatch-blue {
  background: linear-gradient(135deg, #0f1419 0%, #1a2332 100%);
  border: 2px solid #60a5fa;
  box-shadow: inset 0 0 8px rgba(96, 165, 250, 0.3);
}
.swatch-purple {
  background: linear-gradient(135deg, #2B0D3E 0%, #7A3F91 50%, #C59DD9 100%);
  border: 2px solid #C59DD9;
  box-shadow: inset 0 0 8px rgba(197, 157, 217, 0.4);
}

/* ==========================================================================
   Base Styles
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Oxygen,
    Ubuntu,
    sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 8vw, 6rem);
}

h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.text-primary {
  color: var(--primary);
}

.text-muted {
  color: var(--muted-foreground);
}

.text-balance {
  text-wrap: balance;
}

.text-pretty {
  text-wrap: pretty;
}

/* ==========================================================================
   Layout Utilities
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

.section {
  padding: 8rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.grid {
  display: grid;
}

.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-4 {
  gap: 1rem;
}

.gap-8 {
  gap: 2rem;
}

.gap-12 {
  gap: 3rem;
}

.gap-16 {
  gap: 4rem;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
:root {
  --header-height: 60px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 1.5rem;
  transition: all 0.3s ease;
  min-height: var(--header-height);
}

.site-header.scrolled {
  background-color: rgba(5, 5, 5, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header nav {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  font-size: 1.25rem;
  font-weight: 700;
}

.site-logo span {
  color: var(--primary);
}

.nav-menu {
  display: none;
  list-style: none;
  gap: 2rem;
}

@media (min-width: 768px) {
  .nav-menu {
    display: flex;
  }
}

.nav-menu a {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-foreground);
  transition: color 0.3s ease;
}

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

.social-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.social-links a {
  color: var(--muted-foreground);
  transition: color 0.3s ease;
}

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

.theme-toggle-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted-foreground);
  padding: 0;
  display: flex;
  align-items: center;
  transition: color 0.3s ease;
}

.theme-toggle-btn:hover {
  color: var(--primary);
}

.theme-toggle-btn svg {
  width: 1.25rem;
  height: 1.25rem;
}

.social-links svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* Mobile Menu */
.mobile-menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

@media (min-width: 768px) {
  .mobile-menu-toggle {
    display: none;
  }
}

.mobile-menu-toggle span {
  width: 24px;
  height: 2px;
  background-color: var(--foreground);
  transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

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

/* Mobile Navigation Menu */
@media (max-width: 767px) {
  .nav-menu {
    position: fixed;
    top: var(--header-height, 60px);
    left: 0;
    right: 0;
    background: var(--background);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    padding: 1rem;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition:
      max-height 0.3s ease,
      opacity 0.3s ease,
      padding 0.3s ease;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    z-index: 999;
  }

  .nav-menu.active {
    display: flex;
    max-height: 400px;
    opacity: 1;
    padding: 1.5rem 1rem;
  }

  .nav-menu li {
    width: 100%;
    border-bottom: 1px solid var(--border-color);
  }

  .nav-menu li:last-child {
    border-bottom: none;
  }

  .nav-menu a {
    display: block;
    padding: 1rem 0.5rem;
    font-size: 1rem;
    width: 100%;
  }

  /* Keep search and theme toggle visible on mobile */
  .social-links > a {
    display: none;
  }

  .social-links .header-shop-actions {
    display: none;
  }

  .social-links .theme-picker-container,
  .social-links .search-toggle {
    display: flex;
  }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 1rem;
}

.hero-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 130%;
  top: -15%;
  background-size: cover;
  background-position: center;
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-color: var(--overlay-color);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
}

.parallax-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  will-change: transform;
}

.parallax-orb.orb-1 {
  width: 25rem;
  height: 25rem;
  background-color: rgba(61, 212, 192, 0.15);
  top: 10%;
  left: 5%;
}

.parallax-orb.orb-2 {
  width: 30rem;
  height: 30rem;
  background-color: rgba(61, 212, 192, 0.08);
  top: 30%;
  right: -5%;
}

.parallax-orb.orb-3 {
  width: 20rem;
  height: 20rem;
  background-color: rgba(61, 212, 192, 0.1);
  bottom: 10%;
  left: 15%;
}

.hero-inner {
  display: grid;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 10;
}

@media (min-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.hero-content {
  text-align: left;
  padding: 0;
}

.hero-subtitle {
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.hero-title {
  margin-bottom: 1.5rem;
  font-size: clamp(3rem, 8vw, 5rem);
  letter-spacing: -0.02em;
}

.hero-description {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 38rem;
  margin: 0 0 2.5rem 0;
  line-height: 1.8;
}

@media (min-width: 768px) {
  .hero-description {
    font-size: 1.25rem;
  }
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
  }
}

.hero-visual {
  position: relative;
  height: 500px;
  display: none;
}

@media (min-width: 1024px) {
  .hero-visual {
    display: block;
  }
}

.visual-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
  opacity: 0.15;
  filter: blur(60px);
}

.visual-card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-6deg);
  width: 320px;
  height: 420px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  backdrop-filter: blur(12px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transition: transform 0.5s ease;
  overflow: hidden; /* Ensure canvas stays inside */
}

.visual-card.pixel-canvas-container {
  background: transparent;
  backdrop-filter: none;
  border: none;
  box-shadow: none;
  padding: 0;
}

.visual-card.pixel-canvas-container canvas {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 24px;
}

.visual-card:hover {
  transform: translate(-50%, -50%) rotate(0deg) scale(1.02);
}

.visual-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 100%
  );
  pointer-events: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: 9999px;
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--border);
  color: var(--foreground);
}

.btn-outline:hover {
  background-color: var(--secondary);
}

.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted-foreground);
  transition: color 0.3s ease;
  z-index: 20;
}

.scroll-indicator:hover {
  color: var(--primary);
}

.scroll-indicator span {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.scroll-indicator svg {
  width: 1rem;
  height: 1rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(8px);
  }
  60% {
    transform: translateY(4px);
  }
}

/* ==========================================================================
   Parallax Section Base
   ========================================================================== */
.parallax-section {
  position: relative;
  overflow: hidden;
}

.parallax-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 130%;
  top: -15%;
  background-size: cover;
  background-position: center;
  will-change: transform;
}

.parallax-overlay {
  position: absolute;
  inset: 0;
}

.parallax-layer {
  will-change: transform;
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-section {
  padding: 8rem 1.5rem;
}

/* New About Section Layout */
.about-new-grid {
  display: grid;
  gap: 4rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .about-new-grid {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
  }
}

.about-new-content {
  max-width: 600px;
}

.about-new-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--foreground);
  margin: 1.5rem 0 2rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .about-new-title {
    font-size: 3rem;
  }
}

.about-new-text {
  color: var(--muted-foreground);
  line-height: 1.8;
  font-size: 1rem;
}

.about-new-text p {
  margin-bottom: 1.5rem;
}

.about-new-text p:last-child {
  margin-bottom: 0;
}

/* Feature Cards Grid */
.about-features-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .about-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.about-feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem 1.75rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about-feature-card:hover {
  border-color: var(--primary);
  background: var(--secondary);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 0.75rem;
  background: var(--muted);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: all 0.3s ease;
}

.about-feature-card:hover .feature-icon {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-foreground);
  transform: scale(1.05);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--card-foreground);
  margin: 0;
  line-height: 1.3;
}

.feature-description {
  font-size: 0.9375rem;
  color: #9ca3af;
  line-height: 1.6;
  margin: 0;
}

/* Old About Section (Kept for backwards compatibility) */
.about-grid {
  display: grid;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.about-image-wrapper {
  position: relative;
}

.about-image {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 1rem;
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(61, 212, 192, 0.2);
  mix-blend-mode: overlay;
}

.about-decoration-1 {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  width: 8rem;
  height: 8rem;
  border: 1px solid rgba(61, 212, 192, 0.3);
  border-radius: 1rem;
  z-index: -1;
}

.about-decoration-2 {
  position: absolute;
  top: -1.5rem;
  left: -1.5rem;
  width: 6rem;
  height: 6rem;
  background-color: rgba(61, 212, 192, 0.1);
  border-radius: 1rem;
  z-index: -1;
}

.about-content {
  order: -1;
}

@media (min-width: 1024px) {
  .about-content {
    order: 0;
  }
}

.section-label {
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  display: block;
}

.about-content h2 {
  margin-bottom: 2rem;
}

.about-text {
  color: var(--muted-foreground);
  line-height: 1.8;
}

.about-text p {
  margin-bottom: 1.5rem;
}

.about-text .highlight {
  color: var(--foreground);
  font-weight: 500;
}

/* Animation classes */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ==========================================================================
   Projects Section
   ========================================================================== */
.projects-section {
  padding: 6rem 1.5rem;
  background: var(--background);
}

.projects-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.projects-header .section-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", sans-serif;
}

.projects-header h2 {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--foreground);
  margin: 0 0 1rem 0;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", sans-serif;
  letter-spacing: -0.02em;
}

.projects-description {
  color: var(--muted-foreground);
  font-size: 1rem;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .projects-header h2 {
    font-size: 2.75rem;
  }
}

/* Featured Projects Slider */
.featured-projects-slider-container.projects-slider-container {
  position: relative;
  max-width: 1280px;
  margin: 0 auto 5rem;
  padding: 0 3rem;
}

@media (max-width: 640px) {
  .featured-projects-slider-container.projects-slider-container {
    padding: 0;
  }
}

.projects-slider.slider-featured {
  display: flex;
  overflow-x: auto;
  gap: 1.25rem;
  padding: 3rem 0;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scroll-behavior: smooth;
  align-items: center;
}

.projects-slider.slider-featured::-webkit-scrollbar {
  display: none;
}

/* Navigation Arrows (reuses slider.js hooks) */
.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--card-foreground);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  transition: all 0.2s ease;
}

.slider-nav:hover {
  background: var(--secondary);
  border-color: var(--primary);
  color: var(--primary);
}

.slider-prev {
  left: 0;
}
.slider-next {
  right: 0;
}

@media (max-width: 640px) {
  .slider-nav {
    display: none;
  }
}

.projects-slider.slider-featured .project-item.featured-project-slide {
  flex: 0 0 320px;
  scroll-snap-align: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  opacity: 0.7;
  transform: scale(0.88) translateY(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

@media (max-width: 420px) {
  .projects-slider.slider-featured .project-item.featured-project-slide {
    flex-basis: 280px;
  }
}

@media (min-width: 768px) {
  .projects-slider.slider-featured .project-item.featured-project-slide {
    flex-basis: 360px;
  }
}

@media (min-width: 1024px) {
  .projects-slider.slider-featured .project-item.featured-project-slide {
    flex-basis: 400px;
  }
}

.projects-slider.slider-featured .project-item.featured-project-slide.active {
  opacity: 1;
  transform: scale(1) translateY(0);
  z-index: 10;
  border-color: var(--primary);
  background: var(--card);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.16),
    0 0 0 1px var(--primary),
    0 8px 32px rgba(0, 0, 0, 0.18);
}

.projects-slider.slider-featured .project-item.featured-project-slide:hover {
  border-color: var(--primary);
  background: var(--card);
  transform: scale(0.92) translateY(0);
  opacity: 0.85;
}

.projects-slider.slider-featured
  .project-item.featured-project-slide.active:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow:
    0 24px 72px rgba(0, 0, 0, 0.18),
    0 0 0 1px var(--primary),
    0 12px 40px rgba(0, 0, 0, 0.2);
}

.featured-project-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--muted);
}

.featured-project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.01);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  filter: brightness(0.95) contrast(1.05);
}

.projects-slider.slider-featured
  .project-item:hover
  .featured-project-media
  img {
  transform: scale(1.08);
  filter: brightness(1) contrast(1.1);
}

.projects-slider.slider-featured
  .project-item.featured-project-slide.active
  .featured-project-media
  img {
  filter: brightness(1);
}

.featured-project-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--secondary), var(--card));
}

.project-card-icon {
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 44px;
  height: 44px;
  border-radius: 0.6rem;
  background: var(--secondary);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  backdrop-filter: blur(8px);
}

/* Hover overlay actions */
.featured-project-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--overlay-color);
  backdrop-filter: blur(12px);
}

.projects-slider.slider-featured .project-item:hover .featured-project-overlay,
.projects-slider.slider-featured
  .project-item:focus-within
  .featured-project-overlay {
  opacity: 1;
  transform: translateY(0);
}

.featured-overlay-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  padding: 0 2rem;
}

.featured-overlay-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--foreground);
  margin: 0;
  text-align: center;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", sans-serif;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  letter-spacing: -0.02em;
  line-height: 1.3;
}

@media (max-width: 640px) {
  .featured-overlay-title {
    font-size: 1.25rem;
  }
}

.featured-overlay-actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.featured-project-action {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--secondary);
  border: 2px solid var(--primary);
  color: var(--primary);
  backdrop-filter: blur(8px);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  font-size: 1.25rem;
}

.featured-project-action:hover {
  transform: scale(1.15) translateY(-4px);
  border-color: var(--primary);
  background: var(--primary);
  color: var(--primary-foreground);
}

.featured-project-action:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 4px;
}

/* More Projects Section */
.more-projects-section {
  margin: 5rem 0 3rem;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

.more-projects-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--foreground);
  margin: 0 0 2rem 0;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", sans-serif;
}

.more-projects-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .more-projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .more-projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.more-project-card {
  position: relative;
  padding: 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  min-height: 180px;
}

.more-project-card:hover {
  border-color: var(--primary);
  background: var(--secondary);
  transform: translateY(-1px);
}

.more-project-icon {
  width: 40px;
  height: 40px;
  border-radius: 0.5rem;
  background: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--muted-foreground);
}

.more-project-link {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-foreground);
  transition: all 0.2s ease;
}

.more-project-link:hover {
  color: var(--primary);
  transform: translate(2px, -2px);
}

.more-project-card h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--card-foreground);
  margin: 0 0 0.5rem 0;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", sans-serif;
}

.more-project-card p {
  color: var(--muted-foreground);
  font-size: 0.8125rem;
  line-height: 1.5;
  margin-bottom: 1rem;
  flex-grow: 1;
}

/* Project Tags */
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
}

.project-tag {
  padding: 0.375rem 0.75rem;
  background: var(--muted);
  color: var(--muted-foreground);
  font-size: 0.75rem;
  font-weight: 400;
  border-radius: 0.375rem;
  border: 1px solid var(--border);
  transition: all 0.2s ease;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", sans-serif;
}

.project-tag:hover {
  background: var(--secondary);
  color: var(--foreground);
}

/* View More Button */
.view-more-container {
  text-align: center;
  margin-top: 4rem;
}

.btn-view-more {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 9999px;
  transition: all 0.3s ease;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", sans-serif;
}

.btn-view-more:hover {
  background: var(--primary);
  color: var(--primary-foreground);
  transform: translateY(-2px);
}

.projects-slider.slider-poster h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.projects-slider.slider-poster p {
  display: block; /* Show description on hover */
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.projects-slider.slider-poster .project-tags,
.projects-slider.slider-poster .project-link {
  display: none; /* Keep tags/link hidden for cleaner poster look */
}

.projects-slider.slider-poster .project-decoration {
  display: none;
}

/* Card Slider Layout (Image 2 Style - Center Focus) */
.projects-slider.slider-card {
  padding: 4rem 0;
  align-items: center;
}

.projects-slider.slider-card .project-item {
  flex: 0 0 350px; /* Mobile default */
  scroll-snap-align: center;
  background-color: #1a1a1a; /* Solid dark background */
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.5rem;
  padding: 2rem;
  transition: all 0.5s ease;
  opacity: 0.4;
  transform: scale(0.85);
  display: flex !important; /* Force flex to override grid */
  flex-direction: column !important;
  gap: 1.5rem;
  height: auto;
  min-height: 450px; /* Ensure consistent height */
  justify-content: center;
}

@media (min-width: 768px) {
  .projects-slider.slider-card .project-item {
    flex: 0 0 600px; /* Wider cards for desktop */
  }
}

.projects-slider.slider-card .project-item.active {
  opacity: 1;
  transform: scale(1);
  background-color: #222;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  border-color: var(--primary);
  z-index: 10;
}

.projects-slider.slider-card .project-image-wrapper {
  order: -1;
  border-radius: 1rem;
  overflow: hidden;
  aspect-ratio: 16/9;
  width: 100%;
  background-color: #000; /* Placeholder bg if no image */
}

.projects-slider.slider-card .project-content {
  order: 1;
  text-align: center;
  width: 100%;
}

.projects-slider.slider-card h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.projects-slider.slider-card p {
  color: #aaa;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.projects-slider.slider-card .project-tags {
  justify-content: center;
  margin-bottom: 1.5rem;
}

.projects-slider.slider-card .project-link {
  display: inline-block;
  margin-top: auto;
  padding: 0.75rem 2rem;
  background: var(--primary);
  color: var(--primary-foreground);
  border-radius: 9999px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s;
}

.projects-slider.slider-card .project-link:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.projects-slider.slider-card .project-link svg {
  display: none;
}

/* View More Button */
.view-more-container {
  text-align: center;
  margin-top: 4rem;
}

.btn-view-more {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 9999px;
  transition: all 0.3s ease;
}

.btn-view-more:hover {
  background: var(--primary);
  color: var(--primary-foreground);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -5px rgba(61, 212, 192, 0.3);
}

.project-item {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .project-item {
    grid-template-columns: 1fr 1fr;
  }

  .project-item:nth-child(even) .project-image-wrapper {
    order: 2;
  }

  .project-item:nth-child(even) .project-content {
    order: 1;
  }
}

.project-image-wrapper {
  position: relative;
}

.project-image {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 1rem;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.project-image:hover img {
  transform: scale(1.05);
}

.project-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(61, 212, 192, 0.1);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-image:hover::after {
  opacity: 1;
}

.project-decoration {
  position: absolute;
  z-index: -1;
  width: 100%;
  height: 100%;
  background-color: rgba(61, 212, 192, 0.05);
  border-radius: 1rem;
  bottom: -1rem;
  right: -1rem;
}

.project-item:nth-child(even) .project-decoration {
  right: auto;
  left: -1rem;
}

.project-content h3 {
  margin-bottom: 1rem;
}

.project-content p {
  color: var(--muted-foreground);
  font-size: 1.125rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.project-tag {
  padding: 0.375rem 1rem;
  background-color: var(--secondary);
  color: var(--secondary-foreground);
  font-size: 0.875rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  font-weight: 500;
  transition: gap 0.3s ease;
}

.project-link:hover {
  gap: 0.75rem;
}

.project-link svg {
  width: 1rem;
  height: 1rem;
  transition: transform 0.3s ease;
}

.project-link:hover svg {
  transform: translate(2px, -2px);
}

/* ==========================================================================
   Skills Section
   ========================================================================== */
.skills-section {
  padding: 6rem 1.5rem;
  background: var(--background);
}

.skills-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.skills-header .section-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu",
    sans-serif;
}

.skills-header h2 {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--foreground);
  margin: 0;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu",
    sans-serif;
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .skills-header h2 {
    font-size: 2.75rem;
  }
}

.skills-grid {
  display: grid;
  gap: 1.25rem;
  max-width: 1280px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .skills-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.skill-card {
  padding: 1.75rem;
  background: var(--card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  transition: all 0.25s ease;
}

.skill-card:hover {
  border-color: var(--primary);
  background: var(--secondary);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.skill-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--card-foreground);
  margin: 0 0 1.25rem 0;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu",
    sans-serif;
  letter-spacing: -0.01em;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tag,
.skill-tag-item {
  padding: 0.5rem 0.875rem;
  background: var(--muted);
  color: var(--muted-foreground);
  font-size: 0.8125rem;
  font-weight: 400;
  border-radius: 0.375rem;
  border: 1px solid var(--border);
  transition: all 0.2s ease;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu",
    sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  line-height: 1.2;
}

.skill-tag-item .skill-icon {
  display: none;
}

.skill-tag-item .skill-name {
  color: var(--muted-foreground);
}

.skill-tag:hover,
.skill-tag-item:hover {
  background: var(--secondary);
  color: var(--foreground);
}

.skill-tag-item:hover .skill-name {
  color: var(--foreground);
}

/* ==========================================================================
   Experience Section
   ========================================================================== */
.experience-section {
  padding: 8rem 1.5rem;
}

.experience-header {
  text-align: center;
  margin-bottom: 5rem;
}

.experience-list {
  max-width: 56rem;
  margin: 0 auto;
}

.experience-item {
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}

.experience-item:last-child {
  border-bottom: none;
}

.experience-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .experience-grid {
    grid-template-columns: 180px 1fr;
    gap: 2rem;
  }
}

.experience-period {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.experience-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
  transition: color 0.3s ease;
}

.experience-item:hover .experience-content h3 {
  color: var(--primary);
}

.experience-company {
  color: var(--primary);
}

.experience-company a {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.experience-company a:hover {
  text-decoration: underline;
}

.experience-company svg {
  width: 1rem;
  height: 1rem;
}

.experience-content p {
  color: var(--muted-foreground);
  line-height: 1.8;
  margin: 1rem 0;
}

.experience-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.experience-skill {
  padding: 0.25rem 0.75rem;
  background-color: rgba(61, 212, 192, 0.1);
  color: var(--primary);
  font-size: 0.875rem;
  border-radius: 9999px;
}

.resume-link {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-section {
  padding: 8rem 1.5rem;
}

.contact-header {
  text-align: center;
  margin-bottom: 3rem;
}

.contact-header h2 {
  margin-bottom: 1.5rem;
}

.contact-header p {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  max-width: 42rem;
  margin: 0 auto;
}

.contact-grid {
  display: grid;
  gap: 3rem;
  max-width: 56rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon {
  padding: 0.75rem;
  background-color: rgba(61, 212, 192, 0.1);
  border-radius: 0.75rem;
}

.contact-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--primary);
}

.contact-item h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.contact-item p,
.contact-item a {
  color: var(--muted-foreground);
  transition: color 0.3s ease;
}

.contact-item a:hover {
  color: var(--primary);
}

.contact-description {
  padding-top: 1rem;
  color: var(--muted-foreground);
  line-height: 1.8;
}

.contact-form {
  padding: 1.5rem;
  background-color: rgba(18, 18, 18, 0.5);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 1rem;
}

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

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: var(--secondary);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  color: var(--foreground);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(61, 212, 192, 0.2);
}

.form-group textarea {
  resize: none;
  min-height: 120px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--muted-foreground);
}

.contact-form .btn {
  width: 100%;
}

/* ==========================================================================
   Testimonials Section
   ========================================================================== */
.testimonials-section {
  padding: 8rem 1.5rem;
  background-color: var(--background);
  position: relative;
  overflow: hidden;
}

@media (max-width: 768px) {
  .testimonials-section {
    padding: 4rem 1rem;
  }
}

.testimonials-header {
  text-align: center;
  margin-bottom: 5rem;
  position: relative;
  z-index: 10;
}

@media (max-width: 768px) {
  .testimonials-header {
    margin-bottom: 3rem;
  }
}

.testimonials-slider-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
  overflow: visible;
  padding: 0 3rem;
}

@media (max-width: 768px) {
  .testimonials-slider-container {
    padding: 0 3rem;
  }
}

@media (max-width: 480px) {
  .testimonials-slider-container {
    padding: 0 1rem;
  }
}

.testimonials-slider {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 1rem 0 2rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

@media (max-width: 768px) {
  .testimonials-slider {
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .testimonials-slider {
    gap: 1rem;
    padding: 0.5rem 0.25rem 1.5rem;
  }
}

.testimonials-slider::-webkit-scrollbar {
  display: none;
}

/* Testimonial Navigation Arrows */
.testimonial-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(8px);
}

.testimonial-nav:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-foreground);
  transform: translateY(-50%) scale(1.1);
}

.testimonial-prev {
  left: 0;
}

.testimonial-next {
  right: 0;
}

@media (max-width: 768px) {
  .testimonial-nav {
    width: 2.5rem;
    height: 2.5rem;
  }
}

@media (max-width: 480px) {
  .testimonial-nav {
    display: none;
  }
}

/* Testimonial Dots */
.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

@media (max-width: 480px) {
  .testimonial-dots {
    margin-top: 1.5rem;
    gap: 0.375rem;
  }
}

.testimonial-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.testimonial-dot:hover {
  background: var(--primary);
  transform: scale(1.2);
}

.testimonial-dot.active {
  background: var(--primary);
  width: 24px;
  border-radius: 4px;
}

.testimonial-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  min-width: 340px;
  max-width: 360px;
  scroll-snap-align: center;
  flex-shrink: 0;
  height: auto;
}

@media (max-width: 768px) {
  .testimonial-item {
    min-width: 85vw;
    max-width: 85vw;
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .testimonial-item {
    min-width: 100%;
    max-width: 100%;
    padding: 1rem;
    border-radius: 0.75rem;
  }
}

.testimonial-item:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Testimonial Header with Logo and Rating */
.testimonial-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

@media (max-width: 480px) {
  .testimonial-header {
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
  }
}

.testimonial-logo {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
  transition: transform 0.3s ease;
  padding: 0.25rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

@media (max-width: 480px) {
  .testimonial-logo {
    width: 2rem;
    height: 2rem;
  }
}

.testimonial-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0.375rem;
}

.testimonial-item:hover .testimonial-logo {
  transform: scale(1.05);
}

.testimonial-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.rating-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

@media (max-width: 480px) {
  .rating-number {
    font-size: 1.25rem;
  }
}

.testimonial-stars {
  display: flex;
  gap: 0.15rem;
}

@media (max-width: 480px) {
  .testimonial-stars {
    gap: 0.1rem;
  }

  .testimonial-stars .star {
    font-size: 0.875rem;
  }
}

.star {
  transition: all 0.3s ease;
}

.star.filled {
  color: #ffd700;
}

.star.empty {
  color: var(--border-color);
}

/* Testimonial Content */
.testimonial-content {
  flex: 1;
  margin-bottom: 1rem;
}

@media (max-width: 480px) {
  .testimonial-content {
    margin-bottom: 0.75rem;
  }
}

.testimonial-text {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-secondary);
  position: relative;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 480px) {
  .testimonial-text {
    font-size: 0.8125rem;
    line-height: 1.5;
    -webkit-line-clamp: 5;
  }
}

.testimonial-text p {
  margin: 0;
}

/* Testimonial Footer */
.testimonial-footer {
  margin-top: auto;
}

.author-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.author-image {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  overflow: hidden;
  background: var(--secondary);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

@media (max-width: 480px) {
  .author-image {
    width: 2rem;
    height: 2rem;
  }
}

.testimonial-item:hover .author-image {
  transform: scale(1.05);
}

.author-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--secondary-foreground);
  background: var(--secondary);
}

.author-info {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.author-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.2;
}

@media (max-width: 480px) {
  .author-name {
    font-size: 0.8125rem;
  }
}

.author-position {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.2;
}

@media (max-width: 480px) {
  .author-position {
    font-size: 0.6875rem;
  }
}

/* Skills Update for Icons */
.skill-tag-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: var(--secondary);
  color: var(--secondary-foreground);
  font-size: 0.875rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.skill-tag-item:hover {
  background-color: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
}

.skill-icon {
  width: 1.25rem;
  height: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.site-footer p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* ==========================================================================
   WordPress Specific
   ========================================================================== */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.alignleft {
  float: left;
  margin-right: 1.5rem;
}

.alignright {
  float: right;
  margin-left: 1.5rem;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   Project Archive Layout with Sidebar
   ========================================================================== */
.projects-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
}

@media (max-width: 991px) {
  .projects-layout {
    grid-template-columns: 1fr;
  }
}

.projects-sidebar {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
  height: fit-content;
  position: sticky;
  top: 100px;
}

.projects-sidebar .widget-title {
  margin: 0 0 1rem;
  color: var(--foreground);
  font-size: 1.25rem;
  font-weight: 600;
}

.projects-sidebar .widget-subtitle {
  margin: 0 0 0.75rem;
  color: var(--muted-foreground);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.projects-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

.projects-sidebar ul li a {
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 0.2s ease;
  display: block;
  padding: 0.25rem 0;
}

.projects-sidebar ul li a:hover {
  color: var(--primary);
}

.projects-sidebar form {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.projects-sidebar form input[type="search"] {
  flex: 1;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  color: var(--foreground);
}

.projects-sidebar form input[type="search"]:focus {
  outline: none;
  border-color: var(--primary);
}

.projects-sidebar form button {
  background: var(--primary);
  color: var(--primary-foreground);
  border: none;
  border-radius: 0.5rem;
  padding: 0 0.75rem;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.projects-sidebar form button:hover {
  opacity: 0.9;
}

.projects-main {
  min-width: 0;
}

/* ==========================================================================
   Project Archive Grid
   ========================================================================== */
.projects-archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.project-archive-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.project-archive-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.project-archive-image {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.project-archive-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.6s ease,
    filter 0.3s ease;
}

.project-archive-card:hover .project-archive-image img {
  transform: scale(1.06);
  filter: brightness(0.75);
}

.project-archive-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.95),
    rgba(0, 0, 0, 0.6),
    transparent
  );
  transform: translateY(16px);
  opacity: 0;
  transition: all 0.3s ease;
}

.project-archive-card:hover .project-archive-content {
  transform: translateY(0);
  opacity: 1;
}

.project-archive-content {
  /* overlay variant above applies for hover reveal */
}

.project-archive-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--foreground);
}

.project-archive-excerpt {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-archive-content .project-tags {
  margin-bottom: 0;
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
}

/* Pagination Styles */
.pagination .nav-links {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.pagination .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background-color: var(--secondary);
  color: var(--muted-foreground);
  font-weight: 500;
  transition: all 0.3s ease;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  background-color: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
}

/* ==========================================================================
   Single Product Page
   ========================================================================== */
.product-single-grid {
  display: grid;
  gap: 4rem;
  margin-bottom: 6rem;
}

@media (min-width: 1024px) {
  .product-single-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.product-gallery-wrapper {
  position: relative;
}

.main-image-container {
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card);
  margin-bottom: 1rem;
}

.main-image-container img {
  width: 100%;
  height: auto;
  display: block;
}

.product-thumbnails {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.product-thumb {
  border-radius: 0.5rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.product-thumb:hover {
  border-color: var(--primary);
}

.product-summary-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.product-breadcrumb {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 0.5rem;
}

.product-breadcrumb a {
  color: var(--foreground);
}

.product-breadcrumb a:hover {
  color: var(--primary);
}

.single-product-title {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.single-product-price {
  font-size: 1.5rem;
  color: var(--primary);
  font-weight: 600;
}

.single-product-description {
  color: var(--muted-foreground);
  line-height: 1.8;
  font-size: 1.125rem;
}

.single-product-actions {
  margin-top: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

/* WooCommerce Add to Cart Form Styles */
.single-product-actions form.cart {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Modern Quantity Input */
.single-product-actions .quantity {
  display: inline-flex;
  align-items: center;
  background: var(--input); /* Or var(--card) depending on preference */
  border: 1px solid var(--border);
  border-radius: 9999px; /* Pill shape */
  padding: 0.25rem;
}

.single-product-actions .quantity input.qty {
  width: 3rem;
  border: none;
  background: transparent;
  text-align: center;
  padding: 0.5rem;
  font-weight: 600;
  color: var(--foreground);
  -moz-appearance: textfield; /* Remove arrows */
  appearance: textfield;
  border-radius: 0;
}

.single-product-actions .quantity input.qty::-webkit-outer-spin-button,
.single-product-actions .quantity input.qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.quantity-btn {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: var(--muted-foreground);
  transition: all 0.2s ease;
  font-size: 1.25rem;
  line-height: 1;
  padding: 0;
}

.quantity-btn:hover {
  background: var(--primary);
  color: var(--primary-foreground);
}

.quantity-btn:active {
  transform: scale(0.95);
}

.single-product-actions button.single_add_to_cart_button {
  background: var(--primary);
  color: var(--primary-foreground);
  border: none;
  padding: 0.75rem 2.5rem;
  border-radius: 9999px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  margin-left: 1rem;
}

.single-product-actions button.single_add_to_cart_button:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* ==========================================================================
   Header Icons & Sidecart
   ========================================================================== */

/* Header Search Toggle */
.search-toggle {
  background: transparent;
  border: none;
  color: var(--foreground);
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
  margin-right: 1rem;
}

.search-toggle:hover {
  color: var(--primary);
}

/* ==========================================================================
   Full Screen Search Overlay
   ========================================================================== */

.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.search-overlay-content {
  width: 100%;
  max-width: 800px;
  padding: 2rem;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-overlay.active .search-overlay-content {
  transform: scale(1) translateY(0);
}

.search-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: transparent;
  border: none;
  color: var(--foreground);
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  opacity: 0.7;
}

.search-close:hover {
  color: var(--primary);
  opacity: 1;
  transform: rotate(90deg);
}

.search-container {
  text-align: center;
}

.search-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
}

.search-categories {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.search-cat-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted-foreground);
  padding: 0.625rem 1.25rem;
  border-radius: 9999px;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.search-cat-btn:hover {
  border-color: var(--foreground);
  color: var(--foreground);
}

.search-cat-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-foreground);
}

.search-overlay-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.search-input-wrapper {
  position: relative;
  width: 100%;
  max-width: 600px;
}

.search-input-wrapper .search-icon {
  position: absolute;
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-foreground);
  pointer-events: none;
}

.search-overlay-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid var(--border);
  border-radius: 9999px;
  padding: 1.25rem 1.5rem 1.25rem 3.5rem;
  color: var(--foreground);
  font-size: 1.125rem;
  transition: all 0.3s ease;
}

.search-overlay-input::placeholder {
  color: var(--muted-foreground);
}

.search-overlay-input:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 4px rgba(var(--primary-rgb, 59, 130, 246), 0.2);
}

.search-submit-btn {
  background: var(--primary);
  color: var(--primary-foreground);
  border: none;
  border-radius: 9999px;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.search-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -5px rgba(var(--primary-rgb, 59, 130, 246), 0.4);
}

.search-submit-btn svg {
  transition: transform 0.3s ease;
}

.search-submit-btn:hover svg {
  transform: translateX(4px);
}

.search-hint {
  margin-top: 2rem;
  color: var(--muted-foreground);
  font-size: 0.875rem;
  opacity: 0.6;
}

/* Body scroll lock when search overlay is open */
body.search-overlay-open {
  overflow: hidden;
}

/* Search Overlay Responsive */
@media (max-width: 768px) {
  .search-title {
    font-size: 1.75rem;
  }

  .search-overlay-content {
    padding: 1rem;
  }

  .search-close {
    top: 1rem;
    right: 1rem;
  }

  .search-overlay-input {
    font-size: 1rem;
    padding: 1rem 1rem 1rem 3rem;
  }

  .search-cat-btn {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
  }

  /* Testimonials Responsive */
  .testimonials-slider {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .testimonial-item {
    padding: 2rem 1.5rem;
  }

  .testimonial-header {
    flex-direction: column;
    gap: 1rem;
  }

  .testimonial-stars {
    order: 1;
  }

  .quote-icon {
    order: 2;
    align-self: flex-end;
  }

  .testimonial-text {
    font-size: 1rem;
  }

  .author-image {
    width: 2.5rem;
    height: 2.5rem;
  }

  .author-name {
    font-size: 0.875rem;
  }

  .author-position {
    font-size: 0.75rem;
  }

  .rating-number {
    font-size: 1.25rem;
  }

  .testimonial-logo {
    width: 2rem;
    height: 2rem;
  }

  .testimonial-logo svg {
    width: 20px;
    height: 20px;
  }
}

.header-shop-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-right: 1.5rem;
  padding-right: 1.5rem;
  border-right: 1px solid var(--border);
}

.header-icon {
  color: var(--foreground);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
  position: relative;
}

.header-icon:hover {
  color: var(--primary);
}

.cart-icon-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 1.2rem;
  height: 1.2rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.25rem;
}

/* Sidecart Drawer */
.sidecart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(2px);
}

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

.sidecart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 400px;
  background: var(--card);
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--border);
}

.sidecart-drawer.active {
  transform: translateX(0);
}

.sidecart-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidecart-header h3 {
  margin: 0;
  font-size: 1.25rem;
}

.sidecart-close {
  background: transparent;
  border: none;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted-foreground);
  padding: 0;
  transition: color 0.2s;
}

.sidecart-close:hover {
  color: var(--foreground);
}

.sidecart-content {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
}

/* WooCommerce Mini Cart Styles */
.widget_shopping_cart_content ul.cart_list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.widget_shopping_cart_content ul.cart_list li {
  display: flex;
  gap: 1rem;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.widget_shopping_cart_content ul.cart_list li img {
  width: 4rem;
  height: 4rem;
  object-fit: cover;
  border-radius: 0.5rem;
  background: var(--background);
}

.widget_shopping_cart_content ul.cart_list li a {
  text-decoration: none;
  color: var(--foreground);
  font-weight: 500;
  transition: color 0.2s;
}

.widget_shopping_cart_content ul.cart_list li a:hover {
  color: var(--primary);
}

.widget_shopping_cart_content .quantity {
  display: block;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-top: 0.25rem;
}

.widget_shopping_cart_content .total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-top: 2px solid var(--border);
  margin-top: auto;
  font-weight: 600;
  font-size: 1.125rem;
}

.widget_shopping_cart_content .buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.widget_shopping_cart_content .buttons a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.2s;
  text-align: center;
}

.widget_shopping_cart_content .buttons a:not(.checkout) {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--foreground);
}

.widget_shopping_cart_content .buttons a:not(.checkout):hover {
  background: var(--muted);
}

.widget_shopping_cart_content .buttons a.checkout {
  background: var(--primary);
  color: var(--primary-foreground);
  border: 1px solid var(--primary);
}

.widget_shopping_cart_content .buttons a.checkout:hover {
  opacity: 0.9;
}

/* Remove default remove button styling if needed */
.widget_shopping_cart_content ul.cart_list li a.remove {
  position: absolute;
  top: 0;
  right: 0;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--muted);
  color: var(--muted-foreground);
  font-size: 1rem;
  line-height: 1;
}

.widget_shopping_cart_content ul.cart_list li a.remove:hover {
  background: #ef4444;
  color: white;
}

.single-product-meta {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.meta-item {
  display: flex;
  gap: 0.5rem;
}

.meta-label {
  font-weight: 600;
  color: var(--foreground);
}

.meta-item a {
  color: var(--muted-foreground);
  transition: color 0.3s ease;
}

.meta-item a:hover {
  color: var(--primary);
}

.related-products-section {
  margin-top: 6rem;
  padding-top: 4rem;
  border-top: 1px solid var(--border);
}

.related-title {
  font-size: 2rem;
  margin-bottom: 3rem;
  text-align: center;
}

/* ==========================================================================
   Shop - Modern Grid Design
   ========================================================================== */
.shop-modern-container {
  padding-top: 6rem;
  padding-bottom: 4rem;
  max-width: 1400px;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.shop-hero {
  text-align: center;
  margin-bottom: 3rem;
  padding: 5rem 2rem;
  background: radial-gradient(
    ellipse at 50% 0%,
    rgba(61, 212, 192, 0.15) 0%,
    transparent 60%
  );
  position: relative;
  overflow: hidden;
}

.shop-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%233dd4c0' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.shop-hero-content {
  position: relative;
  z-index: 1;
}

.shop-subtitle {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary);
  margin-bottom: 1rem;
  padding: 0.5rem 1rem;
  background: rgba(61, 212, 192, 0.1);
  border-radius: 9999px;
  border: 1px solid rgba(61, 212, 192, 0.2);
}

.shop-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1rem;
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    #fff 50%,
    var(--primary) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
  to {
    background-position: 200% center;
  }
}

.shop-description {
  max-width: 600px;
  margin: 0 auto 2rem;
  color: var(--muted-foreground);
  font-size: 1.125rem;
  line-height: 1.7;
}

.shop-stats {
  display: inline-flex;
  align-items: center;
  gap: 2rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.25rem 2rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.stat-number {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

.modern-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.modern-product-card {
  background: var(--card);
  border-radius: 1rem;
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  border: 1px solid var(--border);
  position: relative;
}

.modern-product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  border-color: var(--primary);
}

/* Product Badges */
.product-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 10;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.375rem 0.75rem;
  border-radius: 0.375rem;
}

.product-badge.sale {
  background: #ef4444;
  color: var(--primary-foreground);
}

.product-badge.featured {
  background: var(--primary);
  color: var(--primary-foreground);
  top: 1rem;
  left: auto;
  right: 1rem;
}

.product-image-wrapper {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.product-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.modern-product-card:hover .product-image-wrapper img {
  transform: scale(1.08);
}

.product-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0.3) 50%,
    transparent 100%
  );
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 2rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modern-product-card:hover .product-overlay {
  opacity: 1;
}

.overlay-actions {
  display: flex;
  gap: 0.75rem;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modern-product-card:hover .overlay-actions {
  transform: translateY(0);
}

.overlay-actions .action-btn,
.overlay-actions a.button {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  text-decoration: none;
  font-size: 0 !important;
  position: relative;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
}

.overlay-actions .action-btn svg,
.overlay-actions .view-product-btn svg {
  width: 1.125rem;
  height: 1.125rem;
  stroke: #fff;
}

/* Add to Cart Button Icon */
.overlay-actions a.button::before {
  content: "";
  width: 1.125rem;
  height: 1.125rem;
  background-color: var(--text-primary);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="9" cy="21" r="1"></circle><circle cx="20" cy="21" r="1"></circle><path d="M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6"></path></svg>')
    no-repeat center;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="9" cy="21" r="1"></circle><circle cx="20" cy="21" r="1"></circle><path d="M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6"></path></svg>')
    no-repeat center;
  -webkit-mask-size: contain;
  mask-size: contain;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.overlay-actions .action-btn:hover,
.overlay-actions a.button:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: scale(1.1);
}

/* Product Info */
.product-info {
  padding: 1.5rem;
}

.product-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.product-cats a {
  font-size: 0.75rem;
  color: var(--primary);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: opacity 0.2s ease;
}

.product-cats a:hover {
  opacity: 0.8;
}

.product-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.product-title a {
  color: var(--foreground);
  text-decoration: none;
  transition: color 0.2s ease;
}

.product-title a:hover {
  color: var(--primary);
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-price {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--foreground);
}

.product-price del {
  color: var(--muted-foreground);
  font-weight: 400;
  font-size: 0.875rem;
  margin-right: 0.5rem;
}

.product-price ins {
  text-decoration: none;
  color: var(--primary);
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.product-rating svg {
  width: 14px;
  height: 14px;
}

/* ==========================================================================
   WooCommerce Cart Page Redesign
   ========================================================================== */
.woocommerce-cart .entry-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.woocommerce-cart-form {
  margin-bottom: 4rem;
}

/* Cart Table Styling */
.shop_table.cart {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 1.5rem; /* Spacing between rows */
  border: none !important;
}

.shop_table.cart thead th {
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  color: var(--muted-foreground);
  padding: 0 1.5rem 1rem;
  border: none;
  font-weight: 600;
}

.shop_table.cart tbody tr.cart_item {
  background: var(--card);
  box-shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.1);
  border-radius: 1rem;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  border: 1px solid var(--border);
}

.shop_table.cart tbody tr.cart_item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.15);
  border-color: var(--primary);
}

.shop_table.cart td {
  padding: 2rem;
  border: none;
  vertical-align: middle;
}

.shop_table.cart td.product-remove {
  width: 60px;
  text-align: center;
}

.shop_table.cart td.product-remove a.remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--muted);
  color: var(--muted-foreground);
  text-decoration: none;
  transition: all 0.2s;
  font-size: 1.5rem;
  line-height: 1;
  margin: 0 auto;
}

.shop_table.cart td.product-remove a.remove:hover {
  background: #ef4444;
  color: white;
  transform: rotate(90deg);
}

.shop_table.cart td.product-thumbnail {
  width: 120px;
}

.shop_table.cart td.product-thumbnail img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.shop_table.cart td.product-name a {
  color: var(--foreground);
  font-weight: 700;
  text-decoration: none;
  font-size: 1.25rem;
  display: block;
  margin-bottom: 0.5rem;
}

.shop_table.cart td.product-name a:hover {
  color: var(--primary);
}

.shop_table.cart td.product-price,
.shop_table.cart td.product-subtotal {
  font-weight: 600;
  color: var(--foreground);
  font-size: 1.125rem;
}

.shop_table.cart td.product-quantity .quantity {
  display: inline-flex;
  align-items: center;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 9999px;
  padding: 0.25rem;
}

.shop_table.cart td.product-quantity .quantity input {
  width: 3rem;
  background: transparent;
  border: none;
  text-align: center;
  color: var(--foreground);
  font-weight: 600;
  font-size: 1rem;
}

/* Coupon & Update Cart Actions */
.shop_table.cart td.actions {
  padding: 2rem 0;
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
}

.coupon {
  display: flex;
  gap: 1rem;
  align-items: center;
  float: left;
  background: var(--card);
  padding: 0.5rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
}

.coupon input#coupon_code {
  padding: 0.75rem 1.5rem;
  border: none;
  background: transparent;
  color: var(--foreground);
  min-width: 200px;
  font-size: 1rem;
}

.coupon input#coupon_code:focus {
  outline: none;
}

.coupon button.button {
  background: var(--muted);
  color: var(--foreground);
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.coupon button.button:hover {
  background: var(--primary);
  color: var(--primary-foreground);
}

button[name="update_cart"] {
  background: transparent;
  color: var(--foreground);
  border: 1px solid var(--foreground);
  padding: 0.75rem 2.5rem;
  border-radius: 9999px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  float: right;
  margin-top: 0.5rem;
}

button[name="update_cart"]:hover {
  background: var(--foreground);
  color: var(--background);
}

/* Cart Totals Section */
.cart-collaterals {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 4rem;
}

.cart-collaterals::before {
  content: ""; /* Spacer for grid */
}

.cart_totals {
  width: 100%;
  background: var(--card);
  padding: 2.5rem;
  border-radius: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.2);
  position: sticky;
  top: 2rem;
}

.cart_totals h2 {
  font-size: 1.75rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--border);
  padding-bottom: 1rem;
  color: var(--foreground);
}

.cart_totals table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2.5rem;
}

.cart_totals table th,
.cart_totals table td {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}

.cart_totals table th {
  text-align: left;
  font-weight: 500;
  color: var(--muted-foreground);
}

.cart_totals table td {
  text-align: right;
  font-weight: 700;
  font-size: 1.125rem;
}

.cart_totals .order-total td {
  color: var(--primary);
  font-size: 1.5rem;
}

.wc-proceed-to-checkout {
  display: block;
  margin-top: 2rem;
}

.wc-proceed-to-checkout a.checkout-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: var(--primary);
  color: var(--primary-foreground);
  text-align: center;
  padding: 1.25rem;
  border-radius: 1rem;
  font-weight: 700;
  font-size: 1.125rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.wc-proceed-to-checkout a.checkout-button:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.3);
  filter: brightness(1.1);
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
  .cart-collaterals {
    grid-template-columns: 1fr;
  }

  .cart_totals {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .shop_table.cart thead {
    display: none;
  }

  .shop_table.cart tbody tr.cart_item {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.5rem;
    position: relative;
  }

  .shop_table.cart td {
    padding: 0.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .shop_table.cart td::before {
    content: attr(data-title);
    font-weight: 600;
    color: var(--muted-foreground);
  }

  .shop_table.cart td.product-thumbnail {
    width: 100%;
    justify-content: center;
  }

  .shop_table.cart td.product-remove {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: auto;
  }

  .coupon {
    float: none;
    width: 100%;
    margin-bottom: 1rem;
  }

  button[name="update_cart"] {
    float: none;
    width: 100%;
  }
}

.overlay-actions .added_to_cart {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--card);
  color: var(--foreground);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  white-space: nowrap;
  margin-top: 0.5rem;
  border: 1px solid var(--border);
  opacity: 0;
  animation: fadeIn 0.3s forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.product-info {
  padding: 1.5rem;
}

.product-cats {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-foreground);
  margin-bottom: 0.5rem;
}

.product-cats a {
  color: inherit;
}

.product-title {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.product-title a {
  color: var(--foreground);
  transition: color 0.2s;
}

.product-title a:hover {
  color: var(--primary);
}

.product-price {
  font-weight: 600;
  color: var(--primary);
}

/* ==========================================================================
   Shop - Minimal List Design
   ========================================================================== */
.shop-minimal-container {
  padding-top: 8rem;
  padding-bottom: 4rem;
  max-width: 1000px;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.minimal-header {
  margin-bottom: 6rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 2rem;
}

.minimal-title {
  font-size: 3rem;
  font-weight: 300;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.minimal-description {
  color: var(--muted-foreground);
  font-size: 1.25rem;
  font-weight: 300;
}

.shop-list-wrapper {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.minimal-product-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .minimal-product-item {
    grid-template-columns: 300px 1fr;
    gap: 4rem;
  }
}

.minimal-image {
  aspect-ratio: 4/5;
  background: #f0f0f0;
  border-radius: 0.5rem;
  overflow: hidden;
}

.minimal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.3s ease;
}

.minimal-image:hover img {
  filter: brightness(0.9);
}

.minimal-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.minimal-meta {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.minimal-product-title {
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
}

.minimal-product-title a {
  color: var(--foreground);
  text-decoration: none;
  background-image: linear-gradient(var(--primary), var(--primary));
  background-position: 0% 100%;
  background-repeat: no-repeat;
  background-size: 0% 2px;
  transition: background-size 0.3s;
}

.minimal-product-title a:hover {
  background-size: 100% 2px;
}

.minimal-excerpt {
  color: var(--muted-foreground);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.minimal-actions {
  display: flex;
  align-items: center;
  gap: 2rem;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}

.minimal-price {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--foreground);
}

.minimal-cart-btn a.button {
  background: transparent;
  border: 1px solid var(--foreground);
  color: var(--foreground);
  padding: 0.75rem 2rem;
  border-radius: 0;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.minimal-cart-btn a.button:hover {
  background: var(--foreground);
  color: var(--background);
}

.shop-pagination {
  margin-top: 4rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.shop-pagination .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--border);
  color: var(--muted-foreground);
  transition: all 0.3s ease;
}

.shop-pagination .page-numbers.current,
.shop-pagination .page-numbers:hover {
  background: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
}

/* ==========================================================================
   WooCommerce Blocks Cart Styles
   ========================================================================== */

/* Main Container */
.wp-block-woocommerce-cart {
  gap: 4rem !important;
}

/* Cart Items Table/Grid */
table.wc-block-cart-items {
  border-collapse: separate !important;
  border-spacing: 0 1rem !important;
}

.wc-block-cart-items__header {
  color: var(--muted-foreground);
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  border-bottom: 1px solid var(--border) !important;
  padding-bottom: 1rem !important;
}

.wc-block-cart-items__row {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  margin-bottom: 0 !important;
  padding: 0 !important;
}

.wc-block-cart-items__row td {
  background: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding-top: 1.5rem !important;
  padding-bottom: 1.5rem !important;
  transition: border-color 0.3s ease;
}

.wc-block-cart-items__row td:first-child {
  border-left: 1px solid var(--border);
  border-top-left-radius: 1rem;
  border-bottom-left-radius: 1rem;
  padding-left: 1.5rem !important;
}

.wc-block-cart-items__row td:last-child {
  border-right: 1px solid var(--border);
  border-top-right-radius: 1rem;
  border-bottom-right-radius: 1rem;
  padding-right: 1.5rem !important;
}

.wc-block-cart-items__row:hover td {
  border-color: var(--primary);
}

.wc-block-cart-item__image img {
  border-radius: 0.75rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.wc-block-components-product-name {
  color: var(--foreground) !important;
  font-weight: 700 !important;
  font-size: 1.125rem !important;
  text-decoration: none !important;
}

.wc-block-components-product-name:hover {
  color: var(--primary) !important;
}

.wc-block-components-product-price {
  color: var(--foreground) !important;
  font-weight: 600 !important;
}

/* Quantity Selector */
.wc-block-components-quantity-selector {
  border-radius: 9999px !important;
  border: 1px solid var(--border) !important;
  background: var(--background) !important;
  padding: 0.25rem !important;
}

.wc-block-components-quantity-selector__input {
  background: transparent !important;
  color: var(--foreground) !important;
  border: none !important;
  font-weight: 600 !important;
}

.wc-block-components-quantity-selector__button {
  color: var(--foreground) !important;
  background: transparent !important;
  border-radius: 50% !important;
  width: 2rem !important;
  height: 2rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.2s ease !important;
}

.wc-block-components-quantity-selector__button:hover {
  background-color: var(--primary) !important;
  color: var(--primary-foreground) !important;
}

.wc-block-cart-item__remove-link {
  color: var(--muted-foreground) !important;
  font-size: 0.875rem !important;
  text-decoration: underline !important;
  transition: color 0.2s ease !important;
}

.wc-block-cart-item__remove-link:hover {
  color: #ef4444 !important;
}

/* Sidebar / Totals */
.wc-block-cart__sidebar {
  background: var(--card);
  padding: 2rem;
  border-radius: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.1);
}

.wc-block-cart__totals-title {
  font-size: 1.5rem !important;
  border-bottom: 1px solid var(--border) !important;
  padding-bottom: 1rem !important;
  margin-bottom: 1.5rem !important;
  color: var(--foreground) !important;
}

.wc-block-components-totals-item {
  border-bottom: 1px solid var(--border) !important;
  padding: 1rem 0 !important;
}

.wc-block-components-totals-item__label {
  color: var(--muted-foreground) !important;
}

.wc-block-components-totals-item__value {
  color: var(--foreground) !important;
  font-weight: 600 !important;
}

.wc-block-components-totals-footer-item
  .wc-block-components-totals-item__value {
  color: var(--primary) !important;
  font-size: 1.5rem !important;
}

/* Coupon Code */
.wc-block-components-totals-coupon {
  background: var(--background) !important;
  border: 1px solid var(--border) !important;
  border-radius: 0.75rem !important;
  margin-bottom: 1.5rem !important;
}

.wc-block-components-panel__button {
  color: var(--foreground) !important;
  font-weight: 600 !important;
  padding: 1.25rem 2rem !important; /* Increased padding significantly */
  transition: color 0.2s ease !important;
  width: 100% !important; /* Ensure full width for padding to work */
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  box-sizing: border-box !important;
}

.wc-block-components-panel__button:hover {
  color: var(--primary) !important;
}

.wc-block-components-panel__button svg {
  fill: currentColor !important;
}

/* Coupon Input & Button */
.wc-block-components-totals-coupon .wc-block-components-text-input input {
  background: transparent !important;
  color: var(--foreground) !important;
  border: 1px solid var(--border) !important;
  border-radius: 0.5rem !important;
  padding: 0.75rem !important;
}

.wc-block-components-totals-coupon .wc-block-components-button {
  background: var(--muted) !important;
  color: var(--muted-foreground) !important;
  border-radius: 0.5rem !important;
  font-weight: 600 !important;
  transition: all 0.2s ease !important;
}

.wc-block-components-totals-coupon
  .wc-block-components-button:not([disabled]):hover {
  background: var(--primary) !important;
  color: var(--primary-foreground) !important;
}

.wc-block-components-totals-coupon .wc-block-components-button[disabled] {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
}

/* Proceed to Checkout Button */
.wc-block-cart__submit-button.contained {
  background-color: var(--primary) !important;
  color: var(--primary-foreground) !important;
  border-radius: 9999px !important;
  padding: 1rem 2rem !important;
  font-weight: 700 !important;
  font-size: 1.125rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
  border: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.wc-block-cart__submit-button.contained:hover {
  opacity: 0.9 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1) !important;
  filter: brightness(1.1) !important;
}

.wc-block-cart__submit-button.contained:active {
  transform: translateY(0) !important;
}

/* ==========================================================================
   WooCommerce Blocks Checkout Styles
   ========================================================================== */

/* Main Layout */
.wp-block-woocommerce-checkout {
  gap: 4rem !important;
}

/* Section Containers (Billing, Shipping, Payment) */
.wc-block-components-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 2rem;
  margin-bottom: 2rem;
}

.wc-block-components-section__heading {
  font-size: 1.5rem !important;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
  color: var(--foreground);
}

/* Form Inputs */
.wc-block-components-text-input input,
.wc-block-components-combobox-control input,
.wc-block-components-textarea-control textarea {
  background: transparent !important;
  border: 1px solid var(--border) !important;
  border-radius: 0.5rem !important;
  color: var(--foreground) !important;
  padding: 1.6rem 1rem 0.6rem !important; /* Increased top padding for floating label */
  font-size: 1rem !important;
  min-height: 3.5rem;
}

/* Fix for Combobox/Dropdown Backgrounds */
.wc-block-components-combobox-control,
.wc-block-components-country-input,
.wc-block-components-state-input {
  background: transparent !important;
}

.wc-block-components-combobox-control
  .wc-block-components-combobox-control__input {
  background: transparent !important;
}

/* Ensure dropdown menu items are visible */
.wc-block-components-combobox-control__menu {
  background: var(--card) !important;
  border: 1px solid var(--border) !important;
  color: var(--foreground) !important;
}

.wc-block-components-combobox-control__option:hover,
.wc-block-components-combobox-control__option--is-focused {
  background: var(--primary) !important;
  color: var(--primary-foreground) !important;
}

.wc-block-components-text-input label,
.wc-block-components-combobox-control label,
.wc-block-components-textarea-control label {
  color: var(--muted-foreground) !important;
  background: transparent !important; /* Transparent to blend with input */
  padding: 0 0.5rem;
  top: 0.5rem !important; /* Adjust label position */
  left: 0.5rem !important;
  font-size: 0.875rem !important;
  pointer-events: none;
}

/* Radio Controls (Shipping, Payment) */
.wc-block-components-radio-control__input {
  border: 1px solid var(--border) !important;
  background: transparent !important;
}

.wc-block-components-radio-control__input:checked {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
}

.wc-block-components-radio-control__label {
  color: var(--foreground) !important;
}

.wc-block-components-radio-control__description {
  color: var(--muted-foreground) !important;
}

/* Order Summary (Sidebar) */
.wc-block-checkout__sidebar {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 2rem;
}

.wc-block-components-order-summary-item {
  border-bottom: 1px solid var(--border);
}

.wc-block-components-order-summary-item__image {
  border-radius: 0.5rem;
  border: 1px solid var(--border);
}

.wc-block-components-order-summary-item__title {
  color: var(--foreground) !important;
  font-weight: 600 !important;
}

.wc-block-components-order-summary-item__quantity {
  background: var(--muted) !important;
  color: var(--foreground) !important;
  border-radius: 9999px;
}

/* Place Order Button */
.wc-block-components-checkout-place-order-button {
  background-color: var(--primary) !important;
  color: var(--primary-foreground) !important;
  border-radius: 9999px !important;
  padding: 1rem 2rem !important;
  font-weight: 700 !important;
  font-size: 1.125rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  transition: all 0.3s ease !important;
  border: none !important;
  width: 100%;
  margin-top: 2rem;
}

.wc-block-components-checkout-place-order-button:hover {
  opacity: 0.9 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1) !important;
}

/* Checkbox (Terms) */
.wc-block-components-checkbox-control__input {
  border: 1px solid var(--border) !important;
  background: transparent !important;
  border-radius: 0.25rem !important;
}

.wc-block-components-checkbox-control__input:checked {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
}

.wc-block-components-checkbox-control__label {
  color: var(--foreground) !important;
}

/* Accordion (Payment Methods) */
.wc-block-components-radio-control-accordion-content {
  border-top: 1px solid var(--border) !important;
  margin-top: 1rem;
  padding-top: 1rem;
  color: var(--muted-foreground);
}

/* ==========================================================================
   Shop Page Layout (Sidebar & Toolbar)
   ========================================================================== */

.shop-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 992px) {
  .shop-layout {
    grid-template-columns: 280px 1fr;
  }
}

/* Sidebar */
.shop-sidebar {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
  height: fit-content;
  position: sticky;
  top: 6rem;
}

.sidebar-widget {
  margin-bottom: 2rem;
}

.sidebar-widget:last-child {
  margin-bottom: 0;
}

.widget-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--foreground);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.widget-title svg {
  color: var(--primary);
}

.product-categories {
  list-style: none;
  padding: 0;
  margin: 0;
}

.product-categories li {
  margin-bottom: 0.25rem;
}

.product-categories li a {
  color: var(--muted-foreground);
  text-decoration: none;
  transition: all 0.2s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.625rem 0.875rem;
  border-radius: 0.5rem;
  font-size: 0.9375rem;
}

.product-categories li a:hover {
  color: var(--foreground);
  background: rgba(255, 255, 255, 0.03);
}

.product-categories li.current-cat > a {
  color: var(--primary);
  background: rgba(61, 212, 192, 0.1);
  font-weight: 500;
}

.product-categories li a .cat-count,
.product-categories li a .count {
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  color: var(--muted-foreground);
}

.product-categories li.current-cat > a .cat-count,
.product-categories li.current-cat > a .count {
  background: var(--primary);
  color: var(--primary-foreground);
}

/* Children categories */
.product-categories .children {
  list-style: none;
  padding-left: 1rem;
  margin-top: 0.25rem;
}

/* Toolbar */
.shop-toolbar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
}

.shop-toolbar *:focus {
  outline: none;
}

@media (min-width: 768px) {
  .shop-toolbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.shop-result-info {
  color: var(--muted-foreground);
  font-size: 0.9375rem;
}

.result-count {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.shop-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* WooCommerce Ordering Form Reset */
.woocommerce-ordering {
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
}

/* View Switcher */
.view-switcher {
  display: flex;
  gap: 0.375rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.25rem;
  border-radius: 0.5rem;
}

.view-switcher .view-btn {
  background: transparent;
  border: none;
  border-radius: 0.375rem;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-foreground);
  cursor: pointer;
  transition: all 0.2s ease;
}

.view-switcher .view-btn:hover {
  color: var(--foreground);
}

.view-switcher .view-btn.active {
  background: var(--primary);
  color: var(--primary-foreground);
}

/* ==========================================================================
   Custom Dropdown (Modern Sorting)
   ========================================================================== */

.custom-dropdown {
  position: relative;
  min-width: 200px;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--foreground);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dropdown-toggle:hover {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.05);
}

.dropdown-toggle:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(61, 212, 192, 0.15);
}

.dropdown-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dropdown-arrow {
  flex-shrink: 0;
  transition: transform 0.3s ease;
  color: var(--muted-foreground);
}

.custom-dropdown.open .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 0.5rem;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 100;
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
  max-height: 300px;
  overflow-y: auto;
}

.custom-dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  margin: 0;
}

.dropdown-menu li a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--muted-foreground);
  text-decoration: none;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  transition: all 0.15s ease;
  position: relative;
}

.dropdown-menu li a::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: transparent;
  transition: background 0.15s ease;
}

.dropdown-menu li a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--foreground);
}

.dropdown-menu li a:hover::before {
  background: var(--muted-foreground);
}

.dropdown-menu li a.active {
  background: rgba(61, 212, 192, 0.1);
  color: var(--primary);
}

.dropdown-menu li a.active::before {
  background: var(--primary);
}

/* Scrollbar for dropdown */
.dropdown-menu::-webkit-scrollbar {
  width: 6px;
}

.dropdown-menu::-webkit-scrollbar-track {
  background: transparent;
}

.dropdown-menu::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.dropdown-menu::-webkit-scrollbar-thumb:hover {
  background: var(--muted-foreground);
}

/* List View Styles */
.modern-product-grid.list-view {
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.modern-product-grid.list-view .modern-product-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 0;
  align-items: stretch;
}

.modern-product-grid.list-view .product-image-wrapper {
  aspect-ratio: 1;
  border-radius: 1rem 0 0 1rem;
}

.modern-product-grid.list-view .product-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  padding: 1.5rem 2rem;
}

.modern-product-grid.list-view .product-cats {
  justify-content: flex-start;
}

.modern-product-grid.list-view .product-meta {
  justify-content: flex-start;
  gap: 1.5rem;
}

.modern-product-grid.list-view .product-badge {
  top: 0.75rem;
  left: 0.75rem;
}

.modern-product-grid.list-view .product-badge.featured {
  left: auto;
  right: auto;
  left: 0.75rem;
  top: 2.75rem;
}

/* Shop Pagination */
.shop-pagination {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
}

.shop-pagination ul {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.shop-pagination li a,
.shop-pagination li span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--muted-foreground);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.shop-pagination li a:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.shop-pagination li span.current {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-foreground);
}

/* No Products Message */
.no-products {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--muted-foreground);
  font-size: 1.125rem;
  grid-column: 1 / -1;
}

/* ==========================================================================
   Project Archive Page Styles
   ========================================================================== */

.projects-container .shop-subtitle {
  background: rgba(61, 212, 192, 0.1);
  border: 1px solid rgba(61, 212, 192, 0.2);
}

/* Project Tags Cloud */
.project-tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project-tag {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 9999px;
  color: var(--muted-foreground);
  text-decoration: none;
  font-size: 0.8125rem;
  transition: all 0.2s ease;
}

.project-tag:hover {
  border-color: var(--primary);
  color: var(--foreground);
}

.project-tag.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-foreground);
}

.no-tags {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  margin: 0;
}

/* Project Card Specifics */
.project-card .placeholder-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: var(--muted-foreground);
}

.project-date {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.project-date svg {
  opacity: 0.7;
}

.project-meta {
  justify-content: flex-start !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .shop-hero {
    padding: 3rem 1rem;
  }

  .shop-stats {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 1.5rem;
  }

  .stat-divider {
    width: 40px;
    height: 1px;
  }

  .modern-product-grid.list-view .modern-product-card {
    grid-template-columns: 1fr;
  }

  .modern-product-grid.list-view .product-image-wrapper {
    border-radius: 1rem 1rem 0 0;
    aspect-ratio: 16/9;
  }

  .modern-product-grid.list-view .product-info {
    padding: 1.25rem;
  }

  .project-tags-cloud {
    gap: 0.375rem;
  }

  .project-tag {
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
  }
}

/* ================================
   Single Project Page Styles
   ================================ */

.single-project-article {
  background: var(--background);
  min-height: 100vh;
}

.single-project-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.single-project-header {
  max-width: 900px;
  margin: 0 auto 3rem;
}

.project-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  color: var(--muted-foreground);
}

.project-breadcrumb a {
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 0.3s ease;
}

.project-breadcrumb a:hover {
  color: var(--primary);
}

.project-breadcrumb .separator {
  opacity: 0.5;
}

.project-breadcrumb .current {
  color: var(--primary);
}

.project-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--foreground);
  line-height: 1.2;
}

.project-meta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.project-categories {
  display: flex;
  gap: 0.5rem;
}

.category-badge {
  padding: 0.5rem 1rem;
  background: var(--primary);
  color: var(--primary-foreground);
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.category-badge:hover {
  background: #00b89f;
  transform: translateY(-2px);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-badge {
  padding: 0.375rem 0.875rem;
  background: var(--secondary);
  color: var(--secondary-foreground);
  border-radius: 9999px;
  font-size: 0.75rem;
  border: 1px solid var(--border);
}

.project-featured-image {
  margin-bottom: 3rem;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.project-featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

.project-content-section {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 3rem;
  margin-bottom: 4rem;
}

.project-main-content {
  max-width: 900px;
}

.project-main-content p {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--foreground);
  margin-bottom: 1.5rem;
}

.project-main-content h2,
.project-main-content h3,
.project-main-content h4 {
  color: var(--foreground);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.project-main-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 1.5rem 0;
}

.project-sidebar {
  position: sticky;
  top: 2rem;
  height: fit-content;
}

.sidebar-widget {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.widget-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.project-live-link {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  font-weight: 600;
}

.project-live-link svg {
  width: 1.25rem;
  height: 1.25rem;
}

.project-details-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.detail-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.detail-label {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  font-weight: 500;
}

.detail-value {
  color: var(--foreground);
  font-weight: 600;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-top: 0.5rem;
}

.tech-tag {
  padding: 0.25rem 0.625rem;
  background: var(--secondary);
  color: var(--primary);
  border-radius: 0.375rem;
  font-size: 0.75rem;
  border: 1px solid rgba(0, 168, 150, 0.2);
}

.share-buttons {
  display: flex;
  gap: 0.75rem;
}

.share-btn {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  color: var(--secondary-foreground);
  transition: all 0.3s ease;
}

.share-btn:hover {
  background: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.share-btn svg {
  width: 1.25rem;
  height: 1.25rem;
}

.project-navigation {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.nav-project {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.nav-project:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 168, 150, 0.1);
}

.nav-project.all-projects {
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--primary);
  font-weight: 600;
}

.nav-project.all-projects svg {
  width: 1.25rem;
  height: 1.25rem;
}

.nav-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  font-weight: 500;
}

.nav-label svg {
  width: 1rem;
  height: 1rem;
}

.nav-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--foreground);
}

.next-project {
  text-align: right;
}

.next-project .nav-label {
  justify-content: flex-end;
}

/* Responsive Design for Single Project */
@media (max-width: 1024px) {
  .project-content-section {
    grid-template-columns: 1fr;
  }

  .project-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .project-title {
    font-size: 2rem;
  }

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

  .nav-project.all-projects {
    order: -1;
  }

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

/* ================================
   Light Mode Enhancements
   ================================ */

.theme-light .site-header {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.theme-light .site-header.scrolled {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.theme-light .nav-menu a {
  color: var(--foreground);
}

.theme-light .nav-menu a:hover {
  color: var(--primary);
}

.theme-light .parallax-section {
  background: var(--background);
}

.theme-light .parallax-bg {
  opacity: 0.03;
}

.theme-light .parallax-overlay {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.9),
    rgba(248, 250, 252, 0.95)
  );
}

.theme-light .parallax-orb {
  opacity: 0.015;
}

/* Light Mode Cards */
.theme-light .project-card,
.theme-light .modern-product-card,
.theme-light .testimonial-item {
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.04),
    0 1px 2px rgba(0, 0, 0, 0.02);
}

.theme-light .project-card:hover,
.theme-light .modern-product-card:hover,
.theme-light .testimonial-item:hover {
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.08),
    0 2px 8px rgba(0, 0, 0, 0.04);
  border-color: rgba(8, 145, 178, 0.3);
}

.theme-light .project-card::before,
.theme-light .testimonial-item::before {
  background: linear-gradient(135deg, rgba(8, 145, 178, 0.03), transparent);
}

/* Light Mode Buttons */
.theme-light .btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: 0 2px 8px rgba(8, 145, 178, 0.25);
}

.theme-light .btn-primary:hover {
  background: #0e7490;
  box-shadow: 0 4px 16px rgba(8, 145, 178, 0.35);
}

.theme-light .btn-secondary {
  background: var(--card);
  color: var(--foreground);
  border: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.theme-light .btn-secondary:hover {
  background: var(--secondary);
  border-color: var(--primary);
}

/* Light Mode Hero Section */
.theme-light .hero-section {
  background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 50%, #f0f9ff 100%);
}

.theme-light .hero-title {
  background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Light Mode About Section */
.theme-light .about-content {
  background: var(--card);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

/* Light Mode Skills */
.theme-light .skill-item,
.theme-light .skill-tag-item {
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.theme-light .skill-item:hover,
.theme-light .skill-tag-item:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(8, 145, 178, 0.15);
}

/* Light Mode Testimonials */
.theme-light .testimonial-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.theme-light .testimonial-item:hover {
  border-color: rgba(8, 145, 178, 0.4);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.theme-light .testimonial-logo {
  background: var(--primary);
}

.theme-light .rating-number {
  color: #0f172a;
}

.theme-light .star.filled {
  color: #f59e0b;
  filter: drop-shadow(0 0 2px rgba(245, 158, 11, 0.3));
}

.theme-light .star.empty {
  color: #cbd5e1;
}

.theme-light .testimonial-text {
  color: #475569;
}

.theme-light .author-name {
  color: #0f172a;
}

.theme-light .author-position {
  color: #94a3b8;
}

.theme-light .testimonial-header {
  border-bottom-color: #e2e8f0;
}

/* Light Mode Forms */
.theme-light .form-group input,
.theme-light .form-group textarea {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--foreground);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.theme-light .form-group input:focus,
.theme-light .form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.1);
}

/* Light Mode Text */
.theme-light .section-label {
  color: var(--primary);
  text-shadow: none;
}

.theme-light .text-muted {
  color: #64748b;
}

/* Light Mode Borders & Dividers */
.theme-light .project-navigation {
  border-top: 1px solid var(--border);
}

.theme-light .testimonial-footer {
  border-top: 1px solid var(--border);
}

/* Light Mode Search */
.theme-light .search-overlay {
  background: rgba(255, 255, 255, 0.98);
}

.theme-light .search-overlay-input {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--foreground);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Light Mode Sidebar */
.theme-light .sidebar-widget {
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Light Mode Project Tags */
.theme-light .project-tag,
.theme-light .tag-badge {
  background: var(--secondary);
  border: 1px solid var(--border);
  color: var(--foreground);
}

.theme-light .category-badge {
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: 0 2px 6px rgba(8, 145, 178, 0.3);
}

/* Light Mode Experience Timeline */
.theme-light .experience-card {
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.theme-light .experience-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* Light Mode Footer */
.theme-light footer {
  background: var(--card);
  border-top: 1px solid var(--border);
}

/* Light Mode Smooth Scrollbar */
.theme-light ::-webkit-scrollbar-track {
  background: var(--secondary);
}

.theme-light ::-webkit-scrollbar-thumb {
  background: #cbd5e1;
}

.theme-light ::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Light Mode Code Blocks */
.theme-light code,
.theme-light pre {
  background: var(--secondary);
  color: var(--foreground);
  border: 1px solid var(--border);
}

/* Light Mode Tooltips */
.theme-light .theme-swatch::after {
  background: var(--card);
  color: var(--foreground);
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}
