/* ==========================================================================
   WET-ON-WET DARK WATERCOLOR THEME (ULTRA-FINE GRAIN & ENHANCED WASHES)
   ========================================================================== */

:root {
  --bg-color: #101014;
  --bg-card: rgba(14, 14, 16, 0.55);
  --bg-card-hover: rgba(20, 20, 24, 0.8);
  --text-primary: #ffffff;
  --text-secondary: #a0a0a5;
  --text-muted: #55555a;
  --border-color: rgba(255, 255, 255, 0.08);
}

body {
  background-color: #101014 !important;
  color: var(--text-primary);
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  background-color: #101014;
  background-image: 
    /* Ultra-fine smooth paper texture (high frequency, subtle matrix) */
    url("data:image/svg+xml,%3Csvg viewBox='0 0 250 250' xmlns='http://www.w3.org/2000/svg'%3e%3cfilter id='paperNoise'%3e%3cfeTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='4' stitchTiles='stitch' result='noise'/%3e%3cfeColorMatrix type='matrix' values='0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0.015 0'/%3e%3c/filter%3e%3crect width='100%25' height='100%25' filter='url(%23paperNoise)'/%3e%3c/svg%3e"),
    /* Micro-fine velvet paper grain */
    url("data:image/svg+xml,%3Csvg viewBox='0 0 150 150' xmlns='http://www.w3.org/2000/svg'%3e%3cfilter id='grainNoise'%3e%3cfeTurbulence type='fractalNoise' baseFrequency='1.4' numOctaves='3' stitchTiles='stitch' result='noise'/%3e%3cfeColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.012 0'/%3e%3c/filter%3e%3crect width='100%25' height='100%25' filter='url(%23grainNoise)'/%3e%3c/svg%3e"),
    /* Beautiful wet-on-wet watercolor washes */
    radial-gradient(circle at 15% 15%, rgba(32, 54, 82, 0.60) 0%, transparent 60%),
    radial-gradient(circle at 85% 25%, rgba(68, 38, 54, 0.60) 0%, transparent 65%),
    radial-gradient(circle at 25% 85%, rgba(28, 62, 50, 0.55) 0%, transparent 65%),
    radial-gradient(circle at 75% 80%, rgba(52, 60, 78, 0.50) 0%, transparent 55%),
    radial-gradient(circle at 50% 45%, rgba(45, 30, 48, 0.45) 0%, transparent 60%) !important;
  background-repeat: repeat, repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat !important;
  background-size: auto, auto, cover, cover, cover, cover, cover !important;
  background-position: center !important;
}

main, header, footer {
  position: relative;
  z-index: 1;
}

/* Glassmorphism dark cards for sections */
.contact-form-side, .modal-content-wrapper {
  background: rgba(14, 14, 16, 0.5) !important;
  backdrop-filter: blur(25px) !important;
  -webkit-backdrop-filter: blur(25px) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2) !important;
}

.contact-form-side:hover {
  background: rgba(14, 14, 16, 0.65) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
}

/* Inputs and interactive elements */
.form-input {
  border-bottom-color: rgba(255, 255, 255, 0.12) !important;
}
.form-input:focus {
  border-bottom-color: #ffffff !important;
}

.btn-magnetic, .btn-submit {
  border-color: rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
}
.btn-magnetic:hover, .btn-submit:hover {
  background: #ffffff !important;
  color: #121215 !important;
  border-color: #ffffff !important;
}

.filter-btn {
  border-color: rgba(255, 255, 255, 0.12) !important;
  background: transparent !important;
  color: var(--text-secondary) !important;
}
.filter-btn:hover {
  background: rgba(255, 255, 255, 0.05) !important;
  color: #ffffff !important;
}
.filter-btn.active {
  background: #ffffff !important;
  color: #121215 !important;
  border-color: #ffffff !important;
}

/* Solid dark background for Selected Works project cards */
.work-item {
  background: #0e0e10 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
}

.work-item:hover {
  background: #0e0e10 !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
}

.work-img-container {
  background: #0e0e10 !important;
}

.work-arrow-circle {
  border-color: rgba(255, 255, 255, 0.15) !important;
  color: var(--text-secondary) !important;
}
.work-item:hover .work-arrow-circle {
  background: #ffffff !important;
  color: #121215 !important;
  border-color: #ffffff !important;
}
