/* Root Variables & Colors */
:root {
  --font-primary: 'Montserrat', sans-serif;
  --font-serif: 'Playfair Display', serif;
  
  --bg-color: #0b0103;
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.65);
  
  --cashflow-color: #d4af37; /* Gold */
  --cashflow-glow: rgba(212, 175, 55, 0.15);
  
  --notaris-color: #3b82f6; /* Blue Indigo */
  --notaris-glow: rgba(59, 130, 246, 0.15);
  
  --card-bg: rgba(255, 255, 255, 0.03);
  --card-border: rgba(255, 255, 255, 0.08);
}

/* Global Reset & Base Styling */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-primary);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
  position: relative;
}

/* Aurora Backdrop Animation */
.aurora-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
  filter: blur(100px);
  opacity: 0.55;
}

.aurora {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: screen;
}

.aurora-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(128, 13, 29, 0.4) 0%, rgba(0,0,0,0) 70%);
  top: -10%;
  left: 10%;
  animation: moveAurora 20s infinite alternate;
}

.aurora-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(46, 79, 188, 0.3) 0%, rgba(0,0,0,0) 70%);
  bottom: -10%;
  right: 10%;
  animation: moveAurora 25s infinite alternate-reverse;
}

.aurora-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, rgba(0,0,0,0) 70%);
  top: 40%;
  left: 45%;
  animation: moveAurora 15s infinite alternate;
}

@keyframes moveAurora {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(50px, -50px) scale(1.1); }
  100% { transform: translate(-50px, 50px) scale(0.9); }
}

/* Hub Layout Container */
.hub-container {
  width: 100%;
  max-width: 1100px;
  padding: 40px 24px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

/* Header Styles */
.hub-header {
  text-align: center;
  margin-bottom: 60px;
  opacity: 0;
  transform: translateY(-20px);
  animation: slideDown 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hub-title {
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: 0.25em;
  margin-bottom: 12px;
  color: var(--text-primary);
  text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.hub-title span {
  color: #baa9ab;
  font-weight: 300;
}

.hub-subtitle {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
  letter-spacing: 0.05em;
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  width: 100%;
  margin-bottom: 60px;
  opacity: 0;
  transform: translateY(30px);
  animation: slideUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

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

/* Glassmorphism Card Style */
.hub-card {
  position: relative;
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 40px;
  text-decoration: none;
  color: var(--text-primary);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255,255,255,0.1);
  display: flex;
  flex-direction: column;
}

/* Hover Tracking Glow */
.hub-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    800px circle at var(--mouse-x, 0) var(--mouse-y, 0),
    rgba(255, 255, 255, 0.06),
    transparent 40%
  );
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.hub-card:hover::before {
  opacity: 1;
}

/* Specific Card Theme Settings */
.card-cashflow:hover {
  border-color: var(--cashflow-color);
  box-shadow: 0 30px 60px rgba(212, 175, 55, 0.15), inset 0 1px 0 rgba(212, 175, 55, 0.2);
  transform: translateY(-8px) scale(1.01);
}

.card-notaris:hover {
  border-color: var(--notaris-color);
  box-shadow: 0 30px 60px rgba(59, 130, 246, 0.15), inset 0 1px 0 rgba(59, 130, 246, 0.2);
  transform: translateY(-8px) scale(1.01);
}

/* Card Content Elements */
.card-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 28px;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card-cashflow .card-icon {
  background-color: rgba(212, 175, 55, 0.1);
  color: var(--cashflow-color);
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.card-notaris .card-icon {
  background-color: rgba(59, 130, 246, 0.1);
  color: var(--notaris-color);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.card-icon span {
  font-size: 28px;
}

.hub-card:hover .card-icon {
  transform: scale(1.1) rotate(5deg);
}

.card-title {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
  transition: color 0.3s;
}

.card-cashflow:hover .card-title {
  color: var(--cashflow-color);
}

.card-notaris:hover .card-title {
  color: var(--notaris-color);
}

.card-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
  flex-grow: 1;
}

/* Card Actions */
.card-action {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  transition: gap 0.3s;
}

.card-cashflow .card-action {
  color: var(--cashflow-color);
}

.card-notaris .card-action {
  color: var(--notaris-color);
}

.action-arrow {
  font-size: 16px !important;
  transition: transform 0.3s;
}

.hub-card:hover .card-action {
  gap: 18px;
}

.hub-card:hover .action-arrow {
  transform: translateX(4px);
}

/* Footer Style */
.hub-footer {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 400;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.08em;
  opacity: 0;
  animation: fadeIn 1s ease 0.5s forwards;
}

/* Animations Definitions */
@keyframes slideDown {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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