/* ==========================================================================
   SMOKED LIQUID GLASS THEME STYLESHEET
   Luxury Obsidian, Charcoal Gray, Warm Bronze & Espresso Glassmorphism
   Fully Responsive & Mobile-Optimized
   ========================================================================== */

:root {
  --bg-deep: #09090b;
  --bg-surface: #121113;
  --bg-glass-card: rgba(22, 20, 23, 0.75);
  --bg-glass-card-hover: rgba(30, 26, 28, 0.88);
  --bg-glass-pill: rgba(255, 255, 255, 0.04);
  
  --border-glass: rgba(215, 195, 175, 0.14);
  --border-glass-hover: rgba(212, 163, 115, 0.45);
  --border-glass-highlight: rgba(255, 245, 235, 0.22);
  
  --shadow-glass: 0 16px 40px -10px rgba(0, 0, 0, 0.65), inset 0 1px 0 0 rgba(255, 245, 235, 0.1);

  --color-bronze: #d4a373;
  --color-bronze-light: #e0a96d;
  --color-espresso: #4a2e18;
  --color-amber-smoke: #c98a4b;
  --color-gray-light: #e4e2df;
  --color-gray-muted: #a39e96;
  --color-emerald: #10b981;
}

/* Background Ambient Orbs */
.liquid-bg-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  z-index: -10;
  background: radial-gradient(circle at 50% 10%, #171413 0%, #09090b 85%);
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  mix-blend-mode: screen;
  animation: floatSmokedOrb 24s infinite alternate ease-in-out;
}

.orb-1 {
  width: min(650px, 90vw);
  height: min(650px, 90vw);
  background: radial-gradient(circle, rgba(180, 115, 60, 0.5) 0%, rgba(74, 46, 24, 0) 70%);
  top: -120px;
  left: 10%;
  animation-duration: 22s;
}

.orb-2 {
  width: min(550px, 80vw);
  height: min(550px, 80vw);
  background: radial-gradient(circle, rgba(140, 130, 120, 0.35) 0%, rgba(20, 18, 17, 0) 70%);
  top: 38%;
  right: -50px;
  animation-duration: 28s;
  animation-delay: -5s;
}

.orb-3 {
  width: min(520px, 75vw);
  height: min(520px, 75vw);
  background: radial-gradient(circle, rgba(160, 100, 50, 0.4) 0%, rgba(9, 9, 11, 0) 70%);
  bottom: -60px;
  left: 15%;
  animation-duration: 20s;
  animation-delay: -10s;
}

.orb-4 {
  width: min(450px, 70vw);
  height: min(450px, 70vw);
  background: radial-gradient(circle, rgba(100, 95, 90, 0.3) 0%, rgba(15, 14, 13, 0) 70%);
  top: 65%;
  left: -50px;
  animation-duration: 26s;
  animation-delay: -14s;
}

@keyframes floatSmokedOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(45px, 60px) scale(1.08); }
  100% { transform: translate(-35px, 25px) scale(0.95); }
}

/* Subtle Warm Dark Grid */
.grid-overlay {
  position: fixed;
  inset: 0;
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(215, 195, 175, 0.015) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(215, 195, 175, 0.015) 1px, transparent 1px);
  z-index: -9;
  pointer-events: none;
}

/* Smoked Liquid Glass Panels */
.glass-panel {
  background: var(--bg-glass-card);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  border: 1px solid rgba(215, 195, 175, 0.18);
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.75), inset 0 1px 0 0 rgba(255, 245, 235, 0.12);
  border-radius: 24px;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.glass-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 245, 235, 0.28), transparent);
  pointer-events: none;
}

.glass-panel:hover {
  border-color: rgba(212, 163, 115, 0.45);
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.85), 0 0 25px -5px rgba(212, 163, 115, 0.25);
}

/* Inner Nested Cards (Highlights, Homelab items, Previews) */
.glass-nested-card {
  background: rgba(14, 13, 15, 0.85);
  border: 1px solid rgba(215, 195, 175, 0.12);
  box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  transition: all 0.25s ease;
}

.glass-nested-card:hover {
  border-color: rgba(212, 163, 115, 0.35);
  background: rgba(20, 18, 22, 0.95);
}

.glass-sheen {
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 245, 235, 0.04), transparent);
  transform: skewX(-25deg);
  transition: left 0.75s ease;
  pointer-events: none;
}

.glass-panel:hover .glass-sheen {
  left: 140%;
}

/* Smoked Buttons */
.btn-glass-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  color: #ffffff;
  background: linear-gradient(135deg, #784820, #422510);
  border: 1px solid rgba(224, 169, 109, 0.35);
  box-shadow: 0 4px 18px rgba(120, 72, 32, 0.32), inset 0 1px 0 rgba(255, 245, 235, 0.2);
  backdrop-filter: blur(12px);
  transition: all 0.25s ease;
  cursor: pointer;
  text-decoration: none;
}

.btn-glass-primary:hover {
  background: linear-gradient(135deg, #965c2b, #593318);
  box-shadow: 0 6px 26px rgba(212, 163, 115, 0.45);
  transform: translateY(-2px);
}

.btn-glass-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.88rem;
  color: #ffffff;
  background: linear-gradient(135deg, #25D366, #128C7E);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.28);
  transition: all 0.25s ease;
  cursor: pointer;
  text-decoration: none;
}

.btn-glass-whatsapp:hover {
  background: linear-gradient(135deg, #2ae771, #139f8f);
  box-shadow: 0 6px 22px rgba(37, 211, 102, 0.42);
  transform: translateY(-2px);
}

.btn-glass-linkedin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.88rem;
  color: #ffffff;
  background: linear-gradient(135deg, #0a66c2, #004182);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 15px rgba(10, 102, 194, 0.28);
  transition: all 0.25s ease;
  cursor: pointer;
  text-decoration: none;
}

.btn-glass-linkedin:hover {
  background: linear-gradient(135deg, #1178dd, #004e9a);
  box-shadow: 0 6px 22px rgba(10, 102, 194, 0.42);
  transform: translateY(-2px);
}

.btn-glass-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.88rem;
  color: #e4e2df;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(12px);
  transition: all 0.25s ease;
  cursor: pointer;
  text-decoration: none;
}

.btn-glass-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(212, 163, 115, 0.35);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Language Toggle Pill */
.btn-lang-toggle {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
}

.btn-lang-option {
  padding: 3px 8px;
  border-radius: 7px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-lang-option.active {
  background: #784820;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(120, 72, 32, 0.4);
}

.btn-lang-option:not(.active) {
  color: #a39e96;
}

.btn-lang-option:not(.active):hover {
  color: #ffffff;
}

/* Modal Liquid Glass Presentation Viewer */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(9, 9, 11, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 12px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-window {
  width: 100%;
  max-width: 1320px;
  height: 92vh;
  background: rgba(18, 16, 17, 0.96);
  border: 1px solid rgba(215, 195, 175, 0.25);
  border-radius: 20px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9), 0 0 35px rgba(180, 115, 60, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.96);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-window {
  transform: scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: rgba(24, 22, 23, 0.95);
  border-bottom: 1px solid var(--border-glass);
}

.modal-body {
  flex: 1;
  width: 100%;
  height: 100%;
  background: #000000;
  position: relative;
}

.modal-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
  background: rgba(215, 195, 175, 0.18);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(212, 163, 115, 0.4);
}

/* ==========================================================================
   MOBILE-SPECIFIC REFINEMENTS (Clear Card Separation & Better Touch Targets)
   ========================================================================== */
@media (max-width: 640px) {
  /* Give each main glass card distinct separation, elevation and outline */
  .glass-panel {
    background: rgba(18, 16, 19, 0.92);
    border: 1px solid rgba(215, 195, 175, 0.22);
    box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 245, 235, 0.15);
    border-radius: 20px;
    margin-bottom: 2rem !important;
    padding: 1.25rem !important;
  }

  /* Make sure sections have clear vertical breathing room */
  main {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
    padding-top: 5rem !important;
  }

  section {
    margin-bottom: 2.25rem !important;
  }

  /* Nested cards inside sections (highlights, homelab items, previews) */
  .glass-nested-card, 
  .preview-card-box {
    background: rgba(10, 9, 11, 0.94) !important;
    border: 1px solid rgba(215, 195, 175, 0.16) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6) !important;
  }

  /* Improve button tap readability */
  .btn-glass-primary,
  .btn-glass-secondary,
  .btn-glass-whatsapp,
  .btn-glass-linkedin {
    width: 100% !important;
    justify-content: center !important;
    padding: 11px 16px !important;
  }
}

