body {
  background-color: #79c1c2; /* Vibrant ocean teal background */
  font-family: 'Quicksand', sans-serif;
  margin: 0;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}

/* Header Container */
.hub-header {
  text-align: center;
  max-width: 580px;
  margin: 0 auto 36px auto;
  background-color: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  padding: 24px 28px;
  border-radius: 20px;
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.hub-header h1 {
  color: #fff4ea; 
  font-size: 2.3rem;
  margin: 0 0 8px 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.hub-header p {
  font-size: 1.05rem;
  color: #1a3235;
  margin: 0;
  line-height: 1.4;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

/* Fixed 3-Column Grid Layout (Locks cards into slots 1, 2, 3) */
.calculator-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); 
  gap: 30px;
  max-width: 980px; 
  width: 100%;
  margin: 0 auto;
}


.calc-card {
  color: #2e2521;
  background-color: transparent;
  border: 2.5px solid #2e2521;
  border-radius: 24px;
  padding: 32px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;         
  justify-content: center;     
  text-align: center;           
  gap: 12px;                    
  position: relative;
  overflow: hidden;             
  
  /* Frosted glass backdrop blur */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  
  /* Super thick, ultra-diffused inner white halo (Zero sharp border lines) */
  box-shadow: 
    5px 5px 0px #2e2521,                                          
    /* Change 0.65 to a lower number like 0.35 for more transparency */
    inset 0 0 36px 16px rgba(255, 255, 255, 0.55), 
    inset 0 -12px 24px rgba(100, 120, 140, 0.1);
    
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s ease;
}

/* Subtle corner aura to enhance the soft edge glow */
.calc-card::after {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(12px);
}

.calc-card:hover {
  transform: translateY(-5px) translateX(-2px);
  box-shadow: 
    8px 8px 0px #2e2521,
    /* Change 0.8 to a lower number like 0.5 for hover */
    inset 0 0 48px 22px rgba(255, 255, 255, 0.6), 
    inset 0 -16px 28px rgba(100, 120, 140, 0.15);
}

.calc-card h3 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  position: relative;
  z-index: 1;
}

.calc-card p {
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0;
  opacity: 0.9;
  position: relative;
  z-index: 1;
}

/* Navigation & Back Link (Fixed Selector) */
.nook-nav {
    width: 100%;
    max-width: 1050px;
    margin-bottom: 20px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background-color: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(4px);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    border-radius: 14px;
    color: #1a3235;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.15s ease;
}

.back-link:hover {
    transform: translateX(-2px);
}