/* Nobregas Portal Base Styles */
:root {
  --accent: #1E3A8A; /* Navy base */
  --accent-rgb: 30,58,138;
  --accent-alt: #0EA5E9; /* Ocean cyan */
  --accent-alt-rgb: 14,165,233;
  --accent-glow: #60A5FA; /* Light surface glow */
  --depth-1: #031025;
  --depth-2: #051A33;
  --depth-3: #072545;
  --depth-4: #0A3056;
  --bg-dark: #020E1C;
  --bg-light: #0A2440;
}

html, body {
  height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', Arial, sans-serif;
  background:
    radial-gradient(circle at 20% 25%, rgba(var(--accent-alt-rgb),0.35), transparent 60%),
    radial-gradient(circle at 80% 75%, rgba(var(--accent-rgb),0.4), transparent 65%),
    linear-gradient(160deg, var(--depth-1) 0%, var(--depth-2) 30%, var(--depth-3) 60%, var(--depth-4) 100%);
  min-height: 100vh;
  min-height: 100svh;
  overflow-x: hidden;
  overflow-y: auto;
  position: relative;
}

@media (min-width: 768px) {
  body {
    height: 100vh;
    height: 100svh;
    overflow: hidden;
  }
}

.dark body {
  background:
    radial-gradient(circle at 70% 80%, rgba(var(--accent-alt-rgb),0.25), transparent 60%),
    radial-gradient(circle at 25% 30%, rgba(var(--accent-rgb),0.35), transparent 65%),
    linear-gradient(170deg, #010812 0%, #031426 30%, #052035 65%, #072c46 100%);
}

/* Glass panel utility */
.glass {
  background:
    linear-gradient(150deg, rgba(255,255,255,0.22) 0%, rgba(255,255,255,0.10) 55%, rgba(255,255,255,0.06) 100%),
    linear-gradient(110deg, rgba(var(--accent-alt-rgb),0.25) 0%, rgba(var(--accent-rgb),0.25) 100%);
  backdrop-filter: blur(18px) saturate(140%) contrast(112%);
  -webkit-backdrop-filter: blur(18px) saturate(140%) contrast(112%);
  border: 1px solid rgba(255,255,255,0.28);
  box-shadow: 0 10px 28px -8px rgba(0,0,0,0.45), 0 0 0 1px rgba(var(--accent-alt-rgb),0.28) inset, 0 0 0 1px rgba(var(--accent-rgb),0.20) inset;
  position: relative;
}
.dark .glass {
  background:
    linear-gradient(145deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.03) 60%),
    linear-gradient(110deg, rgba(var(--accent-rgb),0.18) 0%, rgba(var(--accent-alt-rgb),0.18) 100%);
  border-color: rgba(255,255,255,0.18);
  box-shadow: 0 10px 32px -10px rgba(0,0,0,0.6), 0 0 0 1px rgba(var(--accent-rgb),0.26) inset, 0 0 0 1px rgba(var(--accent-alt-rgb),0.20) inset;
}

/* Animated gradient text */
.gradient-title {
  background: linear-gradient(90deg, #0EA5E9 0%, #38BDF8 25%, #1E3A8A 50%, #6366F1 75%, #60A5FA 100%);
  background-size: 220% 220%;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  font-weight: 800;
  letter-spacing: -0.02em;
}

@keyframes shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Fancy focus ring override */
.fancy-focus:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb),0.65), 0 0 0 6px rgba(var(--accent-rgb),0.25);
}

/* Smooth reveals */
.fade-in {
  opacity: 0;
  transform: translateY(12px) scale(.98);
  animation: fadeIn .8s cubic-bezier(.19,.8,.25,1) forwards;
}
@keyframes fadeIn {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Utility for adding future portal items via JS */
.portal-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* Adaptive text smoothing */
body { -webkit-font-smoothing: antialiased; }

/* Scrollbar styling (modern feel) */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(var(--accent-rgb),0.35); border-radius: 20px; }
::-webkit-scrollbar-thumb:hover { background: rgba(var(--accent-rgb),0.55); }

.bluye {
  color: #0781b1;
}

/* Icon gradient backgrounds */
.icon-gradient-blue {
  background: linear-gradient(to bottom right, #3b82f6, #4f46e5);
}

.icon-gradient-cyan {
  background: linear-gradient(to bottom right, #06b6d4, #0891b2);
}

.icon-gradient-purple {
  background: linear-gradient(to bottom right, #a855f7, #9333ea);
}

/* App card styles */
.app-card {
  background: white;
  transition: all 0.3s ease;
}

.app-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px rgba(0, 0, 0, 0.15);
}

.glass-card {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
}